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

feat: add enable_private_service_connect field to Endpoint feat: add id field to DeployedModel feat: add service_attachment field to PrivateEndpoints feat: add endpoint_id to CreateEndpointRequest and method signature to CreateEndpoint feat: add method... #728

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,84 @@ public final OperationFuture<Endpoint, CreateEndpointOperationMetadata> createEn
return createEndpointAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates an Endpoint.
*
* <p>Sample code:
*
* <pre>{@code
* try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* Endpoint endpoint = Endpoint.newBuilder().build();
* String endpointId = "endpointId-1837754992";
* Endpoint response =
* endpointServiceClient.createEndpointAsync(parent, endpoint, endpointId).get();
* }
* }</pre>
*
* @param parent Required. The resource name of the Location to create the Endpoint in. Format:
* `projects/{project}/locations/{location}`
* @param endpoint Required. The Endpoint to create.
* @param endpointId Immutable. The ID to use for endpoint, which will become the final component
* of the endpoint resource name. If not provided, Vertex AI will generate a value for this
* ID.
* <p>This value should be 1-10 characters, and valid characters are /[0-9]/. When using
* HTTP/JSON, this field is populated based on a query string argument, such as
* `?endpoint_id=12345`. This is the fallback for fields that are not included in either the
* URI or the body.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Endpoint, CreateEndpointOperationMetadata> createEndpointAsync(
LocationName parent, Endpoint endpoint, String endpointId) {
CreateEndpointRequest request =
CreateEndpointRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
.setEndpoint(endpoint)
.setEndpointId(endpointId)
.build();
return createEndpointAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates an Endpoint.
*
* <p>Sample code:
*
* <pre>{@code
* try (EndpointServiceClient endpointServiceClient = EndpointServiceClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* Endpoint endpoint = Endpoint.newBuilder().build();
* String endpointId = "endpointId-1837754992";
* Endpoint response =
* endpointServiceClient.createEndpointAsync(parent, endpoint, endpointId).get();
* }
* }</pre>
*
* @param parent Required. The resource name of the Location to create the Endpoint in. Format:
* `projects/{project}/locations/{location}`
* @param endpoint Required. The Endpoint to create.
* @param endpointId Immutable. The ID to use for endpoint, which will become the final component
* of the endpoint resource name. If not provided, Vertex AI will generate a value for this
* ID.
* <p>This value should be 1-10 characters, and valid characters are /[0-9]/. When using
* HTTP/JSON, this field is populated based on a query string argument, such as
* `?endpoint_id=12345`. This is the fallback for fields that are not included in either the
* URI or the body.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Endpoint, CreateEndpointOperationMetadata> createEndpointAsync(
String parent, Endpoint endpoint, String endpointId) {
CreateEndpointRequest request =
CreateEndpointRequest.newBuilder()
.setParent(parent)
.setEndpoint(endpoint)
.setEndpointId(endpointId)
.build();
return createEndpointAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates an Endpoint.
Expand All @@ -235,6 +313,7 @@ public final OperationFuture<Endpoint, CreateEndpointOperationMetadata> createEn
* CreateEndpointRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setEndpoint(Endpoint.newBuilder().build())
* .setEndpointId("endpointId-1837754992")
* .build();
* Endpoint response = endpointServiceClient.createEndpointAsync(request).get();
* }
Expand All @@ -260,6 +339,7 @@ public final OperationFuture<Endpoint, CreateEndpointOperationMetadata> createEn
* CreateEndpointRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setEndpoint(Endpoint.newBuilder().build())
* .setEndpointId("endpointId-1837754992")
* .build();
* OperationFuture<Endpoint, CreateEndpointOperationMetadata> future =
* endpointServiceClient.createEndpointOperationCallable().futureCall(request);
Expand All @@ -285,6 +365,7 @@ public final OperationFuture<Endpoint, CreateEndpointOperationMetadata> createEn
* CreateEndpointRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setEndpoint(Endpoint.newBuilder().build())
* .setEndpointId("endpointId-1837754992")
* .build();
* ApiFuture<Operation> future =
* endpointServiceClient.createEndpointCallable().futureCall(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,85 @@ public final OperationsClient getOperationsClient() {
return createFeaturestoreAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new Featurestore in a given project and location.
*
* <p>Sample code:
*
* <pre>{@code
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* Featurestore featurestore = Featurestore.newBuilder().build();
* String featurestoreId = "featurestoreId-1315851738";
* Featurestore response =
* featurestoreServiceClient
* .createFeaturestoreAsync(parent, featurestore, featurestoreId)
* .get();
* }
* }</pre>
*
* @param parent Required. The resource name of the Location to create Featurestores. Format:
* `projects/{project}/locations/{location}'`
* @param featurestore Required. The Featurestore to create.
* @param featurestoreId Required. The ID to use for this Featurestore, which will become the
* final component of the Featurestore's resource name.
* <p>This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
* character cannot be a number.
* <p>The value must be unique within the project and location.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Featurestore, CreateFeaturestoreOperationMetadata>
createFeaturestoreAsync(
LocationName parent, Featurestore featurestore, String featurestoreId) {
CreateFeaturestoreRequest request =
CreateFeaturestoreRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
.setFeaturestore(featurestore)
.setFeaturestoreId(featurestoreId)
.build();
return createFeaturestoreAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new Featurestore in a given project and location.
*
* <p>Sample code:
*
* <pre>{@code
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* Featurestore featurestore = Featurestore.newBuilder().build();
* String featurestoreId = "featurestoreId-1315851738";
* Featurestore response =
* featurestoreServiceClient
* .createFeaturestoreAsync(parent, featurestore, featurestoreId)
* .get();
* }
* }</pre>
*
* @param parent Required. The resource name of the Location to create Featurestores. Format:
* `projects/{project}/locations/{location}'`
* @param featurestore Required. The Featurestore to create.
* @param featurestoreId Required. The ID to use for this Featurestore, which will become the
* final component of the Featurestore's resource name.
* <p>This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
* character cannot be a number.
* <p>The value must be unique within the project and location.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Featurestore, CreateFeaturestoreOperationMetadata>
createFeaturestoreAsync(String parent, Featurestore featurestore, String featurestoreId) {
CreateFeaturestoreRequest request =
CreateFeaturestoreRequest.newBuilder()
.setParent(parent)
.setFeaturestore(featurestore)
.setFeaturestoreId(featurestoreId)
.build();
return createFeaturestoreAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new Featurestore in a given project and location.
Expand Down Expand Up @@ -905,6 +984,80 @@ public final OperationFuture<EntityType, CreateEntityTypeOperationMetadata> crea
return createEntityTypeAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new EntityType in a given Featurestore.
*
* <p>Sample code:
*
* <pre>{@code
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* FeaturestoreName parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]");
* EntityType entityType = EntityType.newBuilder().build();
* String entityTypeId = "entityTypeId767740856";
* EntityType response =
* featurestoreServiceClient.createEntityTypeAsync(parent, entityType, entityTypeId).get();
* }
* }</pre>
*
* @param parent Required. The resource name of the Featurestore to create EntityTypes. Format:
* `projects/{project}/locations/{location}/featurestores/{featurestore}`
* @param entityType The EntityType to create.
* @param entityTypeId Required. The ID to use for the EntityType, which will become the final
* component of the EntityType's resource name.
* <p>This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
* character cannot be a number.
* <p>The value must be unique within a featurestore.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<EntityType, CreateEntityTypeOperationMetadata> createEntityTypeAsync(
FeaturestoreName parent, EntityType entityType, String entityTypeId) {
CreateEntityTypeRequest request =
CreateEntityTypeRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
.setEntityType(entityType)
.setEntityTypeId(entityTypeId)
.build();
return createEntityTypeAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new EntityType in a given Featurestore.
*
* <p>Sample code:
*
* <pre>{@code
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* String parent = FeaturestoreName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]").toString();
* EntityType entityType = EntityType.newBuilder().build();
* String entityTypeId = "entityTypeId767740856";
* EntityType response =
* featurestoreServiceClient.createEntityTypeAsync(parent, entityType, entityTypeId).get();
* }
* }</pre>
*
* @param parent Required. The resource name of the Featurestore to create EntityTypes. Format:
* `projects/{project}/locations/{location}/featurestores/{featurestore}`
* @param entityType The EntityType to create.
* @param entityTypeId Required. The ID to use for the EntityType, which will become the final
* component of the EntityType's resource name.
* <p>This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
* character cannot be a number.
* <p>The value must be unique within a featurestore.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<EntityType, CreateEntityTypeOperationMetadata> createEntityTypeAsync(
String parent, EntityType entityType, String entityTypeId) {
CreateEntityTypeRequest request =
CreateEntityTypeRequest.newBuilder()
.setParent(parent)
.setEntityType(entityType)
.setEntityTypeId(entityTypeId)
.build();
return createEntityTypeAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new EntityType in a given Featurestore.
Expand Down Expand Up @@ -1575,6 +1728,83 @@ public final OperationFuture<Feature, CreateFeatureOperationMetadata> createFeat
return createFeatureAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new Feature in a given EntityType.
*
* <p>Sample code:
*
* <pre>{@code
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* EntityTypeName parent =
* EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]");
* Feature feature = Feature.newBuilder().build();
* String featureId = "featureId-420503887";
* Feature response =
* featurestoreServiceClient.createFeatureAsync(parent, feature, featureId).get();
* }
* }</pre>
*
* @param parent Required. The resource name of the EntityType to create a Feature. Format:
* `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
* @param feature Required. The Feature to create.
* @param featureId Required. The ID to use for the Feature, which will become the final component
* of the Feature's resource name.
* <p>This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
* character cannot be a number.
* <p>The value must be unique within an EntityType.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Feature, CreateFeatureOperationMetadata> createFeatureAsync(
EntityTypeName parent, Feature feature, String featureId) {
CreateFeatureRequest request =
CreateFeatureRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
.setFeature(feature)
.setFeatureId(featureId)
.build();
return createFeatureAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new Feature in a given EntityType.
*
* <p>Sample code:
*
* <pre>{@code
* try (FeaturestoreServiceClient featurestoreServiceClient = FeaturestoreServiceClient.create()) {
* String parent =
* EntityTypeName.of("[PROJECT]", "[LOCATION]", "[FEATURESTORE]", "[ENTITY_TYPE]")
* .toString();
* Feature feature = Feature.newBuilder().build();
* String featureId = "featureId-420503887";
* Feature response =
* featurestoreServiceClient.createFeatureAsync(parent, feature, featureId).get();
* }
* }</pre>
*
* @param parent Required. The resource name of the EntityType to create a Feature. Format:
* `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
* @param feature Required. The Feature to create.
* @param featureId Required. The ID to use for the Feature, which will become the final component
* of the Feature's resource name.
* <p>This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first
* character cannot be a number.
* <p>The value must be unique within an EntityType.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final OperationFuture<Feature, CreateFeatureOperationMetadata> createFeatureAsync(
String parent, Feature feature, String featureId) {
CreateFeatureRequest request =
CreateFeatureRequest.newBuilder()
.setParent(parent)
.setFeature(feature)
.setFeatureId(featureId)
.build();
return createFeatureAsync(request);
}

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a new Feature in a given EntityType.
Expand Down
Loading