Skip to content

Commit

Permalink
feat: enable UpdateFeatureMonitor in v1beta1 API version
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 719424250
Google APIs authored and copybara-github committed Jan 24, 2025
1 parent d8b31b6 commit 8ded118
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions google/cloud/aiplatform/v1beta1/feature_registry_service.proto
Original file line number Diff line number Diff line change
@@ -207,6 +207,20 @@ service FeatureRegistryService {
option (google.api.method_signature) = "parent";
}

// Updates the parameters of a single FeatureMonitor.
rpc UpdateFeatureMonitor(UpdateFeatureMonitorRequest)
returns (google.longrunning.Operation) {
option (google.api.http) = {
patch: "/v1beta1/{feature_monitor.name=projects/*/locations/*/featureGroups/*/featureMonitors/*}"
body: "feature_monitor"
};
option (google.api.method_signature) = "feature_monitor,update_mask";
option (google.longrunning.operation_info) = {
response_type: "FeatureMonitor"
metadata_type: "UpdateFeatureMonitorOperationMetadata"
};
}

// Deletes a single FeatureMonitor.
rpc DeleteFeatureMonitor(DeleteFeatureMonitorRequest)
returns (google.longrunning.Operation) {
@@ -494,6 +508,29 @@ message ListFeatureMonitorsRequest {
string order_by = 5 [(google.api.field_behavior) = OPTIONAL];
}

// Request message for
// [FeatureRegistryService.UpdateFeatureMonitor][google.cloud.aiplatform.v1beta1.FeatureRegistryService.UpdateFeatureMonitor].
message UpdateFeatureMonitorRequest {
// Required. The FeatureMonitor's `name` field is used to identify the
// FeatureMonitor to be updated. Format:
// `projects/{project}/locations/{location}/featureGroups/{feature_group}/featureMonitors/{feature_monitor}`
FeatureMonitor feature_monitor = 1 [(google.api.field_behavior) = REQUIRED];

// Optional. Field mask is used to specify the fields to be overwritten in the
// FeatureMonitor 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 only the non-empty fields present in the
// request will be overwritten. Set the update_mask to `*` to override all
// fields.
//
// Updatable fields:
//
// * `labels`
google.protobuf.FieldMask update_mask = 2
[(google.api.field_behavior) = OPTIONAL];
}

// Request message for
// [FeatureRegistryService.DeleteFeatureMonitor][google.cloud.aiplatform.v1beta1.FeatureRegistryService.DeleteFeatureMonitor].
message DeleteFeatureMonitorRequest {
@@ -551,6 +588,12 @@ message CreateFeatureMonitorOperationMetadata {
GenericOperationMetadata generic_metadata = 1;
}

// Details of operations that perform update FeatureMonitor.
message UpdateFeatureMonitorOperationMetadata {
// Operation metadata for FeatureMonitor.
GenericOperationMetadata generic_metadata = 1;
}

// Request message for
// [FeatureRegistryService.CreateFeatureMonitorJobRequest][].
message CreateFeatureMonitorJobRequest {

0 comments on commit 8ded118

Please sign in to comment.