Skip to content
Permalink
Browse files
fix: Remove ActivateSpoke and DeactivateSpoke methods (#136)
ActivateSpoke and DeactivateSpoke were included in a previous change by mistake
feat: Add hub.routing_vpcs field
docs: Specify that site_to_site_data_transfer field must be set to true

- [x] Regenerate this pull request now.

PiperOrigin-RevId: 392500501

Source-Link: googleapis/googleapis@d06d94e

Source-Link: https://github.com/googleapis/googleapis-gen/commit/b368af0aabeac99dfd7c267950a412e2c1eaca11
  • Loading branch information
gcf-owl-bot[bot] committed Sep 20, 2021
1 parent bf5ba1d commit 5beedfa50c4ce32b0a25ad4fefa14ff254ecae19
Showing with 1,609 additions and 3,476 deletions.
  1. +0 −242 ...d-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceClient.java
  2. +0 −44 ...networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java
  3. +0 −6 ...oud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/gapic_metadata.json
  4. +0 −88 ...rkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java
  5. +0 −20 ...etworkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java
  6. +0 −137 ...nnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java
  7. +6 −224 ...tworkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java
  8. +0 −42 ...networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java
  9. +1 −242 ...-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceGrpc.java
  10. +0 −910 ...rkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ActivateSpokeRequest.java
  11. +0 −101 ...ivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ActivateSpokeRequestOrBuilder.java
  12. +0 −913 ...connectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeactivateSpokeRequest.java
  13. +0 −101 ...ity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeactivateSpokeRequestOrBuilder.java
  14. +593 −1 ...oogle-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java
  15. +72 −0 ...ud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java
  16. +190 −208 ...-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubProto.java
  17. +8 −24 ...ivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachments.java
  18. +2 −6 ...src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachmentsOrBuilder.java
  19. +8 −24 ...vity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java
  20. +2 −6 ...rc/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstancesOrBuilder.java
  21. +8 −24 ...etworkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java
  22. +2 −6 ...nectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnelsOrBuilder.java
  23. +4 −4 ...tworkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java
  24. +1 −1 ...ectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadataOrBuilder.java
  25. +638 −0 ...loud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java
  26. +50 −0 ...orkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPCOrBuilder.java
  27. +1 −1 ...ogle-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/common.proto
  28. +23 −101 ...-google-cloud-networkconnectivity-v1/src/main/proto/google/cloud/networkconnectivity/v1/hub.proto
@@ -1212,248 +1212,6 @@ public final UnaryCallable<UpdateSpokeRequest, Operation> updateSpokeCallable()
return stub.updateSpokeCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deactivates the specified spoke. Deactivating keeps the spoke information for future
* re-activation, but disconnects the Google Cloud network from non-Google-Cloud network.
*
* <p>Sample code:
*
* <pre>{@code
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* SpokeName name = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]");
* Spoke response = hubServiceClient.deactivateSpokeAsync(name).get();
* }
* }</pre>
*
* @param name Required. The name of the spoke to deactivate.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Spoke, OperationMetadata> deactivateSpokeAsync(SpokeName name) {
DeactivateSpokeRequest request =
DeactivateSpokeRequest.newBuilder().setName(name == null ? null : name.toString()).build();
return deactivateSpokeAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deactivates the specified spoke. Deactivating keeps the spoke information for future
* re-activation, but disconnects the Google Cloud network from non-Google-Cloud network.
*
* <p>Sample code:
*
* <pre>{@code
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String name = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString();
* Spoke response = hubServiceClient.deactivateSpokeAsync(name).get();
* }
* }</pre>
*
* @param name Required. The name of the spoke to deactivate.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Spoke, OperationMetadata> deactivateSpokeAsync(String name) {
DeactivateSpokeRequest request = DeactivateSpokeRequest.newBuilder().setName(name).build();
return deactivateSpokeAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deactivates the specified spoke. Deactivating keeps the spoke information for future
* re-activation, but disconnects the Google Cloud network from non-Google-Cloud network.
*
* <p>Sample code:
*
* <pre>{@code
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* DeactivateSpokeRequest request =
* DeactivateSpokeRequest.newBuilder()
* .setName(SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString())
* .setRequestId("requestId693933066")
* .build();
* Spoke response = hubServiceClient.deactivateSpokeAsync(request).get();
* }
* }</pre>
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Spoke, OperationMetadata> deactivateSpokeAsync(
DeactivateSpokeRequest request) {
return deactivateSpokeOperationCallable().futureCall(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deactivates the specified spoke. Deactivating keeps the spoke information for future
* re-activation, but disconnects the Google Cloud network from non-Google-Cloud network.
*
* <p>Sample code:
*
* <pre>{@code
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* DeactivateSpokeRequest request =
* DeactivateSpokeRequest.newBuilder()
* .setName(SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString())
* .setRequestId("requestId693933066")
* .build();
* OperationFuture<Spoke, OperationMetadata> future =
* hubServiceClient.deactivateSpokeOperationCallable().futureCall(request);
* // Do something.
* Spoke response = future.get();
* }
* }</pre>
*/
public final OperationCallable<DeactivateSpokeRequest, Spoke, OperationMetadata>
deactivateSpokeOperationCallable() {
return stub.deactivateSpokeOperationCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deactivates the specified spoke. Deactivating keeps the spoke information for future
* re-activation, but disconnects the Google Cloud network from non-Google-Cloud network.
*
* <p>Sample code:
*
* <pre>{@code
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* DeactivateSpokeRequest request =
* DeactivateSpokeRequest.newBuilder()
* .setName(SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString())
* .setRequestId("requestId693933066")
* .build();
* ApiFuture<Operation> future = hubServiceClient.deactivateSpokeCallable().futureCall(request);
* // Do something.
* Operation response = future.get();
* }
* }</pre>
*/
public final UnaryCallable<DeactivateSpokeRequest, Operation> deactivateSpokeCallable() {
return stub.deactivateSpokeCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Activates the specified spoke. Activating reconnects the Google Cloud network with the
* non-Google-Cloud network.
*
* <p>Sample code:
*
* <pre>{@code
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* SpokeName name = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]");
* Spoke response = hubServiceClient.activateSpokeAsync(name).get();
* }
* }</pre>
*
* @param name Required. The name of the spoke to activate.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Spoke, OperationMetadata> activateSpokeAsync(SpokeName name) {
ActivateSpokeRequest request =
ActivateSpokeRequest.newBuilder().setName(name == null ? null : name.toString()).build();
return activateSpokeAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Activates the specified spoke. Activating reconnects the Google Cloud network with the
* non-Google-Cloud network.
*
* <p>Sample code:
*
* <pre>{@code
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String name = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString();
* Spoke response = hubServiceClient.activateSpokeAsync(name).get();
* }
* }</pre>
*
* @param name Required. The name of the spoke to activate.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Spoke, OperationMetadata> activateSpokeAsync(String name) {
ActivateSpokeRequest request = ActivateSpokeRequest.newBuilder().setName(name).build();
return activateSpokeAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Activates the specified spoke. Activating reconnects the Google Cloud network with the
* non-Google-Cloud network.
*
* <p>Sample code:
*
* <pre>{@code
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* ActivateSpokeRequest request =
* ActivateSpokeRequest.newBuilder()
* .setName(SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString())
* .setRequestId("requestId693933066")
* .build();
* Spoke response = hubServiceClient.activateSpokeAsync(request).get();
* }
* }</pre>
*
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Spoke, OperationMetadata> activateSpokeAsync(
ActivateSpokeRequest request) {
return activateSpokeOperationCallable().futureCall(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Activates the specified spoke. Activating reconnects the Google Cloud network with the
* non-Google-Cloud network.
*
* <p>Sample code:
*
* <pre>{@code
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* ActivateSpokeRequest request =
* ActivateSpokeRequest.newBuilder()
* .setName(SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString())
* .setRequestId("requestId693933066")
* .build();
* OperationFuture<Spoke, OperationMetadata> future =
* hubServiceClient.activateSpokeOperationCallable().futureCall(request);
* // Do something.
* Spoke response = future.get();
* }
* }</pre>
*/
public final OperationCallable<ActivateSpokeRequest, Spoke, OperationMetadata>
activateSpokeOperationCallable() {
return stub.activateSpokeOperationCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Activates the specified spoke. Activating reconnects the Google Cloud network with the
* non-Google-Cloud network.
*
* <p>Sample code:
*
* <pre>{@code
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* ActivateSpokeRequest request =
* ActivateSpokeRequest.newBuilder()
* .setName(SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString())
* .setRequestId("requestId693933066")
* .build();
* ApiFuture<Operation> future = hubServiceClient.activateSpokeCallable().futureCall(request);
* // Do something.
* Operation response = future.get();
* }
* }</pre>
*/
public final UnaryCallable<ActivateSpokeRequest, Operation> activateSpokeCallable() {
return stub.activateSpokeCallable();
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Deletes the specified spoke.
@@ -150,28 +150,6 @@ public UnaryCallSettings<UpdateSpokeRequest, Operation> updateSpokeSettings() {
return ((HubServiceStubSettings) getStubSettings()).updateSpokeOperationSettings();
}

/** Returns the object with the settings used for calls to deactivateSpoke. */
public UnaryCallSettings<DeactivateSpokeRequest, Operation> deactivateSpokeSettings() {
return ((HubServiceStubSettings) getStubSettings()).deactivateSpokeSettings();
}

/** Returns the object with the settings used for calls to deactivateSpoke. */
public OperationCallSettings<DeactivateSpokeRequest, Spoke, OperationMetadata>
deactivateSpokeOperationSettings() {
return ((HubServiceStubSettings) getStubSettings()).deactivateSpokeOperationSettings();
}

/** Returns the object with the settings used for calls to activateSpoke. */
public UnaryCallSettings<ActivateSpokeRequest, Operation> activateSpokeSettings() {
return ((HubServiceStubSettings) getStubSettings()).activateSpokeSettings();
}

/** Returns the object with the settings used for calls to activateSpoke. */
public OperationCallSettings<ActivateSpokeRequest, Spoke, OperationMetadata>
activateSpokeOperationSettings() {
return ((HubServiceStubSettings) getStubSettings()).activateSpokeOperationSettings();
}

/** Returns the object with the settings used for calls to deleteSpoke. */
public UnaryCallSettings<DeleteSpokeRequest, Operation> deleteSpokeSettings() {
return ((HubServiceStubSettings) getStubSettings()).deleteSpokeSettings();
@@ -356,28 +334,6 @@ public UnaryCallSettings.Builder<UpdateSpokeRequest, Operation> updateSpokeSetti
return getStubSettingsBuilder().updateSpokeOperationSettings();
}

/** Returns the builder for the settings used for calls to deactivateSpoke. */
public UnaryCallSettings.Builder<DeactivateSpokeRequest, Operation> deactivateSpokeSettings() {
return getStubSettingsBuilder().deactivateSpokeSettings();
}

/** Returns the builder for the settings used for calls to deactivateSpoke. */
public OperationCallSettings.Builder<DeactivateSpokeRequest, Spoke, OperationMetadata>
deactivateSpokeOperationSettings() {
return getStubSettingsBuilder().deactivateSpokeOperationSettings();
}

/** Returns the builder for the settings used for calls to activateSpoke. */
public UnaryCallSettings.Builder<ActivateSpokeRequest, Operation> activateSpokeSettings() {
return getStubSettingsBuilder().activateSpokeSettings();
}

/** Returns the builder for the settings used for calls to activateSpoke. */
public OperationCallSettings.Builder<ActivateSpokeRequest, Spoke, OperationMetadata>
activateSpokeOperationSettings() {
return getStubSettingsBuilder().activateSpokeOperationSettings();
}

/** Returns the builder for the settings used for calls to deleteSpoke. */
public UnaryCallSettings.Builder<DeleteSpokeRequest, Operation> deleteSpokeSettings() {
return getStubSettingsBuilder().deleteSpokeSettings();
@@ -10,18 +10,12 @@
"grpc": {
"libraryClient": "HubServiceClient",
"rpcs": {
"ActivateSpoke": {
"methods": ["activateSpokeAsync", "activateSpokeAsync", "activateSpokeAsync", "activateSpokeOperationCallable", "activateSpokeCallable"]
},
"CreateHub": {
"methods": ["createHubAsync", "createHubAsync", "createHubAsync", "createHubOperationCallable", "createHubCallable"]
},
"CreateSpoke": {
"methods": ["createSpokeAsync", "createSpokeAsync", "createSpokeAsync", "createSpokeOperationCallable", "createSpokeCallable"]
},
"DeactivateSpoke": {
"methods": ["deactivateSpokeAsync", "deactivateSpokeAsync", "deactivateSpokeAsync", "deactivateSpokeOperationCallable", "deactivateSpokeCallable"]
},
"DeleteHub": {
"methods": ["deleteHubAsync", "deleteHubAsync", "deleteHubAsync", "deleteHubOperationCallable", "deleteHubCallable"]
},

0 comments on commit 5beedfa

Please sign in to comment.