Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit 8549162

Browse files
fix!: Removed resource definition of Compute API resources and incorrect resource references that used them
PiperOrigin-RevId: 459444490 Source-Link: googleapis/googleapis@24f0736 Source-Link: https://github.com/googleapis/googleapis-gen/commit/cd5440ba0eed0fc86bc3a510ba5a1dfba82c82b0 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2Q1NDQwYmEwZWVkMGZjODZiYzNhNTEwYmE1YTFkZmJhODJjODJiMCJ9
1 parent 173ad21 commit 8549162

File tree

195 files changed

+14205
-21364
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+14205
-21364
lines changed

grpc-google-cloud-certificate-manager-v1/src/main/java/com/google/cloud/certificatemanager/v1/CertificateManagerGrpc.java

Lines changed: 0 additions & 2783 deletions
This file was deleted.
Lines changed: 243 additions & 61 deletions
Large diffs are not rendered by default.
Lines changed: 37 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapsPagedResponse;
2121
import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificatesPagedResponse;
2222
import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListDnsAuthorizationsPagedResponse;
23+
import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListLocationsPagedResponse;
2324

2425
import com.google.api.core.ApiFunction;
2526
import com.google.api.core.BetaApi;
@@ -32,9 +33,14 @@
3233
import com.google.api.gax.rpc.ClientSettings;
3334
import com.google.api.gax.rpc.OperationCallSettings;
3435
import com.google.api.gax.rpc.PagedCallSettings;
36+
import com.google.api.gax.rpc.StubSettings;
3537
import com.google.api.gax.rpc.TransportChannelProvider;
3638
import com.google.api.gax.rpc.UnaryCallSettings;
3739
import com.google.cloud.certificatemanager.v1.stub.CertificateManagerStubSettings;
40+
import com.google.cloud.location.GetLocationRequest;
41+
import com.google.cloud.location.ListLocationsRequest;
42+
import com.google.cloud.location.ListLocationsResponse;
43+
import com.google.cloud.location.Location;
3844
import com.google.longrunning.Operation;
3945
import com.google.protobuf.Empty;
4046
import java.io.IOException;
@@ -48,10 +54,10 @@
4854
* <p>The default instance has everything set to sensible defaults:
4955
*
5056
* <ul>
51-
* <li>The default service address (certificatemanager.googleapis.com) and default port (443) are
57+
* <li> The default service address (certificatemanager.googleapis.com) and default port (443) are
5258
* used.
53-
* <li>Credentials are acquired automatically through Application Default Credentials.
54-
* <li>Retries are configured for idempotent methods but not for non-idempotent methods.
59+
* <li> Credentials are acquired automatically through Application Default Credentials.
60+
* <li> Retries are configured for idempotent methods but not for non-idempotent methods.
5561
* </ul>
5662
*
5763
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
@@ -178,8 +184,7 @@ public UnaryCallSettings<DeleteCertificateMapRequest, Operation> deleteCertifica
178184

