Sample code:
*
@@ -5287,29 +5543,49 @@ public final ListVmwareEngineNetworksPagedResponse listVmwareEngineNetworks(
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
- * ListLocationsRequest request =
- * ListLocationsRequest.newBuilder()
- * .setName("name3373707")
- * .setFilter("filter-1274492040")
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .build();
- * for (Location element : vmwareEngineClient.listLocations(request).iterateAll()) {
- * // doThingsWith(element);
- * }
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * PrivateConnection privateConnection = PrivateConnection.newBuilder().build();
+ * String privateConnectionId = "privateConnectionId-1926654532";
+ * PrivateConnection response =
+ * vmwareEngineClient
+ * .createPrivateConnectionAsync(parent, privateConnection, privateConnectionId)
+ * .get();
* }
* }
*
- * @param request The request object containing all of the parameters for the API call.
+ * @param parent Required. The resource name of the location to create the new private connection
+ * in. Private connection is a regional resource. Resource names are schemeless URIs that
+ * follow the conventions in https://cloud.google.com/apis/design/resource_names. For example:
+ * `projects/my-project/locations/us-central1`
+ * @param privateConnection Required. The initial description of the new private connection.
+ * @param privateConnectionId Required. The user-provided identifier of the new private
+ * connection. This identifier must be unique among private connection resources within the
+ * parent and becomes the final token in the name URI. The identifier must meet the following
+ * requirements:
+ *
createPrivateConnectionAsync(
+ LocationName parent, PrivateConnection privateConnection, String privateConnectionId) {
+ CreatePrivateConnectionRequest request =
+ CreatePrivateConnectionRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .setPrivateConnection(privateConnection)
+ .setPrivateConnectionId(privateConnectionId)
+ .build();
+ return createPrivateConnectionAsync(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists information about the supported locations for this service.
+ * Creates a new private connection that can be used for accessing private Clouds.
*
* Sample code:
*
@@ -5320,30 +5596,49 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
- * ListLocationsRequest request =
- * ListLocationsRequest.newBuilder()
- * .setName("name3373707")
- * .setFilter("filter-1274492040")
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
- * .build();
- * ApiFuture future =
- * vmwareEngineClient.listLocationsPagedCallable().futureCall(request);
- * // Do something.
- * for (Location element : future.get().iterateAll()) {
- * // doThingsWith(element);
- * }
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * PrivateConnection privateConnection = PrivateConnection.newBuilder().build();
+ * String privateConnectionId = "privateConnectionId-1926654532";
+ * PrivateConnection response =
+ * vmwareEngineClient
+ * .createPrivateConnectionAsync(parent, privateConnection, privateConnectionId)
+ * .get();
* }
* }
+ *
+ * @param parent Required. The resource name of the location to create the new private connection
+ * in. Private connection is a regional resource. Resource names are schemeless URIs that
+ * follow the conventions in https://cloud.google.com/apis/design/resource_names. For example:
+ * `projects/my-project/locations/us-central1`
+ * @param privateConnection Required. The initial description of the new private connection.
+ * @param privateConnectionId Required. The user-provided identifier of the new private
+ * connection. This identifier must be unique among private connection resources within the
+ * parent and becomes the final token in the name URI. The identifier must meet the following
+ * requirements:
+ *
+ * - Only contains 1-63 alphanumeric characters and hyphens
+ *
- Begins with an alphabetical character
+ *
- Ends with a non-hyphen character
+ *
- Not formatted as a UUID
+ *
- Complies with [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5)
+ *
+ *
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final UnaryCallable
- listLocationsPagedCallable() {
- return stub.listLocationsPagedCallable();
+ public final OperationFuture createPrivateConnectionAsync(
+ String parent, PrivateConnection privateConnection, String privateConnectionId) {
+ CreatePrivateConnectionRequest request =
+ CreatePrivateConnectionRequest.newBuilder()
+ .setParent(parent)
+ .setPrivateConnection(privateConnection)
+ .setPrivateConnectionId(privateConnectionId)
+ .build();
+ return createPrivateConnectionAsync(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists information about the supported locations for this service.
+ * Creates a new private connection that can be used for accessing private Clouds.
*
* Sample code:
*
@@ -5354,18 +5649,981 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
- * ListLocationsRequest request =
- * ListLocationsRequest.newBuilder()
- * .setName("name3373707")
- * .setFilter("filter-1274492040")
- * .setPageSize(883849137)
- * .setPageToken("pageToken873572522")
+ * CreatePrivateConnectionRequest request =
+ * CreatePrivateConnectionRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPrivateConnectionId("privateConnectionId-1926654532")
+ * .setPrivateConnection(PrivateConnection.newBuilder().build())
+ * .setRequestId("requestId693933066")
* .build();
- * while (true) {
- * ListLocationsResponse response = vmwareEngineClient.listLocationsCallable().call(request);
- * for (Location element : response.getLocationsList()) {
- * // doThingsWith(element);
- * }
+ * PrivateConnection response = vmwareEngineClient.createPrivateConnectionAsync(request).get();
+ * }
+ * }
+ *
+ * @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 createPrivateConnectionAsync(
+ CreatePrivateConnectionRequest request) {
+ return createPrivateConnectionOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new private connection that can be used for accessing private Clouds.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ * CreatePrivateConnectionRequest request =
+ * CreatePrivateConnectionRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPrivateConnectionId("privateConnectionId-1926654532")
+ * .setPrivateConnection(PrivateConnection.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * vmwareEngineClient.createPrivateConnectionOperationCallable().futureCall(request);
+ * // Do something.
+ * PrivateConnection response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ CreatePrivateConnectionRequest, PrivateConnection, OperationMetadata>
+ createPrivateConnectionOperationCallable() {
+ return stub.createPrivateConnectionOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Creates a new private connection that can be used for accessing private Clouds.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ * CreatePrivateConnectionRequest request =
+ * CreatePrivateConnectionRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPrivateConnectionId("privateConnectionId-1926654532")
+ * .setPrivateConnection(PrivateConnection.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * vmwareEngineClient.createPrivateConnectionCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ createPrivateConnectionCallable() {
+ return stub.createPrivateConnectionCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `PrivateConnection` resource by its resource name. The resource contains details of
+ * the private connection, such as connected network, routing mode and state.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ * PrivateConnectionName name =
+ * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
+ * PrivateConnection response = vmwareEngineClient.getPrivateConnection(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the private connection to retrieve. Resource names
+ * are schemeless URIs that follow the conventions in
+ * https://cloud.google.com/apis/design/resource_names. For example:
+ * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final PrivateConnection getPrivateConnection(PrivateConnectionName name) {
+ GetPrivateConnectionRequest request =
+ GetPrivateConnectionRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return getPrivateConnection(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `PrivateConnection` resource by its resource name. The resource contains details of
+ * the private connection, such as connected network, routing mode and state.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ * String name =
+ * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString();
+ * PrivateConnection response = vmwareEngineClient.getPrivateConnection(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the private connection to retrieve. Resource names
+ * are schemeless URIs that follow the conventions in
+ * https://cloud.google.com/apis/design/resource_names. For example:
+ * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final PrivateConnection getPrivateConnection(String name) {
+ GetPrivateConnectionRequest request =
+ GetPrivateConnectionRequest.newBuilder().setName(name).build();
+ return getPrivateConnection(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `PrivateConnection` resource by its resource name. The resource contains details of
+ * the private connection, such as connected network, routing mode and state.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ * GetPrivateConnectionRequest request =
+ * GetPrivateConnectionRequest.newBuilder()
+ * .setName(
+ * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+ * .toString())
+ * .build();
+ * PrivateConnection response = vmwareEngineClient.getPrivateConnection(request);
+ * }
+ * }
+ *
+ * @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 PrivateConnection getPrivateConnection(GetPrivateConnectionRequest request) {
+ return getPrivateConnectionCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Retrieves a `PrivateConnection` resource by its resource name. The resource contains details of
+ * the private connection, such as connected network, routing mode and state.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ * GetPrivateConnectionRequest request =
+ * GetPrivateConnectionRequest.newBuilder()
+ * .setName(
+ * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+ * .toString())
+ * .build();
+ * ApiFuture future =
+ * vmwareEngineClient.getPrivateConnectionCallable().futureCall(request);
+ * // Do something.
+ * PrivateConnection response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ getPrivateConnectionCallable() {
+ return stub.getPrivateConnectionCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `PrivateConnection` resources in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+ * for (PrivateConnection element :
+ * vmwareEngineClient.listPrivateConnections(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the location to query for private connections.
+ * Resource names are schemeless URIs that follow the conventions in
+ * https://cloud.google.com/apis/design/resource_names. For example:
+ * `projects/my-project/locations/us-central1`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPrivateConnectionsPagedResponse listPrivateConnections(LocationName parent) {
+ ListPrivateConnectionsRequest request =
+ ListPrivateConnectionsRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listPrivateConnections(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `PrivateConnection` resources in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+ * for (PrivateConnection element :
+ * vmwareEngineClient.listPrivateConnections(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the location to query for private connections.
+ * Resource names are schemeless URIs that follow the conventions in
+ * https://cloud.google.com/apis/design/resource_names. For example:
+ * `projects/my-project/locations/us-central1`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPrivateConnectionsPagedResponse listPrivateConnections(String parent) {
+ ListPrivateConnectionsRequest request =
+ ListPrivateConnectionsRequest.newBuilder().setParent(parent).build();
+ return listPrivateConnections(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `PrivateConnection` resources in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ * ListPrivateConnectionsRequest request =
+ * ListPrivateConnectionsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * for (PrivateConnection element :
+ * vmwareEngineClient.listPrivateConnections(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @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 ListPrivateConnectionsPagedResponse listPrivateConnections(
+ ListPrivateConnectionsRequest request) {
+ return listPrivateConnectionsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `PrivateConnection` resources in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ * ListPrivateConnectionsRequest request =
+ * ListPrivateConnectionsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * ApiFuture future =
+ * vmwareEngineClient.listPrivateConnectionsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (PrivateConnection element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listPrivateConnectionsPagedCallable() {
+ return stub.listPrivateConnectionsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists `PrivateConnection` resources in a given project and location.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ * ListPrivateConnectionsRequest request =
+ * ListPrivateConnectionsRequest.newBuilder()
+ * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .setFilter("filter-1274492040")
+ * .setOrderBy("orderBy-1207110587")
+ * .build();
+ * while (true) {
+ * ListPrivateConnectionsResponse response =
+ * vmwareEngineClient.listPrivateConnectionsCallable().call(request);
+ * for (PrivateConnection element : response.getPrivateConnectionsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listPrivateConnectionsCallable() {
+ return stub.listPrivateConnectionsCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Modifies a `PrivateConnection` resource. Only `description` and `routing_mode` fields can be
+ * updated. Only fields specified in `updateMask` are applied.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ * PrivateConnection privateConnection = PrivateConnection.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * PrivateConnection response =
+ * vmwareEngineClient.updatePrivateConnectionAsync(privateConnection, updateMask).get();
+ * }
+ * }
+ *
+ * @param privateConnection Required. Private connection description.
+ * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the
+ * `PrivateConnection` resource by the update. The fields specified in the `update_mask` are
+ * relative to the resource, not the full request. A field will be overwritten if it is in the
+ * mask. If the user does not provide a mask then all fields will be overwritten.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture updatePrivateConnectionAsync(
+ PrivateConnection privateConnection, FieldMask updateMask) {
+ UpdatePrivateConnectionRequest request =
+ UpdatePrivateConnectionRequest.newBuilder()
+ .setPrivateConnection(privateConnection)
+ .setUpdateMask(updateMask)
+ .build();
+ return updatePrivateConnectionAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Modifies a `PrivateConnection` resource. Only `description` and `routing_mode` fields can be
+ * updated. Only fields specified in `updateMask` are applied.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ * UpdatePrivateConnectionRequest request =
+ * UpdatePrivateConnectionRequest.newBuilder()
+ * .setPrivateConnection(PrivateConnection.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * PrivateConnection response = vmwareEngineClient.updatePrivateConnectionAsync(request).get();
+ * }
+ * }
+ *
+ * @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 updatePrivateConnectionAsync(
+ UpdatePrivateConnectionRequest request) {
+ return updatePrivateConnectionOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Modifies a `PrivateConnection` resource. Only `description` and `routing_mode` fields can be
+ * updated. Only fields specified in `updateMask` are applied.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ * UpdatePrivateConnectionRequest request =
+ * UpdatePrivateConnectionRequest.newBuilder()
+ * .setPrivateConnection(PrivateConnection.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * vmwareEngineClient.updatePrivateConnectionOperationCallable().futureCall(request);
+ * // Do something.
+ * PrivateConnection response = future.get();
+ * }
+ * }
+ */
+ public final OperationCallable<
+ UpdatePrivateConnectionRequest, PrivateConnection, OperationMetadata>
+ updatePrivateConnectionOperationCallable() {
+ return stub.updatePrivateConnectionOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Modifies a `PrivateConnection` resource. Only `description` and `routing_mode` fields can be
+ * updated. Only fields specified in `updateMask` are applied.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ * UpdatePrivateConnectionRequest request =
+ * UpdatePrivateConnectionRequest.newBuilder()
+ * .setPrivateConnection(PrivateConnection.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * vmwareEngineClient.updatePrivateConnectionCallable().futureCall(request);
+ * // Do something.
+ * Operation response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ updatePrivateConnectionCallable() {
+ return stub.updatePrivateConnectionCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a `PrivateConnection` resource. When a private connection is deleted for a VMware
+ * Engine network, the connected network becomes inaccessible to that VMware Engine network.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ * PrivateConnectionName name =
+ * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
+ * vmwareEngineClient.deletePrivateConnectionAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the private connection to be deleted. Resource names
+ * are schemeless URIs that follow the conventions in
+ * https://cloud.google.com/apis/design/resource_names. For example:
+ * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deletePrivateConnectionAsync(
+ PrivateConnectionName name) {
+ DeletePrivateConnectionRequest request =
+ DeletePrivateConnectionRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ return deletePrivateConnectionAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a `PrivateConnection` resource. When a private connection is deleted for a VMware
+ * Engine network, the connected network becomes inaccessible to that VMware Engine network.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ * String name =
+ * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString();
+ * vmwareEngineClient.deletePrivateConnectionAsync(name).get();
+ * }
+ * }
+ *
+ * @param name Required. The resource name of the private connection to be deleted. Resource names
+ * are schemeless URIs that follow the conventions in
+ * https://cloud.google.com/apis/design/resource_names. For example:
+ * `projects/my-project/locations/us-central1/privateConnections/my-connection`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture deletePrivateConnectionAsync(String name) {
+ DeletePrivateConnectionRequest request =
+ DeletePrivateConnectionRequest.newBuilder().setName(name).build();
+ return deletePrivateConnectionAsync(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a `PrivateConnection` resource. When a private connection is deleted for a VMware
+ * Engine network, the connected network becomes inaccessible to that VMware Engine network.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ * DeletePrivateConnectionRequest request =
+ * DeletePrivateConnectionRequest.newBuilder()
+ * .setName(
+ * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * vmwareEngineClient.deletePrivateConnectionAsync(request).get();
+ * }
+ * }
+ *
+ * @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 deletePrivateConnectionAsync(
+ DeletePrivateConnectionRequest request) {
+ return deletePrivateConnectionOperationCallable().futureCall(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a `PrivateConnection` resource. When a private connection is deleted for a VMware
+ * Engine network, the connected network becomes inaccessible to that VMware Engine network.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ * DeletePrivateConnectionRequest request =
+ * DeletePrivateConnectionRequest.newBuilder()
+ * .setName(
+ * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * OperationFuture future =
+ * vmwareEngineClient.deletePrivateConnectionOperationCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final OperationCallable
+ deletePrivateConnectionOperationCallable() {
+ return stub.deletePrivateConnectionOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Deletes a `PrivateConnection` resource. When a private connection is deleted for a VMware
+ * Engine network, the connected network becomes inaccessible to that VMware Engine network.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ * DeletePrivateConnectionRequest request =
+ * DeletePrivateConnectionRequest.newBuilder()
+ * .setName(
+ * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+ * .toString())
+ * .setRequestId("requestId693933066")
+ * .build();
+ * ApiFuture future =
+ * vmwareEngineClient.deletePrivateConnectionCallable().futureCall(request);
+ * // Do something.
+ * future.get();
+ * }
+ * }
+ */
+ public final UnaryCallable
+ deletePrivateConnectionCallable() {
+ return stub.deletePrivateConnectionCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the private connection routes exchanged over a peering connection.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ * PrivateConnectionName parent =
+ * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
+ * for (PeeringRoute element :
+ * vmwareEngineClient.listPrivateConnectionPeeringRoutes(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the private connection to retrieve peering routes
+ * from. Resource names are schemeless URIs that follow the conventions in
+ * https://cloud.google.com/apis/design/resource_names. For example:
+ * `projects/my-project/locations/us-west1/privateConnections/my-connection`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPrivateConnectionPeeringRoutesPagedResponse listPrivateConnectionPeeringRoutes(
+ PrivateConnectionName parent) {
+ ListPrivateConnectionPeeringRoutesRequest request =
+ ListPrivateConnectionPeeringRoutesRequest.newBuilder()
+ .setParent(parent == null ? null : parent.toString())
+ .build();
+ return listPrivateConnectionPeeringRoutes(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the private connection routes exchanged over a peering connection.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ * String parent =
+ * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString();
+ * for (PeeringRoute element :
+ * vmwareEngineClient.listPrivateConnectionPeeringRoutes(parent).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @param parent Required. The resource name of the private connection to retrieve peering routes
+ * from. Resource names are schemeless URIs that follow the conventions in
+ * https://cloud.google.com/apis/design/resource_names. For example:
+ * `projects/my-project/locations/us-west1/privateConnections/my-connection`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPrivateConnectionPeeringRoutesPagedResponse listPrivateConnectionPeeringRoutes(
+ String parent) {
+ ListPrivateConnectionPeeringRoutesRequest request =
+ ListPrivateConnectionPeeringRoutesRequest.newBuilder().setParent(parent).build();
+ return listPrivateConnectionPeeringRoutes(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the private connection routes exchanged over a peering connection.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ * ListPrivateConnectionPeeringRoutesRequest request =
+ * ListPrivateConnectionPeeringRoutesRequest.newBuilder()
+ * .setParent(
+ * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (PeeringRoute element :
+ * vmwareEngineClient.listPrivateConnectionPeeringRoutes(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @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 ListPrivateConnectionPeeringRoutesPagedResponse listPrivateConnectionPeeringRoutes(
+ ListPrivateConnectionPeeringRoutesRequest request) {
+ return listPrivateConnectionPeeringRoutesPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the private connection routes exchanged over a peering connection.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ * ListPrivateConnectionPeeringRoutesRequest request =
+ * ListPrivateConnectionPeeringRoutesRequest.newBuilder()
+ * .setParent(
+ * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * vmwareEngineClient.listPrivateConnectionPeeringRoutesPagedCallable().futureCall(request);
+ * // Do something.
+ * for (PeeringRoute element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListPrivateConnectionPeeringRoutesRequest,
+ ListPrivateConnectionPeeringRoutesPagedResponse>
+ listPrivateConnectionPeeringRoutesPagedCallable() {
+ return stub.listPrivateConnectionPeeringRoutesPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists the private connection routes exchanged over a peering connection.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ * ListPrivateConnectionPeeringRoutesRequest request =
+ * ListPrivateConnectionPeeringRoutesRequest.newBuilder()
+ * .setParent(
+ * PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+ * .toString())
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListPrivateConnectionPeeringRoutesResponse response =
+ * vmwareEngineClient.listPrivateConnectionPeeringRoutesCallable().call(request);
+ * for (PeeringRoute element : response.getPeeringRoutesList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable<
+ ListPrivateConnectionPeeringRoutesRequest, ListPrivateConnectionPeeringRoutesResponse>
+ listPrivateConnectionPeeringRoutesCallable() {
+ return stub.listPrivateConnectionPeeringRoutesCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists information about the supported locations for this service.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * for (Location element : vmwareEngineClient.listLocations(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ *
+ * @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 ListLocationsPagedResponse listLocations(ListLocationsRequest request) {
+ return listLocationsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists information about the supported locations for this service.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * ApiFuture future =
+ * vmwareEngineClient.listLocationsPagedCallable().futureCall(request);
+ * // Do something.
+ * for (Location element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ * }
+ */
+ public final UnaryCallable
+ listLocationsPagedCallable() {
+ return stub.listLocationsPagedCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Lists information about the supported locations for this service.
+ *
+ * Sample code:
+ *
+ *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (VmwareEngineClient vmwareEngineClient = VmwareEngineClient.create()) {
+ * ListLocationsRequest request =
+ * ListLocationsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setPageSize(883849137)
+ * .setPageToken("pageToken873572522")
+ * .build();
+ * while (true) {
+ * ListLocationsResponse response = vmwareEngineClient.listLocationsCallable().call(request);
+ * for (Location element : response.getLocationsList()) {
+ * // doThingsWith(element);
+ * }
* String nextPageToken = response.getNextPageToken();
* if (!Strings.isNullOrEmpty(nextPageToken)) {
* request = request.toBuilder().setPageToken(nextPageToken).build();
@@ -6226,6 +7484,192 @@ protected ListVmwareEngineNetworksFixedSizeCollection createCollection(
}
}
+ public static class ListPrivateConnectionsPagedResponse
+ extends AbstractPagedListResponse<
+ ListPrivateConnectionsRequest,
+ ListPrivateConnectionsResponse,
+ PrivateConnection,
+ ListPrivateConnectionsPage,
+ ListPrivateConnectionsFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext<
+ ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection>
+ context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListPrivateConnectionsPage.createEmptyPage().createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ input -> new ListPrivateConnectionsPagedResponse(input),
+ MoreExecutors.directExecutor());
+ }
+
+ private ListPrivateConnectionsPagedResponse(ListPrivateConnectionsPage page) {
+ super(page, ListPrivateConnectionsFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListPrivateConnectionsPage
+ extends AbstractPage<
+ ListPrivateConnectionsRequest,
+ ListPrivateConnectionsResponse,
+ PrivateConnection,
+ ListPrivateConnectionsPage> {
+
+ private ListPrivateConnectionsPage(
+ PageContext<
+ ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection>
+ context,
+ ListPrivateConnectionsResponse response) {
+ super(context, response);
+ }
+
+ private static ListPrivateConnectionsPage createEmptyPage() {
+ return new ListPrivateConnectionsPage(null, null);
+ }
+
+ @Override
+ protected ListPrivateConnectionsPage createPage(
+ PageContext<
+ ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection>
+ context,
+ ListPrivateConnectionsResponse response) {
+ return new ListPrivateConnectionsPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext<
+ ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection>
+ context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListPrivateConnectionsFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListPrivateConnectionsRequest,
+ ListPrivateConnectionsResponse,
+ PrivateConnection,
+ ListPrivateConnectionsPage,
+ ListPrivateConnectionsFixedSizeCollection> {
+
+ private ListPrivateConnectionsFixedSizeCollection(
+ List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListPrivateConnectionsFixedSizeCollection createEmptyCollection() {
+ return new ListPrivateConnectionsFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListPrivateConnectionsFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListPrivateConnectionsFixedSizeCollection(pages, collectionSize);
+ }
+ }
+
+ public static class ListPrivateConnectionPeeringRoutesPagedResponse
+ extends AbstractPagedListResponse<
+ ListPrivateConnectionPeeringRoutesRequest,
+ ListPrivateConnectionPeeringRoutesResponse,
+ PeeringRoute,
+ ListPrivateConnectionPeeringRoutesPage,
+ ListPrivateConnectionPeeringRoutesFixedSizeCollection> {
+
+ public static ApiFuture createAsync(
+ PageContext<
+ ListPrivateConnectionPeeringRoutesRequest,
+ ListPrivateConnectionPeeringRoutesResponse,
+ PeeringRoute>
+ context,
+ ApiFuture futureResponse) {
+ ApiFuture futurePage =
+ ListPrivateConnectionPeeringRoutesPage.createEmptyPage()
+ .createPageAsync(context, futureResponse);
+ return ApiFutures.transform(
+ futurePage,
+ input -> new ListPrivateConnectionPeeringRoutesPagedResponse(input),
+ MoreExecutors.directExecutor());
+ }
+
+ private ListPrivateConnectionPeeringRoutesPagedResponse(
+ ListPrivateConnectionPeeringRoutesPage page) {
+ super(page, ListPrivateConnectionPeeringRoutesFixedSizeCollection.createEmptyCollection());
+ }
+ }
+
+ public static class ListPrivateConnectionPeeringRoutesPage
+ extends AbstractPage<
+ ListPrivateConnectionPeeringRoutesRequest,
+ ListPrivateConnectionPeeringRoutesResponse,
+ PeeringRoute,
+ ListPrivateConnectionPeeringRoutesPage> {
+
+ private ListPrivateConnectionPeeringRoutesPage(
+ PageContext<
+ ListPrivateConnectionPeeringRoutesRequest,
+ ListPrivateConnectionPeeringRoutesResponse,
+ PeeringRoute>
+ context,
+ ListPrivateConnectionPeeringRoutesResponse response) {
+ super(context, response);
+ }
+
+ private static ListPrivateConnectionPeeringRoutesPage createEmptyPage() {
+ return new ListPrivateConnectionPeeringRoutesPage(null, null);
+ }
+
+ @Override
+ protected ListPrivateConnectionPeeringRoutesPage createPage(
+ PageContext<
+ ListPrivateConnectionPeeringRoutesRequest,
+ ListPrivateConnectionPeeringRoutesResponse,
+ PeeringRoute>
+ context,
+ ListPrivateConnectionPeeringRoutesResponse response) {
+ return new ListPrivateConnectionPeeringRoutesPage(context, response);
+ }
+
+ @Override
+ public ApiFuture createPageAsync(
+ PageContext<
+ ListPrivateConnectionPeeringRoutesRequest,
+ ListPrivateConnectionPeeringRoutesResponse,
+ PeeringRoute>
+ context,
+ ApiFuture futureResponse) {
+ return super.createPageAsync(context, futureResponse);
+ }
+ }
+
+ public static class ListPrivateConnectionPeeringRoutesFixedSizeCollection
+ extends AbstractFixedSizeCollection<
+ ListPrivateConnectionPeeringRoutesRequest,
+ ListPrivateConnectionPeeringRoutesResponse,
+ PeeringRoute,
+ ListPrivateConnectionPeeringRoutesPage,
+ ListPrivateConnectionPeeringRoutesFixedSizeCollection> {
+
+ private ListPrivateConnectionPeeringRoutesFixedSizeCollection(
+ List pages, int collectionSize) {
+ super(pages, collectionSize);
+ }
+
+ private static ListPrivateConnectionPeeringRoutesFixedSizeCollection createEmptyCollection() {
+ return new ListPrivateConnectionPeeringRoutesFixedSizeCollection(null, 0);
+ }
+
+ @Override
+ protected ListPrivateConnectionPeeringRoutesFixedSizeCollection createCollection(
+ List pages, int collectionSize) {
+ return new ListPrivateConnectionPeeringRoutesFixedSizeCollection(pages, collectionSize);
+ }
+ }
+
public static class ListLocationsPagedResponse
extends AbstractPagedListResponse<
ListLocationsRequest,
diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineSettings.java b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineSettings.java
index 6e22b0a9643a..dee70f680e0b 100644
--- a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineSettings.java
+++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/VmwareEngineSettings.java
@@ -22,6 +22,8 @@
import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNetworkPoliciesPagedResponse;
import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNodeTypesPagedResponse;
import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateCloudsPagedResponse;
+import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateConnectionPeeringRoutesPagedResponse;
+import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateConnectionsPagedResponse;
import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListSubnetsPagedResponse;
import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListVmwareEngineNetworksPagedResponse;
@@ -199,6 +201,22 @@ public UnaryCallSettings deleteClusterSettings(
return ((VmwareEngineStubSettings) getStubSettings()).listSubnetsSettings();
}
+ /** Returns the object with the settings used for calls to getSubnet. */
+ public UnaryCallSettings getSubnetSettings() {
+ return ((VmwareEngineStubSettings) getStubSettings()).getSubnetSettings();
+ }
+
+ /** Returns the object with the settings used for calls to updateSubnet. */
+ public UnaryCallSettings updateSubnetSettings() {
+ return ((VmwareEngineStubSettings) getStubSettings()).updateSubnetSettings();
+ }
+
+ /** Returns the object with the settings used for calls to updateSubnet. */
+ public OperationCallSettings
+ updateSubnetOperationSettings() {
+ return ((VmwareEngineStubSettings) getStubSettings()).updateSubnetOperationSettings();
+ }
+
/** Returns the object with the settings used for calls to listNodeTypes. */
public PagedCallSettings
listNodeTypesSettings() {
@@ -373,6 +391,70 @@ public UnaryCallSettings deleteNetworkPol
return ((VmwareEngineStubSettings) getStubSettings()).listVmwareEngineNetworksSettings();
}
+ /** Returns the object with the settings used for calls to createPrivateConnection. */
+ public UnaryCallSettings
+ createPrivateConnectionSettings() {
+ return ((VmwareEngineStubSettings) getStubSettings()).createPrivateConnectionSettings();
+ }
+
+ /** Returns the object with the settings used for calls to createPrivateConnection. */
+ public OperationCallSettings
+ createPrivateConnectionOperationSettings() {
+ return ((VmwareEngineStubSettings) getStubSettings())
+ .createPrivateConnectionOperationSettings();
+ }
+
+ /** Returns the object with the settings used for calls to getPrivateConnection. */
+ public UnaryCallSettings
+ getPrivateConnectionSettings() {
+ return ((VmwareEngineStubSettings) getStubSettings()).getPrivateConnectionSettings();
+ }
+
+ /** Returns the object with the settings used for calls to listPrivateConnections. */
+ public PagedCallSettings<
+ ListPrivateConnectionsRequest,
+ ListPrivateConnectionsResponse,
+ ListPrivateConnectionsPagedResponse>
+ listPrivateConnectionsSettings() {
+ return ((VmwareEngineStubSettings) getStubSettings()).listPrivateConnectionsSettings();
+ }
+
+ /** Returns the object with the settings used for calls to updatePrivateConnection. */
+ public UnaryCallSettings
+ updatePrivateConnectionSettings() {
+ return ((VmwareEngineStubSettings) getStubSettings()).updatePrivateConnectionSettings();
+ }
+
+ /** Returns the object with the settings used for calls to updatePrivateConnection. */
+ public OperationCallSettings
+ updatePrivateConnectionOperationSettings() {
+ return ((VmwareEngineStubSettings) getStubSettings())
+ .updatePrivateConnectionOperationSettings();
+ }
+
+ /** Returns the object with the settings used for calls to deletePrivateConnection. */
+ public UnaryCallSettings
+ deletePrivateConnectionSettings() {
+ return ((VmwareEngineStubSettings) getStubSettings()).deletePrivateConnectionSettings();
+ }
+
+ /** Returns the object with the settings used for calls to deletePrivateConnection. */
+ public OperationCallSettings
+ deletePrivateConnectionOperationSettings() {
+ return ((VmwareEngineStubSettings) getStubSettings())
+ .deletePrivateConnectionOperationSettings();
+ }
+
+ /** Returns the object with the settings used for calls to listPrivateConnectionPeeringRoutes. */
+ public PagedCallSettings<
+ ListPrivateConnectionPeeringRoutesRequest,
+ ListPrivateConnectionPeeringRoutesResponse,
+ ListPrivateConnectionPeeringRoutesPagedResponse>
+ listPrivateConnectionPeeringRoutesSettings() {
+ return ((VmwareEngineStubSettings) getStubSettings())
+ .listPrivateConnectionPeeringRoutesSettings();
+ }
+
/** Returns the object with the settings used for calls to listLocations. */
public PagedCallSettings
listLocationsSettings() {
@@ -629,6 +711,22 @@ public UnaryCallSettings.Builder deleteClusterS
return getStubSettingsBuilder().listSubnetsSettings();
}
+ /** Returns the builder for the settings used for calls to getSubnet. */
+ public UnaryCallSettings.Builder getSubnetSettings() {
+ return getStubSettingsBuilder().getSubnetSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to updateSubnet. */
+ public UnaryCallSettings.Builder updateSubnetSettings() {
+ return getStubSettingsBuilder().updateSubnetSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to updateSubnet. */
+ public OperationCallSettings.Builder
+ updateSubnetOperationSettings() {
+ return getStubSettingsBuilder().updateSubnetOperationSettings();
+ }
+
/** Returns the builder for the settings used for calls to listNodeTypes. */
public PagedCallSettings.Builder<
ListNodeTypesRequest, ListNodeTypesResponse, ListNodeTypesPagedResponse>
@@ -813,6 +911,70 @@ public UnaryCallSettings.Builder getNodeTypeSettin
return getStubSettingsBuilder().listVmwareEngineNetworksSettings();
}
+ /** Returns the builder for the settings used for calls to createPrivateConnection. */
+ public UnaryCallSettings.Builder
+ createPrivateConnectionSettings() {
+ return getStubSettingsBuilder().createPrivateConnectionSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to createPrivateConnection. */
+ public OperationCallSettings.Builder<
+ CreatePrivateConnectionRequest, PrivateConnection, OperationMetadata>
+ createPrivateConnectionOperationSettings() {
+ return getStubSettingsBuilder().createPrivateConnectionOperationSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to getPrivateConnection. */
+ public UnaryCallSettings.Builder
+ getPrivateConnectionSettings() {
+ return getStubSettingsBuilder().getPrivateConnectionSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to listPrivateConnections. */
+ public PagedCallSettings.Builder<
+ ListPrivateConnectionsRequest,
+ ListPrivateConnectionsResponse,
+ ListPrivateConnectionsPagedResponse>
+ listPrivateConnectionsSettings() {
+ return getStubSettingsBuilder().listPrivateConnectionsSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to updatePrivateConnection. */
+ public UnaryCallSettings.Builder
+ updatePrivateConnectionSettings() {
+ return getStubSettingsBuilder().updatePrivateConnectionSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to updatePrivateConnection. */
+ public OperationCallSettings.Builder<
+ UpdatePrivateConnectionRequest, PrivateConnection, OperationMetadata>
+ updatePrivateConnectionOperationSettings() {
+ return getStubSettingsBuilder().updatePrivateConnectionOperationSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to deletePrivateConnection. */
+ public UnaryCallSettings.Builder
+ deletePrivateConnectionSettings() {
+ return getStubSettingsBuilder().deletePrivateConnectionSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to deletePrivateConnection. */
+ public OperationCallSettings.Builder
+ deletePrivateConnectionOperationSettings() {
+ return getStubSettingsBuilder().deletePrivateConnectionOperationSettings();
+ }
+
+ /**
+ * Returns the builder for the settings used for calls to listPrivateConnectionPeeringRoutes.
+ */
+ public PagedCallSettings.Builder<
+ ListPrivateConnectionPeeringRoutesRequest,
+ ListPrivateConnectionPeeringRoutesResponse,
+ ListPrivateConnectionPeeringRoutesPagedResponse>
+ listPrivateConnectionPeeringRoutesSettings() {
+ return getStubSettingsBuilder().listPrivateConnectionPeeringRoutesSettings();
+ }
+
/** Returns the builder for the settings used for calls to listLocations. */
public PagedCallSettings.Builder<
ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/gapic_metadata.json b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/gapic_metadata.json
index 1db453fcc4a9..a4833973c88b 100644
--- a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/gapic_metadata.json
+++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/gapic_metadata.json
@@ -22,6 +22,9 @@
"CreatePrivateCloud": {
"methods": ["createPrivateCloudAsync", "createPrivateCloudAsync", "createPrivateCloudAsync", "createPrivateCloudOperationCallable", "createPrivateCloudCallable"]
},
+ "CreatePrivateConnection": {
+ "methods": ["createPrivateConnectionAsync", "createPrivateConnectionAsync", "createPrivateConnectionAsync", "createPrivateConnectionOperationCallable", "createPrivateConnectionCallable"]
+ },
"CreateVmwareEngineNetwork": {
"methods": ["createVmwareEngineNetworkAsync", "createVmwareEngineNetworkAsync", "createVmwareEngineNetworkAsync", "createVmwareEngineNetworkOperationCallable", "createVmwareEngineNetworkCallable"]
},
@@ -34,6 +37,9 @@
"DeletePrivateCloud": {
"methods": ["deletePrivateCloudAsync", "deletePrivateCloudAsync", "deletePrivateCloudAsync", "deletePrivateCloudOperationCallable", "deletePrivateCloudCallable"]
},
+ "DeletePrivateConnection": {
+ "methods": ["deletePrivateConnectionAsync", "deletePrivateConnectionAsync", "deletePrivateConnectionAsync", "deletePrivateConnectionOperationCallable", "deletePrivateConnectionCallable"]
+ },
"DeleteVmwareEngineNetwork": {
"methods": ["deleteVmwareEngineNetworkAsync", "deleteVmwareEngineNetworkAsync", "deleteVmwareEngineNetworkAsync", "deleteVmwareEngineNetworkOperationCallable", "deleteVmwareEngineNetworkCallable"]
},
@@ -58,6 +64,12 @@
"GetPrivateCloud": {
"methods": ["getPrivateCloud", "getPrivateCloud", "getPrivateCloud", "getPrivateCloudCallable"]
},
+ "GetPrivateConnection": {
+ "methods": ["getPrivateConnection", "getPrivateConnection", "getPrivateConnection", "getPrivateConnectionCallable"]
+ },
+ "GetSubnet": {
+ "methods": ["getSubnet", "getSubnet", "getSubnet", "getSubnetCallable"]
+ },
"GetVmwareEngineNetwork": {
"methods": ["getVmwareEngineNetwork", "getVmwareEngineNetwork", "getVmwareEngineNetwork", "getVmwareEngineNetworkCallable"]
},
@@ -79,6 +91,12 @@
"ListPrivateClouds": {
"methods": ["listPrivateClouds", "listPrivateClouds", "listPrivateClouds", "listPrivateCloudsPagedCallable", "listPrivateCloudsCallable"]
},
+ "ListPrivateConnectionPeeringRoutes": {
+ "methods": ["listPrivateConnectionPeeringRoutes", "listPrivateConnectionPeeringRoutes", "listPrivateConnectionPeeringRoutes", "listPrivateConnectionPeeringRoutesPagedCallable", "listPrivateConnectionPeeringRoutesCallable"]
+ },
+ "ListPrivateConnections": {
+ "methods": ["listPrivateConnections", "listPrivateConnections", "listPrivateConnections", "listPrivateConnectionsPagedCallable", "listPrivateConnectionsCallable"]
+ },
"ListSubnets": {
"methods": ["listSubnets", "listSubnets", "listSubnets", "listSubnetsPagedCallable", "listSubnetsCallable"]
},
@@ -115,6 +133,12 @@
"UpdatePrivateCloud": {
"methods": ["updatePrivateCloudAsync", "updatePrivateCloudAsync", "updatePrivateCloudOperationCallable", "updatePrivateCloudCallable"]
},
+ "UpdatePrivateConnection": {
+ "methods": ["updatePrivateConnectionAsync", "updatePrivateConnectionAsync", "updatePrivateConnectionOperationCallable", "updatePrivateConnectionCallable"]
+ },
+ "UpdateSubnet": {
+ "methods": ["updateSubnetAsync", "updateSubnetAsync", "updateSubnetOperationCallable", "updateSubnetCallable"]
+ },
"UpdateVmwareEngineNetwork": {
"methods": ["updateVmwareEngineNetworkAsync", "updateVmwareEngineNetworkAsync", "updateVmwareEngineNetworkOperationCallable", "updateVmwareEngineNetworkCallable"]
}
diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/GrpcVmwareEngineStub.java b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/GrpcVmwareEngineStub.java
index 85fd2419ce96..d126926ac2b4 100644
--- a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/GrpcVmwareEngineStub.java
+++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/GrpcVmwareEngineStub.java
@@ -22,6 +22,8 @@
import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNetworkPoliciesPagedResponse;
import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNodeTypesPagedResponse;
import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateCloudsPagedResponse;
+import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateConnectionPeeringRoutesPagedResponse;
+import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateConnectionsPagedResponse;
import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListSubnetsPagedResponse;
import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListVmwareEngineNetworksPagedResponse;
@@ -42,17 +44,21 @@
import com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest;
import com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest;
import com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest;
+import com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest;
import com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest;
import com.google.cloud.vmwareengine.v1.Credentials;
import com.google.cloud.vmwareengine.v1.DeleteClusterRequest;
import com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest;
import com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest;
+import com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest;
import com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest;
import com.google.cloud.vmwareengine.v1.GetClusterRequest;
import com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest;
import com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest;
import com.google.cloud.vmwareengine.v1.GetNodeTypeRequest;
import com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest;
+import com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest;
+import com.google.cloud.vmwareengine.v1.GetSubnetRequest;
import com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest;
import com.google.cloud.vmwareengine.v1.HcxActivationKey;
import com.google.cloud.vmwareengine.v1.ListClustersRequest;
@@ -65,6 +71,10 @@
import com.google.cloud.vmwareengine.v1.ListNodeTypesResponse;
import com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest;
import com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse;
+import com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest;
+import com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse;
+import com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest;
+import com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse;
import com.google.cloud.vmwareengine.v1.ListSubnetsRequest;
import com.google.cloud.vmwareengine.v1.ListSubnetsResponse;
import com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest;
@@ -73,14 +83,18 @@
import com.google.cloud.vmwareengine.v1.NodeType;
import com.google.cloud.vmwareengine.v1.OperationMetadata;
import com.google.cloud.vmwareengine.v1.PrivateCloud;
+import com.google.cloud.vmwareengine.v1.PrivateConnection;
import com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest;
import com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest;
import com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest;
import com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest;
+import com.google.cloud.vmwareengine.v1.Subnet;
import com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest;
import com.google.cloud.vmwareengine.v1.UpdateClusterRequest;
import com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest;
import com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest;
+import com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest;
+import com.google.cloud.vmwareengine.v1.UpdateSubnetRequest;
import com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest;
import com.google.cloud.vmwareengine.v1.VmwareEngineNetwork;
import com.google.iam.v1.GetIamPolicyRequest;
@@ -224,6 +238,23 @@ public class GrpcVmwareEngineStub extends VmwareEngineStub {
ProtoUtils.marshaller(ListSubnetsResponse.getDefaultInstance()))
.build();
+ private static final MethodDescriptor getSubnetMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetSubnet")
+ .setRequestMarshaller(ProtoUtils.marshaller(GetSubnetRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Subnet.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ updateSubnetMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/UpdateSubnet")
+ .setRequestMarshaller(ProtoUtils.marshaller(UpdateSubnetRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .build();
+
private static final MethodDescriptor
listNodeTypesMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -424,6 +455,80 @@ public class GrpcVmwareEngineStub extends VmwareEngineStub {
ProtoUtils.marshaller(ListVmwareEngineNetworksResponse.getDefaultInstance()))
.build();
+ private static final MethodDescriptor
+ createPrivateConnectionMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.vmwareengine.v1.VmwareEngine/CreatePrivateConnection")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(CreatePrivateConnectionRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ getPrivateConnectionMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetPrivateConnection")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(GetPrivateConnectionRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(PrivateConnection.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor<
+ ListPrivateConnectionsRequest, ListPrivateConnectionsResponse>
+ listPrivateConnectionsMethodDescriptor =
+ MethodDescriptor
+ .newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListPrivateConnections")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(ListPrivateConnectionsRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(ListPrivateConnectionsResponse.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ updatePrivateConnectionMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.vmwareengine.v1.VmwareEngine/UpdatePrivateConnection")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(UpdatePrivateConnectionRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor
+ deletePrivateConnectionMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.vmwareengine.v1.VmwareEngine/DeletePrivateConnection")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(DeletePrivateConnectionRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .build();
+
+ private static final MethodDescriptor<
+ ListPrivateConnectionPeeringRoutesRequest, ListPrivateConnectionPeeringRoutesResponse>
+ listPrivateConnectionPeeringRoutesMethodDescriptor =
+ MethodDescriptor
+ .
+ newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.vmwareengine.v1.VmwareEngine/ListPrivateConnectionPeeringRoutes")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(
+ ListPrivateConnectionPeeringRoutesRequest.getDefaultInstance()))
+ .setResponseMarshaller(
+ ProtoUtils.marshaller(
+ ListPrivateConnectionPeeringRoutesResponse.getDefaultInstance()))
+ .build();
+
private static final MethodDescriptor
listLocationsMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -503,6 +608,10 @@ public class GrpcVmwareEngineStub extends VmwareEngineStub {
private final UnaryCallable listSubnetsCallable;
private final UnaryCallable
listSubnetsPagedCallable;
+ private final UnaryCallable getSubnetCallable;
+ private final UnaryCallable updateSubnetCallable;
+ private final OperationCallable
+ updateSubnetOperationCallable;
private final UnaryCallable listNodeTypesCallable;
private final UnaryCallable
listNodeTypesPagedCallable;
@@ -563,6 +672,33 @@ public class GrpcVmwareEngineStub extends VmwareEngineStub {
private final UnaryCallable<
ListVmwareEngineNetworksRequest, ListVmwareEngineNetworksPagedResponse>
listVmwareEngineNetworksPagedCallable;
+ private final UnaryCallable
+ createPrivateConnectionCallable;
+ private final OperationCallable<
+ CreatePrivateConnectionRequest, PrivateConnection, OperationMetadata>
+ createPrivateConnectionOperationCallable;
+ private final UnaryCallable
+ getPrivateConnectionCallable;
+ private final UnaryCallable
+ listPrivateConnectionsCallable;
+ private final UnaryCallable
+ listPrivateConnectionsPagedCallable;
+ private final UnaryCallable
+ updatePrivateConnectionCallable;
+ private final OperationCallable<
+ UpdatePrivateConnectionRequest, PrivateConnection, OperationMetadata>
+ updatePrivateConnectionOperationCallable;
+ private final UnaryCallable
+ deletePrivateConnectionCallable;
+ private final OperationCallable
+ deletePrivateConnectionOperationCallable;
+ private final UnaryCallable<
+ ListPrivateConnectionPeeringRoutesRequest, ListPrivateConnectionPeeringRoutesResponse>
+ listPrivateConnectionPeeringRoutesCallable;
+ private final UnaryCallable<
+ ListPrivateConnectionPeeringRoutesRequest,
+ ListPrivateConnectionPeeringRoutesPagedResponse>
+ listPrivateConnectionPeeringRoutesPagedCallable;
private final UnaryCallable listLocationsCallable;
private final UnaryCallable
listLocationsPagedCallable;
@@ -736,6 +872,26 @@ protected GrpcVmwareEngineStub(
return builder.build();
})
.build();
+ GrpcCallSettings getSubnetTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(getSubnetMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .build();
+ GrpcCallSettings updateSubnetTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(updateSubnetMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("subnet.name", String.valueOf(request.getSubnet().getName()));
+ return builder.build();
+ })
+ .build();
GrpcCallSettings listNodeTypesTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listNodeTypesMethodDescriptor)
@@ -942,6 +1098,79 @@ protected GrpcVmwareEngineStub(
return builder.build();
})
.build();
+ GrpcCallSettings
+ createPrivateConnectionTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(createPrivateConnectionMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .build();
+ GrpcCallSettings
+ getPrivateConnectionTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(getPrivateConnectionMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .build();
+ GrpcCallSettings
+ listPrivateConnectionsTransportSettings =
+ GrpcCallSettings
+ .newBuilder()
+ .setMethodDescriptor(listPrivateConnectionsMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .build();
+ GrpcCallSettings
+ updatePrivateConnectionTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(updatePrivateConnectionMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add(
+ "private_connection.name",
+ String.valueOf(request.getPrivateConnection().getName()));
+ return builder.build();
+ })
+ .build();
+ GrpcCallSettings
+ deletePrivateConnectionTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(deletePrivateConnectionMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .build();
+ GrpcCallSettings<
+ ListPrivateConnectionPeeringRoutesRequest, ListPrivateConnectionPeeringRoutesResponse>
+ listPrivateConnectionPeeringRoutesTransportSettings =
+ GrpcCallSettings
+ .
+ newBuilder()
+ .setMethodDescriptor(listPrivateConnectionPeeringRoutesMethodDescriptor)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .build();
GrpcCallSettings listLocationsTransportSettings =
GrpcCallSettings.newBuilder()
.setMethodDescriptor(listLocationsMethodDescriptor)
@@ -1093,6 +1322,18 @@ protected GrpcVmwareEngineStub(
this.listSubnetsPagedCallable =
callableFactory.createPagedCallable(
listSubnetsTransportSettings, settings.listSubnetsSettings(), clientContext);
+ this.getSubnetCallable =
+ callableFactory.createUnaryCallable(
+ getSubnetTransportSettings, settings.getSubnetSettings(), clientContext);
+ this.updateSubnetCallable =
+ callableFactory.createUnaryCallable(
+ updateSubnetTransportSettings, settings.updateSubnetSettings(), clientContext);
+ this.updateSubnetOperationCallable =
+ callableFactory.createOperationCallable(
+ updateSubnetTransportSettings,
+ settings.updateSubnetOperationSettings(),
+ clientContext,
+ operationsStub);
this.listNodeTypesCallable =
callableFactory.createUnaryCallable(
listNodeTypesTransportSettings, settings.listNodeTypesSettings(), clientContext);
@@ -1254,6 +1495,64 @@ protected GrpcVmwareEngineStub(
listVmwareEngineNetworksTransportSettings,
settings.listVmwareEngineNetworksSettings(),
clientContext);
+ this.createPrivateConnectionCallable =
+ callableFactory.createUnaryCallable(
+ createPrivateConnectionTransportSettings,
+ settings.createPrivateConnectionSettings(),
+ clientContext);
+ this.createPrivateConnectionOperationCallable =
+ callableFactory.createOperationCallable(
+ createPrivateConnectionTransportSettings,
+ settings.createPrivateConnectionOperationSettings(),
+ clientContext,
+ operationsStub);
+ this.getPrivateConnectionCallable =
+ callableFactory.createUnaryCallable(
+ getPrivateConnectionTransportSettings,
+ settings.getPrivateConnectionSettings(),
+ clientContext);
+ this.listPrivateConnectionsCallable =
+ callableFactory.createUnaryCallable(
+ listPrivateConnectionsTransportSettings,
+ settings.listPrivateConnectionsSettings(),
+ clientContext);
+ this.listPrivateConnectionsPagedCallable =
+ callableFactory.createPagedCallable(
+ listPrivateConnectionsTransportSettings,
+ settings.listPrivateConnectionsSettings(),
+ clientContext);
+ this.updatePrivateConnectionCallable =
+ callableFactory.createUnaryCallable(
+ updatePrivateConnectionTransportSettings,
+ settings.updatePrivateConnectionSettings(),
+ clientContext);
+ this.updatePrivateConnectionOperationCallable =
+ callableFactory.createOperationCallable(
+ updatePrivateConnectionTransportSettings,
+ settings.updatePrivateConnectionOperationSettings(),
+ clientContext,
+ operationsStub);
+ this.deletePrivateConnectionCallable =
+ callableFactory.createUnaryCallable(
+ deletePrivateConnectionTransportSettings,
+ settings.deletePrivateConnectionSettings(),
+ clientContext);
+ this.deletePrivateConnectionOperationCallable =
+ callableFactory.createOperationCallable(
+ deletePrivateConnectionTransportSettings,
+ settings.deletePrivateConnectionOperationSettings(),
+ clientContext,
+ operationsStub);
+ this.listPrivateConnectionPeeringRoutesCallable =
+ callableFactory.createUnaryCallable(
+ listPrivateConnectionPeeringRoutesTransportSettings,
+ settings.listPrivateConnectionPeeringRoutesSettings(),
+ clientContext);
+ this.listPrivateConnectionPeeringRoutesPagedCallable =
+ callableFactory.createPagedCallable(
+ listPrivateConnectionPeeringRoutesTransportSettings,
+ settings.listPrivateConnectionPeeringRoutesSettings(),
+ clientContext);
this.listLocationsCallable =
callableFactory.createUnaryCallable(
listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
@@ -1402,6 +1701,22 @@ public UnaryCallable listSubnetsPa
return listSubnetsPagedCallable;
}
+ @Override
+ public UnaryCallable getSubnetCallable() {
+ return getSubnetCallable;
+ }
+
+ @Override
+ public UnaryCallable updateSubnetCallable() {
+ return updateSubnetCallable;
+ }
+
+ @Override
+ public OperationCallable
+ updateSubnetOperationCallable() {
+ return updateSubnetOperationCallable;
+ }
+
@Override
public UnaryCallable listNodeTypesCallable() {
return listNodeTypesCallable;
@@ -1584,6 +1899,75 @@ public UnaryCallable deleteNetworkPolicyC
return listVmwareEngineNetworksPagedCallable;
}
+ @Override
+ public UnaryCallable
+ createPrivateConnectionCallable() {
+ return createPrivateConnectionCallable;
+ }
+
+ @Override
+ public OperationCallable
+ createPrivateConnectionOperationCallable() {
+ return createPrivateConnectionOperationCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ getPrivateConnectionCallable() {
+ return getPrivateConnectionCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listPrivateConnectionsCallable() {
+ return listPrivateConnectionsCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listPrivateConnectionsPagedCallable() {
+ return listPrivateConnectionsPagedCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ updatePrivateConnectionCallable() {
+ return updatePrivateConnectionCallable;
+ }
+
+ @Override
+ public OperationCallable
+ updatePrivateConnectionOperationCallable() {
+ return updatePrivateConnectionOperationCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ deletePrivateConnectionCallable() {
+ return deletePrivateConnectionCallable;
+ }
+
+ @Override
+ public OperationCallable
+ deletePrivateConnectionOperationCallable() {
+ return deletePrivateConnectionOperationCallable;
+ }
+
+ @Override
+ public UnaryCallable<
+ ListPrivateConnectionPeeringRoutesRequest, ListPrivateConnectionPeeringRoutesResponse>
+ listPrivateConnectionPeeringRoutesCallable() {
+ return listPrivateConnectionPeeringRoutesCallable;
+ }
+
+ @Override
+ public UnaryCallable<
+ ListPrivateConnectionPeeringRoutesRequest,
+ ListPrivateConnectionPeeringRoutesPagedResponse>
+ listPrivateConnectionPeeringRoutesPagedCallable() {
+ return listPrivateConnectionPeeringRoutesPagedCallable;
+ }
+
@Override
public UnaryCallable listLocationsCallable() {
return listLocationsCallable;
diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/HttpJsonVmwareEngineStub.java b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/HttpJsonVmwareEngineStub.java
index 07c32b65f343..163e77283d74 100644
--- a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/HttpJsonVmwareEngineStub.java
+++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/HttpJsonVmwareEngineStub.java
@@ -22,6 +22,8 @@
import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNetworkPoliciesPagedResponse;
import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNodeTypesPagedResponse;
import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateCloudsPagedResponse;
+import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateConnectionPeeringRoutesPagedResponse;
+import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateConnectionsPagedResponse;
import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListSubnetsPagedResponse;
import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListVmwareEngineNetworksPagedResponse;
@@ -51,17 +53,21 @@
import com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest;
import com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest;
import com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest;
+import com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest;
import com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest;
import com.google.cloud.vmwareengine.v1.Credentials;
import com.google.cloud.vmwareengine.v1.DeleteClusterRequest;
import com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest;
import com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest;
+import com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest;
import com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest;
import com.google.cloud.vmwareengine.v1.GetClusterRequest;
import com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest;
import com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest;
import com.google.cloud.vmwareengine.v1.GetNodeTypeRequest;
import com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest;
+import com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest;
+import com.google.cloud.vmwareengine.v1.GetSubnetRequest;
import com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest;
import com.google.cloud.vmwareengine.v1.HcxActivationKey;
import com.google.cloud.vmwareengine.v1.ListClustersRequest;
@@ -74,6 +80,10 @@
import com.google.cloud.vmwareengine.v1.ListNodeTypesResponse;
import com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest;
import com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse;
+import com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest;
+import com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse;
+import com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest;
+import com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse;
import com.google.cloud.vmwareengine.v1.ListSubnetsRequest;
import com.google.cloud.vmwareengine.v1.ListSubnetsResponse;
import com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest;
@@ -82,14 +92,18 @@
import com.google.cloud.vmwareengine.v1.NodeType;
import com.google.cloud.vmwareengine.v1.OperationMetadata;
import com.google.cloud.vmwareengine.v1.PrivateCloud;
+import com.google.cloud.vmwareengine.v1.PrivateConnection;
import com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest;
import com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest;
import com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest;
import com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest;
+import com.google.cloud.vmwareengine.v1.Subnet;
import com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest;
import com.google.cloud.vmwareengine.v1.UpdateClusterRequest;
import com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest;
import com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest;
+import com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest;
+import com.google.cloud.vmwareengine.v1.UpdateSubnetRequest;
import com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest;
import com.google.cloud.vmwareengine.v1.VmwareEngineNetwork;
import com.google.common.collect.ImmutableMap;
@@ -122,6 +136,8 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub {
TypeRegistry.newBuilder()
.add(Cluster.getDescriptor())
.add(Empty.getDescriptor())
+ .add(Subnet.getDescriptor())
+ .add(PrivateConnection.getDescriptor())
.add(OperationMetadata.getDescriptor())
.add(PrivateCloud.getDescriptor())
.add(HcxActivationKey.getDescriptor())
@@ -606,6 +622,81 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub {
.build())
.build();
+ private static final ApiMethodDescriptor getSubnetMethodDescriptor =
+ ApiMethodDescriptor.newBuilder()
+ .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetSubnet")
+ .setHttpMethod("GET")
+ .setType(ApiMethodDescriptor.MethodType.UNARY)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter.newBuilder()
+ .setPath(
+ "/v1/{name=projects/*/locations/*/privateClouds/*/subnets/*}",
+ request -> {
+ Map fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putPathParam(fields, "name", request.getName());
+ return fields;
+ })
+ .setQueryParamsExtractor(
+ request -> {
+ Map> fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
+ return fields;
+ })
+ .setRequestBodyExtractor(request -> null)
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser.newBuilder()
+ .setDefaultInstance(Subnet.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .build();
+
+ private static final ApiMethodDescriptor
+ updateSubnetMethodDescriptor =
+ ApiMethodDescriptor.newBuilder()
+ .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/UpdateSubnet")
+ .setHttpMethod("PATCH")
+ .setType(ApiMethodDescriptor.MethodType.UNARY)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter.newBuilder()
+ .setPath(
+ "/v1/{subnet.name=projects/*/locations/*/privateClouds/*/subnets/*}",
+ request -> {
+ Map fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putPathParam(
+ fields, "subnet.name", request.getSubnet().getName());
+ return fields;
+ })
+ .setQueryParamsExtractor(
+ request -> {
+ Map> fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putQueryParam(fields, "updateMask", request.getUpdateMask());
+ serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
+ return fields;
+ })
+ .setRequestBodyExtractor(
+ request ->
+ ProtoRestSerializer.create()
+ .toBody("subnet", request.getSubnet(), true))
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser.newBuilder()
+ .setDefaultInstance(Operation.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .setOperationSnapshotFactory(
+ (UpdateSubnetRequest request, Operation response) ->
+ HttpJsonOperationSnapshot.create(response))
+ .build();
+
private static final ApiMethodDescriptor
listNodeTypesMethodDescriptor =
ApiMethodDescriptor.newBuilder()
@@ -1356,6 +1447,255 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub {
.build())
.build();
+ private static final ApiMethodDescriptor
+ createPrivateConnectionMethodDescriptor =
+ ApiMethodDescriptor.newBuilder()
+ .setFullMethodName(
+ "google.cloud.vmwareengine.v1.VmwareEngine/CreatePrivateConnection")
+ .setHttpMethod("POST")
+ .setType(ApiMethodDescriptor.MethodType.UNARY)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter.newBuilder()
+ .setPath(
+ "/v1/{parent=projects/*/locations/*}/privateConnections",
+ request -> {
+ Map fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putPathParam(fields, "parent", request.getParent());
+ return fields;
+ })
+ .setQueryParamsExtractor(
+ request -> {
+ Map> fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putQueryParam(
+ fields, "privateConnectionId", request.getPrivateConnectionId());
+ serializer.putQueryParam(fields, "requestId", request.getRequestId());
+ serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
+ return fields;
+ })
+ .setRequestBodyExtractor(
+ request ->
+ ProtoRestSerializer.create()
+ .toBody(
+ "privateConnection", request.getPrivateConnection(), true))
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser.newBuilder()
+ .setDefaultInstance(Operation.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .setOperationSnapshotFactory(
+ (CreatePrivateConnectionRequest request, Operation response) ->
+ HttpJsonOperationSnapshot.create(response))
+ .build();
+
+ private static final ApiMethodDescriptor
+ getPrivateConnectionMethodDescriptor =
+ ApiMethodDescriptor.newBuilder()
+ .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/GetPrivateConnection")
+ .setHttpMethod("GET")
+ .setType(ApiMethodDescriptor.MethodType.UNARY)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter.newBuilder()
+ .setPath(
+ "/v1/{name=projects/*/locations/*/privateConnections/*}",
+ request -> {
+ Map fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putPathParam(fields, "name", request.getName());
+ return fields;
+ })
+ .setQueryParamsExtractor(
+ request -> {
+ Map> fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
+ return fields;
+ })
+ .setRequestBodyExtractor(request -> null)
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser.newBuilder()
+ .setDefaultInstance(PrivateConnection.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .build();
+
+ private static final ApiMethodDescriptor<
+ ListPrivateConnectionsRequest, ListPrivateConnectionsResponse>
+ listPrivateConnectionsMethodDescriptor =
+ ApiMethodDescriptor
+ .newBuilder()
+ .setFullMethodName("google.cloud.vmwareengine.v1.VmwareEngine/ListPrivateConnections")
+ .setHttpMethod("GET")
+ .setType(ApiMethodDescriptor.MethodType.UNARY)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter.newBuilder()
+ .setPath(
+ "/v1/{parent=projects/*/locations/*}/privateConnections",
+ request -> {
+ Map fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putPathParam(fields, "parent", request.getParent());
+ return fields;
+ })
+ .setQueryParamsExtractor(
+ request -> {
+ Map> fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putQueryParam(fields, "filter", request.getFilter());
+ serializer.putQueryParam(fields, "orderBy", request.getOrderBy());
+ serializer.putQueryParam(fields, "pageSize", request.getPageSize());
+ serializer.putQueryParam(fields, "pageToken", request.getPageToken());
+ serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
+ return fields;
+ })
+ .setRequestBodyExtractor(request -> null)
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser.newBuilder()
+ .setDefaultInstance(ListPrivateConnectionsResponse.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .build();
+
+ private static final ApiMethodDescriptor
+ updatePrivateConnectionMethodDescriptor =
+ ApiMethodDescriptor.newBuilder()
+ .setFullMethodName(
+ "google.cloud.vmwareengine.v1.VmwareEngine/UpdatePrivateConnection")
+ .setHttpMethod("PATCH")
+ .setType(ApiMethodDescriptor.MethodType.UNARY)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter.newBuilder()
+ .setPath(
+ "/v1/{privateConnection.name=projects/*/locations/*/privateConnections/*}",
+ request -> {
+ Map fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putPathParam(
+ fields,
+ "privateConnection.name",
+ request.getPrivateConnection().getName());
+ return fields;
+ })
+ .setQueryParamsExtractor(
+ request -> {
+ Map> fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putQueryParam(fields, "requestId", request.getRequestId());
+ serializer.putQueryParam(fields, "updateMask", request.getUpdateMask());
+ serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
+ return fields;
+ })
+ .setRequestBodyExtractor(
+ request ->
+ ProtoRestSerializer.create()
+ .toBody(
+ "privateConnection", request.getPrivateConnection(), true))
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser.newBuilder()
+ .setDefaultInstance(Operation.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .setOperationSnapshotFactory(
+ (UpdatePrivateConnectionRequest request, Operation response) ->
+ HttpJsonOperationSnapshot.create(response))
+ .build();
+
+ private static final ApiMethodDescriptor
+ deletePrivateConnectionMethodDescriptor =
+ ApiMethodDescriptor.newBuilder()
+ .setFullMethodName(
+ "google.cloud.vmwareengine.v1.VmwareEngine/DeletePrivateConnection")
+ .setHttpMethod("DELETE")
+ .setType(ApiMethodDescriptor.MethodType.UNARY)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter.newBuilder()
+ .setPath(
+ "/v1/{name=projects/*/locations/*/privateConnections/*}",
+ request -> {
+ Map fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putPathParam(fields, "name", request.getName());
+ return fields;
+ })
+ .setQueryParamsExtractor(
+ request -> {
+ Map> fields = new HashMap<>();
+ ProtoRestSerializer serializer =
+ ProtoRestSerializer.create();
+ serializer.putQueryParam(fields, "requestId", request.getRequestId());
+ serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
+ return fields;
+ })
+ .setRequestBodyExtractor(request -> null)
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser.newBuilder()
+ .setDefaultInstance(Operation.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .setOperationSnapshotFactory(
+ (DeletePrivateConnectionRequest request, Operation response) ->
+ HttpJsonOperationSnapshot.create(response))
+ .build();
+
+ private static final ApiMethodDescriptor<
+ ListPrivateConnectionPeeringRoutesRequest, ListPrivateConnectionPeeringRoutesResponse>
+ listPrivateConnectionPeeringRoutesMethodDescriptor =
+ ApiMethodDescriptor
+ .
+ newBuilder()
+ .setFullMethodName(
+ "google.cloud.vmwareengine.v1.VmwareEngine/ListPrivateConnectionPeeringRoutes")
+ .setHttpMethod("GET")
+ .setType(ApiMethodDescriptor.MethodType.UNARY)
+ .setRequestFormatter(
+ ProtoMessageRequestFormatter
+ .newBuilder()
+ .setPath(
+ "/v1/{parent=projects/*/locations/*/privateConnections/*}/peeringRoutes",
+ request -> {
+ Map fields = new HashMap<>();
+ ProtoRestSerializer
+ serializer = ProtoRestSerializer.create();
+ serializer.putPathParam(fields, "parent", request.getParent());
+ return fields;
+ })
+ .setQueryParamsExtractor(
+ request -> {
+ Map> fields = new HashMap<>();
+ ProtoRestSerializer
+ serializer = ProtoRestSerializer.create();
+ serializer.putQueryParam(fields, "pageSize", request.getPageSize());
+ serializer.putQueryParam(fields, "pageToken", request.getPageToken());
+ serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
+ return fields;
+ })
+ .setRequestBodyExtractor(request -> null)
+ .build())
+ .setResponseParser(
+ ProtoMessageResponseParser
+ .newBuilder()
+ .setDefaultInstance(
+ ListPrivateConnectionPeeringRoutesResponse.getDefaultInstance())
+ .setDefaultTypeRegistry(typeRegistry)
+ .build())
+ .build();
+
private static final ApiMethodDescriptor
listLocationsMethodDescriptor =
ApiMethodDescriptor.newBuilder()
@@ -1574,6 +1914,10 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub {
private final UnaryCallable listSubnetsCallable;
private final UnaryCallable
listSubnetsPagedCallable;
+ private final UnaryCallable getSubnetCallable;
+ private final UnaryCallable updateSubnetCallable;
+ private final OperationCallable
+ updateSubnetOperationCallable;
private final UnaryCallable listNodeTypesCallable;
private final UnaryCallable
listNodeTypesPagedCallable;
@@ -1634,6 +1978,33 @@ public class HttpJsonVmwareEngineStub extends VmwareEngineStub {
private final UnaryCallable<
ListVmwareEngineNetworksRequest, ListVmwareEngineNetworksPagedResponse>
listVmwareEngineNetworksPagedCallable;
+ private final UnaryCallable
+ createPrivateConnectionCallable;
+ private final OperationCallable<
+ CreatePrivateConnectionRequest, PrivateConnection, OperationMetadata>
+ createPrivateConnectionOperationCallable;
+ private final UnaryCallable
+ getPrivateConnectionCallable;
+ private final UnaryCallable
+ listPrivateConnectionsCallable;
+ private final UnaryCallable
+ listPrivateConnectionsPagedCallable;
+ private final UnaryCallable
+ updatePrivateConnectionCallable;
+ private final OperationCallable<
+ UpdatePrivateConnectionRequest, PrivateConnection, OperationMetadata>
+ updatePrivateConnectionOperationCallable;
+ private final UnaryCallable
+ deletePrivateConnectionCallable;
+ private final OperationCallable
+ deletePrivateConnectionOperationCallable;
+ private final UnaryCallable<
+ ListPrivateConnectionPeeringRoutesRequest, ListPrivateConnectionPeeringRoutesResponse>
+ listPrivateConnectionPeeringRoutesCallable;
+ private final UnaryCallable<
+ ListPrivateConnectionPeeringRoutesRequest,
+ ListPrivateConnectionPeeringRoutesPagedResponse>
+ listPrivateConnectionPeeringRoutesPagedCallable;
private final UnaryCallable listLocationsCallable;
private final UnaryCallable
listLocationsPagedCallable;
@@ -1843,6 +2214,28 @@ protected HttpJsonVmwareEngineStub(
return builder.build();
})
.build();
+ HttpJsonCallSettings getSubnetTransportSettings =
+ HttpJsonCallSettings.newBuilder()
+ .setMethodDescriptor(getSubnetMethodDescriptor)
+ .setTypeRegistry(typeRegistry)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .build();
+ HttpJsonCallSettings updateSubnetTransportSettings =
+ HttpJsonCallSettings.newBuilder()
+ .setMethodDescriptor(updateSubnetMethodDescriptor)
+ .setTypeRegistry(typeRegistry)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("subnet.name", String.valueOf(request.getSubnet().getName()));
+ return builder.build();
+ })
+ .build();
HttpJsonCallSettings
listNodeTypesTransportSettings =
HttpJsonCallSettings.newBuilder()
@@ -2076,6 +2469,85 @@ protected HttpJsonVmwareEngineStub(
return builder.build();
})
.build();
+ HttpJsonCallSettings
+ createPrivateConnectionTransportSettings =
+ HttpJsonCallSettings.newBuilder()
+ .setMethodDescriptor(createPrivateConnectionMethodDescriptor)
+ .setTypeRegistry(typeRegistry)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .build();
+ HttpJsonCallSettings
+ getPrivateConnectionTransportSettings =
+ HttpJsonCallSettings.newBuilder()
+ .setMethodDescriptor(getPrivateConnectionMethodDescriptor)
+ .setTypeRegistry(typeRegistry)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .build();
+ HttpJsonCallSettings
+ listPrivateConnectionsTransportSettings =
+ HttpJsonCallSettings
+ .newBuilder()
+ .setMethodDescriptor(listPrivateConnectionsMethodDescriptor)
+ .setTypeRegistry(typeRegistry)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .build();
+ HttpJsonCallSettings
+ updatePrivateConnectionTransportSettings =
+ HttpJsonCallSettings.newBuilder()
+ .setMethodDescriptor(updatePrivateConnectionMethodDescriptor)
+ .setTypeRegistry(typeRegistry)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add(
+ "private_connection.name",
+ String.valueOf(request.getPrivateConnection().getName()));
+ return builder.build();
+ })
+ .build();
+ HttpJsonCallSettings
+ deletePrivateConnectionTransportSettings =
+ HttpJsonCallSettings.newBuilder()
+ .setMethodDescriptor(deletePrivateConnectionMethodDescriptor)
+ .setTypeRegistry(typeRegistry)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("name", String.valueOf(request.getName()));
+ return builder.build();
+ })
+ .build();
+ HttpJsonCallSettings<
+ ListPrivateConnectionPeeringRoutesRequest, ListPrivateConnectionPeeringRoutesResponse>
+ listPrivateConnectionPeeringRoutesTransportSettings =
+ HttpJsonCallSettings
+ .
+ newBuilder()
+ .setMethodDescriptor(listPrivateConnectionPeeringRoutesMethodDescriptor)
+ .setTypeRegistry(typeRegistry)
+ .setParamsExtractor(
+ request -> {
+ RequestParamsBuilder builder = RequestParamsBuilder.create();
+ builder.add("parent", String.valueOf(request.getParent()));
+ return builder.build();
+ })
+ .build();
HttpJsonCallSettings
listLocationsTransportSettings =
HttpJsonCallSettings.newBuilder()
@@ -2233,6 +2705,18 @@ protected HttpJsonVmwareEngineStub(
this.listSubnetsPagedCallable =
callableFactory.createPagedCallable(
listSubnetsTransportSettings, settings.listSubnetsSettings(), clientContext);
+ this.getSubnetCallable =
+ callableFactory.createUnaryCallable(
+ getSubnetTransportSettings, settings.getSubnetSettings(), clientContext);
+ this.updateSubnetCallable =
+ callableFactory.createUnaryCallable(
+ updateSubnetTransportSettings, settings.updateSubnetSettings(), clientContext);
+ this.updateSubnetOperationCallable =
+ callableFactory.createOperationCallable(
+ updateSubnetTransportSettings,
+ settings.updateSubnetOperationSettings(),
+ clientContext,
+ httpJsonOperationsStub);
this.listNodeTypesCallable =
callableFactory.createUnaryCallable(
listNodeTypesTransportSettings, settings.listNodeTypesSettings(), clientContext);
@@ -2394,6 +2878,64 @@ protected HttpJsonVmwareEngineStub(
listVmwareEngineNetworksTransportSettings,
settings.listVmwareEngineNetworksSettings(),
clientContext);
+ this.createPrivateConnectionCallable =
+ callableFactory.createUnaryCallable(
+ createPrivateConnectionTransportSettings,
+ settings.createPrivateConnectionSettings(),
+ clientContext);
+ this.createPrivateConnectionOperationCallable =
+ callableFactory.createOperationCallable(
+ createPrivateConnectionTransportSettings,
+ settings.createPrivateConnectionOperationSettings(),
+ clientContext,
+ httpJsonOperationsStub);
+ this.getPrivateConnectionCallable =
+ callableFactory.createUnaryCallable(
+ getPrivateConnectionTransportSettings,
+ settings.getPrivateConnectionSettings(),
+ clientContext);
+ this.listPrivateConnectionsCallable =
+ callableFactory.createUnaryCallable(
+ listPrivateConnectionsTransportSettings,
+ settings.listPrivateConnectionsSettings(),
+ clientContext);
+ this.listPrivateConnectionsPagedCallable =
+ callableFactory.createPagedCallable(
+ listPrivateConnectionsTransportSettings,
+ settings.listPrivateConnectionsSettings(),
+ clientContext);
+ this.updatePrivateConnectionCallable =
+ callableFactory.createUnaryCallable(
+ updatePrivateConnectionTransportSettings,
+ settings.updatePrivateConnectionSettings(),
+ clientContext);
+ this.updatePrivateConnectionOperationCallable =
+ callableFactory.createOperationCallable(
+ updatePrivateConnectionTransportSettings,
+ settings.updatePrivateConnectionOperationSettings(),
+ clientContext,
+ httpJsonOperationsStub);
+ this.deletePrivateConnectionCallable =
+ callableFactory.createUnaryCallable(
+ deletePrivateConnectionTransportSettings,
+ settings.deletePrivateConnectionSettings(),
+ clientContext);
+ this.deletePrivateConnectionOperationCallable =
+ callableFactory.createOperationCallable(
+ deletePrivateConnectionTransportSettings,
+ settings.deletePrivateConnectionOperationSettings(),
+ clientContext,
+ httpJsonOperationsStub);
+ this.listPrivateConnectionPeeringRoutesCallable =
+ callableFactory.createUnaryCallable(
+ listPrivateConnectionPeeringRoutesTransportSettings,
+ settings.listPrivateConnectionPeeringRoutesSettings(),
+ clientContext);
+ this.listPrivateConnectionPeeringRoutesPagedCallable =
+ callableFactory.createPagedCallable(
+ listPrivateConnectionPeeringRoutesTransportSettings,
+ settings.listPrivateConnectionPeeringRoutesSettings(),
+ clientContext);
this.listLocationsCallable =
callableFactory.createUnaryCallable(
listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
@@ -2434,6 +2976,8 @@ public static List getMethodDescriptors() {
methodDescriptors.add(updateClusterMethodDescriptor);
methodDescriptors.add(deleteClusterMethodDescriptor);
methodDescriptors.add(listSubnetsMethodDescriptor);
+ methodDescriptors.add(getSubnetMethodDescriptor);
+ methodDescriptors.add(updateSubnetMethodDescriptor);
methodDescriptors.add(listNodeTypesMethodDescriptor);
methodDescriptors.add(getNodeTypeMethodDescriptor);
methodDescriptors.add(showNsxCredentialsMethodDescriptor);
@@ -2453,6 +2997,12 @@ public static List getMethodDescriptors() {
methodDescriptors.add(deleteVmwareEngineNetworkMethodDescriptor);
methodDescriptors.add(getVmwareEngineNetworkMethodDescriptor);
methodDescriptors.add(listVmwareEngineNetworksMethodDescriptor);
+ methodDescriptors.add(createPrivateConnectionMethodDescriptor);
+ methodDescriptors.add(getPrivateConnectionMethodDescriptor);
+ methodDescriptors.add(listPrivateConnectionsMethodDescriptor);
+ methodDescriptors.add(updatePrivateConnectionMethodDescriptor);
+ methodDescriptors.add(deletePrivateConnectionMethodDescriptor);
+ methodDescriptors.add(listPrivateConnectionPeeringRoutesMethodDescriptor);
methodDescriptors.add(listLocationsMethodDescriptor);
methodDescriptors.add(getLocationMethodDescriptor);
methodDescriptors.add(setIamPolicyMethodDescriptor);
@@ -2584,6 +3134,22 @@ public UnaryCallable listSubnetsPa
return listSubnetsPagedCallable;
}
+ @Override
+ public UnaryCallable getSubnetCallable() {
+ return getSubnetCallable;
+ }
+
+ @Override
+ public UnaryCallable updateSubnetCallable() {
+ return updateSubnetCallable;
+ }
+
+ @Override
+ public OperationCallable
+ updateSubnetOperationCallable() {
+ return updateSubnetOperationCallable;
+ }
+
@Override
public UnaryCallable listNodeTypesCallable() {
return listNodeTypesCallable;
@@ -2766,6 +3332,75 @@ public UnaryCallable deleteNetworkPolicyC
return listVmwareEngineNetworksPagedCallable;
}
+ @Override
+ public UnaryCallable
+ createPrivateConnectionCallable() {
+ return createPrivateConnectionCallable;
+ }
+
+ @Override
+ public OperationCallable
+ createPrivateConnectionOperationCallable() {
+ return createPrivateConnectionOperationCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ getPrivateConnectionCallable() {
+ return getPrivateConnectionCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listPrivateConnectionsCallable() {
+ return listPrivateConnectionsCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ listPrivateConnectionsPagedCallable() {
+ return listPrivateConnectionsPagedCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ updatePrivateConnectionCallable() {
+ return updatePrivateConnectionCallable;
+ }
+
+ @Override
+ public OperationCallable
+ updatePrivateConnectionOperationCallable() {
+ return updatePrivateConnectionOperationCallable;
+ }
+
+ @Override
+ public UnaryCallable
+ deletePrivateConnectionCallable() {
+ return deletePrivateConnectionCallable;
+ }
+
+ @Override
+ public OperationCallable
+ deletePrivateConnectionOperationCallable() {
+ return deletePrivateConnectionOperationCallable;
+ }
+
+ @Override
+ public UnaryCallable<
+ ListPrivateConnectionPeeringRoutesRequest, ListPrivateConnectionPeeringRoutesResponse>
+ listPrivateConnectionPeeringRoutesCallable() {
+ return listPrivateConnectionPeeringRoutesCallable;
+ }
+
+ @Override
+ public UnaryCallable<
+ ListPrivateConnectionPeeringRoutesRequest,
+ ListPrivateConnectionPeeringRoutesPagedResponse>
+ listPrivateConnectionPeeringRoutesPagedCallable() {
+ return listPrivateConnectionPeeringRoutesPagedCallable;
+ }
+
@Override
public UnaryCallable listLocationsCallable() {
return listLocationsCallable;
diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStub.java b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStub.java
index 20f450aeef02..95a7ec237574 100644
--- a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStub.java
+++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/VmwareEngineStub.java
@@ -22,6 +22,8 @@
import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNetworkPoliciesPagedResponse;
import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListNodeTypesPagedResponse;
import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateCloudsPagedResponse;
+import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateConnectionPeeringRoutesPagedResponse;
+import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListPrivateConnectionsPagedResponse;
import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListSubnetsPagedResponse;
import static com.google.cloud.vmwareengine.v1.VmwareEngineClient.ListVmwareEngineNetworksPagedResponse;
@@ -37,17 +39,21 @@
import com.google.cloud.vmwareengine.v1.CreateHcxActivationKeyRequest;
import com.google.cloud.vmwareengine.v1.CreateNetworkPolicyRequest;
import com.google.cloud.vmwareengine.v1.CreatePrivateCloudRequest;
+import com.google.cloud.vmwareengine.v1.CreatePrivateConnectionRequest;
import com.google.cloud.vmwareengine.v1.CreateVmwareEngineNetworkRequest;
import com.google.cloud.vmwareengine.v1.Credentials;
import com.google.cloud.vmwareengine.v1.DeleteClusterRequest;
import com.google.cloud.vmwareengine.v1.DeleteNetworkPolicyRequest;
import com.google.cloud.vmwareengine.v1.DeletePrivateCloudRequest;
+import com.google.cloud.vmwareengine.v1.DeletePrivateConnectionRequest;
import com.google.cloud.vmwareengine.v1.DeleteVmwareEngineNetworkRequest;
import com.google.cloud.vmwareengine.v1.GetClusterRequest;
import com.google.cloud.vmwareengine.v1.GetHcxActivationKeyRequest;
import com.google.cloud.vmwareengine.v1.GetNetworkPolicyRequest;
import com.google.cloud.vmwareengine.v1.GetNodeTypeRequest;
import com.google.cloud.vmwareengine.v1.GetPrivateCloudRequest;
+import com.google.cloud.vmwareengine.v1.GetPrivateConnectionRequest;
+import com.google.cloud.vmwareengine.v1.GetSubnetRequest;
import com.google.cloud.vmwareengine.v1.GetVmwareEngineNetworkRequest;
import com.google.cloud.vmwareengine.v1.HcxActivationKey;
import com.google.cloud.vmwareengine.v1.ListClustersRequest;
@@ -60,6 +66,10 @@
import com.google.cloud.vmwareengine.v1.ListNodeTypesResponse;
import com.google.cloud.vmwareengine.v1.ListPrivateCloudsRequest;
import com.google.cloud.vmwareengine.v1.ListPrivateCloudsResponse;
+import com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesRequest;
+import com.google.cloud.vmwareengine.v1.ListPrivateConnectionPeeringRoutesResponse;
+import com.google.cloud.vmwareengine.v1.ListPrivateConnectionsRequest;
+import com.google.cloud.vmwareengine.v1.ListPrivateConnectionsResponse;
import com.google.cloud.vmwareengine.v1.ListSubnetsRequest;
import com.google.cloud.vmwareengine.v1.ListSubnetsResponse;
import com.google.cloud.vmwareengine.v1.ListVmwareEngineNetworksRequest;
@@ -68,14 +78,18 @@
import com.google.cloud.vmwareengine.v1.NodeType;
import com.google.cloud.vmwareengine.v1.OperationMetadata;
import com.google.cloud.vmwareengine.v1.PrivateCloud;
+import com.google.cloud.vmwareengine.v1.PrivateConnection;
import com.google.cloud.vmwareengine.v1.ResetNsxCredentialsRequest;
import com.google.cloud.vmwareengine.v1.ResetVcenterCredentialsRequest;
import com.google.cloud.vmwareengine.v1.ShowNsxCredentialsRequest;
import com.google.cloud.vmwareengine.v1.ShowVcenterCredentialsRequest;
+import com.google.cloud.vmwareengine.v1.Subnet;
import com.google.cloud.vmwareengine.v1.UndeletePrivateCloudRequest;
import com.google.cloud.vmwareengine.v1.UpdateClusterRequest;
import com.google.cloud.vmwareengine.v1.UpdateNetworkPolicyRequest;
import com.google.cloud.vmwareengine.v1.UpdatePrivateCloudRequest;
+import com.google.cloud.vmwareengine.v1.UpdatePrivateConnectionRequest;
+import com.google.cloud.vmwareengine.v1.UpdateSubnetRequest;
import com.google.cloud.vmwareengine.v1.UpdateVmwareEngineNetworkRequest;
import com.google.cloud.vmwareengine.v1.VmwareEngineNetwork;
import com.google.iam.v1.GetIamPolicyRequest;
@@ -206,6 +220,19 @@ public UnaryCallable listSubnetsCallabl
throw new UnsupportedOperationException("Not implemented: listSubnetsCallable()");
}
+ public UnaryCallable