179185
/** Returns the object with the settings used for calls to listCertificateMapEntries. */
180186
public PagedCallSettings<
181-
ListCertificateMapEntriesRequest,
182-
ListCertificateMapEntriesResponse,
187+
ListCertificateMapEntriesRequest, ListCertificateMapEntriesResponse,
183188
ListCertificateMapEntriesPagedResponse>
184189
listCertificateMapEntriesSettings() {
185190
return ((CertificateManagerStubSettings) getStubSettings()).listCertificateMapEntriesSettings();
@@ -234,8 +239,7 @@ public UnaryCallSettings<DeleteCertificateMapRequest, Operation> deleteCertifica
234239

235240
/** Returns the object with the settings used for calls to listDnsAuthorizations. */
236241
public PagedCallSettings<
237-
ListDnsAuthorizationsRequest,
238-
ListDnsAuthorizationsResponse,
242+
ListDnsAuthorizationsRequest, ListDnsAuthorizationsResponse,
239243
ListDnsAuthorizationsPagedResponse>
240244
listDnsAuthorizationsSettings() {
241245
return ((CertificateManagerStubSettings) getStubSettings()).listDnsAuthorizationsSettings();
@@ -286,6 +290,17 @@ public UnaryCallSettings<DeleteCertificateMapRequest, Operation> deleteCertifica
286290
.deleteDnsAuthorizationOperationSettings();
287291
}
288292

293+
/** Returns the object with the settings used for calls to listLocations. */
294+
public PagedCallSettings<ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
295+
listLocationsSettings() {
296+
return ((CertificateManagerStubSettings) getStubSettings()).listLocationsSettings();
297+
}
298+
299+
/** Returns the object with the settings used for calls to getLocation. */
300+
public UnaryCallSettings<GetLocationRequest, Location> getLocationSettings() {
301+
return ((CertificateManagerStubSettings) getStubSettings()).getLocationSettings();
302+
}
303+
289304
public static final CertificateManagerSettings create(CertificateManagerStubSettings stub)
290305
throws IOException {
291306
return new CertificateManagerSettings.Builder(stub.toBuilder()).build();
@@ -451,8 +466,7 @@ public UnaryCallSettings.Builder<GetCertificateRequest, Certificate> getCertific
451466

452467
/** Returns the builder for the settings used for calls to listCertificateMaps. */
453468
public PagedCallSettings.Builder<
454-
ListCertificateMapsRequest,
455-
ListCertificateMapsResponse,
469+
ListCertificateMapsRequest, ListCertificateMapsResponse,
456470
ListCertificateMapsPagedResponse>
457471
listCertificateMapsSettings() {
458472
return getStubSettingsBuilder().listCertificateMapsSettings();
@@ -504,8 +518,7 @@ public UnaryCallSettings.Builder<GetCertificateRequest, Certificate> getCertific
504518

505519
/** Returns the builder for the settings used for calls to listCertificateMapEntries. */
506520
public PagedCallSettings.Builder<
507-
ListCertificateMapEntriesRequest,
508-
ListCertificateMapEntriesResponse,
521+
ListCertificateMapEntriesRequest, ListCertificateMapEntriesResponse,
509522
ListCertificateMapEntriesPagedResponse>
510523
listCertificateMapEntriesSettings() {
511524
return getStubSettingsBuilder().listCertificateMapEntriesSettings();
@@ -557,8 +570,7 @@ public UnaryCallSettings.Builder<GetCertificateRequest, Certificate> getCertific
557570

558571
/** Returns the builder for the settings used for calls to listDnsAuthorizations. */
559572
public PagedCallSettings.Builder<
560-
ListDnsAuthorizationsRequest,
561-
ListDnsAuthorizationsResponse,
573+
ListDnsAuthorizationsRequest, ListDnsAuthorizationsResponse,
562574
ListDnsAuthorizationsPagedResponse>
563575
listDnsAuthorizationsSettings() {
564576
return getStubSettingsBuilder().listDnsAuthorizationsSettings();
@@ -608,6 +620,18 @@ public UnaryCallSettings.Builder<GetCertificateRequest, Certificate> getCertific
608620
return getStubSettingsBuilder().deleteDnsAuthorizationOperationSettings();
609621
}
610622

623+
/** Returns the builder for the settings used for calls to listLocations. */
624+
public PagedCallSettings.Builder<
625+
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
626+
listLocationsSettings() {
627+
return getStubSettingsBuilder().listLocationsSettings();
628+
}
629+
630+
/** Returns the builder for the settings used for calls to getLocation. */
631+
public UnaryCallSettings.Builder<GetLocationRequest, Location> getLocationSettings() {
632+
return getStubSettingsBuilder().getLocationSettings();
633+
}
634+
611635
@Override
612636
public CertificateManagerSettings build() throws IOException {
613637
return new CertificateManagerSettings(this);

google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/gapic_metadata.json renamed to owl-bot-staging/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/gapic_metadata.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
"GetDnsAuthorization": {
4747
"methods": ["getDnsAuthorization", "getDnsAuthorization", "getDnsAuthorization", "getDnsAuthorizationCallable"]
4848
},
49+
"GetLocation": {
50+
"methods": ["getLocation", "getLocationCallable"]
51+
},
4952
"ListCertificateMapEntries": {
5053
"methods": ["listCertificateMapEntries", "listCertificateMapEntries", "listCertificateMapEntries", "listCertificateMapEntriesPagedCallable", "listCertificateMapEntriesCallable"]
5154
},
@@ -58,6 +61,9 @@
5861
"ListDnsAuthorizations": {
5962
"methods": ["listDnsAuthorizations", "listDnsAuthorizations", "listDnsAuthorizations", "listDnsAuthorizationsPagedCallable", "listDnsAuthorizationsCallable"]
6063
},
64+
"ListLocations": {
65+
"methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
66+
},
6167
"UpdateCertificate": {
6268
"methods": ["updateCertificateAsync", "updateCertificateAsync", "updateCertificateOperationCallable", "updateCertificateCallable"]
6369
},

google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/package-info.java renamed to owl-bot-staging/v1/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/package-info.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
* <p>The Certificates Manager service exposes the following resources:
3535
*
3636
* <ul>
37-
* <li>`Certificate` which describes a single TLS certificate.
38-
* <li>`CertificateMap` which describes a collection of certificates that can be attached to a
37+
* <li> `Certificate` which describes a single TLS certificate.
38+
* <li> `CertificateMap` which describes a collection of certificates that can be attached to a
3939
* target resource.
40-
* <li>`CertificateMapEntry` which describes a single configuration entry that consists of a SNI
40+
* <li> `CertificateMapEntry` which describes a single configuration entry that consists of a SNI
4141
* and a group of certificates. It's a subresource of CertificateMap.
4242
* </ul>
4343
*
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificateMapsPagedResponse;
2121
import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListCertificatesPagedResponse;
2222
import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListDnsAuthorizationsPagedResponse;
23+
import static com.google.cloud.certificatemanager.v1.CertificateManagerClient.ListLocationsPagedResponse;
2324

2425
import com.google.api.gax.core.BackgroundResource;
2526
import com.google.api.gax.rpc.OperationCallable;
@@ -53,6 +54,10 @@
5354
import com.google.cloud.certificatemanager.v1.UpdateCertificateMapRequest;
5455
import com.google.cloud.certificatemanager.v1.UpdateCertificateRequest;
5556
import com.google.cloud.certificatemanager.v1.UpdateDnsAuthorizationRequest;
57+
import com.google.cloud.location.GetLocationRequest;
58+
import com.google.cloud.location.ListLocationsRequest;
59+
import com.google.cloud.location.ListLocationsResponse;
60+
import com.google.cloud.location.Location;
5661
import com.google.longrunning.Operation;
5762
import com.google.longrunning.stub.OperationsStub;
5863
import com.google.protobuf.Empty;
@@ -257,6 +262,19 @@ public UnaryCallable<DeleteDnsAuthorizationRequest, Operation> deleteDnsAuthoriz
257262
throw new UnsupportedOperationException("Not implemented: deleteDnsAuthorizationCallable()");
258263
}
259264

265+
public UnaryCallable<ListLocationsRequest, ListLocationsPagedResponse>
266+
listLocationsPagedCallable() {
267+
throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
268+
}
269+
270+
public UnaryCallable<ListLocationsRequest, ListLocationsResponse> listLocationsCallable() {
271+
throw new UnsupportedOperationException("Not implemented: listLocationsCallable()");
272+
}
273+
274+
public UnaryCallable<GetLocationRequest, Location> getLocationCallable() {
275+
throw new UnsupportedOperationException("Not implemented: getLocationCallable()");
276+
}
277+
260278
@Override
261279
public abstract void close();
262280
}

0 commit comments

Comments
 (0)