diff --git a/aiplatform/v1/aiplatform-api.json b/aiplatform/v1/aiplatform-api.json index 67bdf579788..a43b15e99ae 100644 --- a/aiplatform/v1/aiplatform-api.json +++ b/aiplatform/v1/aiplatform-api.json @@ -4109,12 +4109,11 @@ ], "parameters": { "featureId": { - "description": "Required. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType .", + "description": "Required. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType/FeatureGroup.", "location": "query", "type": "string" }, "parent": { - "description": "Required. The resource name of the EntityType to create a Feature. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", "required": true, @@ -4142,7 +4141,7 @@ ], "parameters": { "name": { - "description": "Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`", + "description": "Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", "required": true, @@ -4167,7 +4166,7 @@ ], "parameters": { "name": { - "description": "Required. The name of the Feature resource. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", + "description": "Required. The name of the Feature resource. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", "required": true, @@ -4219,7 +4218,7 @@ "type": "string" }, "parent": { - "description": "Required. The resource name of the Location to list Features. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", + "description": "Required. The resource name of the Location to list Features. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", "required": true, @@ -8760,7 +8759,7 @@ ], "parameters": { "filter": { - "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `display_name` supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `notebookRuntimeTemplate=notebookRuntimeTemplate123` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"`", + "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `display_name` supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. * `notebookRuntimeType` supports = and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. Some examples: * `notebookRuntimeTemplate=notebookRuntimeTemplate123` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"` * `notebookRuntimeType=USER_DEFINED`", "location": "query", "type": "string" }, @@ -8953,7 +8952,7 @@ ], "parameters": { "filter": { - "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntime` supports = and !=. `notebookRuntime` represents the NotebookRuntime ID, i.e. the last segment of the NotebookRuntime's resource name. * `displayName` supports = and != and regex. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `healthState` supports = and !=. healthState enum: [HEALTHY, UNHEALTHY, HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. runtimeState enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED, STOPPED, BEING_UPGRADED]. * `runtimeUser` supports = and !=. * API version is UI only: `uiState` supports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED, UI_RESOURCE_STATE_CREATION_FAILED]. Some examples: * `notebookRuntime=\"notebookRuntime123\"` * `displayName=\"myDisplayName\"` and `displayName=~\"myDisplayNameRegex\"` * `notebookRuntimeTemplate=\"notebookRuntimeTemplate321\"` * `healthState=HEALTHY` * `runtimeState=RUNNING` * `runtimeUser=\"test@google.com\"` * `uiState=UI_RESOURCE_STATE_BEING_DELETED`", + "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntime` supports = and !=. `notebookRuntime` represents the NotebookRuntime ID, i.e. the last segment of the NotebookRuntime's resource name. * `displayName` supports = and != and regex. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `healthState` supports = and !=. healthState enum: [HEALTHY, UNHEALTHY, HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. runtimeState enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED, STOPPED, BEING_UPGRADED]. * `runtimeUser` supports = and !=. * API version is UI only: `uiState` supports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED, UI_RESOURCE_STATE_CREATION_FAILED]. * `notebookRuntimeType` supports = and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. Some examples: * `notebookRuntime=\"notebookRuntime123\"` * `displayName=\"myDisplayName\"` and `displayName=~\"myDisplayNameRegex\"` * `notebookRuntimeTemplate=\"notebookRuntimeTemplate321\"` * `healthState=HEALTHY` * `runtimeState=RUNNING` * `runtimeUser=\"test@google.com\"` * `uiState=UI_RESOURCE_STATE_BEING_DELETED` * `notebookRuntimeType=USER_DEFINED`", "location": "query", "type": "string" }, @@ -12998,7 +12997,7 @@ } } }, - "revision": "20230914", + "revision": "20230929", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -14403,7 +14402,7 @@ "type": "object" }, "GoogleCloudAiplatformV1CreateFeatureRequest": { - "description": "Request message for FeaturestoreService.CreateFeature.", + "description": "Request message for FeaturestoreService.CreateFeature. Request message for FeatureRegistryService.CreateFeature.", "id": "GoogleCloudAiplatformV1CreateFeatureRequest", "properties": { "feature": { @@ -14411,11 +14410,10 @@ "description": "Required. The Feature to create." }, "featureId": { - "description": "Required. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType .", + "description": "Required. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType/FeatureGroup.", "type": "string" }, "parent": { - "description": "Required. The resource name of the EntityType to create a Feature. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", "type": "string" } }, @@ -18376,7 +18374,7 @@ "type": "object" }, "GoogleCloudAiplatformV1ListFeaturesResponse": { - "description": "Response message for FeaturestoreService.ListFeatures.", + "description": "Response message for FeaturestoreService.ListFeatures. Response message for FeatureRegistryService.ListFeatures.", "id": "GoogleCloudAiplatformV1ListFeaturesResponse", "properties": { "features": { @@ -23870,6 +23868,45 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfig": { + "description": "The configuration for grounding checking.", + "id": "GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfig", + "properties": { + "sources": { + "description": "The sources for the grounding checking.", + "items": { + "$ref": "GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfigSourceEntry" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfigSourceEntry": { + "description": "Single source entry for the grounding checking.", + "id": "GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfigSourceEntry", + "properties": { + "enterpriseDatastore": { + "description": "The uri of the Enterprise Search data source.", + "type": "string" + }, + "type": { + "description": "The type of the grounding checking source.", + "enum": [ + "UNSPECIFIED", + "WEB", + "ENTERPRISE" + ], + "enumDescriptions": [ + "", + "Uses Web Search to check the grounding.", + "Uses Enterprise Search to check the grounding." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1SchemaPredictParamsImageClassificationPredictionParams": { "description": "Prediction model parameters for Image Classification.", "id": "GoogleCloudAiplatformV1SchemaPredictParamsImageClassificationPredictionParams", @@ -24588,10 +24625,19 @@ "description": "The metadata of Datasets that contain Text Prompt data.", "id": "GoogleCloudAiplatformV1SchemaTextPromptDatasetMetadata", "properties": { + "candidateCount": { + "description": "Number of candidates.", + "format": "int64", + "type": "string" + }, "gcsUri": { "description": "The Google Cloud Storage URI that stores the prompt data.", "type": "string" }, + "groundingConfig": { + "$ref": "GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfig", + "description": "Grounding checking configuration." + }, "maxOutputTokens": { "description": "Value of the maximum number of tokens generated set when the dataset was saved.", "format": "int64", @@ -24601,6 +24647,13 @@ "description": "Type of the prompt dataset.", "type": "string" }, + "stopSequences": { + "description": "Customized stop sequences.", + "items": { + "type": "string" + }, + "type": "array" + }, "temperature": { "description": "Temperature value used for sampling set when the dataset was saved. This value is used to tune the degree of randomness.", "format": "float", diff --git a/aiplatform/v1/aiplatform-gen.go b/aiplatform/v1/aiplatform-gen.go index 45e2d9d4ab6..78e0f6fecb5 100644 --- a/aiplatform/v1/aiplatform-gen.go +++ b/aiplatform/v1/aiplatform-gen.go @@ -3814,7 +3814,8 @@ func (s *GoogleCloudAiplatformV1CreateFeatureOperationMetadata) MarshalJSON() ([ } // GoogleCloudAiplatformV1CreateFeatureRequest: Request message for -// FeaturestoreService.CreateFeature. +// FeaturestoreService.CreateFeature. Request message for +// FeatureRegistryService.CreateFeature. type GoogleCloudAiplatformV1CreateFeatureRequest struct { // Feature: Required. The Feature to create. Feature *GoogleCloudAiplatformV1Feature `json:"feature,omitempty"` @@ -3823,13 +3824,9 @@ type GoogleCloudAiplatformV1CreateFeatureRequest struct { // the final component of the Feature's resource name. This value may be // up to 128 characters, and valid characters are `[a-z0-9_]`. The first // character cannot be a number. The value must be unique within an - // EntityType . + // EntityType/FeatureGroup. FeatureId string `json:"featureId,omitempty"` - // Parent: Required. The resource name of the EntityType to create a - // Feature. Format: - // `projects/{project}/locations/{location}/featurestores/{featurestore}/ - // entityTypes/{entity_type}` Parent string `json:"parent,omitempty"` // ForceSendFields is a list of field names (e.g. "Feature") to @@ -11240,7 +11237,8 @@ func (s *GoogleCloudAiplatformV1ListExecutionsResponse) MarshalJSON() ([]byte, e } // GoogleCloudAiplatformV1ListFeaturesResponse: Response message for -// FeaturestoreService.ListFeatures. +// FeaturestoreService.ListFeatures. Response message for +// FeatureRegistryService.ListFeatures. type GoogleCloudAiplatformV1ListFeaturesResponse struct { // Features: The Features matching the request. Features []*GoogleCloudAiplatformV1Feature `json:"features,omitempty"` @@ -21353,6 +21351,73 @@ func (s *GoogleCloudAiplatformV1SchemaPredictInstanceVideoObjectTrackingPredicti return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfig: The +// configuration for grounding checking. +type GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfig struct { + // Sources: The sources for the grounding checking. + Sources []*GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfigSourceEntry `json:"sources,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Sources") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Sources") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfigSourceEntry: +// Single source entry for the grounding checking. +type GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfigSourceEntry struct { + // EnterpriseDatastore: The uri of the Enterprise Search data source. + EnterpriseDatastore string `json:"enterpriseDatastore,omitempty"` + + // Type: The type of the grounding checking source. + // + // Possible values: + // "UNSPECIFIED" + // "WEB" - Uses Web Search to check the grounding. + // "ENTERPRISE" - Uses Enterprise Search to check the grounding. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EnterpriseDatastore") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EnterpriseDatastore") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfigSourceEntry) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfigSourceEntry + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1SchemaPredictParamsImageClassificationPredictio // nParams: Prediction model parameters for Image Classification. type GoogleCloudAiplatformV1SchemaPredictParamsImageClassificationPredictionParams struct { @@ -22900,9 +22965,15 @@ func (s *GoogleCloudAiplatformV1SchemaTextExtractionAnnotation) MarshalJSON() ([ // GoogleCloudAiplatformV1SchemaTextPromptDatasetMetadata: The metadata // of Datasets that contain Text Prompt data. type GoogleCloudAiplatformV1SchemaTextPromptDatasetMetadata struct { + // CandidateCount: Number of candidates. + CandidateCount int64 `json:"candidateCount,omitempty,string"` + // GcsUri: The Google Cloud Storage URI that stores the prompt data. GcsUri string `json:"gcsUri,omitempty"` + // GroundingConfig: Grounding checking configuration. + GroundingConfig *GoogleCloudAiplatformV1SchemaPredictParamsGroundingConfig `json:"groundingConfig,omitempty"` + // MaxOutputTokens: Value of the maximum number of tokens generated set // when the dataset was saved. MaxOutputTokens int64 `json:"maxOutputTokens,omitempty,string"` @@ -22910,6 +22981,9 @@ type GoogleCloudAiplatformV1SchemaTextPromptDatasetMetadata struct { // PromptType: Type of the prompt dataset. PromptType string `json:"promptType,omitempty"` + // StopSequences: Customized stop sequences. + StopSequences []string `json:"stopSequences,omitempty"` + // Temperature: Temperature value used for sampling set when the dataset // was saved. This value is used to tune the degree of randomness. Temperature float64 `json:"temperature,omitempty"` @@ -22927,7 +23001,7 @@ type GoogleCloudAiplatformV1SchemaTextPromptDatasetMetadata struct { // probabilities is topP. TopP float64 `json:"topP,omitempty"` - // ForceSendFields is a list of field names (e.g. "GcsUri") to + // ForceSendFields is a list of field names (e.g. "CandidateCount") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -22935,12 +23009,13 @@ type GoogleCloudAiplatformV1SchemaTextPromptDatasetMetadata struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "GcsUri") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CandidateCount") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -50455,10 +50530,7 @@ type ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall struct { // Create: Creates a new Feature in a given EntityType. // -// - parent: The resource name of the EntityType to create a Feature. -// Format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}`. +// - parent: . func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Create(parent string, googlecloudaiplatformv1feature *GoogleCloudAiplatformV1Feature) *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall { c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -50470,7 +50542,7 @@ func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Create(parent // to use for the Feature, which will become the final component of the // Feature's resource name. This value may be up to 128 characters, and // valid characters are `[a-z0-9_]`. The first character cannot be a -// number. The value must be unique within an EntityType . +// number. The value must be unique within an EntityType/FeatureGroup. func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) FeatureId(featureId string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall { c.urlParams_.Set("featureId", featureId) return c @@ -50576,12 +50648,11 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) Do(opts .. // ], // "parameters": { // "featureId": { - // "description": "Required. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType .", + // "description": "Required. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType/FeatureGroup.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the EntityType to create a Feature. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "required": true, @@ -50616,7 +50687,9 @@ type ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall struct { // // - name: The name of the Features to be deleted. Format: // `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}/features/{feature}`. +// }/entityTypes/{entity_type}/features/{feature}` +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}/features/{feature}`. func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Delete(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall { c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -50718,7 +50791,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) Do(opts .. // ], // "parameters": { // "name": { - // "description": "Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`", + // "description": "Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", // "required": true, @@ -50751,7 +50824,9 @@ type ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall struct { // // - name: The name of the Feature resource. Format: // `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}`. +// }/entityTypes/{entity_type}` +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}`. func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Get(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall { c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -50866,7 +50941,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) Do(opts ...go // ], // "parameters": { // "name": { - // "description": "Required. The name of the Feature resource. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", + // "description": "Required. The name of the Feature resource. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", // "required": true, @@ -50899,7 +50974,9 @@ type ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall struct { // // - parent: The resource name of the Location to list Features. Format: // `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}`. +// }/entityTypes/{entity_type}` +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}`. func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) List(parent string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -51108,7 +51185,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Do(opts ...g // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the Location to list Features. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", + // "description": "Required. The resource name of the Location to list Features. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "required": true, @@ -74248,9 +74325,11 @@ func (r *ProjectsLocationsNotebookRuntimeTemplatesService) List(parent string) * // and != * `labels` supports general map functions that is: * // `labels.key=value` - key:value equality * `labels.key:* or labels:key // - key existence * A key including a space must be quoted. `labels."a -// key". Some examples: * +// key". * `notebookRuntimeType` supports = and !=. notebookRuntimeType +// enum: [USER_DEFINED, ONE_CLICK]. Some examples: * // `notebookRuntimeTemplate=notebookRuntimeTemplate123` * -// `displayName="myDisplayName" * `labels.myKey="myValue" +// `displayName="myDisplayName" * `labels.myKey="myValue" * +// `notebookRuntimeType=USER_DEFINED` func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) Filter(filter string) *ProjectsLocationsNotebookRuntimeTemplatesListCall { c.urlParams_.Set("filter", filter) return c @@ -74400,7 +74479,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) Do(opts ...googleapi // ], // "parameters": { // "filter": { - // "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `display_name` supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `notebookRuntimeTemplate=notebookRuntimeTemplate123` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"`", + // "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `display_name` supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. * `notebookRuntimeType` supports = and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. Some examples: * `notebookRuntimeTemplate=notebookRuntimeTemplate123` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"` * `notebookRuntimeType=USER_DEFINED`", // "location": "query", // "type": "string" // }, @@ -75239,12 +75318,15 @@ func (r *ProjectsLocationsNotebookRuntimesService) List(parent string) *Projects // supports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, // UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, // UI_RESOURCE_STATE_BEING_DELETED, UI_RESOURCE_STATE_CREATION_FAILED]. -// Some examples: * `notebookRuntime="notebookRuntime123" * +// * `notebookRuntimeType` supports = and !=. notebookRuntimeType enum: +// [USER_DEFINED, ONE_CLICK]. Some examples: * +// `notebookRuntime="notebookRuntime123" * // `displayName="myDisplayName" and `displayName=~"myDisplayNameRegex" // * `notebookRuntimeTemplate="notebookRuntimeTemplate321" * // `healthState=HEALTHY` * `runtimeState=RUNNING` * // `runtimeUser="test@google.com" * -// `uiState=UI_RESOURCE_STATE_BEING_DELETED` +// `uiState=UI_RESOURCE_STATE_BEING_DELETED` * +// `notebookRuntimeType=USER_DEFINED` func (c *ProjectsLocationsNotebookRuntimesListCall) Filter(filter string) *ProjectsLocationsNotebookRuntimesListCall { c.urlParams_.Set("filter", filter) return c @@ -75393,7 +75475,7 @@ func (c *ProjectsLocationsNotebookRuntimesListCall) Do(opts ...googleapi.CallOpt // ], // "parameters": { // "filter": { - // "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntime` supports = and !=. `notebookRuntime` represents the NotebookRuntime ID, i.e. the last segment of the NotebookRuntime's resource name. * `displayName` supports = and != and regex. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `healthState` supports = and !=. healthState enum: [HEALTHY, UNHEALTHY, HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. runtimeState enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED, STOPPED, BEING_UPGRADED]. * `runtimeUser` supports = and !=. * API version is UI only: `uiState` supports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED, UI_RESOURCE_STATE_CREATION_FAILED]. Some examples: * `notebookRuntime=\"notebookRuntime123\"` * `displayName=\"myDisplayName\"` and `displayName=~\"myDisplayNameRegex\"` * `notebookRuntimeTemplate=\"notebookRuntimeTemplate321\"` * `healthState=HEALTHY` * `runtimeState=RUNNING` * `runtimeUser=\"test@google.com\"` * `uiState=UI_RESOURCE_STATE_BEING_DELETED`", + // "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntime` supports = and !=. `notebookRuntime` represents the NotebookRuntime ID, i.e. the last segment of the NotebookRuntime's resource name. * `displayName` supports = and != and regex. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `healthState` supports = and !=. healthState enum: [HEALTHY, UNHEALTHY, HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. runtimeState enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED, STOPPED, BEING_UPGRADED]. * `runtimeUser` supports = and !=. * API version is UI only: `uiState` supports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED, UI_RESOURCE_STATE_CREATION_FAILED]. * `notebookRuntimeType` supports = and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. Some examples: * `notebookRuntime=\"notebookRuntime123\"` * `displayName=\"myDisplayName\"` and `displayName=~\"myDisplayNameRegex\"` * `notebookRuntimeTemplate=\"notebookRuntimeTemplate321\"` * `healthState=HEALTHY` * `runtimeState=RUNNING` * `runtimeUser=\"test@google.com\"` * `uiState=UI_RESOURCE_STATE_BEING_DELETED` * `notebookRuntimeType=USER_DEFINED`", // "location": "query", // "type": "string" // }, diff --git a/aiplatform/v1beta1/aiplatform-api.json b/aiplatform/v1beta1/aiplatform-api.json index 159b3a53d7a..c1457f8e35e 100644 --- a/aiplatform/v1beta1/aiplatform-api.json +++ b/aiplatform/v1beta1/aiplatform-api.json @@ -4182,8 +4182,354 @@ } }, "featureGroups": { + "methods": { + "create": { + "description": "Creates a new FeatureGroup in a given project and location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureGroups.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "featureGroupId": { + "description": "Required. The ID to use for this FeatureGroup, which will become the final component of the FeatureGroup's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the project and location.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the Location to create FeatureGroups. Format: `projects/{project}/locations/{location}'`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/featureGroups", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureGroup" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single FeatureGroup.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.featureGroups.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "force": { + "description": "If set to true, any Features under this FeatureGroup will also be deleted. (Otherwise, the request will only work if the FeatureGroup has no Features.)", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. The name of the FeatureGroup to be deleted. Format: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single FeatureGroup.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.featureGroups.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the FeatureGroup resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureGroup" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists FeatureGroups in a given project and location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.featureGroups.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Lists the FeatureGroups that match the filter expression. The following fields are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality and key presence. Examples: * `create_time \u003e \"2020-01-01\" OR update_time \u003e \"2020-01-01\"` FeatureGroups created or updated after 2020-01-01. * `labels.env = \"prod\"` FeatureGroups with label \"env\" set to \"prod\".", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported Fields: * `create_time` * `update_time`", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of FeatureGroups to return. The service may return fewer than this value. If unspecified, at most 100 FeatureGroups will be returned. The maximum value is 100; any value greater than 100 will be coerced to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous FeatureGroupAdminService.ListFeatureGroups call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureGroupAdminService.ListFeatureGroups must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the Location to list FeatureGroups. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/featureGroups", + "response": { + "$ref": "GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the parameters of a single FeatureGroup.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}", + "httpMethod": "PATCH", + "id": "aiplatform.projects.locations.featureGroups.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. Name of the FeatureGroup. Format: `projects/{project}/locations/{location}/featureGroups/{featureGroup}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Field mask is used to specify the fields to be overwritten in the FeatureGroup 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`", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureGroup" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, "resources": { "features": { + "methods": { + "create": { + "description": "Creates a new Feature in a given FeatureGroup.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureGroups.features.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "featureId": { + "description": "Required. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType/FeatureGroup.", + "location": "query", + "type": "string" + }, + "parent": { + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/features", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1Feature" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single Feature.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.featureGroups.features.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single Feature.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.featureGroups.features.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the Feature resource. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1beta1Feature" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Features in a given FeatureGroup.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.featureGroups.features.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Lists the Features that match the filter expression. The following filters are supported: * `value_type`: Supports = and != comparisons. * `create_time`: Supports =, !=, \u003c, \u003e, \u003e=, and \u003c= comparisons. Values must be in RFC 3339 format. * `update_time`: Supports =, !=, \u003c, \u003e, \u003e=, and \u003c= comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality as well as key presence. Examples: * `value_type = DOUBLE` --\u003e Features whose type is DOUBLE. * `create_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\" OR update_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\"` --\u003e EntityTypes created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --\u003e Features having both (active: yes) and (env: prod) labels. * `labels.env: *` --\u003e Any Feature which has a label with 'env' as the key.", + "location": "query", + "type": "string" + }, + "latestStatsCount": { + "description": "If set, return the most recent ListFeaturesRequest.latest_stats_count of stats for each Feature in response. Valid value is [0, 10]. If number of stats exists \u003c ListFeaturesRequest.latest_stats_count, return all existing stats.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "orderBy": { + "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `feature_id` * `value_type` (Not supported for FeatureRegistry Feature) * `create_time` * `update_time`", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of Features to return. The service may return fewer than this value. If unspecified, at most 1000 Features will be returned. The maximum value is 1000; any value greater than 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous FeaturestoreService.ListFeatures call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeaturestoreService.ListFeatures must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the Location to list Features. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + "required": true, + "type": "string" + }, + "readMask": { + "description": "Mask specifying which fields to read.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+parent}/features", + "response": { + "$ref": "GoogleCloudAiplatformV1beta1ListFeaturesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the parameters of a single Feature.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}", + "httpMethod": "PATCH", + "id": "aiplatform.projects.locations.featureGroups.features.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` The last part feature is assigned by the client. The feature can be up to 64 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII digits 0-9 starting with a letter. The value will be unique given an entity type.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Field mask is used to specify the fields to be overwritten in the Features 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: * `description` * `labels` * `disable_monitoring`", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1Feature" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, "resources": { "operations": { "methods": { @@ -4311,140 +4657,639 @@ } } } - } + } + }, + "operations": { + "methods": { + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.featureGroups.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.featureGroups.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.featureGroups.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureGroups.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + }, + "timeout": { + "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + "format": "google-duration", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}:wait", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + }, + "featureOnlineStores": { + "methods": { + "create": { + "description": "Creates a new FeatureOnlineStore in a given project and location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureOnlineStores.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "featureOnlineStoreId": { + "description": "Required. The ID to use for this FeatureOnlineStore, which will become the final component of the FeatureOnlineStore's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the project and location.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the Location to create FeatureOnlineStores. Format: `projects/{project}/locations/{location}'`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/featureOnlineStores", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureOnlineStore" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not contain any FeatureViews.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.featureOnlineStores.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "force": { + "description": "If set to true, any FeatureViews and Features for this FeatureOnlineStore will also be deleted. (Otherwise, the request will only work if the FeatureOnlineStore has no FeatureViews.)", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. The name of the FeatureOnlineStore to be deleted. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single FeatureOnlineStore.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.featureOnlineStores.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the FeatureOnlineStore resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureOnlineStore" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists FeatureOnlineStores in a given project and location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.featureOnlineStores.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Lists the FeatureOnlineStores that match the filter expression. The following fields are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality and key presence. Examples: * `create_time \u003e \"2020-01-01\" OR update_time \u003e \"2020-01-01\"` FeatureOnlineStores created or updated after 2020-01-01. * `labels.env = \"prod\"` FeatureOnlineStores with label \"env\" set to \"prod\".", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported Fields: * `create_time` * `update_time`", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of FeatureOnlineStores to return. The service may return fewer than this value. If unspecified, at most 100 FeatureOnlineStores will be returned. The maximum value is 100; any value greater than 100 will be coerced to 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous FeatureOnlineStoreAdminService.ListFeatureOnlineStores call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureOnlineStoreAdminService.ListFeatureOnlineStores must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the Location to list FeatureOnlineStores. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/featureOnlineStores", + "response": { + "$ref": "GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] }, - "operations": { + "patch": { + "description": "Updates the parameters of a single FeatureOnlineStore.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}", + "httpMethod": "PATCH", + "id": "aiplatform.projects.locations.featureOnlineStores.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. Name of the FeatureOnlineStore. Format: `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Field mask is used to specify the fields to be overwritten in the FeatureOnlineStore 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: * `big_query_source` * `labels` * `sync_config`", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureOnlineStore" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "featureViews": { "methods": { + "create": { + "description": "Creates a new FeatureView in a given FeatureOnlineStore.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "featureViewId": { + "description": "Required. The ID to use for the FeatureView, which will become the final component of the FeatureView's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within a FeatureOnlineStore.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the FeatureOnlineStore to create FeatureViews. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + "required": true, + "type": "string" + }, + "runSyncImmediately": { + "description": "Immutable. If set to true, one on demand sync will be run immediately, regardless whether the FeatureView.sync_config is configured or not.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1beta1/{+parent}/featureViews", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureView" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "delete": { - "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations/{operationsId}", + "description": "Deletes a single FeatureView.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}", "httpMethod": "DELETE", - "id": "aiplatform.projects.locations.featureGroups.operations.delete", + "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.delete", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "The name of the operation resource to be deleted.", + "description": "Required. The name of the FeatureView to be deleted. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", "required": true, "type": "string" } }, "path": "v1beta1/{+name}", "response": { - "$ref": "GoogleProtobufEmpty" + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "fetchFeatureValues": { + "description": "Fetch feature values under a FeatureView.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}:fetchFeatureValues", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.fetchFeatureValues", + "parameterOrder": [ + "featureView" + ], + "parameters": { + "featureView": { + "description": "Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+featureView}:fetchFeatureValues", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "get": { - "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations/{operationsId}", + "description": "Gets details of a single FeatureView.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}", "httpMethod": "GET", - "id": "aiplatform.projects.locations.featureGroups.operations.get", + "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.get", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "The name of the operation resource.", + "description": "Required. The name of the FeatureView resource. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", "required": true, "type": "string" } }, "path": "v1beta1/{+name}", "response": { - "$ref": "GoogleLongrunningOperation" + "$ref": "GoogleCloudAiplatformV1beta1FeatureView" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, "list": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations", + "description": "Lists FeatureViews in a given FeatureOnlineStore.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews", "httpMethod": "GET", - "id": "aiplatform.projects.locations.featureGroups.operations.list", + "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.list", "parameterOrder": [ - "name" + "parent" ], "parameters": { "filter": { - "description": "The standard list filter.", + "description": "Lists the FeatureViews that match the filter expression. The following filters are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003e=`, and `\u003c=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003e=`, and `\u003c=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality as well as key presence. Examples: * `create_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\" OR update_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\"` --\u003e FeatureViews created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --\u003e FeatureViews having both (active: yes) and (env: prod) labels. * `labels.env: *` --\u003e Any FeatureView which has a label with 'env' as the key.", "location": "query", "type": "string" }, - "name": { - "description": "The name of the operation's parent resource.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", - "required": true, + "orderBy": { + "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `feature_view_id` * `create_time` * `update_time`", + "location": "query", "type": "string" }, "pageSize": { - "description": "The standard list page size.", + "description": "The maximum number of FeatureViews to return. The service may return fewer than this value. If unspecified, at most 1000 FeatureViews will be returned. The maximum value is 1000; any value greater than 1000 will be coerced to 1000.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "The standard list page token.", + "description": "A page token, received from a previous FeatureOnlineStoreAdminService.ListFeatureViews call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureOnlineStoreAdminService.ListFeatureViews must match the call that provided the page token.", "location": "query", "type": "string" + }, + "parent": { + "description": "Required. The resource name of the FeatureOnlineStore to list FeatureViews. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + "required": true, + "type": "string" } }, - "path": "v1beta1/{+name}/operations", + "path": "v1beta1/{+parent}/featureViews", "response": { - "$ref": "GoogleLongrunningListOperationsResponse" + "$ref": "GoogleCloudAiplatformV1beta1ListFeatureViewsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] }, - "wait": { - "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", - "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations/{operationsId}:wait", - "httpMethod": "POST", - "id": "aiplatform.projects.locations.featureGroups.operations.wait", + "patch": { + "description": "Updates the parameters of a single FeatureView.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}", + "httpMethod": "PATCH", + "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.patch", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "The name of the operation resource to wait on.", + "description": "Output only. Name of the FeatureView. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", + "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", "required": true, "type": "string" }, - "timeout": { - "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", - "format": "google-duration", + "updateMask": { + "description": "Field mask is used to specify the fields to be overwritten in the FeatureView 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`", + "format": "google-fieldmask", "location": "query", "type": "string" } - }, - "path": "v1beta1/{+name}:wait", - "response": { - "$ref": "GoogleLongrunningOperation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - } - } - }, - "featureOnlineStores": { - "resources": { - "featureViews": { - "resources": { + }, + "path": "v1beta1/{+name}", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureView" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "searchNearestEntities": { + "description": "Search the nearest entities under a FeatureView. Search only works for indexable feature view; if a feature view isn't indexable, returns Invalid argument response.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}:searchNearestEntities", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.searchNearestEntities", + "parameterOrder": [ + "featureView" + ], + "parameters": { + "featureView": { + "description": "Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+featureView}:searchNearestEntities", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "sync": { + "description": "Triggers on-demand sync for the FeatureView.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}:sync", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.sync", + "parameterOrder": [ + "featureView" + ], + "parameters": { + "featureView": { + "description": "Required. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+featureView}:sync", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1SyncFeatureViewRequest" + }, + "response": { + "$ref": "GoogleCloudAiplatformV1beta1SyncFeatureViewResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "featureViewSyncs": { + "methods": { + "get": { + "description": "Gets details of a single FeatureViewSync.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/featureViewSyncs/{featureViewSyncsId}", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the FeatureViewSync resource. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/featureViewSyncs/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureViewSync" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists FeatureViewSyncs in a given FeatureView.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/featureViewSyncs", + "httpMethod": "GET", + "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Lists the FeatureViewSyncs that match the filter expression. The following filters are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003e=`, and `\u003c=` comparisons. Values must be in RFC 3339 format. Examples: * `create_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\"` --\u003e FeatureViewSyncs created after 2020-01-31T15:30:00.000000Z.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `create_time`", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of FeatureViewSyncs to return. The service may return fewer than this value. If unspecified, at most 1000 FeatureViewSyncs will be returned. The maximum value is 1000; any value greater than 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous FeatureOnlineStoreAdminService.ListFeatureViewSyncs call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureOnlineStoreAdminService.ListFeatureViewSyncs must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The resource name of the FeatureView to list FeatureViewSyncs. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/featureViewSyncs", + "response": { + "$ref": "GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "operations": { "methods": { "delete": { @@ -5508,12 +6353,11 @@ ], "parameters": { "featureId": { - "description": "Required. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType .", + "description": "Required. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType/FeatureGroup.", "location": "query", "type": "string" }, "parent": { - "description": "Required. The resource name of the EntityType to create a Feature. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", "required": true, @@ -5541,7 +6385,7 @@ ], "parameters": { "name": { - "description": "Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`", + "description": "Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", "required": true, @@ -5566,7 +6410,7 @@ ], "parameters": { "name": { - "description": "Required. The name of the Feature resource. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", + "description": "Required. The name of the Feature resource. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", "required": true, @@ -5618,7 +6462,7 @@ "type": "string" }, "parent": { - "description": "Required. The resource name of the Location to list Features. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", + "description": "Required. The resource name of the Location to list Features. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", "required": true, @@ -10285,7 +11129,7 @@ ], "parameters": { "name": { - "description": "Required. The name of the NotebookRuntime resource. Format: `projects/{project}/locations/{location}/notebookRuntimes/{notebook_runtime}`", + "description": "Required. The name of the resource requesting the OAuth2 token. Format: `projects/{project}/locations/{location}/notebookRuntimes/{notebook_runtime}` `projects/{project}/locations/{location}/notebookExecutionJobs/{notebook_execution_job}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+$", "required": true, @@ -10313,7 +11157,7 @@ ], "parameters": { "name": { - "description": "Required. The name of the NotebookRuntime resource. Format: `projects/{project}/locations/{location}/notebookRuntimes/{notebook_runtime}`", + "description": "Required. The name of the NotebookExecutionJob resource. Format: `projects/{project}/locations/{location}/notebookExecutionJobs/{notebook_execution_jobs}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+$", "required": true, @@ -10322,10 +11166,10 @@ }, "path": "v1beta1/{+name}:reportEvent", "request": { - "$ref": "GoogleCloudAiplatformV1beta1ReportRuntimeEventRequest" + "$ref": "GoogleCloudAiplatformV1beta1ReportExecutionEventRequest" }, "response": { - "$ref": "GoogleCloudAiplatformV1beta1ReportRuntimeEventResponse" + "$ref": "GoogleCloudAiplatformV1beta1ReportExecutionEventResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -10459,7 +11303,7 @@ ], "parameters": { "filter": { - "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `display_name` supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `notebookRuntimeTemplate=notebookRuntimeTemplate123` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"`", + "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `display_name` supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. * `notebookRuntimeType` supports = and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. Some examples: * `notebookRuntimeTemplate=notebookRuntimeTemplate123` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"` * `notebookRuntimeType=USER_DEFINED`", "location": "query", "type": "string" }, @@ -10627,7 +11471,7 @@ ], "parameters": { "name": { - "description": "Required. The name of the NotebookRuntime resource. Format: `projects/{project}/locations/{location}/notebookRuntimes/{notebook_runtime}`", + "description": "Required. The name of the resource requesting the OAuth2 token. Format: `projects/{project}/locations/{location}/notebookRuntimes/{notebook_runtime}` `projects/{project}/locations/{location}/notebookExecutionJobs/{notebook_execution_job}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+$", "required": true, @@ -10680,7 +11524,7 @@ ], "parameters": { "filter": { - "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntime` supports = and !=. `notebookRuntime` represents the NotebookRuntime ID, i.e. the last segment of the NotebookRuntime's resource name. * `displayName` supports = and != and regex. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `healthState` supports = and !=. healthState enum: [HEALTHY, UNHEALTHY, HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. runtimeState enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED, STOPPED, BEING_UPGRADED]. * `runtimeUser` supports = and !=. * API version is UI only: `uiState` supports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED, UI_RESOURCE_STATE_CREATION_FAILED]. Some examples: * `notebookRuntime=\"notebookRuntime123\"` * `displayName=\"myDisplayName\"` and `displayName=~\"myDisplayNameRegex\"` * `notebookRuntimeTemplate=\"notebookRuntimeTemplate321\"` * `healthState=HEALTHY` * `runtimeState=RUNNING` * `runtimeUser=\"test@google.com\"` * `uiState=UI_RESOURCE_STATE_BEING_DELETED`", + "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntime` supports = and !=. `notebookRuntime` represents the NotebookRuntime ID, i.e. the last segment of the NotebookRuntime's resource name. * `displayName` supports = and != and regex. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `healthState` supports = and !=. healthState enum: [HEALTHY, UNHEALTHY, HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. runtimeState enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED, STOPPED, BEING_UPGRADED]. * `runtimeUser` supports = and !=. * API version is UI only: `uiState` supports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED, UI_RESOURCE_STATE_CREATION_FAILED]. * `notebookRuntimeType` supports = and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. Some examples: * `notebookRuntime=\"notebookRuntime123\"` * `displayName=\"myDisplayName\"` and `displayName=~\"myDisplayNameRegex\"` * `notebookRuntimeTemplate=\"notebookRuntimeTemplate321\"` * `healthState=HEALTHY` * `runtimeState=RUNNING` * `runtimeUser=\"test@google.com\"` * `uiState=UI_RESOURCE_STATE_BEING_DELETED` * `notebookRuntimeType=USER_DEFINED`", "location": "query", "type": "string" }, @@ -15174,13 +16018,81 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "list": { + "description": "Lists publisher models in Model Garden.", + "flatPath": "v1beta1/publishers/{publishersId}/models", + "httpMethod": "GET", + "id": "aiplatform.publishers.models.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. The standard list filter.", + "location": "query", + "type": "string" + }, + "languageCode": { + "description": "Optional. The IETF BCP-47 language code representing the language in which the publisher models' text information should be written in (see go/bcp47). If not set, by default English (en).", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The standard list page token. Typically obtained via ListPublisherModelsResponse.next_page_token of the previous ModelGardenService.ListPublisherModels call.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The name of the Publisher from which to list the PublisherModels. Format: `publishers/{publisher}`", + "location": "path", + "pattern": "^publishers/[^/]+$", + "required": true, + "type": "string" + }, + "view": { + "description": "Optional. PublisherModel view specifying which fields to read.", + "enum": [ + "PUBLISHER_MODEL_VIEW_UNSPECIFIED", + "PUBLISHER_MODEL_VIEW_BASIC", + "PUBLISHER_MODEL_VIEW_FULL", + "PUBLISHER_MODEL_VERSION_VIEW_BASIC" + ], + "enumDescriptions": [ + "The default / unset value. The API will default to the BASIC view.", + "Include basic metadata about the publisher model, but not the full contents.", + "Include everything.", + "Include: VersionId, ModelVersionExternalName, and SupportedActions." + ], + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+parent}/models", + "response": { + "$ref": "GoogleCloudAiplatformV1beta1ListPublisherModelsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } } } } }, - "revision": "20230914", + "revision": "20230929", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -16668,6 +17580,28 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1CreateFeatureGroupOperationMetadata": { + "description": "Details of operations that perform create FeatureGroup.", + "id": "GoogleCloudAiplatformV1beta1CreateFeatureGroupOperationMetadata", + "properties": { + "genericMetadata": { + "$ref": "GoogleCloudAiplatformV1beta1GenericOperationMetadata", + "description": "Operation metadata for FeatureGroup." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1CreateFeatureOnlineStoreOperationMetadata": { + "description": "Details of operations that perform create FeatureOnlineStore.", + "id": "GoogleCloudAiplatformV1beta1CreateFeatureOnlineStoreOperationMetadata", + "properties": { + "genericMetadata": { + "$ref": "GoogleCloudAiplatformV1beta1GenericOperationMetadata", + "description": "Operation metadata for FeatureOnlineStore." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1CreateFeatureOperationMetadata": { "description": "Details of operations that perform create Feature.", "id": "GoogleCloudAiplatformV1beta1CreateFeatureOperationMetadata", @@ -16680,7 +17614,7 @@ "type": "object" }, "GoogleCloudAiplatformV1beta1CreateFeatureRequest": { - "description": "Request message for FeaturestoreService.CreateFeature.", + "description": "Request message for FeaturestoreService.CreateFeature. Request message for FeatureRegistryService.CreateFeature.", "id": "GoogleCloudAiplatformV1beta1CreateFeatureRequest", "properties": { "feature": { @@ -16688,16 +17622,26 @@ "description": "Required. The Feature to create." }, "featureId": { - "description": "Required. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType .", + "description": "Required. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType/FeatureGroup.", "type": "string" }, "parent": { - "description": "Required. The resource name of the EntityType to create a Feature. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", "type": "string" } }, "type": "object" }, + "GoogleCloudAiplatformV1beta1CreateFeatureViewOperationMetadata": { + "description": "Details of operations that perform create FeatureView.", + "id": "GoogleCloudAiplatformV1beta1CreateFeatureViewOperationMetadata", + "properties": { + "genericMetadata": { + "$ref": "GoogleCloudAiplatformV1beta1GenericOperationMetadata", + "description": "Operation metadata for FeatureView Create." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1CreateFeaturestoreOperationMetadata": { "description": "Details of operations that perform create Featurestore.", "id": "GoogleCloudAiplatformV1beta1CreateFeaturestoreOperationMetadata", @@ -16787,6 +17731,17 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1CreateRegistryFeatureOperationMetadata": { + "description": "Details of operations that perform create FeatureGroup.", + "id": "GoogleCloudAiplatformV1beta1CreateRegistryFeatureOperationMetadata", + "properties": { + "genericMetadata": { + "$ref": "GoogleCloudAiplatformV1beta1GenericOperationMetadata", + "description": "Operation metadata for Feature." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1CreateSolverOperationMetadata": { "description": "Runtime operation information for SolverService.CreateSolver.", "id": "GoogleCloudAiplatformV1beta1CreateSolverOperationMetadata", @@ -19211,75 +20166,252 @@ "BYTES" ], "enumDescriptions": [ - "The value type is unspecified.", - "Used for Feature that is a boolean.", - "Used for Feature that is a list of boolean.", - "Used for Feature that is double.", - "Used for Feature that is a list of double.", - "Used for Feature that is INT64.", - "Used for Feature that is a list of INT64.", - "Used for Feature that is string.", - "Used for Feature that is a list of String.", - "Used for Feature that is bytes." + "The value type is unspecified.", + "Used for Feature that is a boolean.", + "Used for Feature that is a list of boolean.", + "Used for Feature that is double.", + "Used for Feature that is a list of double.", + "Used for Feature that is INT64.", + "Used for Feature that is a list of INT64.", + "Used for Feature that is string.", + "Used for Feature that is a list of String.", + "Used for Feature that is bytes." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1FeatureGroup": { + "description": "Vertex AI Feature Group.", + "id": "GoogleCloudAiplatformV1beta1FeatureGroup", + "properties": { + "bigQuery": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureGroupBigQuery", + "description": "Indicates that features for this group come from BigQuery." + }, + "createTime": { + "description": "Output only. Timestamp when this FeatureGroup was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Optional. Description of the FeatureGroup.", + "type": "string" + }, + "etag": { + "description": "Optional. Used to perform consistent read-modify-write updates. If not set, a blind \"overwrite\" update happens.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The labels with user-defined metadata to organize your FeatureGroup. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information on and examples of labels. No more than 64 user labels can be associated with one FeatureGroup(System labels are excluded).\" System reserved label keys are prefixed with \"aiplatform.googleapis.com/\" and are immutable.", + "type": "object" + }, + "name": { + "description": "Output only. Name of the FeatureGroup. Format: `projects/{project}/locations/{location}/featureGroups/{featureGroup}`", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. Timestamp when this FeatureGroup was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1FeatureGroupBigQuery": { + "description": "Input source type for BigQuery Tables and Views.", + "id": "GoogleCloudAiplatformV1beta1FeatureGroupBigQuery", + "properties": { + "bigQuerySource": { + "$ref": "GoogleCloudAiplatformV1beta1BigQuerySource", + "description": "Required. Immutable. The BigQuery source URI that points to either a BigQuery Table or View." + }, + "entityIdColumns": { + "description": "Optional. Columns to construct entity_id / row keys. Currently only supports 1 entity_id_column. If not provided defaults to `entity_id`.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1FeatureMonitoringStatsAnomaly": { + "description": "A list of historical SnapshotAnalysis or ImportFeaturesAnalysis stats requested by user, sorted by FeatureStatsAnomaly.start_time descending.", + "id": "GoogleCloudAiplatformV1beta1FeatureMonitoringStatsAnomaly", + "properties": { + "featureStatsAnomaly": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureStatsAnomaly", + "description": "Output only. The stats and anomalies generated at specific timestamp.", + "readOnly": true + }, + "objective": { + "description": "Output only. The objective for each stats.", + "enum": [ + "OBJECTIVE_UNSPECIFIED", + "IMPORT_FEATURE_ANALYSIS", + "SNAPSHOT_ANALYSIS" + ], + "enumDescriptions": [ + "If it's OBJECTIVE_UNSPECIFIED, monitoring_stats will be empty.", + "Stats are generated by Import Feature Analysis.", + "Stats are generated by Snapshot Analysis." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1FeatureNoiseSigma": { + "description": "Noise sigma by features. Noise sigma represents the standard deviation of the gaussian kernel that will be used to add noise to interpolated inputs prior to computing gradients.", + "id": "GoogleCloudAiplatformV1beta1FeatureNoiseSigma", + "properties": { + "noiseSigma": { + "description": "Noise sigma per feature. No noise is added to features that are not set.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureNoiseSigmaNoiseSigmaForFeature" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1FeatureNoiseSigmaNoiseSigmaForFeature": { + "description": "Noise sigma for a single feature.", + "id": "GoogleCloudAiplatformV1beta1FeatureNoiseSigmaNoiseSigmaForFeature", + "properties": { + "name": { + "description": "The name of the input feature for which noise sigma is provided. The features are defined in explanation metadata inputs.", + "type": "string" + }, + "sigma": { + "description": "This represents the standard deviation of the Gaussian kernel that will be used to add noise to the feature prior to computing gradients. Similar to noise_sigma but represents the noise added to the current feature. Defaults to 0.1.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1FeatureOnlineStore": { + "description": "Vertex AI Feature Online Store provides a centralized repository for serving ML features and embedding indexes at low latency. The Feature Online Store is a top-level container.", + "id": "GoogleCloudAiplatformV1beta1FeatureOnlineStore", + "properties": { + "bigtable": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureOnlineStoreBigtable", + "description": "Contains settings for the Cloud Bigtable instance that will be created to serve featureValues for all FeatureViews under this FeatureOnlineStore." + }, + "createTime": { + "description": "Output only. Timestamp when this FeatureOnlineStore was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "dedicatedServingEndpoint": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureOnlineStoreDedicatedServingEndpoint", + "description": "Optional. The dedicated serving endpoint for this FeatureOnlineStore, which is different from common Vertex service endpoint." + }, + "embeddingManagement": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureOnlineStoreEmbeddingManagement", + "description": "Optional. The settings for embedding management in FeatureOnlineStore." + }, + "etag": { + "description": "Optional. Used to perform consistent read-modify-write updates. If not set, a blind \"overwrite\" update happens.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The labels with user-defined metadata to organize your FeatureOnlineStore. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information on and examples of labels. No more than 64 user labels can be associated with one FeatureOnlineStore(System labels are excluded).\" System reserved label keys are prefixed with \"aiplatform.googleapis.com/\" and are immutable.", + "type": "object" + }, + "name": { + "description": "Output only. Name of the FeatureOnlineStore. Format: `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}`", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. State of the featureOnlineStore.", + "enum": [ + "STATE_UNSPECIFIED", + "STABLE", + "UPDATING" + ], + "enumDescriptions": [ + "Default value. This value is unused.", + "State when the featureOnlineStore configuration is not being updated and the fields reflect the current configuration of the featureOnlineStore. The featureOnlineStore is usable in this state.", + "The state of the featureOnlineStore configuration when it is being updated. During an update, the fields reflect either the original configuration or the updated configuration of the featureOnlineStore. The featureOnlineStore is still usable in this state." ], + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. Timestamp when this FeatureOnlineStore was last updated.", + "format": "google-datetime", + "readOnly": true, "type": "string" } }, "type": "object" }, - "GoogleCloudAiplatformV1beta1FeatureMonitoringStatsAnomaly": { - "description": "A list of historical SnapshotAnalysis or ImportFeaturesAnalysis stats requested by user, sorted by FeatureStatsAnomaly.start_time descending.", - "id": "GoogleCloudAiplatformV1beta1FeatureMonitoringStatsAnomaly", + "GoogleCloudAiplatformV1beta1FeatureOnlineStoreBigtable": { + "id": "GoogleCloudAiplatformV1beta1FeatureOnlineStoreBigtable", "properties": { - "featureStatsAnomaly": { - "$ref": "GoogleCloudAiplatformV1beta1FeatureStatsAnomaly", - "description": "Output only. The stats and anomalies generated at specific timestamp.", - "readOnly": true - }, - "objective": { - "description": "Output only. The objective for each stats.", - "enum": [ - "OBJECTIVE_UNSPECIFIED", - "IMPORT_FEATURE_ANALYSIS", - "SNAPSHOT_ANALYSIS" - ], - "enumDescriptions": [ - "If it's OBJECTIVE_UNSPECIFIED, monitoring_stats will be empty.", - "Stats are generated by Import Feature Analysis.", - "Stats are generated by Snapshot Analysis." - ], - "readOnly": true, - "type": "string" + "autoScaling": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureOnlineStoreBigtableAutoScaling", + "description": "Required. Autoscaling config applied to Bigtable Instance." } }, "type": "object" }, - "GoogleCloudAiplatformV1beta1FeatureNoiseSigma": { - "description": "Noise sigma by features. Noise sigma represents the standard deviation of the gaussian kernel that will be used to add noise to interpolated inputs prior to computing gradients.", - "id": "GoogleCloudAiplatformV1beta1FeatureNoiseSigma", + "GoogleCloudAiplatformV1beta1FeatureOnlineStoreBigtableAutoScaling": { + "id": "GoogleCloudAiplatformV1beta1FeatureOnlineStoreBigtableAutoScaling", "properties": { - "noiseSigma": { - "description": "Noise sigma per feature. No noise is added to features that are not set.", - "items": { - "$ref": "GoogleCloudAiplatformV1beta1FeatureNoiseSigmaNoiseSigmaForFeature" - }, - "type": "array" + "cpuUtilizationTarget": { + "description": "Optional. A percentage of the cluster's CPU capacity. Can be from 10% to 80%. When a cluster's CPU utilization exceeds the target that you have set, Bigtable immediately adds nodes to the cluster. When CPU utilization is substantially lower than the target, Bigtable removes nodes. If not set will default to 50%.", + "format": "int32", + "type": "integer" + }, + "maxNodeCount": { + "description": "Required. The maximum number of nodes to scale up to. Must be greater than or equal to min_node_count, and less than or equal to 10 times of 'min_node_count'.", + "format": "int32", + "type": "integer" + }, + "minNodeCount": { + "description": "Required. The minimum number of nodes to scale down to. Must be greater than or equal to 1.", + "format": "int32", + "type": "integer" } }, "type": "object" }, - "GoogleCloudAiplatformV1beta1FeatureNoiseSigmaNoiseSigmaForFeature": { - "description": "Noise sigma for a single feature.", - "id": "GoogleCloudAiplatformV1beta1FeatureNoiseSigmaNoiseSigmaForFeature", + "GoogleCloudAiplatformV1beta1FeatureOnlineStoreDedicatedServingEndpoint": { + "description": "The dedicated serving endpoint for this FeatureOnlineStore.", + "id": "GoogleCloudAiplatformV1beta1FeatureOnlineStoreDedicatedServingEndpoint", "properties": { - "name": { - "description": "The name of the input feature for which noise sigma is provided. The features are defined in explanation metadata inputs.", + "publicEndpointDomainName": { + "description": "Output only. This field will be populated with the domain name to use for this FeatureOnlineStore", + "readOnly": true, "type": "string" - }, - "sigma": { - "description": "This represents the standard deviation of the Gaussian kernel that will be used to add noise to the feature prior to computing gradients. Similar to noise_sigma but represents the noise added to the current feature. Defaults to 0.1.", - "format": "float", - "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1FeatureOnlineStoreEmbeddingManagement": { + "description": "Contains settings for embedding management.", + "id": "GoogleCloudAiplatformV1beta1FeatureOnlineStoreEmbeddingManagement", + "properties": { + "enabled": { + "description": "Optional. Immutable. Whether to enable embedding management in this FeatureOnlineStore. It's immutable after creation to ensure the FeatureOnlineStore availability.", + "type": "boolean" } }, "type": "object" @@ -19430,6 +20562,211 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1FeatureView": { + "description": "FeatureView is representation of values that the FeatureOnlineStore will serve based on its syncConfig.", + "id": "GoogleCloudAiplatformV1beta1FeatureView", + "properties": { + "bigQuerySource": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureViewBigQuerySource", + "description": "Optional. Configures how data is supposed to be extracted from a BigQuery source to be loaded onto the FeatureOnlineStore." + }, + "createTime": { + "description": "Output only. Timestamp when this FeatureView was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "etag": { + "description": "Optional. Used to perform consistent read-modify-write updates. If not set, a blind \"overwrite\" update happens.", + "type": "string" + }, + "featureRegistrySource": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureViewFeatureRegistrySource", + "description": "Optional. Configures the features from a Feature Registry source that need to be loaded onto the FeatureOnlineStore." + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. The labels with user-defined metadata to organize your FeatureViews. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information on and examples of labels. No more than 64 user labels can be associated with one FeatureOnlineStore(System labels are excluded).\" System reserved label keys are prefixed with \"aiplatform.googleapis.com/\" and are immutable.", + "type": "object" + }, + "name": { + "description": "Output only. Name of the FeatureView. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", + "readOnly": true, + "type": "string" + }, + "syncConfig": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureViewSyncConfig", + "description": "Configures when data is to be synced/updated for this FeatureView. At the end of the sync the latest featureValues for each entityId of this FeatureView are made ready for online serving." + }, + "updateTime": { + "description": "Output only. Timestamp when this FeatureView was last updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "vectorSearchConfig": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureViewVectorSearchConfig", + "description": "Optional. Configuration for vector search. It contains the required configurations to create an index from source data, so that approximate nearest neighbor (a.k.a ANN) algorithms search can be performed during online serving." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1FeatureViewBigQuerySource": { + "id": "GoogleCloudAiplatformV1beta1FeatureViewBigQuerySource", + "properties": { + "entityIdColumns": { + "description": "Required. Columns to construct entity_id / row keys. Start by supporting 1 only.", + "items": { + "type": "string" + }, + "type": "array" + }, + "uri": { + "description": "Required. The Bigquery View URI that will be materialized on each sync trigger based on FeatureView.SyncConfig.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1FeatureViewFeatureRegistrySource": { + "description": "A Feature Registry source for features that need to be synced to Online Store.", + "id": "GoogleCloudAiplatformV1beta1FeatureViewFeatureRegistrySource", + "properties": { + "featureGroups": { + "description": "Required. List of features that need to be synced to Online Store.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureViewFeatureRegistrySourceFeatureGroup" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1FeatureViewFeatureRegistrySourceFeatureGroup": { + "description": "Features belonging to a single feature group that will be synced to Online Store.", + "id": "GoogleCloudAiplatformV1beta1FeatureViewFeatureRegistrySourceFeatureGroup", + "properties": { + "featureGroupId": { + "description": "Required. Identifier of the feature group.", + "type": "string" + }, + "featureIds": { + "description": "Required. Identifiers of features under the feature group.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1FeatureViewSync": { + "description": "FeatureViewSync is a representation of sync operation which copies data from data source to Feature View in Online Store.", + "id": "GoogleCloudAiplatformV1beta1FeatureViewSync", + "properties": { + "createTime": { + "description": "Output only. Time when this FeatureViewSync is created. Creation of a FeatureViewSync means that the job is pending / waiting for sufficient resources but may not have started the actual data transfer yet.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "finalStatus": { + "$ref": "GoogleRpcStatus", + "description": "Output only. Final status of the FeatureViewSync.", + "readOnly": true + }, + "name": { + "description": "Output only. Name of the FeatureViewSync. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}`", + "readOnly": true, + "type": "string" + }, + "runTime": { + "$ref": "GoogleTypeInterval", + "description": "Output only. Time when this FeatureViewSync is finished.", + "readOnly": true + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1FeatureViewSyncConfig": { + "id": "GoogleCloudAiplatformV1beta1FeatureViewSyncConfig", + "properties": { + "cron": { + "description": "Cron schedule (https://en.wikipedia.org/wiki/Cron) to launch scheduled runs. To explicitly set a timezone to the cron tab, apply a prefix in the cron tab: \"CRON_TZ=${IANA_TIME_ZONE}\" or \"TZ=${IANA_TIME_ZONE}\". The ${IANA_TIME_ZONE} may only be a valid string from IANA time zone database. For example, \"CRON_TZ=America/New_York 1 * * * *\", or \"TZ=America/New_York 1 * * * *\".", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1FeatureViewVectorSearchConfig": { + "description": "Configuration for vector search.", + "id": "GoogleCloudAiplatformV1beta1FeatureViewVectorSearchConfig", + "properties": { + "bruteForceConfig": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureViewVectorSearchConfigBruteForceConfig", + "description": "Optional. Configuration options for using brute force search, which simply implements the standard linear search in the database for each query. It is primarily meant for benchmarking and to generate the ground truth for approximate search." + }, + "crowdingColumn": { + "description": "Optional. Column of crowding. This column contains crowding attribute which is a constraint on a neighbor list produced by nearest neighbor search requiring that no more than some value k' of the k neighbors returned have the same value of crowding_attribute.", + "type": "string" + }, + "distanceMeasureType": { + "description": "Optional. The distance measure used in nearest neighbor search.", + "enum": [ + "DISTANCE_MEASURE_TYPE_UNSPECIFIED", + "SQUARED_L2_DISTANCE", + "COSINE_DISTANCE", + "DOT_PRODUCT_DISTANCE" + ], + "enumDescriptions": [ + "Should not be set.", + "Euclidean (L_2) Distance.", + "Cosine Distance. Defined as 1 - cosine similarity. We strongly suggest using DOT_PRODUCT_DISTANCE + UNIT_L2_NORM instead of COSINE distance. Our algorithms have been more optimized for DOT_PRODUCT distance which, when combined with UNIT_L2_NORM, is mathematically equivalent to COSINE distance and results in the same ranking.", + "Dot Product Distance. Defined as a negative of the dot product." + ], + "type": "string" + }, + "embeddingColumn": { + "description": "Optional. Column of embedding. This column contains the source data to create index for vector search. embedding_column must be set when using vector search.", + "type": "string" + }, + "embeddingDimension": { + "description": "Optional. The number of dimensions of the input embedding.", + "format": "int32", + "type": "integer" + }, + "filterColumns": { + "description": "Optional. Columns of features that're used to filter vector search results.", + "items": { + "type": "string" + }, + "type": "array" + }, + "treeAhConfig": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureViewVectorSearchConfigTreeAHConfig", + "description": "Optional. Configuration options for the tree-AH algorithm (Shallow tree + Asymmetric Hashing). Please refer to this paper for more details: https://arxiv.org/abs/1908.10396" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1FeatureViewVectorSearchConfigBruteForceConfig": { + "id": "GoogleCloudAiplatformV1beta1FeatureViewVectorSearchConfigBruteForceConfig", + "properties": {}, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1FeatureViewVectorSearchConfigTreeAHConfig": { + "id": "GoogleCloudAiplatformV1beta1FeatureViewVectorSearchConfigTreeAHConfig", + "properties": { + "leafNodeEmbeddingCount": { + "description": "Optional. Number of embeddings on each leaf node. The default value is 1000 if not set.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1Featurestore": { "description": "Vertex AI Feature Store provides a centralized repository for organizing, storing, and serving ML features. The Featurestore is a top-level container for your features and their values.", "id": "GoogleCloudAiplatformV1beta1Featurestore", @@ -19610,24 +20947,97 @@ }, "type": "object" }, - "GoogleCloudAiplatformV1beta1FeaturestoreOnlineServingConfigScaling": { - "description": "Online serving scaling configuration. If min_node_count and max_node_count are set to the same value, the cluster will be configured with the fixed number of node (no auto-scaling).", - "id": "GoogleCloudAiplatformV1beta1FeaturestoreOnlineServingConfigScaling", + "GoogleCloudAiplatformV1beta1FeaturestoreOnlineServingConfigScaling": { + "description": "Online serving scaling configuration. If min_node_count and max_node_count are set to the same value, the cluster will be configured with the fixed number of node (no auto-scaling).", + "id": "GoogleCloudAiplatformV1beta1FeaturestoreOnlineServingConfigScaling", + "properties": { + "cpuUtilizationTarget": { + "description": "Optional. The cpu utilization that the Autoscaler should be trying to achieve. This number is on a scale from 0 (no utilization) to 100 (total utilization), and is limited between 10 and 80. When a cluster's CPU utilization exceeds the target that you have set, Bigtable immediately adds nodes to the cluster. When CPU utilization is substantially lower than the target, Bigtable removes nodes. If not set or set to 0, default to 50.", + "format": "int32", + "type": "integer" + }, + "maxNodeCount": { + "description": "The maximum number of nodes to scale up to. Must be greater than min_node_count, and less than or equal to 10 times of 'min_node_count'.", + "format": "int32", + "type": "integer" + }, + "minNodeCount": { + "description": "Required. The minimum number of nodes to scale down to. Must be greater than or equal to 1.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest": { + "description": "Request message for FeatureOnlineStoreService.FetchFeatureValues. All the features under the requested feature view will be returned.", + "id": "GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest", + "properties": { + "format": { + "description": "Specify response data format. If not set, KeyValue format will be used.", + "enum": [ + "FORMAT_UNSPECIFIED", + "KEY_VALUE", + "PROTO_STRUCT" + ], + "enumDescriptions": [ + "Not set. Will be treated as the KeyValue format.", + "Return response data in key-value format.", + "Return response data in proto Struct format." + ], + "type": "string" + }, + "id": { + "description": "Simple ID. The whole string will be used as is to identify Entity to fetch feature values for.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse": { + "description": "Response message for FeatureOnlineStoreService.FetchFeatureValues", + "id": "GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse", + "properties": { + "keyValues": { + "$ref": "GoogleCloudAiplatformV1beta1FetchFeatureValuesResponseFeatureNameValuePairList", + "description": "Feature values in KeyValue format." + }, + "protoStruct": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Feature values in proto Struct format.", + "type": "object" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1FetchFeatureValuesResponseFeatureNameValuePairList": { + "description": "Response structure in the format of key (feature name) and (feature) value pair.", + "id": "GoogleCloudAiplatformV1beta1FetchFeatureValuesResponseFeatureNameValuePairList", + "properties": { + "features": { + "description": "List of feature names and values.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair": { + "description": "Feature name \u0026 value pair.", + "id": "GoogleCloudAiplatformV1beta1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair", "properties": { - "cpuUtilizationTarget": { - "description": "Optional. The cpu utilization that the Autoscaler should be trying to achieve. This number is on a scale from 0 (no utilization) to 100 (total utilization), and is limited between 10 and 80. When a cluster's CPU utilization exceeds the target that you have set, Bigtable immediately adds nodes to the cluster. When CPU utilization is substantially lower than the target, Bigtable removes nodes. If not set or set to 0, default to 50.", - "format": "int32", - "type": "integer" - }, - "maxNodeCount": { - "description": "The maximum number of nodes to scale up to. Must be greater than min_node_count, and less than or equal to 10 times of 'min_node_count'.", - "format": "int32", - "type": "integer" + "name": { + "description": "Feature short name.", + "type": "string" }, - "minNodeCount": { - "description": "Required. The minimum number of nodes to scale down to. Must be greater than or equal to 1.", - "format": "int32", - "type": "integer" + "value": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureValue", + "description": "Feature value." } }, "type": "object" @@ -19861,6 +21271,17 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1GenieSource": { + "description": "Contains information about the source of the models generated from Generative AI Studio.", + "id": "GoogleCloudAiplatformV1beta1GenieSource", + "properties": { + "baseModelUri": { + "description": "Required. The public base model URI.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1HyperparameterTuningJob": { "description": "Represents a HyperparameterTuningJob. A HyperparameterTuningJob has a Study specification and multiple CustomJobs with identical CustomJob specification.", "id": "GoogleCloudAiplatformV1beta1HyperparameterTuningJob", @@ -20838,8 +22259,80 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse": { + "description": "Response message for FeatureRegistryService.ListFeatureGroups.", + "id": "GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse", + "properties": { + "featureGroups": { + "description": "The FeatureGroups matching the request.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureGroup" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as ListFeatureGroupsRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse": { + "description": "Response message for FeatureOnlineStoreAdminService.ListFeatureOnlineStores.", + "id": "GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse", + "properties": { + "featureOnlineStores": { + "description": "The FeatureOnlineStores matching the request.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureOnlineStore" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as ListFeatureOnlineStoresRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse": { + "description": "Response message for FeatureOnlineStoreAdminService.ListFeatureViewSyncs.", + "id": "GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse", + "properties": { + "featureViewSyncs": { + "description": "The FeatureViewSyncs matching the request.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureViewSync" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as ListFeatureViewSyncsRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1ListFeatureViewsResponse": { + "description": "Response message for FeatureOnlineStoreAdminService.ListFeatureViews.", + "id": "GoogleCloudAiplatformV1beta1ListFeatureViewsResponse", + "properties": { + "featureViews": { + "description": "The FeatureViews matching the request.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureView" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as ListFeatureViewsRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1ListFeaturesResponse": { - "description": "Response message for FeaturestoreService.ListFeatures.", + "description": "Response message for FeaturestoreService.ListFeatures. Response message for FeatureRegistryService.ListFeatures.", "id": "GoogleCloudAiplatformV1beta1ListFeaturesResponse", "properties": { "features": { @@ -21181,6 +22674,24 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1ListPublisherModelsResponse": { + "description": "Response message for ModelGardenService.ListPublisherModels.", + "id": "GoogleCloudAiplatformV1beta1ListPublisherModelsResponse", + "properties": { + "nextPageToken": { + "description": "A token to retrieve next page of results. Pass to ListPublisherModels.page_token to obtain that page.", + "type": "string" + }, + "publisherModels": { + "description": "List of PublisherModels in the requested page.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1PublisherModel" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1ListSavedQueriesResponse": { "description": "Response message for DatasetService.ListSavedQueries.", "id": "GoogleCloudAiplatformV1beta1ListSavedQueriesResponse", @@ -21881,6 +23392,10 @@ "$ref": "GoogleCloudAiplatformV1beta1ExplanationSpec", "description": "The default explanation specification for this Model. The Model can be used for requesting explanation after being deployed if it is populated. The Model can be used for batch explanation if it is populated. All fields of the explanation_spec can be overridden by explanation_spec of DeployModelRequest.deployed_model, or explanation_spec of BatchPredictionJob. If the default explanation specification is not set for this Model, this Model can still be used for requesting explanation by setting explanation_spec of DeployModelRequest.deployed_model and for batch explanation by setting explanation_spec of BatchPredictionJob." }, + "generatedModelSource": { + "$ref": "GoogleCloudAiplatformV1beta1ModelGeneratedModelSource", + "description": "Optional. Used to specify the source of the Model Garden model or Genie models. Only present for models created or tuned from Model Garden and Genie." + }, "labels": { "additionalProperties": { "type": "string" @@ -22559,6 +24074,32 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1ModelGardenSource": { + "description": "Contains information about the source of the models generated from Model Garden.", + "id": "GoogleCloudAiplatformV1beta1ModelGardenSource", + "properties": { + "publicModelName": { + "description": "Required. The model garden source model resource name.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1ModelGeneratedModelSource": { + "description": "Used to specify the source of the Model Garden model or Genie models. Only present for models created or tuned from Model Garden and Genie.", + "id": "GoogleCloudAiplatformV1beta1ModelGeneratedModelSource", + "properties": { + "genieSource": { + "$ref": "GoogleCloudAiplatformV1beta1GenieSource", + "description": "Information about the base model of Genie models." + }, + "modelGardenSource": { + "$ref": "GoogleCloudAiplatformV1beta1ModelGardenSource", + "description": "Source information of Model Garden models." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1ModelMonitoringAlertConfig": { "id": "GoogleCloudAiplatformV1beta1ModelMonitoringAlertConfig", "properties": { @@ -23278,6 +24819,99 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1NearestNeighborQuery": { + "description": "A query to find a number of similar entities.", + "id": "GoogleCloudAiplatformV1beta1NearestNeighborQuery", + "properties": { + "embedding": { + "$ref": "GoogleCloudAiplatformV1beta1NearestNeighborQueryEmbedding", + "description": "Optional. The embedding vector that be used for similar search." + }, + "entityId": { + "description": "Optional. The entity id whose similar entities should be searched for. If embedding is set, search will use embedding instead of entity_id.", + "type": "string" + }, + "neighborCount": { + "description": "Optional. The number of similar entities to be retrieved from feature view for each query.", + "format": "int32", + "type": "integer" + }, + "parameters": { + "$ref": "GoogleCloudAiplatformV1beta1NearestNeighborQueryParameters", + "description": "Optional. Parameters that can be set to tune query on the fly." + }, + "perCrowdingAttributeNeighborCount": { + "description": "Optional. Crowding is a constraint on a neighbor list produced by nearest neighbor search requiring that no more than sper_crowding_attribute_neighbor_count of the k neighbors returned have the same value of crowding_attribute. It's used for improving result diversity.", + "format": "int32", + "type": "integer" + }, + "stringFilters": { + "description": "Optional. The list of string filters.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1NearestNeighborQueryStringFilter" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1NearestNeighborQueryEmbedding": { + "description": "The embedding vector.", + "id": "GoogleCloudAiplatformV1beta1NearestNeighborQueryEmbedding", + "properties": { + "value": { + "description": "Optional. Individual value in the embedding.", + "items": { + "format": "float", + "type": "number" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1NearestNeighborQueryParameters": { + "description": "Parameters that can be overrided in each query to tune query latency and recall.", + "id": "GoogleCloudAiplatformV1beta1NearestNeighborQueryParameters", + "properties": { + "approximateNeighborCandidates": { + "description": "Optional. The number of neighbors to find via approximate search before exact reordering is performed; if set, this value must be \u003e neighbor_count.", + "format": "int32", + "type": "integer" + }, + "leafNodesSearchFraction": { + "description": "Optional. The fraction of the number of leaves to search, set at query time allows user to tune search performance. This value increase result in both search accuracy and latency increase. The value should be between 0.0 and 1.0.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1NearestNeighborQueryStringFilter": { + "description": "String filter is used to search a subset of the entities by using boolean rules. For example: if a query specifies string filter with 'name = color, allow_tokens = {red, blue}, deny_tokens = {purple}',' then that query will match entities that are red or blue, but if those points are also purple, then they will be excluded even if they are red/blue. Only string filter is supported for now, numeric filter will be supported in the near future.", + "id": "GoogleCloudAiplatformV1beta1NearestNeighborQueryStringFilter", + "properties": { + "allowTokens": { + "description": "Optional. The allowed tokens.", + "items": { + "type": "string" + }, + "type": "array" + }, + "denyTokens": { + "description": "Optional. The denied tokens.", + "items": { + "type": "string" + }, + "type": "array" + }, + "name": { + "description": "Required. Column names in BigQuery that used as filters.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1NearestNeighborSearchOperationMetadata": { "description": "Runtime operation metadata with regard to Matching Engine Index.", "id": "GoogleCloudAiplatformV1beta1NearestNeighborSearchOperationMetadata", @@ -23370,6 +25004,40 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1NearestNeighbors": { + "description": "Nearest neighbors for one query.", + "id": "GoogleCloudAiplatformV1beta1NearestNeighbors", + "properties": { + "neighbors": { + "description": "All its neighbors.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1NearestNeighborsNeighbor" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1NearestNeighborsNeighbor": { + "description": "A neighbor of the query vector.", + "id": "GoogleCloudAiplatformV1beta1NearestNeighborsNeighbor", + "properties": { + "distance": { + "description": "The distance between the neighbor and the query vector.", + "format": "double", + "type": "number" + }, + "entityId": { + "description": "The id of the similar entity.", + "type": "string" + }, + "entityKeyValues": { + "$ref": "GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse", + "description": "The attributes of the neighbor, e.g. filters, crowding and metadata Note that full entities are returned only when \"return_full_entity\" is set to true. Otherwise, only the \"entity_id\" and \"distance\" fields are populated." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1Neighbor": { "description": "Neighbors for example-based explanations.", "id": "GoogleCloudAiplatformV1beta1Neighbor", @@ -25192,6 +26860,39 @@ "properties": {}, "type": "object" }, + "GoogleCloudAiplatformV1beta1ReportExecutionEventRequest": { + "description": "Request message for NotebookInternalService.ReportExecutionEvent.", + "id": "GoogleCloudAiplatformV1beta1ReportExecutionEventRequest", + "properties": { + "eventType": { + "description": "Required. The type of the event.", + "enum": [ + "EVENT_TYPE_UNSPECIFIED", + "ACTIVE", + "DONE", + "FAILED" + ], + "enumDescriptions": [ + "Unspecified.", + "Notebook execution process has started. Expect this message within expected time to provision compute.", + "Notebook execution process is completed. Expect this message within timeout.", + "Notebook execution process has failed. Expect this message within timeout." + ], + "type": "string" + }, + "vmToken": { + "description": "Required. The VM identity token (a JWT) for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1ReportExecutionEventResponse": { + "description": "Response message for NotebookInternalService.ReportExecutionEvent.", + "id": "GoogleCloudAiplatformV1beta1ReportExecutionEventResponse", + "properties": {}, + "type": "object" + }, "GoogleCloudAiplatformV1beta1ReportRuntimeEventRequest": { "description": "LINT.IfChange(report_event_message_types) Request message for NotebookInternalService.ReportRuntimeEvent.", "id": "GoogleCloudAiplatformV1beta1ReportRuntimeEventRequest", @@ -29371,6 +31072,32 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest": { + "description": "The request message for FeatureOnlineStoreService.SearchNearestEntities.", + "id": "GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest", + "properties": { + "query": { + "$ref": "GoogleCloudAiplatformV1beta1NearestNeighborQuery", + "description": "Required. The query." + }, + "returnFullEntity": { + "description": "Optional. If set to true, the full entities (including all vector values and metadata) of the nearest neighbors are returned; otherwise only entity id of the nearest neighbors will be returned. Note that returning full entities will significantly increase the latency and cost of the query.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse": { + "description": "Response message for FeatureOnlineStoreService.SearchNearestEntities", + "id": "GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse", + "properties": { + "nearestNeighbors": { + "$ref": "GoogleCloudAiplatformV1beta1NearestNeighbors", + "description": "The nearest neighbors of the query entity." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1ServiceAccountSpec": { "description": "Configuration for the use of custom service account to run the workloads.", "id": "GoogleCloudAiplatformV1beta1ServiceAccountSpec", @@ -30132,6 +31859,23 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1SyncFeatureViewRequest": { + "description": "Request message for FeatureOnlineStoreAdminService.SyncFeatureView.", + "id": "GoogleCloudAiplatformV1beta1SyncFeatureViewRequest", + "properties": {}, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1SyncFeatureViewResponse": { + "description": "Respose message for FeatureOnlineStoreAdminService.SyncFeatureView.", + "id": "GoogleCloudAiplatformV1beta1SyncFeatureViewResponse", + "properties": { + "featureViewSync": { + "description": "Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}`", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1TFRecordDestination": { "description": "The storage details for TFRecord output content.", "id": "GoogleCloudAiplatformV1beta1TFRecordDestination", @@ -31059,6 +32803,50 @@ "properties": {}, "type": "object" }, + "GoogleCloudAiplatformV1beta1UpdateFeatureGroupOperationMetadata": { + "description": "Details of operations that perform update FeatureGroup.", + "id": "GoogleCloudAiplatformV1beta1UpdateFeatureGroupOperationMetadata", + "properties": { + "genericMetadata": { + "$ref": "GoogleCloudAiplatformV1beta1GenericOperationMetadata", + "description": "Operation metadata for FeatureGroup." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1UpdateFeatureOnlineStoreOperationMetadata": { + "description": "Details of operations that perform update FeatureOnlineStore.", + "id": "GoogleCloudAiplatformV1beta1UpdateFeatureOnlineStoreOperationMetadata", + "properties": { + "genericMetadata": { + "$ref": "GoogleCloudAiplatformV1beta1GenericOperationMetadata", + "description": "Operation metadata for FeatureOnlineStore." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1UpdateFeatureOperationMetadata": { + "description": "Details of operations that perform update Feature.", + "id": "GoogleCloudAiplatformV1beta1UpdateFeatureOperationMetadata", + "properties": { + "genericMetadata": { + "$ref": "GoogleCloudAiplatformV1beta1GenericOperationMetadata", + "description": "Operation metadata for Feature Update." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1UpdateFeatureViewOperationMetadata": { + "description": "Details of operations that perform update FeatureView.", + "id": "GoogleCloudAiplatformV1beta1UpdateFeatureViewOperationMetadata", + "properties": { + "genericMetadata": { + "$ref": "GoogleCloudAiplatformV1beta1GenericOperationMetadata", + "description": "Operation metadata for FeatureView Update." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1UpdateFeaturestoreOperationMetadata": { "description": "Details of operations that perform update Featurestore.", "id": "GoogleCloudAiplatformV1beta1UpdateFeaturestoreOperationMetadata", diff --git a/aiplatform/v1beta1/aiplatform-gen.go b/aiplatform/v1beta1/aiplatform-gen.go index dd340098caf..97166229a22 100644 --- a/aiplatform/v1beta1/aiplatform-gen.go +++ b/aiplatform/v1beta1/aiplatform-gen.go @@ -658,6 +658,7 @@ type ProjectsLocationsFeatureOnlineStoresService struct { func NewProjectsLocationsFeatureOnlineStoresFeatureViewsService(s *Service) *ProjectsLocationsFeatureOnlineStoresFeatureViewsService { rs := &ProjectsLocationsFeatureOnlineStoresFeatureViewsService{s: s} + rs.FeatureViewSyncs = NewProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsService(s) rs.Operations = NewProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsService(s) return rs } @@ -665,9 +666,20 @@ func NewProjectsLocationsFeatureOnlineStoresFeatureViewsService(s *Service) *Pro type ProjectsLocationsFeatureOnlineStoresFeatureViewsService struct { s *Service + FeatureViewSyncs *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsService + Operations *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsService } +func NewProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsService(s *Service) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsService { + rs := &ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsService{s: s} + return rs +} + +type ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsService struct { + s *Service +} + func NewProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsService(s *Service) *ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsService { rs := &ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsService{s: s} return rs @@ -4277,6 +4289,67 @@ func (s *GoogleCloudAiplatformV1beta1CreateExtensionDeploymentOperationMetadata) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1CreateFeatureGroupOperationMetadata: +// Details of operations that perform create FeatureGroup. +type GoogleCloudAiplatformV1beta1CreateFeatureGroupOperationMetadata struct { + // GenericMetadata: Operation metadata for FeatureGroup. + GenericMetadata *GoogleCloudAiplatformV1beta1GenericOperationMetadata `json:"genericMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GenericMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GenericMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1CreateFeatureGroupOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1CreateFeatureGroupOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1CreateFeatureOnlineStoreOperationMetadata: +// +// Details of operations that perform create FeatureOnlineStore. +type GoogleCloudAiplatformV1beta1CreateFeatureOnlineStoreOperationMetadata struct { + // GenericMetadata: Operation metadata for FeatureOnlineStore. + GenericMetadata *GoogleCloudAiplatformV1beta1GenericOperationMetadata `json:"genericMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GenericMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GenericMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1CreateFeatureOnlineStoreOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1CreateFeatureOnlineStoreOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1CreateFeatureOperationMetadata: Details // of operations that perform create Feature. type GoogleCloudAiplatformV1beta1CreateFeatureOperationMetadata struct { @@ -4308,7 +4381,8 @@ func (s *GoogleCloudAiplatformV1beta1CreateFeatureOperationMetadata) MarshalJSON } // GoogleCloudAiplatformV1beta1CreateFeatureRequest: Request message for -// FeaturestoreService.CreateFeature. +// FeaturestoreService.CreateFeature. Request message for +// FeatureRegistryService.CreateFeature. type GoogleCloudAiplatformV1beta1CreateFeatureRequest struct { // Feature: Required. The Feature to create. Feature *GoogleCloudAiplatformV1beta1Feature `json:"feature,omitempty"` @@ -4317,13 +4391,9 @@ type GoogleCloudAiplatformV1beta1CreateFeatureRequest struct { // the final component of the Feature's resource name. This value may be // up to 128 characters, and valid characters are `[a-z0-9_]`. The first // character cannot be a number. The value must be unique within an - // EntityType . + // EntityType/FeatureGroup. FeatureId string `json:"featureId,omitempty"` - // Parent: Required. The resource name of the EntityType to create a - // Feature. Format: - // `projects/{project}/locations/{location}/featurestores/{featurestore}/ - // entityTypes/{entity_type}` Parent string `json:"parent,omitempty"` // ForceSendFields is a list of field names (e.g. "Feature") to @@ -4349,6 +4419,36 @@ func (s *GoogleCloudAiplatformV1beta1CreateFeatureRequest) MarshalJSON() ([]byte return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1CreateFeatureViewOperationMetadata: +// Details of operations that perform create FeatureView. +type GoogleCloudAiplatformV1beta1CreateFeatureViewOperationMetadata struct { + // GenericMetadata: Operation metadata for FeatureView Create. + GenericMetadata *GoogleCloudAiplatformV1beta1GenericOperationMetadata `json:"genericMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GenericMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GenericMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1CreateFeatureViewOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1CreateFeatureViewOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1CreateFeaturestoreOperationMetadata: // Details of operations that perform create Featurestore. type GoogleCloudAiplatformV1beta1CreateFeaturestoreOperationMetadata struct { @@ -4576,6 +4676,36 @@ func (s *GoogleCloudAiplatformV1beta1CreatePipelineJobRequest) MarshalJSON() ([] return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1CreateRegistryFeatureOperationMetadata: +// Details of operations that perform create FeatureGroup. +type GoogleCloudAiplatformV1beta1CreateRegistryFeatureOperationMetadata struct { + // GenericMetadata: Operation metadata for Feature. + GenericMetadata *GoogleCloudAiplatformV1beta1GenericOperationMetadata `json:"genericMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GenericMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GenericMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1CreateRegistryFeatureOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1CreateRegistryFeatureOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1CreateSolverOperationMetadata: Runtime // operation information for SolverService.CreateSolver. type GoogleCloudAiplatformV1beta1CreateSolverOperationMetadata struct { @@ -9074,6 +9204,104 @@ func (s *GoogleCloudAiplatformV1beta1Feature) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1FeatureGroup: Vertex AI Feature Group. +type GoogleCloudAiplatformV1beta1FeatureGroup struct { + // BigQuery: Indicates that features for this group come from BigQuery. + BigQuery *GoogleCloudAiplatformV1beta1FeatureGroupBigQuery `json:"bigQuery,omitempty"` + + // CreateTime: Output only. Timestamp when this FeatureGroup was + // created. + CreateTime string `json:"createTime,omitempty"` + + // Description: Optional. Description of the FeatureGroup. + Description string `json:"description,omitempty"` + + // Etag: Optional. Used to perform consistent read-modify-write updates. + // If not set, a blind "overwrite" update happens. + Etag string `json:"etag,omitempty"` + + // Labels: Optional. The labels with user-defined metadata to organize + // your FeatureGroup. Label keys and values can be no longer than 64 + // characters (Unicode codepoints), can only contain lowercase letters, + // numeric characters, underscores and dashes. International characters + // are allowed. See https://goo.gl/xmQnxf for more information on and + // examples of labels. No more than 64 user labels can be associated + // with one FeatureGroup(System labels are excluded)." System reserved + // label keys are prefixed with "aiplatform.googleapis.com/" and are + // immutable. + Labels map[string]string `json:"labels,omitempty"` + + // Name: Output only. Name of the FeatureGroup. Format: + // `projects/{project}/locations/{location}/featureGroups/{featureGroup}` + Name string `json:"name,omitempty"` + + // UpdateTime: Output only. Timestamp when this FeatureGroup was last + // updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "BigQuery") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BigQuery") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1FeatureGroup) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FeatureGroup + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1FeatureGroupBigQuery: Input source type +// for BigQuery Tables and Views. +type GoogleCloudAiplatformV1beta1FeatureGroupBigQuery struct { + // BigQuerySource: Required. Immutable. The BigQuery source URI that + // points to either a BigQuery Table or View. + BigQuerySource *GoogleCloudAiplatformV1beta1BigQuerySource `json:"bigQuerySource,omitempty"` + + // EntityIdColumns: Optional. Columns to construct entity_id / row keys. + // Currently only supports 1 entity_id_column. If not provided defaults + // to `entity_id`. + EntityIdColumns []string `json:"entityIdColumns,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BigQuerySource") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BigQuerySource") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1FeatureGroupBigQuery) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FeatureGroupBigQuery + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1FeatureMonitoringStatsAnomaly: A list of // historical SnapshotAnalysis or ImportFeaturesAnalysis stats requested // by user, sorted by FeatureStatsAnomaly.start_time descending. @@ -9198,6 +9426,227 @@ func (s *GoogleCloudAiplatformV1beta1FeatureNoiseSigmaNoiseSigmaForFeature) Unma return nil } +// GoogleCloudAiplatformV1beta1FeatureOnlineStore: Vertex AI Feature +// Online Store provides a centralized repository for serving ML +// features and embedding indexes at low latency. The Feature Online +// Store is a top-level container. +type GoogleCloudAiplatformV1beta1FeatureOnlineStore struct { + // Bigtable: Contains settings for the Cloud Bigtable instance that will + // be created to serve featureValues for all FeatureViews under this + // FeatureOnlineStore. + Bigtable *GoogleCloudAiplatformV1beta1FeatureOnlineStoreBigtable `json:"bigtable,omitempty"` + + // CreateTime: Output only. Timestamp when this FeatureOnlineStore was + // created. + CreateTime string `json:"createTime,omitempty"` + + // DedicatedServingEndpoint: Optional. The dedicated serving endpoint + // for this FeatureOnlineStore, which is different from common Vertex + // service endpoint. + DedicatedServingEndpoint *GoogleCloudAiplatformV1beta1FeatureOnlineStoreDedicatedServingEndpoint `json:"dedicatedServingEndpoint,omitempty"` + + // EmbeddingManagement: Optional. The settings for embedding management + // in FeatureOnlineStore. + EmbeddingManagement *GoogleCloudAiplatformV1beta1FeatureOnlineStoreEmbeddingManagement `json:"embeddingManagement,omitempty"` + + // Etag: Optional. Used to perform consistent read-modify-write updates. + // If not set, a blind "overwrite" update happens. + Etag string `json:"etag,omitempty"` + + // Labels: Optional. The labels with user-defined metadata to organize + // your FeatureOnlineStore. Label keys and values can be no longer than + // 64 characters (Unicode codepoints), can only contain lowercase + // letters, numeric characters, underscores and dashes. International + // characters are allowed. See https://goo.gl/xmQnxf for more + // information on and examples of labels. No more than 64 user labels + // can be associated with one FeatureOnlineStore(System labels are + // excluded)." System reserved label keys are prefixed with + // "aiplatform.googleapis.com/" and are immutable. + Labels map[string]string `json:"labels,omitempty"` + + // Name: Output only. Name of the FeatureOnlineStore. Format: + // `projects/{project}/locations/{location}/featureOnlineStores/{featureO + // nlineStore}` + Name string `json:"name,omitempty"` + + // State: Output only. State of the featureOnlineStore. + // + // Possible values: + // "STATE_UNSPECIFIED" - Default value. This value is unused. + // "STABLE" - State when the featureOnlineStore configuration is not + // being updated and the fields reflect the current configuration of the + // featureOnlineStore. The featureOnlineStore is usable in this state. + // "UPDATING" - The state of the featureOnlineStore configuration when + // it is being updated. During an update, the fields reflect either the + // original configuration or the updated configuration of the + // featureOnlineStore. The featureOnlineStore is still usable in this + // state. + State string `json:"state,omitempty"` + + // UpdateTime: Output only. Timestamp when this FeatureOnlineStore was + // last updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Bigtable") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Bigtable") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1FeatureOnlineStore) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FeatureOnlineStore + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type GoogleCloudAiplatformV1beta1FeatureOnlineStoreBigtable struct { + // AutoScaling: Required. Autoscaling config applied to Bigtable + // Instance. + AutoScaling *GoogleCloudAiplatformV1beta1FeatureOnlineStoreBigtableAutoScaling `json:"autoScaling,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AutoScaling") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AutoScaling") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1FeatureOnlineStoreBigtable) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FeatureOnlineStoreBigtable + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type GoogleCloudAiplatformV1beta1FeatureOnlineStoreBigtableAutoScaling struct { + // CpuUtilizationTarget: Optional. A percentage of the cluster's CPU + // capacity. Can be from 10% to 80%. When a cluster's CPU utilization + // exceeds the target that you have set, Bigtable immediately adds nodes + // to the cluster. When CPU utilization is substantially lower than the + // target, Bigtable removes nodes. If not set will default to 50%. + CpuUtilizationTarget int64 `json:"cpuUtilizationTarget,omitempty"` + + // MaxNodeCount: Required. The maximum number of nodes to scale up to. + // Must be greater than or equal to min_node_count, and less than or + // equal to 10 times of 'min_node_count'. + MaxNodeCount int64 `json:"maxNodeCount,omitempty"` + + // MinNodeCount: Required. The minimum number of nodes to scale down to. + // Must be greater than or equal to 1. + MinNodeCount int64 `json:"minNodeCount,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "CpuUtilizationTarget") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CpuUtilizationTarget") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1FeatureOnlineStoreBigtableAutoScaling) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FeatureOnlineStoreBigtableAutoScaling + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1FeatureOnlineStoreDedicatedServingEndpoint +// : The dedicated serving endpoint for this FeatureOnlineStore. +type GoogleCloudAiplatformV1beta1FeatureOnlineStoreDedicatedServingEndpoint struct { + // PublicEndpointDomainName: Output only. This field will be populated + // with the domain name to use for this FeatureOnlineStore + PublicEndpointDomainName string `json:"publicEndpointDomainName,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "PublicEndpointDomainName") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PublicEndpointDomainName") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1FeatureOnlineStoreDedicatedServingEndpoint) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FeatureOnlineStoreDedicatedServingEndpoint + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1FeatureOnlineStoreEmbeddingManagement: +// Contains settings for embedding management. +type GoogleCloudAiplatformV1beta1FeatureOnlineStoreEmbeddingManagement struct { + // Enabled: Optional. Immutable. Whether to enable embedding management + // in this FeatureOnlineStore. It's immutable after creation to ensure + // the FeatureOnlineStore availability. + Enabled bool `json:"enabled,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Enabled") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Enabled") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1FeatureOnlineStoreEmbeddingManagement) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FeatureOnlineStoreEmbeddingManagement + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1FeatureSelector: Selector for Features of // an EntityType. type GoogleCloudAiplatformV1beta1FeatureSelector struct { @@ -9507,6 +9956,374 @@ func (s *GoogleCloudAiplatformV1beta1FeatureValueMetadata) MarshalJSON() ([]byte return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1FeatureView: FeatureView is +// representation of values that the FeatureOnlineStore will serve based +// on its syncConfig. +type GoogleCloudAiplatformV1beta1FeatureView struct { + // BigQuerySource: Optional. Configures how data is supposed to be + // extracted from a BigQuery source to be loaded onto the + // FeatureOnlineStore. + BigQuerySource *GoogleCloudAiplatformV1beta1FeatureViewBigQuerySource `json:"bigQuerySource,omitempty"` + + // CreateTime: Output only. Timestamp when this FeatureView was created. + CreateTime string `json:"createTime,omitempty"` + + // Etag: Optional. Used to perform consistent read-modify-write updates. + // If not set, a blind "overwrite" update happens. + Etag string `json:"etag,omitempty"` + + // FeatureRegistrySource: Optional. Configures the features from a + // Feature Registry source that need to be loaded onto the + // FeatureOnlineStore. + FeatureRegistrySource *GoogleCloudAiplatformV1beta1FeatureViewFeatureRegistrySource `json:"featureRegistrySource,omitempty"` + + // Labels: Optional. The labels with user-defined metadata to organize + // your FeatureViews. Label keys and values can be no longer than 64 + // characters (Unicode codepoints), can only contain lowercase letters, + // numeric characters, underscores and dashes. International characters + // are allowed. See https://goo.gl/xmQnxf for more information on and + // examples of labels. No more than 64 user labels can be associated + // with one FeatureOnlineStore(System labels are excluded)." System + // reserved label keys are prefixed with "aiplatform.googleapis.com/" + // and are immutable. + Labels map[string]string `json:"labels,omitempty"` + + // Name: Output only. Name of the FeatureView. Format: + // `projects/{project}/locations/{location}/featureOnlineStores/{feature_ + // online_store}/featureViews/{feature_view}` + Name string `json:"name,omitempty"` + + // SyncConfig: Configures when data is to be synced/updated for this + // FeatureView. At the end of the sync the latest featureValues for each + // entityId of this FeatureView are made ready for online serving. + SyncConfig *GoogleCloudAiplatformV1beta1FeatureViewSyncConfig `json:"syncConfig,omitempty"` + + // UpdateTime: Output only. Timestamp when this FeatureView was last + // updated. + UpdateTime string `json:"updateTime,omitempty"` + + // VectorSearchConfig: Optional. Configuration for vector search. It + // contains the required configurations to create an index from source + // data, so that approximate nearest neighbor (a.k.a ANN) algorithms + // search can be performed during online serving. + VectorSearchConfig *GoogleCloudAiplatformV1beta1FeatureViewVectorSearchConfig `json:"vectorSearchConfig,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "BigQuerySource") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BigQuerySource") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1FeatureView) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FeatureView + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type GoogleCloudAiplatformV1beta1FeatureViewBigQuerySource struct { + // EntityIdColumns: Required. Columns to construct entity_id / row keys. + // Start by supporting 1 only. + EntityIdColumns []string `json:"entityIdColumns,omitempty"` + + // Uri: Required. The Bigquery View URI that will be materialized on + // each sync trigger based on FeatureView.SyncConfig. + Uri string `json:"uri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EntityIdColumns") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EntityIdColumns") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1FeatureViewBigQuerySource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FeatureViewBigQuerySource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1FeatureViewFeatureRegistrySource: A +// Feature Registry source for features that need to be synced to Online +// Store. +type GoogleCloudAiplatformV1beta1FeatureViewFeatureRegistrySource struct { + // FeatureGroups: Required. List of features that need to be synced to + // Online Store. + FeatureGroups []*GoogleCloudAiplatformV1beta1FeatureViewFeatureRegistrySourceFeatureGroup `json:"featureGroups,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FeatureGroups") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FeatureGroups") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1FeatureViewFeatureRegistrySource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FeatureViewFeatureRegistrySource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1FeatureViewFeatureRegistrySourceFeatureGro +// up: Features belonging to a single feature group that will be synced +// to Online Store. +type GoogleCloudAiplatformV1beta1FeatureViewFeatureRegistrySourceFeatureGroup struct { + // FeatureGroupId: Required. Identifier of the feature group. + FeatureGroupId string `json:"featureGroupId,omitempty"` + + // FeatureIds: Required. Identifiers of features under the feature + // group. + FeatureIds []string `json:"featureIds,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FeatureGroupId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FeatureGroupId") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1FeatureViewFeatureRegistrySourceFeatureGroup) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FeatureViewFeatureRegistrySourceFeatureGroup + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1FeatureViewSync: FeatureViewSync is a +// representation of sync operation which copies data from data source +// to Feature View in Online Store. +type GoogleCloudAiplatformV1beta1FeatureViewSync struct { + // CreateTime: Output only. Time when this FeatureViewSync is created. + // Creation of a FeatureViewSync means that the job is pending / waiting + // for sufficient resources but may not have started the actual data + // transfer yet. + CreateTime string `json:"createTime,omitempty"` + + // FinalStatus: Output only. Final status of the FeatureViewSync. + FinalStatus *GoogleRpcStatus `json:"finalStatus,omitempty"` + + // Name: Output only. Name of the FeatureViewSync. Format: + // `projects/{project}/locations/{location}/featureOnlineStores/{feature_ + // online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_vi + // ew_sync}` + Name string `json:"name,omitempty"` + + // RunTime: Output only. Time when this FeatureViewSync is finished. + RunTime *GoogleTypeInterval `json:"runTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CreateTime") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CreateTime") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1FeatureViewSync) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FeatureViewSync + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type GoogleCloudAiplatformV1beta1FeatureViewSyncConfig struct { + // Cron: Cron schedule (https://en.wikipedia.org/wiki/Cron) to launch + // scheduled runs. To explicitly set a timezone to the cron tab, apply a + // prefix in the cron tab: "CRON_TZ=${IANA_TIME_ZONE}" or + // "TZ=${IANA_TIME_ZONE}". The ${IANA_TIME_ZONE} may only be a valid + // string from IANA time zone database. For example, + // "CRON_TZ=America/New_York 1 * * * *", or "TZ=America/New_York 1 * * * + // *". + Cron string `json:"cron,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Cron") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Cron") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1FeatureViewSyncConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FeatureViewSyncConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1FeatureViewVectorSearchConfig: +// Configuration for vector search. +type GoogleCloudAiplatformV1beta1FeatureViewVectorSearchConfig struct { + // BruteForceConfig: Optional. Configuration options for using brute + // force search, which simply implements the standard linear search in + // the database for each query. It is primarily meant for benchmarking + // and to generate the ground truth for approximate search. + BruteForceConfig *GoogleCloudAiplatformV1beta1FeatureViewVectorSearchConfigBruteForceConfig `json:"bruteForceConfig,omitempty"` + + // CrowdingColumn: Optional. Column of crowding. This column contains + // crowding attribute which is a constraint on a neighbor list produced + // by nearest neighbor search requiring that no more than some value k' + // of the k neighbors returned have the same value of + // crowding_attribute. + CrowdingColumn string `json:"crowdingColumn,omitempty"` + + // DistanceMeasureType: Optional. The distance measure used in nearest + // neighbor search. + // + // Possible values: + // "DISTANCE_MEASURE_TYPE_UNSPECIFIED" - Should not be set. + // "SQUARED_L2_DISTANCE" - Euclidean (L_2) Distance. + // "COSINE_DISTANCE" - Cosine Distance. Defined as 1 - cosine + // similarity. We strongly suggest using DOT_PRODUCT_DISTANCE + + // UNIT_L2_NORM instead of COSINE distance. Our algorithms have been + // more optimized for DOT_PRODUCT distance which, when combined with + // UNIT_L2_NORM, is mathematically equivalent to COSINE distance and + // results in the same ranking. + // "DOT_PRODUCT_DISTANCE" - Dot Product Distance. Defined as a + // negative of the dot product. + DistanceMeasureType string `json:"distanceMeasureType,omitempty"` + + // EmbeddingColumn: Optional. Column of embedding. This column contains + // the source data to create index for vector search. embedding_column + // must be set when using vector search. + EmbeddingColumn string `json:"embeddingColumn,omitempty"` + + // EmbeddingDimension: Optional. The number of dimensions of the input + // embedding. + EmbeddingDimension int64 `json:"embeddingDimension,omitempty"` + + // FilterColumns: Optional. Columns of features that're used to filter + // vector search results. + FilterColumns []string `json:"filterColumns,omitempty"` + + // TreeAhConfig: Optional. Configuration options for the tree-AH + // algorithm (Shallow tree + Asymmetric Hashing). Please refer to this + // paper for more details: https://arxiv.org/abs/1908.10396 + TreeAhConfig *GoogleCloudAiplatformV1beta1FeatureViewVectorSearchConfigTreeAHConfig `json:"treeAhConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BruteForceConfig") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BruteForceConfig") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1FeatureViewVectorSearchConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FeatureViewVectorSearchConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type GoogleCloudAiplatformV1beta1FeatureViewVectorSearchConfigBruteForceConfig struct { +} + +type GoogleCloudAiplatformV1beta1FeatureViewVectorSearchConfigTreeAHConfig struct { + // LeafNodeEmbeddingCount: Optional. Number of embeddings on each leaf + // node. The default value is 1000 if not set. + LeafNodeEmbeddingCount int64 `json:"leafNodeEmbeddingCount,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. + // "LeafNodeEmbeddingCount") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "LeafNodeEmbeddingCount") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1FeatureViewVectorSearchConfigTreeAHConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FeatureViewVectorSearchConfigTreeAHConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1Featurestore: Vertex AI Feature Store // provides a centralized repository for organizing, storing, and // serving ML features. The Featurestore is a top-level container for @@ -9913,6 +10730,145 @@ func (s *GoogleCloudAiplatformV1beta1FeaturestoreOnlineServingConfigScaling) Mar return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest: Request +// message for FeatureOnlineStoreService.FetchFeatureValues. All the +// features under the requested feature view will be returned. +type GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest struct { + // Format: Specify response data format. If not set, KeyValue format + // will be used. + // + // Possible values: + // "FORMAT_UNSPECIFIED" - Not set. Will be treated as the KeyValue + // format. + // "KEY_VALUE" - Return response data in key-value format. + // "PROTO_STRUCT" - Return response data in proto Struct format. + Format string `json:"format,omitempty"` + + // Id: Simple ID. The whole string will be used as is to identify Entity + // to fetch feature values for. + Id string `json:"id,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Format") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Format") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse: Response +// message for FeatureOnlineStoreService.FetchFeatureValues +type GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse struct { + // KeyValues: Feature values in KeyValue format. + KeyValues *GoogleCloudAiplatformV1beta1FetchFeatureValuesResponseFeatureNameValuePairList `json:"keyValues,omitempty"` + + // ProtoStruct: Feature values in proto Struct format. + ProtoStruct googleapi.RawMessage `json:"protoStruct,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "KeyValues") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "KeyValues") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1FetchFeatureValuesResponseFeatureNameValue +// PairList: Response structure in the format of key (feature name) and +// (feature) value pair. +type GoogleCloudAiplatformV1beta1FetchFeatureValuesResponseFeatureNameValuePairList struct { + // Features: List of feature names and values. + Features []*GoogleCloudAiplatformV1beta1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair `json:"features,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Features") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Features") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1FetchFeatureValuesResponseFeatureNameValuePairList) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FetchFeatureValuesResponseFeatureNameValuePairList + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1FetchFeatureValuesResponseFeatureNameValue +// PairListFeatureNameValuePair: Feature name & value pair. +type GoogleCloudAiplatformV1beta1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair struct { + // Name: Feature short name. + Name string `json:"name,omitempty"` + + // Value: Feature value. + Value *GoogleCloudAiplatformV1beta1FeatureValue `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Name") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Name") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FetchFeatureValuesResponseFeatureNameValuePairListFeatureNameValuePair + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1FilterSplit: Assigns input data to // training, validation, and test sets based on the given filters, data // pieces not matched by any filter are ignored. Currently only @@ -10449,6 +11405,35 @@ func (s *GoogleCloudAiplatformV1beta1GenericOperationMetadata) MarshalJSON() ([] return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1GenieSource: Contains information about +// the source of the models generated from Generative AI Studio. +type GoogleCloudAiplatformV1beta1GenieSource struct { + // BaseModelUri: Required. The public base model URI. + BaseModelUri string `json:"baseModelUri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "BaseModelUri") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "BaseModelUri") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1GenieSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1GenieSource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1HyperparameterTuningJob: Represents a // HyperparameterTuningJob. A HyperparameterTuningJob has a Study // specification and multiple CustomJobs with identical CustomJob @@ -12169,8 +13154,163 @@ func (s *GoogleCloudAiplatformV1beta1ListExecutionsResponse) MarshalJSON() ([]by return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse: Response +// message for FeatureRegistryService.ListFeatureGroups. +type GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse struct { + // FeatureGroups: The FeatureGroups matching the request. + FeatureGroups []*GoogleCloudAiplatformV1beta1FeatureGroup `json:"featureGroups,omitempty"` + + // NextPageToken: A token, which can be sent as + // ListFeatureGroupsRequest.page_token to retrieve the next page. If + // this field is omitted, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "FeatureGroups") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FeatureGroups") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse: Response +// message for FeatureOnlineStoreAdminService.ListFeatureOnlineStores. +type GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse struct { + // FeatureOnlineStores: The FeatureOnlineStores matching the request. + FeatureOnlineStores []*GoogleCloudAiplatformV1beta1FeatureOnlineStore `json:"featureOnlineStores,omitempty"` + + // NextPageToken: A token, which can be sent as + // ListFeatureOnlineStoresRequest.page_token to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "FeatureOnlineStores") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FeatureOnlineStores") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse: Response +// message for FeatureOnlineStoreAdminService.ListFeatureViewSyncs. +type GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse struct { + // FeatureViewSyncs: The FeatureViewSyncs matching the request. + FeatureViewSyncs []*GoogleCloudAiplatformV1beta1FeatureViewSync `json:"featureViewSyncs,omitempty"` + + // NextPageToken: A token, which can be sent as + // ListFeatureViewSyncsRequest.page_token to retrieve the next page. If + // this field is omitted, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "FeatureViewSyncs") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FeatureViewSyncs") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1ListFeatureViewsResponse: Response +// message for FeatureOnlineStoreAdminService.ListFeatureViews. +type GoogleCloudAiplatformV1beta1ListFeatureViewsResponse struct { + // FeatureViews: The FeatureViews matching the request. + FeatureViews []*GoogleCloudAiplatformV1beta1FeatureView `json:"featureViews,omitempty"` + + // NextPageToken: A token, which can be sent as + // ListFeatureViewsRequest.page_token to retrieve the next page. If this + // field is omitted, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "FeatureViews") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FeatureViews") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1ListFeatureViewsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ListFeatureViewsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1ListFeaturesResponse: Response message -// for FeaturestoreService.ListFeatures. +// for FeaturestoreService.ListFeatures. Response message for +// FeatureRegistryService.ListFeatures. type GoogleCloudAiplatformV1beta1ListFeaturesResponse struct { // Features: The Features matching the request. Features []*GoogleCloudAiplatformV1beta1Feature `json:"features,omitempty"` @@ -12899,6 +14039,43 @@ func (s *GoogleCloudAiplatformV1beta1ListPipelineJobsResponse) MarshalJSON() ([] return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1ListPublisherModelsResponse: Response +// message for ModelGardenService.ListPublisherModels. +type GoogleCloudAiplatformV1beta1ListPublisherModelsResponse struct { + // NextPageToken: A token to retrieve next page of results. Pass to + // ListPublisherModels.page_token to obtain that page. + NextPageToken string `json:"nextPageToken,omitempty"` + + // PublisherModels: List of PublisherModels in the requested page. + PublisherModels []*GoogleCloudAiplatformV1beta1PublisherModel `json:"publisherModels,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1ListPublisherModelsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ListPublisherModelsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1ListSavedQueriesResponse: Response // message for DatasetService.ListSavedQueries. type GoogleCloudAiplatformV1beta1ListSavedQueriesResponse struct { @@ -14236,6 +15413,11 @@ type GoogleCloudAiplatformV1beta1Model struct { // setting explanation_spec of BatchPredictionJob. ExplanationSpec *GoogleCloudAiplatformV1beta1ExplanationSpec `json:"explanationSpec,omitempty"` + // GeneratedModelSource: Optional. Used to specify the source of the + // Model Garden model or Genie models. Only present for models created + // or tuned from Model Garden and Genie. + GeneratedModelSource *GoogleCloudAiplatformV1beta1ModelGeneratedModelSource `json:"generatedModelSource,omitempty"` + // Labels: The labels with user-defined metadata to organize your // Models. Label keys and values can be no longer than 64 characters // (Unicode codepoints), can only contain lowercase letters, numeric @@ -15475,6 +16657,70 @@ func (s *GoogleCloudAiplatformV1beta1ModelExportFormat) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1ModelGardenSource: Contains information +// about the source of the models generated from Model Garden. +type GoogleCloudAiplatformV1beta1ModelGardenSource struct { + // PublicModelName: Required. The model garden source model resource + // name. + PublicModelName string `json:"publicModelName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PublicModelName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PublicModelName") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1ModelGardenSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ModelGardenSource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1ModelGeneratedModelSource: Used to +// specify the source of the Model Garden model or Genie models. Only +// present for models created or tuned from Model Garden and Genie. +type GoogleCloudAiplatformV1beta1ModelGeneratedModelSource struct { + // GenieSource: Information about the base model of Genie models. + GenieSource *GoogleCloudAiplatformV1beta1GenieSource `json:"genieSource,omitempty"` + + // ModelGardenSource: Source information of Model Garden models. + ModelGardenSource *GoogleCloudAiplatformV1beta1ModelGardenSource `json:"modelGardenSource,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GenieSource") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GenieSource") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1ModelGeneratedModelSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ModelGeneratedModelSource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type GoogleCloudAiplatformV1beta1ModelMonitoringAlertConfig struct { // EmailAlertConfig: Email alert config. EmailAlertConfig *GoogleCloudAiplatformV1beta1ModelMonitoringAlertConfigEmailAlertConfig `json:"emailAlertConfig,omitempty"` @@ -16671,6 +17917,200 @@ func (s *GoogleCloudAiplatformV1beta1NasTrialDetail) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1NearestNeighborQuery: A query to find a +// number of similar entities. +type GoogleCloudAiplatformV1beta1NearestNeighborQuery struct { + // Embedding: Optional. The embedding vector that be used for similar + // search. + Embedding *GoogleCloudAiplatformV1beta1NearestNeighborQueryEmbedding `json:"embedding,omitempty"` + + // EntityId: Optional. The entity id whose similar entities should be + // searched for. If embedding is set, search will use embedding instead + // of entity_id. + EntityId string `json:"entityId,omitempty"` + + // NeighborCount: Optional. The number of similar entities to be + // retrieved from feature view for each query. + NeighborCount int64 `json:"neighborCount,omitempty"` + + // Parameters: Optional. Parameters that can be set to tune query on the + // fly. + Parameters *GoogleCloudAiplatformV1beta1NearestNeighborQueryParameters `json:"parameters,omitempty"` + + // PerCrowdingAttributeNeighborCount: Optional. Crowding is a constraint + // on a neighbor list produced by nearest neighbor search requiring that + // no more than sper_crowding_attribute_neighbor_count of the k + // neighbors returned have the same value of crowding_attribute. It's + // used for improving result diversity. + PerCrowdingAttributeNeighborCount int64 `json:"perCrowdingAttributeNeighborCount,omitempty"` + + // StringFilters: Optional. The list of string filters. + StringFilters []*GoogleCloudAiplatformV1beta1NearestNeighborQueryStringFilter `json:"stringFilters,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Embedding") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Embedding") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1NearestNeighborQuery) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1NearestNeighborQuery + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1NearestNeighborQueryEmbedding: The +// embedding vector. +type GoogleCloudAiplatformV1beta1NearestNeighborQueryEmbedding struct { + // Value: Optional. Individual value in the embedding. + Value []float64 `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Value") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Value") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1NearestNeighborQueryEmbedding) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1NearestNeighborQueryEmbedding + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1beta1NearestNeighborQueryEmbedding) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1beta1NearestNeighborQueryEmbedding + var s1 struct { + Value []gensupport.JSONFloat64 `json:"value"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Value = make([]float64, len(s1.Value)) + for i := range s1.Value { + s.Value[i] = float64(s1.Value[i]) + } + return nil +} + +// GoogleCloudAiplatformV1beta1NearestNeighborQueryParameters: +// Parameters that can be overrided in each query to tune query latency +// and recall. +type GoogleCloudAiplatformV1beta1NearestNeighborQueryParameters struct { + // ApproximateNeighborCandidates: Optional. The number of neighbors to + // find via approximate search before exact reordering is performed; if + // set, this value must be > neighbor_count. + ApproximateNeighborCandidates int64 `json:"approximateNeighborCandidates,omitempty"` + + // LeafNodesSearchFraction: Optional. The fraction of the number of + // leaves to search, set at query time allows user to tune search + // performance. This value increase result in both search accuracy and + // latency increase. The value should be between 0.0 and 1.0. + LeafNodesSearchFraction float64 `json:"leafNodesSearchFraction,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "ApproximateNeighborCandidates") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "ApproximateNeighborCandidates") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1NearestNeighborQueryParameters) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1NearestNeighborQueryParameters + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1beta1NearestNeighborQueryParameters) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1beta1NearestNeighborQueryParameters + var s1 struct { + LeafNodesSearchFraction gensupport.JSONFloat64 `json:"leafNodesSearchFraction"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.LeafNodesSearchFraction = float64(s1.LeafNodesSearchFraction) + return nil +} + +// GoogleCloudAiplatformV1beta1NearestNeighborQueryStringFilter: String +// filter is used to search a subset of the entities by using boolean +// rules. For example: if a query specifies string filter with 'name = +// color, allow_tokens = {red, blue}, deny_tokens = {purple}',' then +// that query will match entities that are red or blue, but if those +// points are also purple, then they will be excluded even if they are +// red/blue. Only string filter is supported for now, numeric filter +// will be supported in the near future. +type GoogleCloudAiplatformV1beta1NearestNeighborQueryStringFilter struct { + // AllowTokens: Optional. The allowed tokens. + AllowTokens []string `json:"allowTokens,omitempty"` + + // DenyTokens: Optional. The denied tokens. + DenyTokens []string `json:"denyTokens,omitempty"` + + // Name: Required. Column names in BigQuery that used as filters. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AllowTokens") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AllowTokens") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1NearestNeighborQueryStringFilter) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1NearestNeighborQueryStringFilter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1NearestNeighborSearchOperationMetadata: // Runtime operation metadata with regard to Matching Engine Index. type GoogleCloudAiplatformV1beta1NearestNeighborSearchOperationMetadata struct { @@ -16806,6 +18246,87 @@ func (s *GoogleCloudAiplatformV1beta1NearestNeighborSearchOperationMetadataRecor return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1NearestNeighbors: Nearest neighbors for +// one query. +type GoogleCloudAiplatformV1beta1NearestNeighbors struct { + // Neighbors: All its neighbors. + Neighbors []*GoogleCloudAiplatformV1beta1NearestNeighborsNeighbor `json:"neighbors,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Neighbors") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Neighbors") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1NearestNeighbors) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1NearestNeighbors + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1NearestNeighborsNeighbor: A neighbor of +// the query vector. +type GoogleCloudAiplatformV1beta1NearestNeighborsNeighbor struct { + // Distance: The distance between the neighbor and the query vector. + Distance float64 `json:"distance,omitempty"` + + // EntityId: The id of the similar entity. + EntityId string `json:"entityId,omitempty"` + + // EntityKeyValues: The attributes of the neighbor, e.g. filters, + // crowding and metadata Note that full entities are returned only when + // "return_full_entity" is set to true. Otherwise, only the "entity_id" + // and "distance" fields are populated. + EntityKeyValues *GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse `json:"entityKeyValues,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Distance") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Distance") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1NearestNeighborsNeighbor) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1NearestNeighborsNeighbor + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1beta1NearestNeighborsNeighbor) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1beta1NearestNeighborsNeighbor + var s1 struct { + Distance gensupport.JSONFloat64 `json:"distance"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Distance = float64(s1.Distance) + return nil +} + // GoogleCloudAiplatformV1beta1Neighbor: Neighbors for example-based // explanations. type GoogleCloudAiplatformV1beta1Neighbor struct { @@ -19894,6 +21415,57 @@ type GoogleCloudAiplatformV1beta1RemoveDatapointsResponse struct { googleapi.ServerResponse `json:"-"` } +// GoogleCloudAiplatformV1beta1ReportExecutionEventRequest: Request +// message for NotebookInternalService.ReportExecutionEvent. +type GoogleCloudAiplatformV1beta1ReportExecutionEventRequest struct { + // EventType: Required. The type of the event. + // + // Possible values: + // "EVENT_TYPE_UNSPECIFIED" - Unspecified. + // "ACTIVE" - Notebook execution process has started. Expect this + // message within expected time to provision compute. + // "DONE" - Notebook execution process is completed. Expect this + // message within timeout. + // "FAILED" - Notebook execution process has failed. Expect this + // message within timeout. + EventType string `json:"eventType,omitempty"` + + // VmToken: Required. The VM identity token (a JWT) for authenticating + // the VM. + // https://cloud.google.com/compute/docs/instances/verifying-instance-identity + VmToken string `json:"vmToken,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EventType") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EventType") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1ReportExecutionEventRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ReportExecutionEventRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1ReportExecutionEventResponse: Response +// message for NotebookInternalService.ReportExecutionEvent. +type GoogleCloudAiplatformV1beta1ReportExecutionEventResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + // GoogleCloudAiplatformV1beta1ReportRuntimeEventRequest: // LINT.IfChange(report_event_message_types) Request message for // NotebookInternalService.ReportRuntimeEvent. @@ -28570,6 +30142,76 @@ func (s *GoogleCloudAiplatformV1beta1SearchModelDeploymentMonitoringStatsAnomali return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest: The request +// message for FeatureOnlineStoreService.SearchNearestEntities. +type GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest struct { + // Query: Required. The query. + Query *GoogleCloudAiplatformV1beta1NearestNeighborQuery `json:"query,omitempty"` + + // ReturnFullEntity: Optional. If set to true, the full entities + // (including all vector values and metadata) of the nearest neighbors + // are returned; otherwise only entity id of the nearest neighbors will + // be returned. Note that returning full entities will significantly + // increase the latency and cost of the query. + ReturnFullEntity bool `json:"returnFullEntity,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Query") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Query") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse: Response +// message for FeatureOnlineStoreService.SearchNearestEntities +type GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse struct { + // NearestNeighbors: The nearest neighbors of the query entity. + NearestNeighbors *GoogleCloudAiplatformV1beta1NearestNeighbors `json:"nearestNeighbors,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NearestNeighbors") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NearestNeighbors") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1ServiceAccountSpec: Configuration for the // use of custom service account to run the workloads. type GoogleCloudAiplatformV1beta1ServiceAccountSpec struct { @@ -30066,6 +31708,48 @@ func (s *GoogleCloudAiplatformV1beta1SuggestTrialsResponse) MarshalJSON() ([]byt return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1SyncFeatureViewRequest: Request message +// for FeatureOnlineStoreAdminService.SyncFeatureView. +type GoogleCloudAiplatformV1beta1SyncFeatureViewRequest struct { +} + +// GoogleCloudAiplatformV1beta1SyncFeatureViewResponse: Respose message +// for FeatureOnlineStoreAdminService.SyncFeatureView. +type GoogleCloudAiplatformV1beta1SyncFeatureViewResponse struct { + // FeatureViewSync: Format: + // `projects/{project}/locations/{location}/featureOnlineStores/{feature_ + // online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_vi + // ew_sync}` + FeatureViewSync string `json:"featureViewSync,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "FeatureViewSync") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FeatureViewSync") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1SyncFeatureViewResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1SyncFeatureViewResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1TFRecordDestination: The storage details // for TFRecord output content. type GoogleCloudAiplatformV1beta1TFRecordDestination struct { @@ -31538,6 +33222,127 @@ func (s *GoogleCloudAiplatformV1beta1UpdateExplanationDatasetRequest) MarshalJSO type GoogleCloudAiplatformV1beta1UpdateExplanationDatasetResponse struct { } +// GoogleCloudAiplatformV1beta1UpdateFeatureGroupOperationMetadata: +// Details of operations that perform update FeatureGroup. +type GoogleCloudAiplatformV1beta1UpdateFeatureGroupOperationMetadata struct { + // GenericMetadata: Operation metadata for FeatureGroup. + GenericMetadata *GoogleCloudAiplatformV1beta1GenericOperationMetadata `json:"genericMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GenericMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GenericMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1UpdateFeatureGroupOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1UpdateFeatureGroupOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1UpdateFeatureOnlineStoreOperationMetadata: +// +// Details of operations that perform update FeatureOnlineStore. +type GoogleCloudAiplatformV1beta1UpdateFeatureOnlineStoreOperationMetadata struct { + // GenericMetadata: Operation metadata for FeatureOnlineStore. + GenericMetadata *GoogleCloudAiplatformV1beta1GenericOperationMetadata `json:"genericMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GenericMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GenericMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1UpdateFeatureOnlineStoreOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1UpdateFeatureOnlineStoreOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1UpdateFeatureOperationMetadata: Details +// of operations that perform update Feature. +type GoogleCloudAiplatformV1beta1UpdateFeatureOperationMetadata struct { + // GenericMetadata: Operation metadata for Feature Update. + GenericMetadata *GoogleCloudAiplatformV1beta1GenericOperationMetadata `json:"genericMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GenericMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GenericMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1UpdateFeatureOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1UpdateFeatureOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1UpdateFeatureViewOperationMetadata: +// Details of operations that perform update FeatureView. +type GoogleCloudAiplatformV1beta1UpdateFeatureViewOperationMetadata struct { + // GenericMetadata: Operation metadata for FeatureView Update. + GenericMetadata *GoogleCloudAiplatformV1beta1GenericOperationMetadata `json:"genericMetadata,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GenericMetadata") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "GenericMetadata") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudAiplatformV1beta1UpdateFeatureViewOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1UpdateFeatureViewOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1UpdateFeaturestoreOperationMetadata: // Details of operations that perform update Featurestore. type GoogleCloudAiplatformV1beta1UpdateFeaturestoreOperationMetadata struct { @@ -52732,9 +54537,168 @@ func (c *ProjectsLocationsExtensionsOperationsWaitCall) Do(opts ...googleapi.Cal } -// method id "aiplatform.projects.locations.featureGroups.features.operations.delete": +// method id "aiplatform.projects.locations.featureGroups.create": -type ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall struct { +type ProjectsLocationsFeatureGroupsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1featuregroup *GoogleCloudAiplatformV1beta1FeatureGroup + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new FeatureGroup in a given project and location. +// +// - parent: The resource name of the Location to create FeatureGroups. +// Format: `projects/{project}/locations/{location}'`. +func (r *ProjectsLocationsFeatureGroupsService) Create(parent string, googlecloudaiplatformv1beta1featuregroup *GoogleCloudAiplatformV1beta1FeatureGroup) *ProjectsLocationsFeatureGroupsCreateCall { + c := &ProjectsLocationsFeatureGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1featuregroup = googlecloudaiplatformv1beta1featuregroup + return c +} + +// FeatureGroupId sets the optional parameter "featureGroupId": +// Required. The ID to use for this FeatureGroup, which will become the +// final component of the FeatureGroup's resource name. This value may +// be up to 60 characters, and valid characters are `[a-z0-9_]`. The +// first character cannot be a number. The value must be unique within +// the project and location. +func (c *ProjectsLocationsFeatureGroupsCreateCall) FeatureGroupId(featureGroupId string) *ProjectsLocationsFeatureGroupsCreateCall { + c.urlParams_.Set("featureGroupId", featureGroupId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureGroupsCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureGroupsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureGroupsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1featuregroup) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/featureGroups") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureGroups.create" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureGroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new FeatureGroup in a given project and location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featureGroups.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "featureGroupId": { + // "description": "Required. The ID to use for this FeatureGroup, which will become the final component of the FeatureGroup's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the project and location.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location to create FeatureGroups. Format: `projects/{project}/locations/{location}'`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/featureGroups", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1FeatureGroup" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featureGroups.delete": + +type ProjectsLocationsFeatureGroupsDeleteCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -52742,22 +54706,29 @@ type ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall struct { header_ http.Header } -// Delete: Deletes a long-running operation. This method indicates that -// the client is no longer interested in the operation result. It does -// not cancel the operation. If the server doesn't support this method, -// it returns `google.rpc.Code.UNIMPLEMENTED`. +// Delete: Deletes a single FeatureGroup. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) Delete(name string) *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall { - c := &ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the FeatureGroup to be deleted. Format: +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}`. +func (r *ProjectsLocationsFeatureGroupsService) Delete(name string) *ProjectsLocationsFeatureGroupsDeleteCall { + c := &ProjectsLocationsFeatureGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } +// Force sets the optional parameter "force": If set to true, any +// Features under this FeatureGroup will also be deleted. (Otherwise, +// the request will only work if the FeatureGroup has no Features.) +func (c *ProjectsLocationsFeatureGroupsDeleteCall) Force(force bool) *ProjectsLocationsFeatureGroupsDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall { +func (c *ProjectsLocationsFeatureGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -52765,21 +54736,21 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Fields(s .. // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall { +func (c *ProjectsLocationsFeatureGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -52802,14 +54773,14 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) doRequest(a return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.features.operations.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "aiplatform.projects.locations.featureGroups.delete" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsFeatureGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -52828,7 +54799,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Do(opts ... if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -52840,25 +54811,30 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Do(opts ... } return ret, nil // { - // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}", + // "description": "Deletes a single FeatureGroup.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}", // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featureGroups.features.operations.delete", + // "id": "aiplatform.projects.locations.featureGroups.delete", // "parameterOrder": [ // "name" // ], // "parameters": { + // "force": { + // "description": "If set to true, any Features under this FeatureGroup will also be deleted. (Otherwise, the request will only work if the FeatureGroup has no Features.)", + // "location": "query", + // "type": "boolean" + // }, // "name": { - // "description": "The name of the operation resource to be deleted.", + // "description": "Required. The name of the FeatureGroup to be deleted. Format: `projects/{project}/locations/{location}/featureGroups/{feature_group}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -52867,9 +54843,9 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Do(opts ... } -// method id "aiplatform.projects.locations.featureGroups.features.operations.get": +// method id "aiplatform.projects.locations.featureGroups.get": -type ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall struct { +type ProjectsLocationsFeatureGroupsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -52878,13 +54854,11 @@ type ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall struct { header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Get: Gets details of a single FeatureGroup. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) Get(name string) *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall { - c := &ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the FeatureGroup resource. +func (r *ProjectsLocationsFeatureGroupsService) Get(name string) *ProjectsLocationsFeatureGroupsGetCall { + c := &ProjectsLocationsFeatureGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -52892,7 +54866,7 @@ func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) Get(name strin // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall { +func (c *ProjectsLocationsFeatureGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -52902,7 +54876,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Fields(s ...go // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall { +func (c *ProjectsLocationsFeatureGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -52910,21 +54884,21 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) IfNoneMatch(en // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall { +func (c *ProjectsLocationsFeatureGroupsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -52950,14 +54924,16 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.features.operations.get" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.featureGroups.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1FeatureGroup or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1FeatureGroup.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1FeatureGroup, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -52976,7 +54952,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Do(opts ...goo if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1FeatureGroup{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -52988,25 +54964,25 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Do(opts ...goo } return ret, nil // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}", + // "description": "Gets details of a single FeatureGroup.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureGroups.features.operations.get", + // "id": "aiplatform.projects.locations.featureGroups.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource.", + // "description": "Required. The name of the FeatureGroup resource.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1FeatureGroup" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -53015,45 +54991,67 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Do(opts ...goo } -// method id "aiplatform.projects.locations.featureGroups.features.operations.list": +// method id "aiplatform.projects.locations.featureGroups.list": -type ProjectsLocationsFeatureGroupsFeaturesOperationsListCall struct { +type ProjectsLocationsFeatureGroupsListCall struct { s *Service - name string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// List: Lists FeatureGroups in a given project and location. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) List(name string) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { - c := &ProjectsLocationsFeatureGroupsFeaturesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the Location to list FeatureGroups. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsFeatureGroupsService) List(parent string) *ProjectsLocationsFeatureGroupsListCall { + c := &ProjectsLocationsFeatureGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Filter(filter string) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { +// Filter sets the optional parameter "filter": Lists the FeatureGroups +// that match the filter expression. The following fields are supported: +// * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` +// comparisons. Values must be in RFC 3339 format. * `update_time`: +// Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons. Values must +// be in RFC 3339 format. * `labels`: Supports key-value equality and +// key presence. Examples: * `create_time > "2020-01-01" OR update_time +// > "2020-01-01" FeatureGroups created or updated after 2020-01-01. * +// `labels.env = "prod" FeatureGroups with label "env" set to "prod". +func (c *ProjectsLocationsFeatureGroupsListCall) Filter(filter string) *ProjectsLocationsFeatureGroupsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { +// OrderBy sets the optional parameter "orderBy": A comma-separated list +// of fields to order by, sorted in ascending order. Use "desc" after a +// field name for descending. Supported Fields: * `create_time` * +// `update_time` +func (c *ProjectsLocationsFeatureGroupsListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureGroupsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of FeatureGroups to return. The service may return fewer than this +// value. If unspecified, at most 100 FeatureGroups will be returned. +// The maximum value is 100; any value greater than 100 will be coerced +// to 100. +func (c *ProjectsLocationsFeatureGroupsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureGroupsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous FeatureGroupAdminService.ListFeatureGroups +// call. Provide this to retrieve the subsequent page. When paginating, +// all other parameters provided to +// FeatureGroupAdminService.ListFeatureGroups must match the call that +// provided the page token. +func (c *ProjectsLocationsFeatureGroupsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -53061,7 +55059,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) PageToken(pag // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -53071,7 +55069,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Fields(s ...g // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsListCall { c.ifNoneMatch_ = entityTag return c } @@ -53079,21 +55077,21 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) IfNoneMatch(e // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { +func (c *ProjectsLocationsFeatureGroupsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -53106,7 +55104,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) doRequest(alt var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/featureGroups") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -53114,20 +55112,21 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) doRequest(alt } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.features.operations.list" call. -// Exactly one of *GoogleLongrunningListOperationsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +// Do executes the "aiplatform.projects.locations.featureGroups.list" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse.ServerResponse. +// Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureGroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -53146,7 +55145,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Do(opts ...go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -53158,41 +55157,46 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Do(opts ...go } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations", + // "description": "Lists FeatureGroups in a given project and location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureGroups.features.operations.list", + // "id": "aiplatform.projects.locations.featureGroups.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { // "filter": { - // "description": "The standard list filter.", + // "description": "Lists the FeatureGroups that match the filter expression. The following fields are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality and key presence. Examples: * `create_time \u003e \"2020-01-01\" OR update_time \u003e \"2020-01-01\"` FeatureGroups created or updated after 2020-01-01. * `labels.env = \"prod\"` FeatureGroups with label \"env\" set to \"prod\".", // "location": "query", // "type": "string" // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", - // "required": true, + // "orderBy": { + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported Fields: * `create_time` * `update_time`", + // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "The standard list page size.", + // "description": "The maximum number of FeatureGroups to return. The service may return fewer than this value. If unspecified, at most 100 FeatureGroups will be returned. The maximum value is 100; any value greater than 100 will be coerced to 100.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "The standard list page token.", + // "description": "A page token, received from a previous FeatureGroupAdminService.ListFeatureGroups call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureGroupAdminService.ListFeatureGroups must match the call that provided the page token.", // "location": "query", // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location to list FeatureGroups. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" // } // }, - // "path": "v1beta1/{+name}/operations", + // "path": "v1beta1/{+parent}/featureGroups", // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -53204,7 +55208,7 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Do(opts ...go // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsFeatureGroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListFeatureGroupsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -53222,47 +55226,46 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Pages(ctx con } } -// method id "aiplatform.projects.locations.featureGroups.features.operations.wait": +// method id "aiplatform.projects.locations.featureGroups.patch": -type ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureGroupsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1beta1featuregroup *GoogleCloudAiplatformV1beta1FeatureGroup + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Wait: Waits until the specified long-running operation is done or -// reaches at most a specified timeout, returning the latest state. If -// the operation is already done, the latest state is immediately -// returned. If the timeout specified is greater than the default -// HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does -// not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. -// Note that this method is on a best-effort basis. It may return the -// latest state before the specified timeout (including immediately), -// meaning even an immediate response is no guarantee that the operation -// is done. +// Patch: Updates the parameters of a single FeatureGroup. // -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) Wait(name string) *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall { - c := &ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Output only. Name of the FeatureGroup. Format: +// `projects/{project}/locations/{location}/featureGroups/{featureGroup +// }`. +func (r *ProjectsLocationsFeatureGroupsService) Patch(name string, googlecloudaiplatformv1beta1featuregroup *GoogleCloudAiplatformV1beta1FeatureGroup) *ProjectsLocationsFeatureGroupsPatchCall { + c := &ProjectsLocationsFeatureGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudaiplatformv1beta1featuregroup = googlecloudaiplatformv1beta1featuregroup return c } -// Timeout sets the optional parameter "timeout": The maximum duration -// to wait before timing out. If left blank, the wait will be at most -// the time permitted by the underlying HTTP/RPC protocol. If RPC -// context deadline is also specified, the shorter one will be used. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) +// UpdateMask sets the optional parameter "updateMask": Field mask is +// used to specify the fields to be overwritten in the FeatureGroup +// 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` +func (c *ProjectsLocationsFeatureGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureGroupsPatchCall { + c.urlParams_.Set("updateMask", updateMask) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall { +func (c *ProjectsLocationsFeatureGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -53270,21 +55273,21 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Fields(s ...g // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall { +func (c *ProjectsLocationsFeatureGroupsPatchCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -53292,11 +55295,16 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) doRequest(alt } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1featuregroup) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -53307,14 +55315,14 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) doRequest(alt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.features.operations.wait" call. +// Do executes the "aiplatform.projects.locations.featureGroups.patch" call. // Exactly one of *GoogleLongrunningOperation or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either // *GoogleLongrunningOperation.ServerResponse.Header or (if a response // was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +func (c *ProjectsLocationsFeatureGroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -53345,29 +55353,32 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Do(opts ...go } return ret, nil // { - // "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}:wait", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featureGroups.features.operations.wait", + // "description": "Updates the parameters of a single FeatureGroup.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.featureGroups.patch", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource to wait on.", + // "description": "Output only. Name of the FeatureGroup. Format: `projects/{project}/locations/{location}/featureGroups/{featureGroup}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", // "required": true, // "type": "string" // }, - // "timeout": { - // "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", - // "format": "google-duration", + // "updateMask": { + // "description": "Field mask is used to specify the fields to be overwritten in the FeatureGroup 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`", + // "format": "google-fieldmask", // "location": "query", // "type": "string" // } // }, - // "path": "v1beta1/{+name}:wait", + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1FeatureGroup" + // }, // "response": { // "$ref": "GoogleLongrunningOperation" // }, @@ -53378,32 +55389,41 @@ func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Do(opts ...go } -// method id "aiplatform.projects.locations.featureGroups.operations.delete": +// method id "aiplatform.projects.locations.featureGroups.features.create": -type ProjectsLocationsFeatureGroupsOperationsDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureGroupsFeaturesCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1feature *GoogleCloudAiplatformV1beta1Feature + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a long-running operation. This method indicates that -// the client is no longer interested in the operation result. It does -// not cancel the operation. If the server doesn't support this method, -// it returns `google.rpc.Code.UNIMPLEMENTED`. +// Create: Creates a new Feature in a given FeatureGroup. // -// - name: The name of the operation resource to be deleted. -func (r *ProjectsLocationsFeatureGroupsOperationsService) Delete(name string) *ProjectsLocationsFeatureGroupsOperationsDeleteCall { - c := &ProjectsLocationsFeatureGroupsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: . +func (r *ProjectsLocationsFeatureGroupsFeaturesService) Create(parent string, googlecloudaiplatformv1beta1feature *GoogleCloudAiplatformV1beta1Feature) *ProjectsLocationsFeatureGroupsFeaturesCreateCall { + c := &ProjectsLocationsFeatureGroupsFeaturesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1feature = googlecloudaiplatformv1beta1feature + return c +} + +// FeatureId sets the optional parameter "featureId": Required. The ID +// to use for the Feature, which will become the final component of the +// Feature's resource name. This value may be up to 128 characters, and +// valid characters are `[a-z0-9_]`. The first character cannot be a +// number. The value must be unique within an EntityType/FeatureGroup. +func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) FeatureId(featureId string) *ProjectsLocationsFeatureGroupsFeaturesCreateCall { + c.urlParams_.Set("featureId", featureId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsOperationsDeleteCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -53411,21 +55431,21 @@ func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Fields(s ...googlea // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsOperationsDeleteCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -53433,29 +55453,34 @@ func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) doRequest(alt strin } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1feature) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/features") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.operations.delete" call. -// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "aiplatform.projects.locations.featureGroups.features.create" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use // googleapi.IsNotModified to check whether the returned error was // because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -53474,7 +55499,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleProtobufEmpty{ + ret := &GoogleLongrunningOperation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -53486,25 +55511,32 @@ func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Do(opts ...googleap } return ret, nil // { - // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations/{operationsId}", - // "httpMethod": "DELETE", - // "id": "aiplatform.projects.locations.featureGroups.operations.delete", + // "description": "Creates a new Feature in a given FeatureGroup.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featureGroups.features.create", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { - // "name": { - // "description": "The name of the operation resource to be deleted.", + // "featureId": { + // "description": "Required. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType/FeatureGroup.", + // "location": "query", + // "type": "string" + // }, + // "parent": { // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1beta1/{+name}", + // "path": "v1beta1/{+parent}/features", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1Feature" + // }, // "response": { - // "$ref": "GoogleProtobufEmpty" + // "$ref": "GoogleLongrunningOperation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -53513,24 +55545,25 @@ func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Do(opts ...googleap } -// method id "aiplatform.projects.locations.featureGroups.operations.get": +// method id "aiplatform.projects.locations.featureGroups.features.delete": -type ProjectsLocationsFeatureGroupsOperationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsFeatureGroupsFeaturesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Get: Gets the latest state of a long-running operation. Clients can -// use this method to poll the operation result at intervals as -// recommended by the API service. +// Delete: Deletes a single Feature. // -// - name: The name of the operation resource. -func (r *ProjectsLocationsFeatureGroupsOperationsService) Get(name string) *ProjectsLocationsFeatureGroupsOperationsGetCall { - c := &ProjectsLocationsFeatureGroupsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the Features to be deleted. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entity_type}/features/{feature}` +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}/features/{feature}`. +func (r *ProjectsLocationsFeatureGroupsFeaturesService) Delete(name string) *ProjectsLocationsFeatureGroupsFeaturesDeleteCall { + c := &ProjectsLocationsFeatureGroupsFeaturesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -53538,39 +55571,4222 @@ func (r *ProjectsLocationsFeatureGroupsOperationsService) Get(name string) *Proj // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsOperationsGetCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsOperationsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsOperationsGetCall { +func (c *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) Header() http.Header { +func (c *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureGroups.features.delete" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureGroupsFeaturesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a single Feature.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.featureGroups.features.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featureGroups.features.get": + +type ProjectsLocationsFeatureGroupsFeaturesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single Feature. +// +// - name: The name of the Feature resource. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entity_type}` +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}`. +func (r *ProjectsLocationsFeatureGroupsFeaturesService) Get(name string) *ProjectsLocationsFeatureGroupsFeaturesGetCall { + c := &ProjectsLocationsFeatureGroupsFeaturesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeaturesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureGroups.features.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1Feature or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudAiplatformV1beta1Feature.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureGroupsFeaturesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1Feature, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudAiplatformV1beta1Feature{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets details of a single Feature.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featureGroups.features.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the Feature resource. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleCloudAiplatformV1beta1Feature" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featureGroups.features.list": + +type ProjectsLocationsFeatureGroupsFeaturesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists Features in a given FeatureGroup. +// +// - parent: The resource name of the Location to list Features. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entity_type}` +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}`. +func (r *ProjectsLocationsFeatureGroupsFeaturesService) List(parent string) *ProjectsLocationsFeatureGroupsFeaturesListCall { + c := &ProjectsLocationsFeatureGroupsFeaturesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Lists the Features that +// match the filter expression. The following filters are supported: * +// `value_type`: Supports = and != comparisons. * `create_time`: +// Supports =, !=, <, >, >=, and <= comparisons. Values must be in RFC +// 3339 format. * `update_time`: Supports =, !=, <, >, >=, and <= +// comparisons. Values must be in RFC 3339 format. * `labels`: Supports +// key-value equality as well as key presence. Examples: * `value_type = +// DOUBLE` --> Features whose type is DOUBLE. * `create_time > +// \"2020-01-31T15:30:00.000000Z\" OR update_time > +// \"2020-01-31T15:30:00.000000Z\" --> EntityTypes created or updated +// after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND +// labels.env = prod` --> Features having both (active: yes) and (env: +// prod) labels. * `labels.env: *` --> Any Feature which has a label +// with 'env' as the key. +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Filter(filter string) *ProjectsLocationsFeatureGroupsFeaturesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// LatestStatsCount sets the optional parameter "latestStatsCount": If +// set, return the most recent ListFeaturesRequest.latest_stats_count of +// stats for each Feature in response. Valid value is [0, 10]. If number +// of stats exists < ListFeaturesRequest.latest_stats_count, return all +// existing stats. +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) LatestStatsCount(latestStatsCount int64) *ProjectsLocationsFeatureGroupsFeaturesListCall { + c.urlParams_.Set("latestStatsCount", fmt.Sprint(latestStatsCount)) + return c +} + +// OrderBy sets the optional parameter "orderBy": A comma-separated list +// of fields to order by, sorted in ascending order. Use "desc" after a +// field name for descending. Supported fields: * `feature_id` * +// `value_type` (Not supported for FeatureRegistry Feature) * +// `create_time` * `update_time` +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureGroupsFeaturesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of Features to return. The service may return fewer than this value. +// If unspecified, at most 1000 Features will be returned. The maximum +// value is 1000; any value greater than 1000 will be coerced to 1000. +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureGroupsFeaturesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous FeaturestoreService.ListFeatures call. +// Provide this to retrieve the subsequent page. When paginating, all +// other parameters provided to FeaturestoreService.ListFeatures must +// match the call that provided the page token. +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsFeaturesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ReadMask sets the optional parameter "readMask": Mask specifying +// which fields to read. +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) ReadMask(readMask string) *ProjectsLocationsFeatureGroupsFeaturesListCall { + c.urlParams_.Set("readMask", readMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeaturesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/features") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureGroups.features.list" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ListFeaturesResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ListFeaturesResponse.ServerResponse.Heade +// r or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListFeaturesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudAiplatformV1beta1ListFeaturesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists Features in a given FeatureGroup.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featureGroups.features.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Lists the Features that match the filter expression. The following filters are supported: * `value_type`: Supports = and != comparisons. * `create_time`: Supports =, !=, \u003c, \u003e, \u003e=, and \u003c= comparisons. Values must be in RFC 3339 format. * `update_time`: Supports =, !=, \u003c, \u003e, \u003e=, and \u003c= comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality as well as key presence. Examples: * `value_type = DOUBLE` --\u003e Features whose type is DOUBLE. * `create_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\" OR update_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\"` --\u003e EntityTypes created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --\u003e Features having both (active: yes) and (env: prod) labels. * `labels.env: *` --\u003e Any Feature which has a label with 'env' as the key.", + // "location": "query", + // "type": "string" + // }, + // "latestStatsCount": { + // "description": "If set, return the most recent ListFeaturesRequest.latest_stats_count of stats for each Feature in response. Valid value is [0, 10]. If number of stats exists \u003c ListFeaturesRequest.latest_stats_count, return all existing stats.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "orderBy": { + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `feature_id` * `value_type` (Not supported for FeatureRegistry Feature) * `create_time` * `update_time`", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of Features to return. The service may return fewer than this value. If unspecified, at most 1000 Features will be returned. The maximum value is 1000; any value greater than 1000 will be coerced to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous FeaturestoreService.ListFeatures call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeaturestoreService.ListFeatures must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location to list Features. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "readMask": { + // "description": "Mask specifying which fields to read.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/features", + // "response": { + // "$ref": "GoogleCloudAiplatformV1beta1ListFeaturesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsFeatureGroupsFeaturesListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListFeaturesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "aiplatform.projects.locations.featureGroups.features.patch": + +type ProjectsLocationsFeatureGroupsFeaturesPatchCall struct { + s *Service + name string + googlecloudaiplatformv1beta1feature *GoogleCloudAiplatformV1beta1Feature + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the parameters of a single Feature. +// +// - name: Immutable. Name of the Feature. Format: +// `projects/{project}/locations/{location}/featurestores/{featurestore +// }/entityTypes/{entity_type}/features/{feature}` The last part +// feature is assigned by the client. The feature can be up to 64 +// characters long and can consist only of ASCII Latin letters A-Z and +// a-z, underscore(_), and ASCII digits 0-9 starting with a letter. +// The value will be unique given an entity type. +func (r *ProjectsLocationsFeatureGroupsFeaturesService) Patch(name string, googlecloudaiplatformv1beta1feature *GoogleCloudAiplatformV1beta1Feature) *ProjectsLocationsFeatureGroupsFeaturesPatchCall { + c := &ProjectsLocationsFeatureGroupsFeaturesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1beta1feature = googlecloudaiplatformv1beta1feature + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask is +// used to specify the fields to be overwritten in the Features 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: * +// `description` * `labels` * `disable_monitoring` +func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureGroupsFeaturesPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1feature) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureGroups.features.patch" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates the parameters of a single Feature.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.featureGroups.features.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Immutable. Name of the Feature. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` The last part feature is assigned by the client. The feature can be up to 64 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscore(_), and ASCII digits 0-9 starting with a letter. The value will be unique given an entity type.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Field mask is used to specify the fields to be overwritten in the Features 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: * `description` * `labels` * `disable_monitoring`", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1Feature" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featureGroups.features.operations.delete": + +type ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a long-running operation. This method indicates that +// the client is no longer interested in the operation result. It does +// not cancel the operation. If the server doesn't support this method, +// it returns `google.rpc.Code.UNIMPLEMENTED`. +// +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) Delete(name string) *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall { + c := &ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureGroups.features.operations.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.featureGroups.features.operations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be deleted.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featureGroups.features.operations.get": + +type ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +// +// - name: The name of the operation resource. +func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) Get(name string) *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall { + c := &ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureGroups.features.operations.get" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featureGroups.features.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featureGroups.features.operations.list": + +type ProjectsLocationsFeatureGroupsFeaturesOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. +// +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) List(name string) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { + c := &ProjectsLocationsFeatureGroupsFeaturesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Filter(filter string) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureGroups.features.operations.list" call. +// Exactly one of *GoogleLongrunningListOperationsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featureGroups.features.operations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}/operations", + // "response": { + // "$ref": "GoogleLongrunningListOperationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "aiplatform.projects.locations.featureGroups.features.operations.wait": + +type ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Wait: Waits until the specified long-running operation is done or +// reaches at most a specified timeout, returning the latest state. If +// the operation is already done, the latest state is immediately +// returned. If the timeout specified is greater than the default +// HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does +// not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. +// Note that this method is on a best-effort basis. It may return the +// latest state before the specified timeout (including immediately), +// meaning even an immediate response is no guarantee that the operation +// is done. +// +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsFeatureGroupsFeaturesOperationsService) Wait(name string) *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall { + c := &ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Timeout sets the optional parameter "timeout": The maximum duration +// to wait before timing out. If left blank, the wait will be at most +// the time permitted by the underlying HTTP/RPC protocol. If RPC +// context deadline is also specified, the shorter one will be used. +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall { + c.urlParams_.Set("timeout", timeout) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureGroups.features.operations.wait" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureGroupsFeaturesOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/features/{featuresId}/operations/{operationsId}:wait", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featureGroups.features.operations.wait", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to wait on.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/features/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "timeout": { + // "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + // "format": "google-duration", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:wait", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featureGroups.operations.delete": + +type ProjectsLocationsFeatureGroupsOperationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a long-running operation. This method indicates that +// the client is no longer interested in the operation result. It does +// not cancel the operation. If the server doesn't support this method, +// it returns `google.rpc.Code.UNIMPLEMENTED`. +// +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsFeatureGroupsOperationsService) Delete(name string) *ProjectsLocationsFeatureGroupsOperationsDeleteCall { + c := &ProjectsLocationsFeatureGroupsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureGroups.operations.delete" call. +// Exactly one of *GoogleProtobufEmpty or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureGroupsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleProtobufEmpty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.featureGroups.operations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be deleted.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleProtobufEmpty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featureGroups.operations.get": + +type ProjectsLocationsFeatureGroupsOperationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +// +// - name: The name of the operation resource. +func (r *ProjectsLocationsFeatureGroupsOperationsService) Get(name string) *ProjectsLocationsFeatureGroupsOperationsGetCall { + c := &ProjectsLocationsFeatureGroupsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsOperationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsOperationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsOperationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureGroups.operations.get" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featureGroups.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featureGroups.operations.list": + +type ProjectsLocationsFeatureGroupsOperationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. +// +// - name: The name of the operation's parent resource. +func (r *ProjectsLocationsFeatureGroupsOperationsService) List(name string) *ProjectsLocationsFeatureGroupsOperationsListCall { + c := &ProjectsLocationsFeatureGroupsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Filter(filter string) *ProjectsLocationsFeatureGroupsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureGroupsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsOperationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsOperationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsOperationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureGroups.operations.list" call. +// Exactly one of *GoogleLongrunningListOperationsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featureGroups.operations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The name of the operation's parent resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The standard list page token.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}/operations", + // "response": { + // "$ref": "GoogleLongrunningListOperationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "aiplatform.projects.locations.featureGroups.operations.wait": + +type ProjectsLocationsFeatureGroupsOperationsWaitCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Wait: Waits until the specified long-running operation is done or +// reaches at most a specified timeout, returning the latest state. If +// the operation is already done, the latest state is immediately +// returned. If the timeout specified is greater than the default +// HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does +// not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. +// Note that this method is on a best-effort basis. It may return the +// latest state before the specified timeout (including immediately), +// meaning even an immediate response is no guarantee that the operation +// is done. +// +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsFeatureGroupsOperationsService) Wait(name string) *ProjectsLocationsFeatureGroupsOperationsWaitCall { + c := &ProjectsLocationsFeatureGroupsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Timeout sets the optional parameter "timeout": The maximum duration +// to wait before timing out. If left blank, the wait will be at most +// the time permitted by the underlying HTTP/RPC protocol. If RPC +// context deadline is also specified, the shorter one will be used. +func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeatureGroupsOperationsWaitCall { + c.urlParams_.Set("timeout", timeout) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsOperationsWaitCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsOperationsWaitCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureGroups.operations.wait" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations/{operationsId}:wait", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featureGroups.operations.wait", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to wait on.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "timeout": { + // "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + // "format": "google-duration", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:wait", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featureOnlineStores.create": + +type ProjectsLocationsFeatureOnlineStoresCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1featureonlinestore *GoogleCloudAiplatformV1beta1FeatureOnlineStore + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new FeatureOnlineStore in a given project and +// location. +// +// - parent: The resource name of the Location to create +// FeatureOnlineStores. Format: +// `projects/{project}/locations/{location}'`. +func (r *ProjectsLocationsFeatureOnlineStoresService) Create(parent string, googlecloudaiplatformv1beta1featureonlinestore *GoogleCloudAiplatformV1beta1FeatureOnlineStore) *ProjectsLocationsFeatureOnlineStoresCreateCall { + c := &ProjectsLocationsFeatureOnlineStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1featureonlinestore = googlecloudaiplatformv1beta1featureonlinestore + return c +} + +// FeatureOnlineStoreId sets the optional parameter +// "featureOnlineStoreId": Required. The ID to use for this +// FeatureOnlineStore, which will become the final component of the +// FeatureOnlineStore's resource name. This value may be up to 60 +// characters, and valid characters are `[a-z0-9_]`. The first character +// cannot be a number. The value must be unique within the project and +// location. +func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) FeatureOnlineStoreId(featureOnlineStoreId string) *ProjectsLocationsFeatureOnlineStoresCreateCall { + c.urlParams_.Set("featureOnlineStoreId", featureOnlineStoreId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1featureonlinestore) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/featureOnlineStores") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureOnlineStores.create" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureOnlineStoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new FeatureOnlineStore in a given project and location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featureOnlineStores.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "featureOnlineStoreId": { + // "description": "Required. The ID to use for this FeatureOnlineStore, which will become the final component of the FeatureOnlineStore's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within the project and location.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location to create FeatureOnlineStores. Format: `projects/{project}/locations/{location}'`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/featureOnlineStores", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1FeatureOnlineStore" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featureOnlineStores.delete": + +type ProjectsLocationsFeatureOnlineStoresDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single FeatureOnlineStore. The FeatureOnlineStore +// must not contain any FeatureViews. +// +// - name: The name of the FeatureOnlineStore to be deleted. Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// e_online_store}`. +func (r *ProjectsLocationsFeatureOnlineStoresService) Delete(name string) *ProjectsLocationsFeatureOnlineStoresDeleteCall { + c := &ProjectsLocationsFeatureOnlineStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Force sets the optional parameter "force": If set to true, any +// FeatureViews and Features for this FeatureOnlineStore will also be +// deleted. (Otherwise, the request will only work if the +// FeatureOnlineStore has no FeatureViews.) +func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) Force(force bool) *ProjectsLocationsFeatureOnlineStoresDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureOnlineStores.delete" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureOnlineStoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a single FeatureOnlineStore. The FeatureOnlineStore must not contain any FeatureViews.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.featureOnlineStores.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "force": { + // "description": "If set to true, any FeatureViews and Features for this FeatureOnlineStore will also be deleted. (Otherwise, the request will only work if the FeatureOnlineStore has no FeatureViews.)", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Required. The name of the FeatureOnlineStore to be deleted. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featureOnlineStores.get": + +type ProjectsLocationsFeatureOnlineStoresGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single FeatureOnlineStore. +// +// - name: The name of the FeatureOnlineStore resource. +func (r *ProjectsLocationsFeatureOnlineStoresService) Get(name string) *ProjectsLocationsFeatureOnlineStoresGetCall { + c := &ProjectsLocationsFeatureOnlineStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureOnlineStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsFeatureOnlineStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureOnlineStoresGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureOnlineStoresGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureOnlineStoresGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureOnlineStores.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1FeatureOnlineStore or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1FeatureOnlineStore.ServerResponse.Header +// or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureOnlineStoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1FeatureOnlineStore, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudAiplatformV1beta1FeatureOnlineStore{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets details of a single FeatureOnlineStore.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featureOnlineStores.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the FeatureOnlineStore resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleCloudAiplatformV1beta1FeatureOnlineStore" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featureOnlineStores.list": + +type ProjectsLocationsFeatureOnlineStoresListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists FeatureOnlineStores in a given project and location. +// +// - parent: The resource name of the Location to list +// FeatureOnlineStores. Format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsFeatureOnlineStoresService) List(parent string) *ProjectsLocationsFeatureOnlineStoresListCall { + c := &ProjectsLocationsFeatureOnlineStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Lists the +// FeatureOnlineStores that match the filter expression. The following +// fields are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, +// `<=`, and `>=` comparisons. Values must be in RFC 3339 format. * +// `update_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` +// comparisons. Values must be in RFC 3339 format. * `labels`: Supports +// key-value equality and key presence. Examples: * `create_time > +// "2020-01-01" OR update_time > "2020-01-01" FeatureOnlineStores +// created or updated after 2020-01-01. * `labels.env = "prod" +// FeatureOnlineStores with label "env" set to "prod". +func (c *ProjectsLocationsFeatureOnlineStoresListCall) Filter(filter string) *ProjectsLocationsFeatureOnlineStoresListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": A comma-separated list +// of fields to order by, sorted in ascending order. Use "desc" after a +// field name for descending. Supported Fields: * `create_time` * +// `update_time` +func (c *ProjectsLocationsFeatureOnlineStoresListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureOnlineStoresListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of FeatureOnlineStores to return. The service may return fewer than +// this value. If unspecified, at most 100 FeatureOnlineStores will be +// returned. The maximum value is 100; any value greater than 100 will +// be coerced to 100. +func (c *ProjectsLocationsFeatureOnlineStoresListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureOnlineStoresListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous +// FeatureOnlineStoreAdminService.ListFeatureOnlineStores call. Provide +// this to retrieve the subsequent page. When paginating, all other +// parameters provided to +// FeatureOnlineStoreAdminService.ListFeatureOnlineStores must match the +// call that provided the page token. +func (c *ProjectsLocationsFeatureOnlineStoresListCall) PageToken(pageToken string) *ProjectsLocationsFeatureOnlineStoresListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureOnlineStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsFeatureOnlineStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureOnlineStoresListCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureOnlineStoresListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureOnlineStoresListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/featureOnlineStores") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureOnlineStores.list" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse.ServerRes +// ponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureOnlineStoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists FeatureOnlineStores in a given project and location.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featureOnlineStores.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Lists the FeatureOnlineStores that match the filter expression. The following fields are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003c=`, and `\u003e=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality and key presence. Examples: * `create_time \u003e \"2020-01-01\" OR update_time \u003e \"2020-01-01\"` FeatureOnlineStores created or updated after 2020-01-01. * `labels.env = \"prod\"` FeatureOnlineStores with label \"env\" set to \"prod\".", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported Fields: * `create_time` * `update_time`", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of FeatureOnlineStores to return. The service may return fewer than this value. If unspecified, at most 100 FeatureOnlineStores will be returned. The maximum value is 100; any value greater than 100 will be coerced to 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous FeatureOnlineStoreAdminService.ListFeatureOnlineStores call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureOnlineStoreAdminService.ListFeatureOnlineStores must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the Location to list FeatureOnlineStores. Format: `projects/{project}/locations/{location}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/featureOnlineStores", + // "response": { + // "$ref": "GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsFeatureOnlineStoresListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListFeatureOnlineStoresResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "aiplatform.projects.locations.featureOnlineStores.patch": + +type ProjectsLocationsFeatureOnlineStoresPatchCall struct { + s *Service + name string + googlecloudaiplatformv1beta1featureonlinestore *GoogleCloudAiplatformV1beta1FeatureOnlineStore + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the parameters of a single FeatureOnlineStore. +// +// - name: Output only. Name of the FeatureOnlineStore. Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// eOnlineStore}`. +func (r *ProjectsLocationsFeatureOnlineStoresService) Patch(name string, googlecloudaiplatformv1beta1featureonlinestore *GoogleCloudAiplatformV1beta1FeatureOnlineStore) *ProjectsLocationsFeatureOnlineStoresPatchCall { + c := &ProjectsLocationsFeatureOnlineStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1beta1featureonlinestore = googlecloudaiplatformv1beta1featureonlinestore + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask is +// used to specify the fields to be overwritten in the +// FeatureOnlineStore 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: * `big_query_source` * `labels` * +// `sync_config` +func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureOnlineStoresPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1featureonlinestore) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureOnlineStores.patch" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates the parameters of a single FeatureOnlineStore.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.featureOnlineStores.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. Name of the FeatureOnlineStore. Format: `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Field mask is used to specify the fields to be overwritten in the FeatureOnlineStore 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: * `big_query_source` * `labels` * `sync_config`", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1FeatureOnlineStore" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.create": + +type ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1featureview *GoogleCloudAiplatformV1beta1FeatureView + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new FeatureView in a given FeatureOnlineStore. +// +// - parent: The resource name of the FeatureOnlineStore to create +// FeatureViews. Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// e_online_store}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Create(parent string, googlecloudaiplatformv1beta1featureview *GoogleCloudAiplatformV1beta1FeatureView) *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1featureview = googlecloudaiplatformv1beta1featureview + return c +} + +// FeatureViewId sets the optional parameter "featureViewId": Required. +// The ID to use for the FeatureView, which will become the final +// component of the FeatureView's resource name. This value may be up to +// 60 characters, and valid characters are `[a-z0-9_]`. The first +// character cannot be a number. The value must be unique within a +// FeatureOnlineStore. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) FeatureViewId(featureViewId string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall { + c.urlParams_.Set("featureViewId", featureViewId) + return c +} + +// RunSyncImmediately sets the optional parameter "runSyncImmediately": +// Immutable. If set to true, one on demand sync will be run +// immediately, regardless whether the FeatureView.sync_config is +// configured or not. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) RunSyncImmediately(runSyncImmediately bool) *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall { + c.urlParams_.Set("runSyncImmediately", fmt.Sprint(runSyncImmediately)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1featureview) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/featureViews") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.create" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new FeatureView in a given FeatureOnlineStore.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "featureViewId": { + // "description": "Required. The ID to use for the FeatureView, which will become the final component of the FeatureView's resource name. This value may be up to 60 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within a FeatureOnlineStore.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the FeatureOnlineStore to create FeatureViews. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "runSyncImmediately": { + // "description": "Immutable. If set to true, one on demand sync will be run immediately, regardless whether the FeatureView.sync_config is configured or not.", + // "location": "query", + // "type": "boolean" + // } + // }, + // "path": "v1beta1/{+parent}/featureViews", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1FeatureView" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.delete": + +type ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single FeatureView. +// +// - name: The name of the FeatureView to be deleted. Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// e_online_store}/featureViews/{feature_view}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Delete(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.delete" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a single FeatureView.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}", + // "httpMethod": "DELETE", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the FeatureView to be deleted. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.fetchFeatureValues": + +type ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall struct { + s *Service + featureView string + googlecloudaiplatformv1beta1fetchfeaturevaluesrequest *GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// FetchFeatureValues: Fetch feature values under a FeatureView. +// +// - featureView: FeatureView resource format +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// eOnlineStore}/featureViews/{featureView}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) FetchFeatureValues(featureView string, googlecloudaiplatformv1beta1fetchfeaturevaluesrequest *GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.featureView = featureView + c.googlecloudaiplatformv1beta1fetchfeaturevaluesrequest = googlecloudaiplatformv1beta1fetchfeaturevaluesrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1fetchfeaturevaluesrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+featureView}:fetchFeatureValues") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "featureView": c.featureView, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.fetchFeatureValues" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse.ServerResponse +// .Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFetchFeatureValuesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Fetch feature values under a FeatureView.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}:fetchFeatureValues", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.fetchFeatureValues", + // "parameterOrder": [ + // "featureView" + // ], + // "parameters": { + // "featureView": { + // "description": "Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+featureView}:fetchFeatureValues", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1FetchFeatureValuesRequest" + // }, + // "response": { + // "$ref": "GoogleCloudAiplatformV1beta1FetchFeatureValuesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.get": + +type ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single FeatureView. +// +// - name: The name of the FeatureView resource. Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// e_online_store}/featureViews/{feature_view}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Get(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1FeatureView or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleCloudAiplatformV1beta1FeatureView.ServerResponse.Header or (if +// a response was returned at all) in error.(*googleapi.Error).Header. +// Use googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1FeatureView, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudAiplatformV1beta1FeatureView{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets details of a single FeatureView.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the FeatureView resource. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "response": { + // "$ref": "GoogleCloudAiplatformV1beta1FeatureView" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.list": + +type ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists FeatureViews in a given FeatureOnlineStore. +// +// - parent: The resource name of the FeatureOnlineStore to list +// FeatureViews. Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// e_online_store}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) List(parent string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Lists the FeatureViews +// that match the filter expression. The following filters are +// supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, `>=`, and +// `<=` comparisons. Values must be in RFC 3339 format. * `update_time`: +// Supports `=`, `!=`, `<`, `>`, `>=`, and `<=` comparisons. Values must +// be in RFC 3339 format. * `labels`: Supports key-value equality as +// well as key presence. Examples: * `create_time > +// \"2020-01-31T15:30:00.000000Z\" OR update_time > +// \"2020-01-31T15:30:00.000000Z\" --> FeatureViews created or updated +// after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND +// labels.env = prod` --> FeatureViews having both (active: yes) and +// (env: prod) labels. * `labels.env: *` --> Any FeatureView which has a +// label with 'env' as the key. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Filter(filter string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": A comma-separated list +// of fields to order by, sorted in ascending order. Use "desc" after a +// field name for descending. Supported fields: * `feature_view_id` * +// `create_time` * `update_time` +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of FeatureViews to return. The service may return fewer than this +// value. If unspecified, at most 1000 FeatureViews will be returned. +// The maximum value is 1000; any value greater than 1000 will be +// coerced to 1000. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous +// FeatureOnlineStoreAdminService.ListFeatureViews call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// provided to FeatureOnlineStoreAdminService.ListFeatureViews must +// match the call that provided the page token. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/featureViews") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.list" call. +// Exactly one of *GoogleCloudAiplatformV1beta1ListFeatureViewsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1beta1ListFeatureViewsResponse.ServerResponse.H +// eader or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListFeatureViewsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudAiplatformV1beta1ListFeatureViewsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists FeatureViews in a given FeatureOnlineStore.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews", + // "httpMethod": "GET", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Lists the FeatureViews that match the filter expression. The following filters are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003e=`, and `\u003c=` comparisons. Values must be in RFC 3339 format. * `update_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003e=`, and `\u003c=` comparisons. Values must be in RFC 3339 format. * `labels`: Supports key-value equality as well as key presence. Examples: * `create_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\" OR update_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\"` --\u003e FeatureViews created or updated after 2020-01-31T15:30:00.000000Z. * `labels.active = yes AND labels.env = prod` --\u003e FeatureViews having both (active: yes) and (env: prod) labels. * `labels.env: *` --\u003e Any FeatureView which has a label with 'env' as the key.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `feature_view_id` * `create_time` * `update_time`", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of FeatureViews to return. The service may return fewer than this value. If unspecified, at most 1000 FeatureViews will be returned. The maximum value is 1000; any value greater than 1000 will be coerced to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous FeatureOnlineStoreAdminService.ListFeatureViews call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureOnlineStoreAdminService.ListFeatureViews must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the FeatureOnlineStore to list FeatureViews. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/featureViews", + // "response": { + // "$ref": "GoogleCloudAiplatformV1beta1ListFeatureViewsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListFeatureViewsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.patch": + +type ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall struct { + s *Service + name string + googlecloudaiplatformv1beta1featureview *GoogleCloudAiplatformV1beta1FeatureView + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the parameters of a single FeatureView. +// +// - name: Output only. Name of the FeatureView. Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// e_online_store}/featureViews/{feature_view}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Patch(name string, googlecloudaiplatformv1beta1featureview *GoogleCloudAiplatformV1beta1FeatureView) *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudaiplatformv1beta1featureview = googlecloudaiplatformv1beta1featureview + return c +} + +// UpdateMask sets the optional parameter "updateMask": Field mask is +// used to specify the fields to be overwritten in the FeatureView +// 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` +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1featureview) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.patch" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates the parameters of a single FeatureView.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}", + // "httpMethod": "PATCH", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. Name of the FeatureView. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "updateMask": { + // "description": "Field mask is used to specify the fields to be overwritten in the FeatureView 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`", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1FeatureView" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.searchNearestEntities": + +type ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall struct { + s *Service + featureView string + googlecloudaiplatformv1beta1searchnearestentitiesrequest *GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SearchNearestEntities: Search the nearest entities under a +// FeatureView. Search only works for indexable feature view; if a +// feature view isn't indexable, returns Invalid argument response. +// +// - featureView: FeatureView resource format +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// eOnlineStore}/featureViews/{featureView}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) SearchNearestEntities(featureView string, googlecloudaiplatformv1beta1searchnearestentitiesrequest *GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest) *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.featureView = featureView + c.googlecloudaiplatformv1beta1searchnearestentitiesrequest = googlecloudaiplatformv1beta1searchnearestentitiesrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1searchnearestentitiesrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+featureView}:searchNearestEntities") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "featureView": c.featureView, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.searchNearestEntities" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse.ServerRespo +// nse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSearchNearestEntitiesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Search the nearest entities under a FeatureView. Search only works for indexable feature view; if a feature view isn't indexable, returns Invalid argument response.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}:searchNearestEntities", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.searchNearestEntities", + // "parameterOrder": [ + // "featureView" + // ], + // "parameters": { + // "featureView": { + // "description": "Required. FeatureView resource format `projects/{project}/locations/{location}/featureOnlineStores/{featureOnlineStore}/featureViews/{featureView}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+featureView}:searchNearestEntities", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest" + // }, + // "response": { + // "$ref": "GoogleCloudAiplatformV1beta1SearchNearestEntitiesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.sync": + +type ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall struct { + s *Service + featureView string + googlecloudaiplatformv1beta1syncfeatureviewrequest *GoogleCloudAiplatformV1beta1SyncFeatureViewRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Sync: Triggers on-demand sync for the FeatureView. +// +// - featureView: Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// e_online_store}/featureViews/{feature_view}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Sync(featureView string, googlecloudaiplatformv1beta1syncfeatureviewrequest *GoogleCloudAiplatformV1beta1SyncFeatureViewRequest) *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.featureView = featureView + c.googlecloudaiplatformv1beta1syncfeatureviewrequest = googlecloudaiplatformv1beta1syncfeatureviewrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1syncfeatureviewrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+featureView}:sync") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "featureView": c.featureView, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.sync" call. +// Exactly one of *GoogleCloudAiplatformV1beta1SyncFeatureViewResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudAiplatformV1beta1SyncFeatureViewResponse.ServerResponse.He +// ader or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsSyncCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1SyncFeatureViewResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudAiplatformV1beta1SyncFeatureViewResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Triggers on-demand sync for the FeatureView.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}:sync", + // "httpMethod": "POST", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.sync", + // "parameterOrder": [ + // "featureView" + // ], + // "parameters": { + // "featureView": { + // "description": "Required. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+featureView}:sync", + // "request": { + // "$ref": "GoogleCloudAiplatformV1beta1SyncFeatureViewRequest" + // }, + // "response": { + // "$ref": "GoogleCloudAiplatformV1beta1SyncFeatureViewResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.get": + +type ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single FeatureViewSync. +// +// - name: The name of the FeatureViewSync resource. Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// e_online_store}/featureViews/{feature_view}/featureViewSyncs/{featur +// e_view_sync}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsService) Get(name string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -53596,14 +59812,16 @@ func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.operations.get" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.get" call. +// Exactly one of *GoogleCloudAiplatformV1beta1FeatureViewSync or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1FeatureViewSync.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1FeatureViewSync, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -53622,7 +59840,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) Do(opts ...googleapi.C if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningOperation{ + ret := &GoogleCloudAiplatformV1beta1FeatureViewSync{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -53634,25 +59852,25 @@ func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations/{operationsId}", + // "description": "Gets details of a single FeatureViewSync.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/featureViewSyncs/{featureViewSyncsId}", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureGroups.operations.get", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "The name of the operation resource.", + // "description": "Required. The name of the FeatureViewSync resource. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}/featureViewSyncs/{feature_view_sync}`", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+/featureViewSyncs/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1beta1/{+name}", // "response": { - // "$ref": "GoogleLongrunningOperation" + // "$ref": "GoogleCloudAiplatformV1beta1FeatureViewSync" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -53661,45 +59879,66 @@ func (c *ProjectsLocationsFeatureGroupsOperationsGetCall) Do(opts ...googleapi.C } -// method id "aiplatform.projects.locations.featureGroups.operations.list": +// method id "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.list": -type ProjectsLocationsFeatureGroupsOperationsListCall struct { +type ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall struct { s *Service - name string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// List: Lists operations that match the specified filter in the -// request. If the server doesn't support this method, it returns -// `UNIMPLEMENTED`. +// List: Lists FeatureViewSyncs in a given FeatureView. // -// - name: The name of the operation's parent resource. -func (r *ProjectsLocationsFeatureGroupsOperationsService) List(name string) *ProjectsLocationsFeatureGroupsOperationsListCall { - c := &ProjectsLocationsFeatureGroupsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// - parent: The resource name of the FeatureView to list +// FeatureViewSyncs. Format: +// `projects/{project}/locations/{location}/featureOnlineStores/{featur +// e_online_store}/featureViews/{feature_view}`. +func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsService) List(parent string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { + c := &ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } -// Filter sets the optional parameter "filter": The standard list -// filter. -func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Filter(filter string) *ProjectsLocationsFeatureGroupsOperationsListCall { +// Filter sets the optional parameter "filter": Lists the +// FeatureViewSyncs that match the filter expression. The following +// filters are supported: * `create_time`: Supports `=`, `!=`, `<`, `>`, +// `>=`, and `<=` comparisons. Values must be in RFC 3339 format. +// Examples: * `create_time > \"2020-01-31T15:30:00.000000Z\" --> +// FeatureViewSyncs created after 2020-01-31T15:30:00.000000Z. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Filter(filter string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { c.urlParams_.Set("filter", filter) return c } -// PageSize sets the optional parameter "pageSize": The standard list -// page size. -func (c *ProjectsLocationsFeatureGroupsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureGroupsOperationsListCall { +// OrderBy sets the optional parameter "orderBy": A comma-separated list +// of fields to order by, sorted in ascending order. Use "desc" after a +// field name for descending. Supported fields: * `create_time` +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) OrderBy(orderBy string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of FeatureViewSyncs to return. The service may return fewer than this +// value. If unspecified, at most 1000 FeatureViewSyncs will be +// returned. The maximum value is 1000; any value greater than 1000 will +// be coerced to 1000. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) PageSize(pageSize int64) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) return c } -// PageToken sets the optional parameter "pageToken": The standard list -// page token. -func (c *ProjectsLocationsFeatureGroupsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureGroupsOperationsListCall { +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous +// FeatureOnlineStoreAdminService.ListFeatureViewSyncs call. Provide +// this to retrieve the subsequent page. When paginating, all other +// parameters provided to +// FeatureOnlineStoreAdminService.ListFeatureViewSyncs must match the +// call that provided the page token. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) PageToken(pageToken string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { c.urlParams_.Set("pageToken", pageToken) return c } @@ -53707,7 +59946,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsListCall) PageToken(pageToken s // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsOperationsListCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -53717,7 +59956,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Fields(s ...googleapi // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsFeatureGroupsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureGroupsOperationsListCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { c.ifNoneMatch_ = entityTag return c } @@ -53725,21 +59964,21 @@ func (c *ProjectsLocationsFeatureGroupsOperationsListCall) IfNoneMatch(entityTag // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsOperationsListCall { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Context(ctx context.Context) *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Header() http.Header { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsFeatureGroupsOperationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -53752,7 +59991,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsListCall) doRequest(alt string) var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/featureViewSyncs") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -53760,20 +59999,22 @@ func (c *ProjectsLocationsFeatureGroupsOperationsListCall) doRequest(alt string) } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "aiplatform.projects.locations.featureGroups.operations.list" call. -// Exactly one of *GoogleLongrunningListOperationsResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if -// a response was returned at all) in error.(*googleapi.Error).Header. -// Use googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { +// Do executes the "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.list" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse.ServerRespon +// se.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -53792,7 +60033,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Do(opts ...googleapi. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleLongrunningListOperationsResponse{ + ret := &GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -53804,41 +60045,46 @@ func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Do(opts ...googleapi. } return ret, nil // { - // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations", + // "description": "Lists FeatureViewSyncs in a given FeatureView.", + // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureOnlineStores/{featureOnlineStoresId}/featureViews/{featureViewsId}/featureViewSyncs", // "httpMethod": "GET", - // "id": "aiplatform.projects.locations.featureGroups.operations.list", + // "id": "aiplatform.projects.locations.featureOnlineStores.featureViews.featureViewSyncs.list", // "parameterOrder": [ - // "name" + // "parent" // ], // "parameters": { // "filter": { - // "description": "The standard list filter.", + // "description": "Lists the FeatureViewSyncs that match the filter expression. The following filters are supported: * `create_time`: Supports `=`, `!=`, `\u003c`, `\u003e`, `\u003e=`, and `\u003c=` comparisons. Values must be in RFC 3339 format. Examples: * `create_time \u003e \\\"2020-01-31T15:30:00.000000Z\\\"` --\u003e FeatureViewSyncs created after 2020-01-31T15:30:00.000000Z.", // "location": "query", // "type": "string" // }, - // "name": { - // "description": "The name of the operation's parent resource.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+$", - // "required": true, + // "orderBy": { + // "description": "A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending. Supported fields: * `create_time`", + // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "The standard list page size.", + // "description": "The maximum number of FeatureViewSyncs to return. The service may return fewer than this value. If unspecified, at most 1000 FeatureViewSyncs will be returned. The maximum value is 1000; any value greater than 1000 will be coerced to 1000.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "The standard list page token.", + // "description": "A page token, received from a previous FeatureOnlineStoreAdminService.ListFeatureViewSyncs call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to FeatureOnlineStoreAdminService.ListFeatureViewSyncs must match the call that provided the page token.", // "location": "query", // "type": "string" + // }, + // "parent": { + // "description": "Required. The resource name of the FeatureView to list FeatureViewSyncs. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/featureOnlineStores/[^/]+/featureViews/[^/]+$", + // "required": true, + // "type": "string" // } // }, - // "path": "v1beta1/{+name}/operations", + // "path": "v1beta1/{+parent}/featureViewSyncs", // "response": { - // "$ref": "GoogleLongrunningListOperationsResponse" + // "$ref": "GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -53850,7 +60096,7 @@ func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Do(opts ...googleapi. // Pages invokes f for each page of results. // A non-nil error returned from f will halt the iteration. // The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { +func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsFeatureViewSyncsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListFeatureViewSyncsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -53868,162 +60114,6 @@ func (c *ProjectsLocationsFeatureGroupsOperationsListCall) Pages(ctx context.Con } } -// method id "aiplatform.projects.locations.featureGroups.operations.wait": - -type ProjectsLocationsFeatureGroupsOperationsWaitCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Wait: Waits until the specified long-running operation is done or -// reaches at most a specified timeout, returning the latest state. If -// the operation is already done, the latest state is immediately -// returned. If the timeout specified is greater than the default -// HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does -// not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. -// Note that this method is on a best-effort basis. It may return the -// latest state before the specified timeout (including immediately), -// meaning even an immediate response is no guarantee that the operation -// is done. -// -// - name: The name of the operation resource to wait on. -func (r *ProjectsLocationsFeatureGroupsOperationsService) Wait(name string) *ProjectsLocationsFeatureGroupsOperationsWaitCall { - c := &ProjectsLocationsFeatureGroupsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Timeout sets the optional parameter "timeout": The maximum duration -// to wait before timing out. If left blank, the wait will be at most -// the time permitted by the underlying HTTP/RPC protocol. If RPC -// context deadline is also specified, the shorter one will be used. -func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Timeout(timeout string) *ProjectsLocationsFeatureGroupsOperationsWaitCall { - c.urlParams_.Set("timeout", timeout) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsFeatureGroupsOperationsWaitCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsFeatureGroupsOperationsWaitCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:wait") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "aiplatform.projects.locations.featureGroups.operations.wait" call. -// Exactly one of *GoogleLongrunningOperation or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleLongrunningOperation.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use -// googleapi.IsNotModified to check whether the returned error was -// because http.StatusNotModified was returned. -func (c *ProjectsLocationsFeatureGroupsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { - gensupport.SetOptions(c.urlParams_, opts...) - res, err := c.doRequest("json") - if res != nil && res.StatusCode == http.StatusNotModified { - if res.Body != nil { - res.Body.Close() - } - return nil, gensupport.WrapError(&googleapi.Error{ - Code: res.StatusCode, - Header: res.Header, - }) - } - if err != nil { - return nil, err - } - defer googleapi.CloseBody(res) - if err := googleapi.CheckResponse(res); err != nil { - return nil, gensupport.WrapError(err) - } - ret := &GoogleLongrunningOperation{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", - // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/featureGroups/{featureGroupsId}/operations/{operationsId}:wait", - // "httpMethod": "POST", - // "id": "aiplatform.projects.locations.featureGroups.operations.wait", - // "parameterOrder": [ - // "name" - // ], - // "parameters": { - // "name": { - // "description": "The name of the operation resource to wait on.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/featureGroups/[^/]+/operations/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "timeout": { - // "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", - // "format": "google-duration", - // "location": "query", - // "type": "string" - // } - // }, - // "path": "v1beta1/{+name}:wait", - // "response": { - // "$ref": "GoogleLongrunningOperation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - // method id "aiplatform.projects.locations.featureOnlineStores.featureViews.operations.delete": type ProjectsLocationsFeatureOnlineStoresFeatureViewsOperationsDeleteCall struct { @@ -59453,10 +65543,7 @@ type ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall struct { // Create: Creates a new Feature in a given EntityType. // -// - parent: The resource name of the EntityType to create a Feature. -// Format: -// `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}`. +// - parent: . func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Create(parent string, googlecloudaiplatformv1beta1feature *GoogleCloudAiplatformV1beta1Feature) *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall { c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -59468,7 +65555,7 @@ func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Create(parent // to use for the Feature, which will become the final component of the // Feature's resource name. This value may be up to 128 characters, and // valid characters are `[a-z0-9_]`. The first character cannot be a -// number. The value must be unique within an EntityType . +// number. The value must be unique within an EntityType/FeatureGroup. func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) FeatureId(featureId string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall { c.urlParams_.Set("featureId", featureId) return c @@ -59574,12 +65661,11 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesCreateCall) Do(opts .. // ], // "parameters": { // "featureId": { - // "description": "Required. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType .", + // "description": "Required. The ID to use for the Feature, which will become the final component of the Feature's resource name. This value may be up to 128 characters, and valid characters are `[a-z0-9_]`. The first character cannot be a number. The value must be unique within an EntityType/FeatureGroup.", // "location": "query", // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the EntityType to create a Feature. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "required": true, @@ -59614,7 +65700,9 @@ type ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall struct { // // - name: The name of the Features to be deleted. Format: // `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}/features/{feature}`. +// }/entityTypes/{entity_type}/features/{feature}` +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}/features/{feature}`. func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Delete(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall { c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -59716,7 +65804,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesDeleteCall) Do(opts .. // ], // "parameters": { // "name": { - // "description": "Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}`", + // "description": "Required. The name of the Features to be deleted. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}/features/{feature}` `projects/{project}/locations/{location}/featureGroups/{feature_group}/features/{feature}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", // "required": true, @@ -59749,7 +65837,9 @@ type ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall struct { // // - name: The name of the Feature resource. Format: // `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}`. +// }/entityTypes/{entity_type}` +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}`. func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Get(name string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall { c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -59865,7 +65955,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesGetCall) Do(opts ...go // ], // "parameters": { // "name": { - // "description": "Required. The name of the Feature resource. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", + // "description": "Required. The name of the Feature resource. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+/features/[^/]+$", // "required": true, @@ -59898,7 +65988,9 @@ type ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall struct { // // - parent: The resource name of the Location to list Features. Format: // `projects/{project}/locations/{location}/featurestores/{featurestore -// }/entityTypes/{entity_type}`. +// }/entityTypes/{entity_type}` +// `projects/{project}/locations/{location}/featureGroups/{feature_grou +// p}`. func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) List(parent string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall { c := &ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -60107,7 +66199,7 @@ func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesListCall) Do(opts ...g // "type": "string" // }, // "parent": { - // "description": "Required. The resource name of the Location to list Features. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`", + // "description": "Required. The resource name of the Location to list Features. Format: `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}` `projects/{project}/locations/{location}/featureGroups/{feature_group}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/featurestores/[^/]+/entityTypes/[^/]+$", // "required": true, @@ -83905,9 +89997,11 @@ type ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall struct { // instance to obtain EUC for owner Anonymous access: authenticates // caller using VM identity JWT. Design doc: go/colab-on-vertex-euc-dd // -// - name: The name of the NotebookRuntime resource. Format: +// - name: The name of the resource requesting the OAuth2 token. Format: // `projects/{project}/locations/{location}/notebookRuntimes/{notebook_ -// runtime}`. +// runtime}` +// `projects/{project}/locations/{location}/notebookExecutionJobs/{note +// book_execution_job}`. func (r *ProjectsLocationsNotebookExecutionJobsService) GenerateAccessToken(name string, googlecloudaiplatformv1beta1generateaccesstokenrequest *GoogleCloudAiplatformV1beta1GenerateAccessTokenRequest) *ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall { c := &ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -84018,7 +90112,7 @@ func (c *ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall) Do(opts // ], // "parameters": { // "name": { - // "description": "Required. The name of the NotebookRuntime resource. Format: `projects/{project}/locations/{location}/notebookRuntimes/{notebook_runtime}`", + // "description": "Required. The name of the resource requesting the OAuth2 token. Format: `projects/{project}/locations/{location}/notebookRuntimes/{notebook_runtime}` `projects/{project}/locations/{location}/notebookExecutionJobs/{notebook_execution_job}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+$", // "required": true, @@ -84042,23 +90136,23 @@ func (c *ProjectsLocationsNotebookExecutionJobsGenerateAccessTokenCall) Do(opts // method id "aiplatform.projects.locations.notebookExecutionJobs.reportEvent": type ProjectsLocationsNotebookExecutionJobsReportEventCall struct { - s *Service - name string - googlecloudaiplatformv1beta1reportruntimeeventrequest *GoogleCloudAiplatformV1beta1ReportRuntimeEventRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header + s *Service + name string + googlecloudaiplatformv1beta1reportexecutioneventrequest *GoogleCloudAiplatformV1beta1ReportExecutionEventRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } // ReportEvent: // -// - name: The name of the NotebookRuntime resource. Format: -// `projects/{project}/locations/{location}/notebookRuntimes/{notebook_ -// runtime}`. -func (r *ProjectsLocationsNotebookExecutionJobsService) ReportEvent(name string, googlecloudaiplatformv1beta1reportruntimeeventrequest *GoogleCloudAiplatformV1beta1ReportRuntimeEventRequest) *ProjectsLocationsNotebookExecutionJobsReportEventCall { +// - name: The name of the NotebookExecutionJob resource. Format: +// `projects/{project}/locations/{location}/notebookExecutionJobs/{note +// book_execution_jobs}`. +func (r *ProjectsLocationsNotebookExecutionJobsService) ReportEvent(name string, googlecloudaiplatformv1beta1reportexecutioneventrequest *GoogleCloudAiplatformV1beta1ReportExecutionEventRequest) *ProjectsLocationsNotebookExecutionJobsReportEventCall { c := &ProjectsLocationsNotebookExecutionJobsReportEventCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudaiplatformv1beta1reportruntimeeventrequest = googlecloudaiplatformv1beta1reportruntimeeventrequest + c.googlecloudaiplatformv1beta1reportexecutioneventrequest = googlecloudaiplatformv1beta1reportexecutioneventrequest return c } @@ -84095,7 +90189,7 @@ func (c *ProjectsLocationsNotebookExecutionJobsReportEventCall) doRequest(alt st } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1reportruntimeeventrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1reportexecutioneventrequest) if err != nil { return nil, err } @@ -84117,15 +90211,15 @@ func (c *ProjectsLocationsNotebookExecutionJobsReportEventCall) doRequest(alt st // Do executes the "aiplatform.projects.locations.notebookExecutionJobs.reportEvent" call. // Exactly one of -// *GoogleCloudAiplatformV1beta1ReportRuntimeEventResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudAiplatformV1beta1ReportRuntimeEventResponse.ServerResponse -// .Header or (if a response was returned at all) in +// *GoogleCloudAiplatformV1beta1ReportExecutionEventResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ReportExecutionEventResponse.ServerRespon +// se.Header or (if a response was returned at all) in // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *ProjectsLocationsNotebookExecutionJobsReportEventCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ReportRuntimeEventResponse, error) { +func (c *ProjectsLocationsNotebookExecutionJobsReportEventCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ReportExecutionEventResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -84144,7 +90238,7 @@ func (c *ProjectsLocationsNotebookExecutionJobsReportEventCall) Do(opts ...googl if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &GoogleCloudAiplatformV1beta1ReportRuntimeEventResponse{ + ret := &GoogleCloudAiplatformV1beta1ReportExecutionEventResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -84165,7 +90259,7 @@ func (c *ProjectsLocationsNotebookExecutionJobsReportEventCall) Do(opts ...googl // ], // "parameters": { // "name": { - // "description": "Required. The name of the NotebookRuntime resource. Format: `projects/{project}/locations/{location}/notebookRuntimes/{notebook_runtime}`", + // "description": "Required. The name of the NotebookExecutionJob resource. Format: `projects/{project}/locations/{location}/notebookExecutionJobs/{notebook_execution_jobs}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/notebookExecutionJobs/[^/]+$", // "required": true, @@ -84174,10 +90268,10 @@ func (c *ProjectsLocationsNotebookExecutionJobsReportEventCall) Do(opts ...googl // }, // "path": "v1beta1/{+name}:reportEvent", // "request": { - // "$ref": "GoogleCloudAiplatformV1beta1ReportRuntimeEventRequest" + // "$ref": "GoogleCloudAiplatformV1beta1ReportExecutionEventRequest" // }, // "response": { - // "$ref": "GoogleCloudAiplatformV1beta1ReportRuntimeEventResponse" + // "$ref": "GoogleCloudAiplatformV1beta1ReportExecutionEventResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -84820,9 +90914,11 @@ func (r *ProjectsLocationsNotebookRuntimeTemplatesService) List(parent string) * // and != * `labels` supports general map functions that is: * // `labels.key=value` - key:value equality * `labels.key:* or labels:key // - key existence * A key including a space must be quoted. `labels."a -// key". Some examples: * +// key". * `notebookRuntimeType` supports = and !=. notebookRuntimeType +// enum: [USER_DEFINED, ONE_CLICK]. Some examples: * // `notebookRuntimeTemplate=notebookRuntimeTemplate123` * -// `displayName="myDisplayName" * `labels.myKey="myValue" +// `displayName="myDisplayName" * `labels.myKey="myValue" * +// `notebookRuntimeType=USER_DEFINED` func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) Filter(filter string) *ProjectsLocationsNotebookRuntimeTemplatesListCall { c.urlParams_.Set("filter", filter) return c @@ -84972,7 +91068,7 @@ func (c *ProjectsLocationsNotebookRuntimeTemplatesListCall) Do(opts ...googleapi // ], // "parameters": { // "filter": { - // "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `display_name` supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. Some examples: * `notebookRuntimeTemplate=notebookRuntimeTemplate123` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"`", + // "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `display_name` supports = and != * `labels` supports general map functions that is: * `labels.key=value` - key:value equality * `labels.key:* or labels:key - key existence * A key including a space must be quoted. `labels.\"a key\"`. * `notebookRuntimeType` supports = and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. Some examples: * `notebookRuntimeTemplate=notebookRuntimeTemplate123` * `displayName=\"myDisplayName\"` * `labels.myKey=\"myValue\"` * `notebookRuntimeType=USER_DEFINED`", // "location": "query", // "type": "string" // }, @@ -85638,9 +91734,11 @@ type ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall struct { // instance to obtain EUC for owner Anonymous access: authenticates // caller using VM identity JWT. Design doc: go/colab-on-vertex-euc-dd // -// - name: The name of the NotebookRuntime resource. Format: +// - name: The name of the resource requesting the OAuth2 token. Format: // `projects/{project}/locations/{location}/notebookRuntimes/{notebook_ -// runtime}`. +// runtime}` +// `projects/{project}/locations/{location}/notebookExecutionJobs/{note +// book_execution_job}`. func (r *ProjectsLocationsNotebookRuntimesService) GenerateAccessToken(name string, googlecloudaiplatformv1beta1generateaccesstokenrequest *GoogleCloudAiplatformV1beta1GenerateAccessTokenRequest) *ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall { c := &ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -85751,7 +91849,7 @@ func (c *ProjectsLocationsNotebookRuntimesGenerateAccessTokenCall) Do(opts ...go // ], // "parameters": { // "name": { - // "description": "Required. The name of the NotebookRuntime resource. Format: `projects/{project}/locations/{location}/notebookRuntimes/{notebook_runtime}`", + // "description": "Required. The name of the resource requesting the OAuth2 token. Format: `projects/{project}/locations/{location}/notebookRuntimes/{notebook_runtime}` `projects/{project}/locations/{location}/notebookExecutionJobs/{notebook_execution_job}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/notebookRuntimes/[^/]+$", // "required": true, @@ -85961,12 +92059,15 @@ func (r *ProjectsLocationsNotebookRuntimesService) List(parent string) *Projects // supports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, // UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, // UI_RESOURCE_STATE_BEING_DELETED, UI_RESOURCE_STATE_CREATION_FAILED]. -// Some examples: * `notebookRuntime="notebookRuntime123" * +// * `notebookRuntimeType` supports = and !=. notebookRuntimeType enum: +// [USER_DEFINED, ONE_CLICK]. Some examples: * +// `notebookRuntime="notebookRuntime123" * // `displayName="myDisplayName" and `displayName=~"myDisplayNameRegex" // * `notebookRuntimeTemplate="notebookRuntimeTemplate321" * // `healthState=HEALTHY` * `runtimeState=RUNNING` * // `runtimeUser="test@google.com" * -// `uiState=UI_RESOURCE_STATE_BEING_DELETED` +// `uiState=UI_RESOURCE_STATE_BEING_DELETED` * +// `notebookRuntimeType=USER_DEFINED` func (c *ProjectsLocationsNotebookRuntimesListCall) Filter(filter string) *ProjectsLocationsNotebookRuntimesListCall { c.urlParams_.Set("filter", filter) return c @@ -86116,7 +92217,7 @@ func (c *ProjectsLocationsNotebookRuntimesListCall) Do(opts ...googleapi.CallOpt // ], // "parameters": { // "filter": { - // "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntime` supports = and !=. `notebookRuntime` represents the NotebookRuntime ID, i.e. the last segment of the NotebookRuntime's resource name. * `displayName` supports = and != and regex. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `healthState` supports = and !=. healthState enum: [HEALTHY, UNHEALTHY, HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. runtimeState enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED, STOPPED, BEING_UPGRADED]. * `runtimeUser` supports = and !=. * API version is UI only: `uiState` supports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED, UI_RESOURCE_STATE_CREATION_FAILED]. Some examples: * `notebookRuntime=\"notebookRuntime123\"` * `displayName=\"myDisplayName\"` and `displayName=~\"myDisplayNameRegex\"` * `notebookRuntimeTemplate=\"notebookRuntimeTemplate321\"` * `healthState=HEALTHY` * `runtimeState=RUNNING` * `runtimeUser=\"test@google.com\"` * `uiState=UI_RESOURCE_STATE_BEING_DELETED`", + // "description": "Optional. An expression for filtering the results of the request. For field names both snake_case and camelCase are supported. * `notebookRuntime` supports = and !=. `notebookRuntime` represents the NotebookRuntime ID, i.e. the last segment of the NotebookRuntime's resource name. * `displayName` supports = and != and regex. * `notebookRuntimeTemplate` supports = and !=. `notebookRuntimeTemplate` represents the NotebookRuntimeTemplate ID, i.e. the last segment of the NotebookRuntimeTemplate's resource name. * `healthState` supports = and !=. healthState enum: [HEALTHY, UNHEALTHY, HEALTH_STATE_UNSPECIFIED]. * `runtimeState` supports = and !=. runtimeState enum: [RUNTIME_STATE_UNSPECIFIED, RUNNING, BEING_STARTED, BEING_STOPPED, STOPPED, BEING_UPGRADED]. * `runtimeUser` supports = and !=. * API version is UI only: `uiState` supports = and !=. uiState enum: [UI_RESOURCE_STATE_UNSPECIFIED, UI_RESOURCE_STATE_BEING_CREATED, UI_RESOURCE_STATE_ACTIVE, UI_RESOURCE_STATE_BEING_DELETED, UI_RESOURCE_STATE_CREATION_FAILED]. * `notebookRuntimeType` supports = and !=. notebookRuntimeType enum: [USER_DEFINED, ONE_CLICK]. Some examples: * `notebookRuntime=\"notebookRuntime123\"` * `displayName=\"myDisplayName\"` and `displayName=~\"myDisplayNameRegex\"` * `notebookRuntimeTemplate=\"notebookRuntimeTemplate321\"` * `healthState=HEALTHY` * `runtimeState=RUNNING` * `runtimeUser=\"test@google.com\"` * `uiState=UI_RESOURCE_STATE_BEING_DELETED` * `notebookRuntimeType=USER_DEFINED`", // "location": "query", // "type": "string" // }, @@ -108876,3 +114977,279 @@ func (c *PublishersModelsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloud // } } + +// method id "aiplatform.publishers.models.list": + +type PublishersModelsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists publisher models in Model Garden. +// +// - parent: The name of the Publisher from which to list the +// PublisherModels. Format: `publishers/{publisher}`. +func (r *PublishersModelsService) List(parent string) *PublishersModelsListCall { + c := &PublishersModelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": The standard list +// filter. +func (c *PublishersModelsListCall) Filter(filter string) *PublishersModelsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// LanguageCode sets the optional parameter "languageCode": The IETF +// BCP-47 language code representing the language in which the publisher +// models' text information should be written in (see go/bcp47). If not +// set, by default English (en). +func (c *PublishersModelsListCall) LanguageCode(languageCode string) *PublishersModelsListCall { + c.urlParams_.Set("languageCode", languageCode) + return c +} + +// OrderBy sets the optional parameter "orderBy": A comma-separated list +// of fields to order by, sorted in ascending order. Use "desc" after a +// field name for descending. +func (c *PublishersModelsListCall) OrderBy(orderBy string) *PublishersModelsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The standard list +// page size. +func (c *PublishersModelsListCall) PageSize(pageSize int64) *PublishersModelsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The standard list +// page token. Typically obtained via +// ListPublisherModelsResponse.next_page_token of the previous +// ModelGardenService.ListPublisherModels call. +func (c *PublishersModelsListCall) PageToken(pageToken string) *PublishersModelsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// View sets the optional parameter "view": PublisherModel view +// specifying which fields to read. +// +// Possible values: +// +// "PUBLISHER_MODEL_VIEW_UNSPECIFIED" - The default / unset value. The +// +// API will default to the BASIC view. +// +// "PUBLISHER_MODEL_VIEW_BASIC" - Include basic metadata about the +// +// publisher model, but not the full contents. +// +// "PUBLISHER_MODEL_VIEW_FULL" - Include everything. +// "PUBLISHER_MODEL_VERSION_VIEW_BASIC" - Include: VersionId, +// +// ModelVersionExternalName, and SupportedActions. +func (c *PublishersModelsListCall) View(view string) *PublishersModelsListCall { + c.urlParams_.Set("view", view) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *PublishersModelsListCall) Fields(s ...googleapi.Field) *PublishersModelsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *PublishersModelsListCall) IfNoneMatch(entityTag string) *PublishersModelsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *PublishersModelsListCall) Context(ctx context.Context) *PublishersModelsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *PublishersModelsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PublishersModelsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/models") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "aiplatform.publishers.models.list" call. +// Exactly one of +// *GoogleCloudAiplatformV1beta1ListPublisherModelsResponse or error +// will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudAiplatformV1beta1ListPublisherModelsResponse.ServerRespons +// e.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *PublishersModelsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudAiplatformV1beta1ListPublisherModelsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleCloudAiplatformV1beta1ListPublisherModelsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists publisher models in Model Garden.", + // "flatPath": "v1beta1/publishers/{publishersId}/models", + // "httpMethod": "GET", + // "id": "aiplatform.publishers.models.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. The standard list filter.", + // "location": "query", + // "type": "string" + // }, + // "languageCode": { + // "description": "Optional. The IETF BCP-47 language code representing the language in which the publisher models' text information should be written in (see go/bcp47). If not set, by default English (en).", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Optional. A comma-separated list of fields to order by, sorted in ascending order. Use \"desc\" after a field name for descending.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. The standard list page size.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. The standard list page token. Typically obtained via ListPublisherModelsResponse.next_page_token of the previous ModelGardenService.ListPublisherModels call.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The name of the Publisher from which to list the PublisherModels. Format: `publishers/{publisher}`", + // "location": "path", + // "pattern": "^publishers/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "view": { + // "description": "Optional. PublisherModel view specifying which fields to read.", + // "enum": [ + // "PUBLISHER_MODEL_VIEW_UNSPECIFIED", + // "PUBLISHER_MODEL_VIEW_BASIC", + // "PUBLISHER_MODEL_VIEW_FULL", + // "PUBLISHER_MODEL_VERSION_VIEW_BASIC" + // ], + // "enumDescriptions": [ + // "The default / unset value. The API will default to the BASIC view.", + // "Include basic metadata about the publisher model, but not the full contents.", + // "Include everything.", + // "Include: VersionId, ModelVersionExternalName, and SupportedActions." + // ], + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1beta1/{+parent}/models", + // "response": { + // "$ref": "GoogleCloudAiplatformV1beta1ListPublisherModelsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *PublishersModelsListCall) Pages(ctx context.Context, f func(*GoogleCloudAiplatformV1beta1ListPublisherModelsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} diff --git a/androidpublisher/v3/androidpublisher-api.json b/androidpublisher/v3/androidpublisher-api.json index 9324d37b575..e71245bb40b 100644 --- a/androidpublisher/v3/androidpublisher-api.json +++ b/androidpublisher/v3/androidpublisher-api.json @@ -632,7 +632,7 @@ "accept": [ "application/octet-stream" ], - "maxSize": "1258291200", + "maxSize": "1677721600", "protocols": { "resumable": { "multipart": true, @@ -4047,7 +4047,7 @@ } } }, - "revision": "20230921", + "revision": "20231003", "rootUrl": "https://androidpublisher.googleapis.com/", "schemas": { "Abi": { diff --git a/androidpublisher/v3/androidpublisher-gen.go b/androidpublisher/v3/androidpublisher-gen.go index 688e9624bbd..57512d96118 100644 --- a/androidpublisher/v3/androidpublisher-gen.go +++ b/androidpublisher/v3/androidpublisher-gen.go @@ -9930,7 +9930,7 @@ func (c *EditsDeobfuscationfilesUploadCall) Do(opts ...googleapi.CallOption) (*D // "accept": [ // "application/octet-stream" // ], - // "maxSize": "1258291200", + // "maxSize": "1677721600", // "protocols": { // "resumable": { // "multipart": true, diff --git a/api-list.json b/api-list.json index 02b260b08d3..0da102aec01 100644 --- a/api-list.json +++ b/api-list.json @@ -3536,8 +3536,8 @@ "id": "indexing:v3", "name": "indexing", "version": "v3", - "title": "Indexing API", - "description": "Notifies Google when your web pages change.", + "title": "Web Search Indexing API", + "description": "Notifies Google Web Search when your web pages change.", "discoveryRestUrl": "https://indexing.googleapis.com/$discovery/rest?version=v3", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", @@ -5090,6 +5090,21 @@ "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" }, "documentationLink": "https://developers.google.com/safe-browsing/", + "preferred": false + }, + { + "kind": "discovery#directoryItem", + "id": "safebrowsing:v5", + "name": "safebrowsing", + "version": "v5", + "title": "Safe Browsing API", + "description": "Enables client applications to check web resources (most commonly URLs) against Google-generated lists of unsafe web resources. The Safe Browsing APIs are for non-commercial use only. If you need to use APIs to detect malicious URLs for commercial purposes – meaning “for sale or revenue-generating purposes” – please refer to the Web Risk API.", + "discoveryRestUrl": "https://safebrowsing.googleapis.com/$discovery/rest?version=v5", + "icons": { + "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", + "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + }, + "documentationLink": "https://developers.google.com/safe-browsing/", "preferred": true }, { diff --git a/containeranalysis/v1/containeranalysis-api.json b/containeranalysis/v1/containeranalysis-api.json index 97aff4f50ae..171cdda34c2 100644 --- a/containeranalysis/v1/containeranalysis-api.json +++ b/containeranalysis/v1/containeranalysis-api.json @@ -755,7 +755,7 @@ } } }, - "revision": "20230915", + "revision": "20230929", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AliasContext": { @@ -5492,10 +5492,6 @@ }, "type": "array" }, - "extraDetails": { - "description": "Occurrence-specific extra details about the vulnerability.", - "type": "string" - }, "severity": { "description": "The note provider assigned severity of this vulnerability.", "enum": [ @@ -5582,6 +5578,10 @@ ], "type": "string" }, + "extraDetails": { + "description": "Occurrence-specific extra details about the vulnerability.", + "type": "string" + }, "fixAvailable": { "description": "Output only. Whether at least one of the affected packages has a fix available.", "type": "boolean" diff --git a/containeranalysis/v1/containeranalysis-gen.go b/containeranalysis/v1/containeranalysis-gen.go index 84c38a47442..604efdd8cbd 100644 --- a/containeranalysis/v1/containeranalysis-gen.go +++ b/containeranalysis/v1/containeranalysis-gen.go @@ -7410,10 +7410,6 @@ type VulnerabilityNote struct { // vulnerability. Details []*Detail `json:"details,omitempty"` - // ExtraDetails: Occurrence-specific extra details about the - // vulnerability. - ExtraDetails string `json:"extraDetails,omitempty"` - // Severity: The note provider assigned severity of this vulnerability. // // Possible values: @@ -7517,6 +7513,10 @@ type VulnerabilityOccurrence struct { // "CRITICAL" - Critical severity. EffectiveSeverity string `json:"effectiveSeverity,omitempty"` + // ExtraDetails: Occurrence-specific extra details about the + // vulnerability. + ExtraDetails string `json:"extraDetails,omitempty"` + // FixAvailable: Output only. Whether at least one of the affected // packages has a fix available. FixAvailable bool `json:"fixAvailable,omitempty"` diff --git a/containeranalysis/v1alpha1/containeranalysis-api.json b/containeranalysis/v1alpha1/containeranalysis-api.json index 898c2434e60..a34ab10c796 100644 --- a/containeranalysis/v1alpha1/containeranalysis-api.json +++ b/containeranalysis/v1alpha1/containeranalysis-api.json @@ -1233,7 +1233,7 @@ } } }, - "revision": "20230915", + "revision": "20230929", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AnalysisCompleted": { @@ -6670,6 +6670,10 @@ ], "type": "string" }, + "extraDetails": { + "description": "Occurrence-specific extra details about the vulnerability.", + "type": "string" + }, "packageIssue": { "description": "The set of affected locations and their fixes (if available) within the associated resource.", "items": { diff --git a/containeranalysis/v1alpha1/containeranalysis-gen.go b/containeranalysis/v1alpha1/containeranalysis-gen.go index 695979baeff..87591516747 100644 --- a/containeranalysis/v1alpha1/containeranalysis-gen.go +++ b/containeranalysis/v1alpha1/containeranalysis-gen.go @@ -8413,6 +8413,10 @@ type VulnerabilityDetails struct { // "CRITICAL" - Critical Impact EffectiveSeverity string `json:"effectiveSeverity,omitempty"` + // ExtraDetails: Occurrence-specific extra details about the + // vulnerability. + ExtraDetails string `json:"extraDetails,omitempty"` + // PackageIssue: The set of affected locations and their fixes (if // available) within the associated resource. PackageIssue []*PackageIssue `json:"packageIssue,omitempty"` diff --git a/containeranalysis/v1beta1/containeranalysis-api.json b/containeranalysis/v1beta1/containeranalysis-api.json index fda375b5046..11890b17c93 100644 --- a/containeranalysis/v1beta1/containeranalysis-api.json +++ b/containeranalysis/v1beta1/containeranalysis-api.json @@ -815,7 +815,7 @@ } } }, - "revision": "20230915", + "revision": "20230929", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AliasContext": { @@ -3973,6 +3973,10 @@ ], "type": "string" }, + "extraDetails": { + "description": "Occurrence-specific extra details about the vulnerability.", + "type": "string" + }, "longDescription": { "description": "Output only. A detailed description of this vulnerability.", "type": "string" @@ -5920,10 +5924,6 @@ }, "type": "array" }, - "extraDetails": { - "description": "Occurrence-specific extra details about the vulnerability.", - "type": "string" - }, "severity": { "description": "Note provider assigned impact of the vulnerability.", "enum": [ diff --git a/containeranalysis/v1beta1/containeranalysis-gen.go b/containeranalysis/v1beta1/containeranalysis-gen.go index 1873a6b25b0..7dc045f8831 100644 --- a/containeranalysis/v1beta1/containeranalysis-gen.go +++ b/containeranalysis/v1beta1/containeranalysis-gen.go @@ -4847,6 +4847,10 @@ type GrafeasV1beta1VulnerabilityDetails struct { // "CRITICAL" - Critical severity. EffectiveSeverity string `json:"effectiveSeverity,omitempty"` + // ExtraDetails: Occurrence-specific extra details about the + // vulnerability. + ExtraDetails string `json:"extraDetails,omitempty"` + // LongDescription: Output only. A detailed description of this // vulnerability. LongDescription string `json:"longDescription,omitempty"` @@ -7739,10 +7743,6 @@ type Vulnerability struct { // package vulnerability has manifested in. Details []*Detail `json:"details,omitempty"` - // ExtraDetails: Occurrence-specific extra details about the - // vulnerability. - ExtraDetails string `json:"extraDetails,omitempty"` - // Severity: Note provider assigned impact of the vulnerability. // // Possible values: diff --git a/datalabeling/v1beta1/datalabeling-api.json b/datalabeling/v1beta1/datalabeling-api.json index b17b94453d1..0f1cc53620a 100644 --- a/datalabeling/v1beta1/datalabeling-api.json +++ b/datalabeling/v1beta1/datalabeling-api.json @@ -1596,7 +1596,7 @@ } } }, - "revision": "20230429", + "revision": "20231001", "rootUrl": "https://datalabeling.googleapis.com/", "schemas": { "GoogleCloudDatalabelingV1alpha1CreateInstructionMetadata": { @@ -3513,6 +3513,7 @@ }, "csvInstruction": { "$ref": "GoogleCloudDatalabelingV1beta1CsvInstruction", + "deprecated": true, "description": "Deprecated: this instruction format is not supported any more. Instruction from a CSV file, such as for classification task. The CSV file should have exact two columns, in the following format: * The first column is labeled data, such as an image reference, text. * The second column is comma separated labels associated with data." }, "dataType": { @@ -4457,6 +4458,7 @@ }, "sentimentConfig": { "$ref": "GoogleCloudDatalabelingV1beta1SentimentConfig", + "deprecated": true, "description": "Optional. Configs for sentiment selection. We deprecate sentiment analysis in data labeling side as it is incompatible with uCAIP." } }, @@ -5611,7 +5613,7 @@ "description": "Properties of the object. Contains field @type with type URL.", "type": "any" }, - "description": "The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", "type": "object" } }, diff --git a/datalabeling/v1beta1/datalabeling-gen.go b/datalabeling/v1beta1/datalabeling-gen.go index 3652f26af32..0d373151834 100644 --- a/datalabeling/v1beta1/datalabeling-gen.go +++ b/datalabeling/v1beta1/datalabeling-gen.go @@ -7917,8 +7917,8 @@ type GoogleLongrunningOperation struct { // `operations/{unique_id}`. Name string `json:"name,omitempty"` - // Response: The normal response of the operation in case of success. If - // the original method returns no data on success, such as `Delete`, the + // Response: The normal, successful response of the operation. If the + // original method returns no data on success, such as `Delete`, the // response is `google.protobuf.Empty`. If the original method is // standard `Get`/`Create`/`Update`, the response should be the // resource. For other methods, the response should have the type diff --git a/discoveryengine/v1alpha/discoveryengine-api.json b/discoveryengine/v1alpha/discoveryengine-api.json index f216025d7c3..80e930f1444 100644 --- a/discoveryengine/v1alpha/discoveryengine-api.json +++ b/discoveryengine/v1alpha/discoveryengine-api.json @@ -2832,7 +2832,7 @@ } } }, - "revision": "20230925", + "revision": "20230928", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -3715,7 +3715,8 @@ "STRING", "NUMBER", "INTEGER", - "BOOLEAN" + "BOOLEAN", + "GEOLOCATION" ], "enumDescriptions": [ "Field type is unspecified.", @@ -3723,7 +3724,8 @@ "Field value type is String.", "Field value type is Number.", "Field value type is Integer.", - "Field value type is Boolean." + "Field value type is Boolean.", + "Field value type is Geolocation." ], "readOnly": true, "type": "string" @@ -5030,6 +5032,12 @@ }, "type": "array" }, + "geoSearchDebugInfo": { + "items": { + "$ref": "GoogleCloudDiscoveryengineV1alphaSearchResponseGeoSearchDebugInfo" + }, + "type": "array" + }, "guidedSearchResult": { "$ref": "GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResult", "description": "Guided search result." @@ -5107,6 +5115,21 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1alphaSearchResponseGeoSearchDebugInfo": { + "description": "Debug information specifically related to forward geocoding issues arising from Geolocation Search.", + "id": "GoogleCloudDiscoveryengineV1alphaSearchResponseGeoSearchDebugInfo", + "properties": { + "errorMessage": { + "description": "The error produced.", + "type": "string" + }, + "originalAddressQuery": { + "description": "The address from which forward geocoding ingestion produced issues.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResult": { "description": "Guided search result. The guided search helps user to refine the search results and narrow down to the real needs from a broaded search results.", "id": "GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResult", @@ -5683,6 +5706,20 @@ "description": "Immutable. The full resource name of the widget config. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/widgetConfigs/{widget_config_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.", "type": "string" }, + "resultDisplayType": { + "description": "The type of snippet to display in UCS widget. - RESULT_DISPLAY_TYPE_UNSPECIFIED for existing users. - SNIPPET for new non-enterprise search users. - EXTRACTIVE_ANSWER for new enterprise search users.", + "enum": [ + "RESULT_DISPLAY_TYPE_UNSPECIFIED", + "SNIPPET", + "EXTRACTIVE_ANSWER" + ], + "enumDescriptions": [ + "Unspecified display type (default to showing snippet).", + "Display results from the snippet field.", + "Display results from extractive answers field." + ], + "type": "string" + }, "solutionType": { "description": "Required. Immutable. Specifies the solution type that this WidgetConfig can be used for.", "enum": [ diff --git a/discoveryengine/v1alpha/discoveryengine-gen.go b/discoveryengine/v1alpha/discoveryengine-gen.go index d1fff2e3179..6d46ae7f3f6 100644 --- a/discoveryengine/v1alpha/discoveryengine-gen.go +++ b/discoveryengine/v1alpha/discoveryengine-gen.go @@ -2235,6 +2235,7 @@ type GoogleCloudDiscoveryengineV1alphaFieldConfig struct { // "NUMBER" - Field value type is Number. // "INTEGER" - Field value type is Integer. // "BOOLEAN" - Field value type is Boolean. + // "GEOLOCATION" - Field value type is Geolocation. FieldType string `json:"fieldType,omitempty"` // IndexableOption: If indexable_option is INDEXABLE_ENABLED, field @@ -4785,6 +4786,8 @@ type GoogleCloudDiscoveryengineV1alphaSearchResponse struct { // Facets: Results of facets requested by user. Facets []*GoogleCloudDiscoveryengineV1alphaSearchResponseFacet `json:"facets,omitempty"` + GeoSearchDebugInfo []*GoogleCloudDiscoveryengineV1alphaSearchResponseGeoSearchDebugInfo `json:"geoSearchDebugInfo,omitempty"` + // GuidedSearchResult: Guided search result. GuidedSearchResult *GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResult `json:"guidedSearchResult,omitempty"` @@ -4914,6 +4917,40 @@ func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseFacetFacetValue) Marshal return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1alphaSearchResponseGeoSearchDebugInfo: +// Debug information specifically related to forward geocoding issues +// arising from Geolocation Search. +type GoogleCloudDiscoveryengineV1alphaSearchResponseGeoSearchDebugInfo struct { + // ErrorMessage: The error produced. + ErrorMessage string `json:"errorMessage,omitempty"` + + // OriginalAddressQuery: The address from which forward geocoding + // ingestion produced issues. + OriginalAddressQuery string `json:"originalAddressQuery,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ErrorMessage") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ErrorMessage") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseGeoSearchDebugInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseGeoSearchDebugInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResult: // Guided search result. The guided search helps user to refine the // search results and narrow down to the real needs from a broaded @@ -5878,6 +5915,19 @@ type GoogleCloudDiscoveryengineV1alphaWidgetConfig struct { // characters. Name string `json:"name,omitempty"` + // ResultDisplayType: The type of snippet to display in UCS widget. - + // RESULT_DISPLAY_TYPE_UNSPECIFIED for existing users. - SNIPPET for new + // non-enterprise search users. - EXTRACTIVE_ANSWER for new enterprise + // search users. + // + // Possible values: + // "RESULT_DISPLAY_TYPE_UNSPECIFIED" - Unspecified display type + // (default to showing snippet). + // "SNIPPET" - Display results from the snippet field. + // "EXTRACTIVE_ANSWER" - Display results from extractive answers + // field. + ResultDisplayType string `json:"resultDisplayType,omitempty"` + // SolutionType: Required. Immutable. Specifies the solution type that // this WidgetConfig can be used for. // diff --git a/discoveryengine/v1beta/discoveryengine-api.json b/discoveryengine/v1beta/discoveryengine-api.json index fcde93b24af..0381e76464d 100644 --- a/discoveryengine/v1beta/discoveryengine-api.json +++ b/discoveryengine/v1beta/discoveryengine-api.json @@ -2598,7 +2598,7 @@ } } }, - "revision": "20230925", + "revision": "20230928", "rootUrl": "https://discoveryengine.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -3070,7 +3070,8 @@ "STRING", "NUMBER", "INTEGER", - "BOOLEAN" + "BOOLEAN", + "GEOLOCATION" ], "enumDescriptions": [ "Field type is unspecified.", @@ -3078,7 +3079,8 @@ "Field value type is String.", "Field value type is Number.", "Field value type is Integer.", - "Field value type is Boolean." + "Field value type is Boolean.", + "Field value type is Geolocation." ], "readOnly": true, "type": "string" @@ -5048,6 +5050,12 @@ }, "type": "array" }, + "geoSearchDebugInfo": { + "items": { + "$ref": "GoogleCloudDiscoveryengineV1betaSearchResponseGeoSearchDebugInfo" + }, + "type": "array" + }, "guidedSearchResult": { "$ref": "GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResult", "description": "Guided search result." @@ -5125,6 +5133,21 @@ }, "type": "object" }, + "GoogleCloudDiscoveryengineV1betaSearchResponseGeoSearchDebugInfo": { + "description": "Debug information specifically related to forward geocoding issues arising from Geolocation Search.", + "id": "GoogleCloudDiscoveryengineV1betaSearchResponseGeoSearchDebugInfo", + "properties": { + "errorMessage": { + "description": "The error produced.", + "type": "string" + }, + "originalAddressQuery": { + "description": "The address from which forward geocoding ingestion produced issues.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResult": { "description": "Guided search result. The guided search helps user to refine the search results and narrow down to the real needs from a broaded search results.", "id": "GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResult", diff --git a/discoveryengine/v1beta/discoveryengine-gen.go b/discoveryengine/v1beta/discoveryengine-gen.go index 8c6107f3cf2..720c7073ba3 100644 --- a/discoveryengine/v1beta/discoveryengine-gen.go +++ b/discoveryengine/v1beta/discoveryengine-gen.go @@ -1430,6 +1430,7 @@ type GoogleCloudDiscoveryengineV1alphaFieldConfig struct { // "NUMBER" - Field value type is Number. // "INTEGER" - Field value type is Integer. // "BOOLEAN" - Field value type is Boolean. + // "GEOLOCATION" - Field value type is Geolocation. FieldType string `json:"fieldType,omitempty"` // IndexableOption: If indexable_option is INDEXABLE_ENABLED, field @@ -5075,6 +5076,8 @@ type GoogleCloudDiscoveryengineV1betaSearchResponse struct { // Facets: Results of facets requested by user. Facets []*GoogleCloudDiscoveryengineV1betaSearchResponseFacet `json:"facets,omitempty"` + GeoSearchDebugInfo []*GoogleCloudDiscoveryengineV1betaSearchResponseGeoSearchDebugInfo `json:"geoSearchDebugInfo,omitempty"` + // GuidedSearchResult: Guided search result. GuidedSearchResult *GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResult `json:"guidedSearchResult,omitempty"` @@ -5204,6 +5207,40 @@ func (s *GoogleCloudDiscoveryengineV1betaSearchResponseFacetFacetValue) MarshalJ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDiscoveryengineV1betaSearchResponseGeoSearchDebugInfo: +// Debug information specifically related to forward geocoding issues +// arising from Geolocation Search. +type GoogleCloudDiscoveryengineV1betaSearchResponseGeoSearchDebugInfo struct { + // ErrorMessage: The error produced. + ErrorMessage string `json:"errorMessage,omitempty"` + + // OriginalAddressQuery: The address from which forward geocoding + // ingestion produced issues. + OriginalAddressQuery string `json:"originalAddressQuery,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ErrorMessage") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ErrorMessage") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDiscoveryengineV1betaSearchResponseGeoSearchDebugInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseGeoSearchDebugInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResult: // Guided search result. The guided search helps user to refine the // search results and narrow down to the real needs from a broaded diff --git a/docs/v1/docs-api.json b/docs/v1/docs-api.json index 66d1eb02488..221324979d8 100644 --- a/docs/v1/docs-api.json +++ b/docs/v1/docs-api.json @@ -216,7 +216,7 @@ } } }, - "revision": "20230227", + "revision": "20230929", "rootUrl": "https://docs.googleapis.com/", "schemas": { "AutoText": { @@ -911,6 +911,10 @@ "description": "The ID of the header used only for the first page. If not set then a unique header for the first page does not exist. The value of use_first_page_header_footer determines whether to use the default_header_id or this value for the header on the first page. If not set, there's no first page header. This property is read-only.", "type": "string" }, + "flipPageOrientation": { + "description": "Optional. Indicates whether to flip the dimensions of the page_size, which allows changing the page orientation between portrait and landscape.", + "type": "boolean" + }, "marginBottom": { "$ref": "Dimension", "description": "The bottom page margin. Updating the bottom page margin on the document style clears the bottom page margin on all section styles." @@ -991,6 +995,10 @@ "description": "Indicates if there was a suggested change to first_page_header_id.", "type": "boolean" }, + "flipPageOrientationSuggested": { + "description": "Optional. Indicates if there was a suggested change to flip_page_orientation.", + "type": "boolean" + }, "marginBottomSuggested": { "description": "Indicates if there was a suggested change to margin_bottom.", "type": "boolean" @@ -3192,6 +3200,10 @@ "description": "The ID of the header used only for the first page of the section. If use_first_page_header_footer is true, this value is used for the header on the first page of the section. If it's false, the header on the first page of the section uses the default_header_id. If unset, the value inherits from the previous SectionBreak's SectionStyle. If the value is unset in the first SectionBreak, it inherits from DocumentStyle's first_page_header_id. This property is read-only.", "type": "string" }, + "flipPageOrientation": { + "description": "Optional. Indicates whether to flip the dimensions of DocumentStyle's page_size for this section, which allows changing the page orientation between portrait and landscape. If unset, the value inherits from DocumentStyle's flip_page_orientation. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error.", + "type": "boolean" + }, "marginBottom": { "$ref": "Dimension", "description": "The bottom page margin of the section. If unset, the value defaults to margin_bottom from DocumentStyle. When updating this property, setting a concrete value is required. Unsetting this property results in a 400 bad request error." diff --git a/docs/v1/docs-gen.go b/docs/v1/docs-gen.go index 73a55e810c4..96724696989 100644 --- a/docs/v1/docs-gen.go +++ b/docs/v1/docs-gen.go @@ -1509,6 +1509,11 @@ type DocumentStyle struct { // If not set, there's no first page header. This property is read-only. FirstPageHeaderId string `json:"firstPageHeaderId,omitempty"` + // FlipPageOrientation: Optional. Indicates whether to flip the + // dimensions of the page_size, which allows changing the page + // orientation between portrait and landscape. + FlipPageOrientation bool `json:"flipPageOrientation,omitempty"` + // MarginBottom: The bottom page margin. Updating the bottom page margin // on the document style clears the bottom page margin on all section // styles. @@ -1613,6 +1618,10 @@ type DocumentStyleSuggestionState struct { // to first_page_header_id. FirstPageHeaderIdSuggested bool `json:"firstPageHeaderIdSuggested,omitempty"` + // FlipPageOrientationSuggested: Optional. Indicates if there was a + // suggested change to flip_page_orientation. + FlipPageOrientationSuggested bool `json:"flipPageOrientationSuggested,omitempty"` + // MarginBottomSuggested: Indicates if there was a suggested change to // margin_bottom. MarginBottomSuggested bool `json:"marginBottomSuggested,omitempty"` @@ -5154,6 +5163,15 @@ type SectionStyle struct { // This property is read-only. FirstPageHeaderId string `json:"firstPageHeaderId,omitempty"` + // FlipPageOrientation: Optional. Indicates whether to flip the + // dimensions of DocumentStyle's page_size for this section, which + // allows changing the page orientation between portrait and landscape. + // If unset, the value inherits from DocumentStyle's + // flip_page_orientation. When updating this property, setting a + // concrete value is required. Unsetting this property results in a 400 + // bad request error. + FlipPageOrientation bool `json:"flipPageOrientation,omitempty"` + // MarginBottom: The bottom page margin of the section. If unset, the // value defaults to margin_bottom from DocumentStyle. When updating // this property, setting a concrete value is required. Unsetting this diff --git a/indexing/v3/indexing-api.json b/indexing/v3/indexing-api.json index 44e77828a82..39d2035186e 100644 --- a/indexing/v3/indexing-api.json +++ b/indexing/v3/indexing-api.json @@ -12,7 +12,7 @@ "baseUrl": "https://indexing.googleapis.com/", "batchPath": "batch", "canonicalName": "Indexing", - "description": "Notifies Google when your web pages change.", + "description": "Notifies Google Web Search when your web pages change.", "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/search/apis/indexing-api/", "fullyEncodeReservedExpansion": true, @@ -149,7 +149,7 @@ } } }, - "revision": "20200804", + "revision": "20230927", "rootUrl": "https://indexing.googleapis.com/", "schemas": { "PublishUrlNotificationResponse": { @@ -214,7 +214,7 @@ } }, "servicePath": "", - "title": "Indexing API", + "title": "Web Search Indexing API", "version": "v3", "version_module": true } \ No newline at end of file diff --git a/indexing/v3/indexing-gen.go b/indexing/v3/indexing-gen.go index 98c91101709..7f6a1ae6a6b 100644 --- a/indexing/v3/indexing-gen.go +++ b/indexing/v3/indexing-gen.go @@ -4,7 +4,7 @@ // Code generated file. DO NOT EDIT. -// Package indexing provides access to the Indexing API. +// Package indexing provides access to the Web Search Indexing API. // // For product documentation, see: https://developers.google.com/search/apis/indexing-api/ // diff --git a/ondemandscanning/v1/ondemandscanning-api.json b/ondemandscanning/v1/ondemandscanning-api.json index 3eb73296518..64a0cd9c322 100644 --- a/ondemandscanning/v1/ondemandscanning-api.json +++ b/ondemandscanning/v1/ondemandscanning-api.json @@ -339,7 +339,7 @@ } } }, - "revision": "20230807", + "revision": "20231002", "rootUrl": "https://ondemandscanning.googleapis.com/", "schemas": { "AliasContext": { @@ -2842,6 +2842,10 @@ ], "type": "string" }, + "extraDetails": { + "description": "Occurrence-specific extra details about the vulnerability.", + "type": "string" + }, "fixAvailable": { "description": "Output only. Whether at least one of the affected packages has a fix available.", "type": "boolean" diff --git a/ondemandscanning/v1/ondemandscanning-gen.go b/ondemandscanning/v1/ondemandscanning-gen.go index d6c21de7615..bf2b4361a78 100644 --- a/ondemandscanning/v1/ondemandscanning-gen.go +++ b/ondemandscanning/v1/ondemandscanning-gen.go @@ -4050,6 +4050,10 @@ type VulnerabilityOccurrence struct { // "CRITICAL" - Critical severity. EffectiveSeverity string `json:"effectiveSeverity,omitempty"` + // ExtraDetails: Occurrence-specific extra details about the + // vulnerability. + ExtraDetails string `json:"extraDetails,omitempty"` + // FixAvailable: Output only. Whether at least one of the affected // packages has a fix available. FixAvailable bool `json:"fixAvailable,omitempty"` diff --git a/ondemandscanning/v1beta1/ondemandscanning-api.json b/ondemandscanning/v1beta1/ondemandscanning-api.json index d4cb31fa0e0..a0509c50fb8 100644 --- a/ondemandscanning/v1beta1/ondemandscanning-api.json +++ b/ondemandscanning/v1beta1/ondemandscanning-api.json @@ -339,7 +339,7 @@ } } }, - "revision": "20230807", + "revision": "20231002", "rootUrl": "https://ondemandscanning.googleapis.com/", "schemas": { "AliasContext": { @@ -2837,6 +2837,10 @@ ], "type": "string" }, + "extraDetails": { + "description": "Occurrence-specific extra details about the vulnerability.", + "type": "string" + }, "fixAvailable": { "description": "Output only. Whether at least one of the affected packages has a fix available.", "type": "boolean" diff --git a/ondemandscanning/v1beta1/ondemandscanning-gen.go b/ondemandscanning/v1beta1/ondemandscanning-gen.go index 4aac388eb5c..e0dd40d6d3f 100644 --- a/ondemandscanning/v1beta1/ondemandscanning-gen.go +++ b/ondemandscanning/v1beta1/ondemandscanning-gen.go @@ -4044,6 +4044,10 @@ type VulnerabilityOccurrence struct { // "CRITICAL" - Critical severity. EffectiveSeverity string `json:"effectiveSeverity,omitempty"` + // ExtraDetails: Occurrence-specific extra details about the + // vulnerability. + ExtraDetails string `json:"extraDetails,omitempty"` + // FixAvailable: Output only. Whether at least one of the affected // packages has a fix available. FixAvailable bool `json:"fixAvailable,omitempty"` diff --git a/oslogin/v1alpha/oslogin-api.json b/oslogin/v1alpha/oslogin-api.json index 90b8a02c159..4cee68b5ebc 100644 --- a/oslogin/v1alpha/oslogin-api.json +++ b/oslogin/v1alpha/oslogin-api.json @@ -280,6 +280,39 @@ } }, "resources": { + "locations": { + "methods": { + "signSshPublicKey": { + "description": "Signs an SSH public key for a user to authenticate to a virtual machine on Google Compute Engine.", + "flatPath": "v1alpha/users/{usersId}/projects/{projectsId}/locations/{locationsId}:signSshPublicKey", + "httpMethod": "POST", + "id": "oslogin.users.projects.locations.signSshPublicKey", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "The parent project and zone for the signing request. This is needed to properly ensure per-organization ISS processing and potentially to provide for the possibility of zone-specific certificates used in the signing process.", + "location": "path", + "pattern": "^users/[^/]+/projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}:signSshPublicKey", + "request": { + "$ref": "SignSshPublicKeyRequest" + }, + "response": { + "$ref": "SignSshPublicKeyResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + } + } + }, "zones": { "methods": { "signSshPublicKey": { @@ -438,7 +471,7 @@ } } }, - "revision": "20230903", + "revision": "20231001", "rootUrl": "https://oslogin.googleapis.com/", "schemas": { "Empty": { diff --git a/oslogin/v1alpha/oslogin-gen.go b/oslogin/v1alpha/oslogin-gen.go index 34e7b2a22f0..28cbad0013c 100644 --- a/oslogin/v1alpha/oslogin-gen.go +++ b/oslogin/v1alpha/oslogin-gen.go @@ -188,6 +188,7 @@ type UsersService struct { func NewUsersProjectsService(s *Service) *UsersProjectsService { rs := &UsersProjectsService{s: s} + rs.Locations = NewUsersProjectsLocationsService(s) rs.Zones = NewUsersProjectsZonesService(s) return rs } @@ -195,9 +196,20 @@ func NewUsersProjectsService(s *Service) *UsersProjectsService { type UsersProjectsService struct { s *Service + Locations *UsersProjectsLocationsService + Zones *UsersProjectsZonesService } +func NewUsersProjectsLocationsService(s *Service) *UsersProjectsLocationsService { + rs := &UsersProjectsLocationsService{s: s} + return rs +} + +type UsersProjectsLocationsService struct { + s *Service +} + func NewUsersProjectsZonesService(s *Service) *UsersProjectsZonesService { rs := &UsersProjectsZonesService{s: s} return rs @@ -1171,6 +1183,153 @@ func (c *UsersProjectsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, erro } +// method id "oslogin.users.projects.locations.signSshPublicKey": + +type UsersProjectsLocationsSignSshPublicKeyCall struct { + s *Service + parent string + signsshpublickeyrequest *SignSshPublicKeyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SignSshPublicKey: Signs an SSH public key for a user to authenticate +// to a virtual machine on Google Compute Engine. +// +// - parent: The parent project and zone for the signing request. This +// is needed to properly ensure per-organization ISS processing and +// potentially to provide for the possibility of zone-specific +// certificates used in the signing process. +func (r *UsersProjectsLocationsService) SignSshPublicKey(parent string, signsshpublickeyrequest *SignSshPublicKeyRequest) *UsersProjectsLocationsSignSshPublicKeyCall { + c := &UsersProjectsLocationsSignSshPublicKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.signsshpublickeyrequest = signsshpublickeyrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *UsersProjectsLocationsSignSshPublicKeyCall) Fields(s ...googleapi.Field) *UsersProjectsLocationsSignSshPublicKeyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *UsersProjectsLocationsSignSshPublicKeyCall) Context(ctx context.Context) *UsersProjectsLocationsSignSshPublicKeyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *UsersProjectsLocationsSignSshPublicKeyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *UsersProjectsLocationsSignSshPublicKeyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.signsshpublickeyrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}:signSshPublicKey") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "oslogin.users.projects.locations.signSshPublicKey" call. +// Exactly one of *SignSshPublicKeyResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *SignSshPublicKeyResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *UsersProjectsLocationsSignSshPublicKeyCall) Do(opts ...googleapi.CallOption) (*SignSshPublicKeyResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &SignSshPublicKeyResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Signs an SSH public key for a user to authenticate to a virtual machine on Google Compute Engine.", + // "flatPath": "v1alpha/users/{usersId}/projects/{projectsId}/locations/{locationsId}:signSshPublicKey", + // "httpMethod": "POST", + // "id": "oslogin.users.projects.locations.signSshPublicKey", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "The parent project and zone for the signing request. This is needed to properly ensure per-organization ISS processing and potentially to provide for the possibility of zone-specific certificates used in the signing process.", + // "location": "path", + // "pattern": "^users/[^/]+/projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}:signSshPublicKey", + // "request": { + // "$ref": "SignSshPublicKeyRequest" + // }, + // "response": { + // "$ref": "SignSshPublicKeyResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + // method id "oslogin.users.projects.zones.signSshPublicKey": type UsersProjectsZonesSignSshPublicKeyCall struct { diff --git a/oslogin/v1beta/oslogin-api.json b/oslogin/v1beta/oslogin-api.json index ec47c8cc461..7f57127ae56 100644 --- a/oslogin/v1beta/oslogin-api.json +++ b/oslogin/v1beta/oslogin-api.json @@ -250,6 +250,39 @@ } }, "resources": { + "locations": { + "methods": { + "signSshPublicKey": { + "description": "Signs an SSH public key for a user to authenticate to an instance.", + "flatPath": "v1beta/users/{usersId}/projects/{projectsId}/locations/{locationsId}:signSshPublicKey", + "httpMethod": "POST", + "id": "oslogin.users.projects.locations.signSshPublicKey", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "The parent project and zone for the signing request. This is needed to properly ensure per-organization ISS processing and potentially to provide for the possibility of zone-specific certificates used in the signing process.", + "location": "path", + "pattern": "^users/[^/]+/projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+parent}:signSshPublicKey", + "request": { + "$ref": "SignSshPublicKeyRequest" + }, + "response": { + "$ref": "SignSshPublicKeyResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + } + } + }, "zones": { "methods": { "signSshPublicKey": { @@ -408,7 +441,7 @@ } } }, - "revision": "20230903", + "revision": "20231001", "rootUrl": "https://oslogin.googleapis.com/", "schemas": { "Empty": { diff --git a/oslogin/v1beta/oslogin-gen.go b/oslogin/v1beta/oslogin-gen.go index fffc7aa4cec..8c8ca431670 100644 --- a/oslogin/v1beta/oslogin-gen.go +++ b/oslogin/v1beta/oslogin-gen.go @@ -188,6 +188,7 @@ type UsersService struct { func NewUsersProjectsService(s *Service) *UsersProjectsService { rs := &UsersProjectsService{s: s} + rs.Locations = NewUsersProjectsLocationsService(s) rs.Zones = NewUsersProjectsZonesService(s) return rs } @@ -195,9 +196,20 @@ func NewUsersProjectsService(s *Service) *UsersProjectsService { type UsersProjectsService struct { s *Service + Locations *UsersProjectsLocationsService + Zones *UsersProjectsZonesService } +func NewUsersProjectsLocationsService(s *Service) *UsersProjectsLocationsService { + rs := &UsersProjectsLocationsService{s: s} + return rs +} + +type UsersProjectsLocationsService struct { + s *Service +} + func NewUsersProjectsZonesService(s *Service) *UsersProjectsZonesService { rs := &UsersProjectsZonesService{s: s} return rs @@ -1107,6 +1119,153 @@ func (c *UsersProjectsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, erro } +// method id "oslogin.users.projects.locations.signSshPublicKey": + +type UsersProjectsLocationsSignSshPublicKeyCall struct { + s *Service + parent string + signsshpublickeyrequest *SignSshPublicKeyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SignSshPublicKey: Signs an SSH public key for a user to authenticate +// to an instance. +// +// - parent: The parent project and zone for the signing request. This +// is needed to properly ensure per-organization ISS processing and +// potentially to provide for the possibility of zone-specific +// certificates used in the signing process. +func (r *UsersProjectsLocationsService) SignSshPublicKey(parent string, signsshpublickeyrequest *SignSshPublicKeyRequest) *UsersProjectsLocationsSignSshPublicKeyCall { + c := &UsersProjectsLocationsSignSshPublicKeyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.signsshpublickeyrequest = signsshpublickeyrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *UsersProjectsLocationsSignSshPublicKeyCall) Fields(s ...googleapi.Field) *UsersProjectsLocationsSignSshPublicKeyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *UsersProjectsLocationsSignSshPublicKeyCall) Context(ctx context.Context) *UsersProjectsLocationsSignSshPublicKeyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *UsersProjectsLocationsSignSshPublicKeyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *UsersProjectsLocationsSignSshPublicKeyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.signsshpublickeyrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}:signSshPublicKey") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "oslogin.users.projects.locations.signSshPublicKey" call. +// Exactly one of *SignSshPublicKeyResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *SignSshPublicKeyResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *UsersProjectsLocationsSignSshPublicKeyCall) Do(opts ...googleapi.CallOption) (*SignSshPublicKeyResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &SignSshPublicKeyResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Signs an SSH public key for a user to authenticate to an instance.", + // "flatPath": "v1beta/users/{usersId}/projects/{projectsId}/locations/{locationsId}:signSshPublicKey", + // "httpMethod": "POST", + // "id": "oslogin.users.projects.locations.signSshPublicKey", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "The parent project and zone for the signing request. This is needed to properly ensure per-organization ISS processing and potentially to provide for the possibility of zone-specific certificates used in the signing process.", + // "location": "path", + // "pattern": "^users/[^/]+/projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta/{+parent}:signSshPublicKey", + // "request": { + // "$ref": "SignSshPublicKeyRequest" + // }, + // "response": { + // "$ref": "SignSshPublicKeyResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + // method id "oslogin.users.projects.zones.signSshPublicKey": type UsersProjectsZonesSignSshPublicKeyCall struct { diff --git a/safebrowsing/v5/safebrowsing-api.json b/safebrowsing/v5/safebrowsing-api.json new file mode 100644 index 00000000000..f2ad09cc29b --- /dev/null +++ b/safebrowsing/v5/safebrowsing-api.json @@ -0,0 +1,212 @@ +{ + "basePath": "", + "baseUrl": "https://safebrowsing.googleapis.com/", + "batchPath": "batch", + "canonicalName": "Safebrowsing", + "description": "Enables client applications to check web resources (most commonly URLs) against Google-generated lists of unsafe web resources. The Safe Browsing APIs are for non-commercial use only. If you need to use APIs to detect malicious URLs for commercial purposes – meaning “for sale or revenue-generating purposes” – please refer to the Web Risk API.", + "discoveryVersion": "v1", + "documentationLink": "https://developers.google.com/safe-browsing/", + "fullyEncodeReservedExpansion": true, + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "id": "safebrowsing:v5", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://safebrowsing.mtls.googleapis.com/", + "name": "safebrowsing", + "ownerDomain": "google.com", + "ownerName": "Google", + "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, + "alt": { + "default": "json", + "description": "Data format for response.", + "enum": [ + "json", + "media", + "proto" + ], + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query", + "type": "string" + }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, + "fields": { + "description": "Selector specifying which fields to include in a partial response.", + "location": "query", + "type": "string" + }, + "key": { + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "location": "query", + "type": "string" + }, + "oauth_token": { + "description": "OAuth 2.0 token for the current user.", + "location": "query", + "type": "string" + }, + "prettyPrint": { + "default": "true", + "description": "Returns response with indentations and line breaks.", + "location": "query", + "type": "boolean" + }, + "quotaUser": { + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query", + "type": "string" + }, + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query", + "type": "string" + } + }, + "protocol": "rest", + "resources": { + "hashes": { + "methods": { + "search": { + "description": "Search for full hashes matching the specified prefixes. This is a custom method as described by guidance at https://google.aip.dev/136", + "flatPath": "v5/hashes:search", + "httpMethod": "GET", + "id": "safebrowsing.hashes.search", + "parameterOrder": [], + "parameters": { + "hashPrefixes": { + "description": "Required. The hash prefixes to be looked up.", + "format": "byte", + "location": "query", + "repeated": true, + "type": "string" + } + }, + "path": "v5/hashes:search", + "response": { + "$ref": "GoogleSecuritySafebrowsingV5SearchHashesResponse" + } + } + } + } + }, + "revision": "20230923", + "rootUrl": "https://safebrowsing.googleapis.com/", + "schemas": { + "GoogleSecuritySafebrowsingV5FullHash": { + "description": "The full hash identified with one or more matches.", + "id": "GoogleSecuritySafebrowsingV5FullHash", + "properties": { + "fullHash": { + "description": "The matching full hash. This is the SHA256 hash. The length will be exactly 32 bytes.", + "format": "byte", + "type": "string" + }, + "fullHashDetails": { + "description": "Unordered list. A repeated field identifying the details relevant to this full hash.", + "items": { + "$ref": "GoogleSecuritySafebrowsingV5FullHashFullHashDetail" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleSecuritySafebrowsingV5FullHashFullHashDetail": { + "description": "Details about a matching full hash. An important note about forward compatibility: new threat types and threat attributes may be added by the server at any time; those additions are considered minor version changes. It is Google's policy not to expose minor version numbers in APIs (see https://cloud.google.com/apis/design/versioning), so clients MUST be prepared to receive FullHashDetail messages containing ThreatType enum values or ThreatAttribute enum values that are considered invalid by the client. Therefore, it is the client's responsibility to check for the validity of all ThreatType and ThreatAttribute enum values; if any value is considered invalid, the client MUST disregard the entire FullHashDetail message.", + "id": "GoogleSecuritySafebrowsingV5FullHashFullHashDetail", + "properties": { + "attributes": { + "description": "Unordered list. Additional attributes about those full hashes. This may be empty.", + "items": { + "enum": [ + "THREAT_ATTRIBUTE_UNSPECIFIED", + "CANARY", + "FRAME_ONLY" + ], + "enumDescriptions": [ + "Unknown.", + "Indicates that the threat_type should not be used for enforcement.", + "Indicates that the threat_type should only be used for enforcement on frames." + ], + "type": "string" + }, + "type": "array" + }, + "threatType": { + "description": "The type of threat. This field will never be empty.", + "enum": [ + "THREAT_TYPE_UNSPECIFIED", + "MALWARE", + "SOCIAL_ENGINEERING", + "UNWANTED_SOFTWARE", + "POTENTIALLY_HARMFUL_APPLICATION" + ], + "enumDescriptions": [ + "Unknown.", + "Malware threat type.", + "Social engineering threat type.", + "Unwanted software threat type.", + "Potentially harmful application threat type." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleSecuritySafebrowsingV5SearchHashesResponse": { + "description": "The response returned after searching threat hashes. Note that if nothing is found, the server will return an OK status (HTTP status code 200) with the `full_hashes` field empty, rather than returning a NOT_FOUND status (HTTP status code 404).", + "id": "GoogleSecuritySafebrowsingV5SearchHashesResponse", + "properties": { + "cacheDuration": { + "description": "The client-side cache duration. The client shall add this duration to the current time to determine the expiration time. The expiration time then applies to every hash prefix queried by the client in the request, regardless of how many full hashes are returned in the response. Even if the server returns no full hashes for a particular hash prefix, this fact should also be cached by the client. Important: the client must not assume that the server will return the same cache duration for all responses. The server may choose different cache durations for different responses depending on the situation.", + "format": "google-duration", + "type": "string" + }, + "fullHashes": { + "description": "Unordered list. The unordered list of full hashes found.", + "items": { + "$ref": "GoogleSecuritySafebrowsingV5FullHash" + }, + "type": "array" + } + }, + "type": "object" + } + }, + "servicePath": "", + "title": "Safe Browsing API", + "version": "v5", + "version_module": true +} \ No newline at end of file diff --git a/safebrowsing/v5/safebrowsing-gen.go b/safebrowsing/v5/safebrowsing-gen.go new file mode 100644 index 00000000000..def32321839 --- /dev/null +++ b/safebrowsing/v5/safebrowsing-gen.go @@ -0,0 +1,434 @@ +// Copyright 2023 Google LLC. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Code generated file. DO NOT EDIT. + +// Package safebrowsing provides access to the Safe Browsing API. +// +// For product documentation, see: https://developers.google.com/safe-browsing/ +// +// # Library status +// +// These client libraries are officially supported by Google. However, this +// library is considered complete and is in maintenance mode. This means +// that we will address critical bugs and security issues but will not add +// any new features. +// +// When possible, we recommend using our newer +// [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) +// that are still actively being worked and iterated on. +// +// # Creating a client +// +// Usage example: +// +// import "google.golang.org/api/safebrowsing/v5" +// ... +// ctx := context.Background() +// safebrowsingService, err := safebrowsing.NewService(ctx) +// +// In this example, Google Application Default Credentials are used for +// authentication. For information on how to create and obtain Application +// Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials. +// +// # Other authentication options +// +// To use an API key for authentication (note: some APIs do not support API +// keys), use [google.golang.org/api/option.WithAPIKey]: +// +// safebrowsingService, err := safebrowsing.NewService(ctx, option.WithAPIKey("AIza...")) +// +// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth +// flow, use [google.golang.org/api/option.WithTokenSource]: +// +// config := &oauth2.Config{...} +// // ... +// token, err := config.Exchange(ctx, ...) +// safebrowsingService, err := safebrowsing.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token))) +// +// See [google.golang.org/api/option.ClientOption] for details on options. +package safebrowsing // import "google.golang.org/api/safebrowsing/v5" + +import ( + "bytes" + "context" + "encoding/json" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strconv" + "strings" + + googleapi "google.golang.org/api/googleapi" + internal "google.golang.org/api/internal" + gensupport "google.golang.org/api/internal/gensupport" + option "google.golang.org/api/option" + internaloption "google.golang.org/api/option/internaloption" + htransport "google.golang.org/api/transport/http" +) + +// Always reference these packages, just in case the auto-generated code +// below doesn't. +var _ = bytes.NewBuffer +var _ = strconv.Itoa +var _ = fmt.Sprintf +var _ = json.NewDecoder +var _ = io.Copy +var _ = url.Parse +var _ = gensupport.MarshalJSON +var _ = googleapi.Version +var _ = errors.New +var _ = strings.Replace +var _ = context.Canceled +var _ = internaloption.WithDefaultEndpoint +var _ = internal.Version + +const apiId = "safebrowsing:v5" +const apiName = "safebrowsing" +const apiVersion = "v5" +const basePath = "https://safebrowsing.googleapis.com/" +const mtlsBasePath = "https://safebrowsing.mtls.googleapis.com/" + +// NewService creates a new Service. +func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { + opts = append(opts, internaloption.WithDefaultEndpoint(basePath)) + opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath)) + client, endpoint, err := htransport.NewClient(ctx, opts...) + if err != nil { + return nil, err + } + s, err := New(client) + if err != nil { + return nil, err + } + if endpoint != "" { + s.BasePath = endpoint + } + return s, nil +} + +// New creates a new Service. It uses the provided http.Client for requests. +// +// Deprecated: please use NewService instead. +// To provide a custom HTTP client, use option.WithHTTPClient. +// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead. +func New(client *http.Client) (*Service, error) { + if client == nil { + return nil, errors.New("client is nil") + } + s := &Service{client: client, BasePath: basePath} + s.Hashes = NewHashesService(s) + return s, nil +} + +type Service struct { + client *http.Client + BasePath string // API endpoint base URL + UserAgent string // optional additional User-Agent fragment + + Hashes *HashesService +} + +func (s *Service) userAgent() string { + if s.UserAgent == "" { + return googleapi.UserAgent + } + return googleapi.UserAgent + " " + s.UserAgent +} + +func NewHashesService(s *Service) *HashesService { + rs := &HashesService{s: s} + return rs +} + +type HashesService struct { + s *Service +} + +// GoogleSecuritySafebrowsingV5FullHash: The full hash identified with +// one or more matches. +type GoogleSecuritySafebrowsingV5FullHash struct { + // FullHash: The matching full hash. This is the SHA256 hash. The length + // will be exactly 32 bytes. + FullHash string `json:"fullHash,omitempty"` + + // FullHashDetails: Unordered list. A repeated field identifying the + // details relevant to this full hash. + FullHashDetails []*GoogleSecuritySafebrowsingV5FullHashFullHashDetail `json:"fullHashDetails,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FullHash") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FullHash") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleSecuritySafebrowsingV5FullHash) MarshalJSON() ([]byte, error) { + type NoMethod GoogleSecuritySafebrowsingV5FullHash + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleSecuritySafebrowsingV5FullHashFullHashDetail: Details about a +// matching full hash. An important note about forward compatibility: +// new threat types and threat attributes may be added by the server at +// any time; those additions are considered minor version changes. It is +// Google's policy not to expose minor version numbers in APIs (see +// https://cloud.google.com/apis/design/versioning), so clients MUST be +// prepared to receive FullHashDetail messages containing ThreatType +// enum values or ThreatAttribute enum values that are considered +// invalid by the client. Therefore, it is the client's responsibility +// to check for the validity of all ThreatType and ThreatAttribute enum +// values; if any value is considered invalid, the client MUST disregard +// the entire FullHashDetail message. +type GoogleSecuritySafebrowsingV5FullHashFullHashDetail struct { + // Attributes: Unordered list. Additional attributes about those full + // hashes. This may be empty. + // + // Possible values: + // "THREAT_ATTRIBUTE_UNSPECIFIED" - Unknown. + // "CANARY" - Indicates that the threat_type should not be used for + // enforcement. + // "FRAME_ONLY" - Indicates that the threat_type should only be used + // for enforcement on frames. + Attributes []string `json:"attributes,omitempty"` + + // ThreatType: The type of threat. This field will never be empty. + // + // Possible values: + // "THREAT_TYPE_UNSPECIFIED" - Unknown. + // "MALWARE" - Malware threat type. + // "SOCIAL_ENGINEERING" - Social engineering threat type. + // "UNWANTED_SOFTWARE" - Unwanted software threat type. + // "POTENTIALLY_HARMFUL_APPLICATION" - Potentially harmful application + // threat type. + ThreatType string `json:"threatType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Attributes") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Attributes") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleSecuritySafebrowsingV5FullHashFullHashDetail) MarshalJSON() ([]byte, error) { + type NoMethod GoogleSecuritySafebrowsingV5FullHashFullHashDetail + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleSecuritySafebrowsingV5SearchHashesResponse: The response +// returned after searching threat hashes. Note that if nothing is +// found, the server will return an OK status (HTTP status code 200) +// with the `full_hashes` field empty, rather than returning a NOT_FOUND +// status (HTTP status code 404). +type GoogleSecuritySafebrowsingV5SearchHashesResponse struct { + // CacheDuration: The client-side cache duration. The client shall add + // this duration to the current time to determine the expiration time. + // The expiration time then applies to every hash prefix queried by the + // client in the request, regardless of how many full hashes are + // returned in the response. Even if the server returns no full hashes + // for a particular hash prefix, this fact should also be cached by the + // client. Important: the client must not assume that the server will + // return the same cache duration for all responses. The server may + // choose different cache durations for different responses depending on + // the situation. + CacheDuration string `json:"cacheDuration,omitempty"` + + // FullHashes: Unordered list. The unordered list of full hashes found. + FullHashes []*GoogleSecuritySafebrowsingV5FullHash `json:"fullHashes,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "CacheDuration") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CacheDuration") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleSecuritySafebrowsingV5SearchHashesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleSecuritySafebrowsingV5SearchHashesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "safebrowsing.hashes.search": + +type HashesSearchCall struct { + s *Service + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Search: Search for full hashes matching the specified prefixes. This +// is a custom method as described by guidance at +// https://google.aip.dev/136 +func (r *HashesService) Search() *HashesSearchCall { + c := &HashesSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + return c +} + +// HashPrefixes sets the optional parameter "hashPrefixes": Required. +// The hash prefixes to be looked up. +func (c *HashesSearchCall) HashPrefixes(hashPrefixes ...string) *HashesSearchCall { + c.urlParams_.SetMulti("hashPrefixes", append([]string{}, hashPrefixes...)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *HashesSearchCall) Fields(s ...googleapi.Field) *HashesSearchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *HashesSearchCall) IfNoneMatch(entityTag string) *HashesSearchCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *HashesSearchCall) Context(ctx context.Context) *HashesSearchCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *HashesSearchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *HashesSearchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v5/hashes:search") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "safebrowsing.hashes.search" call. +// Exactly one of *GoogleSecuritySafebrowsingV5SearchHashesResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleSecuritySafebrowsingV5SearchHashesResponse.ServerResponse.Heade +// r or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *HashesSearchCall) Do(opts ...googleapi.CallOption) (*GoogleSecuritySafebrowsingV5SearchHashesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleSecuritySafebrowsingV5SearchHashesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Search for full hashes matching the specified prefixes. This is a custom method as described by guidance at https://google.aip.dev/136", + // "flatPath": "v5/hashes:search", + // "httpMethod": "GET", + // "id": "safebrowsing.hashes.search", + // "parameterOrder": [], + // "parameters": { + // "hashPrefixes": { + // "description": "Required. The hash prefixes to be looked up.", + // "format": "byte", + // "location": "query", + // "repeated": true, + // "type": "string" + // } + // }, + // "path": "v5/hashes:search", + // "response": { + // "$ref": "GoogleSecuritySafebrowsingV5SearchHashesResponse" + // } + // } + +} diff --git a/sasportal/v1alpha1/sasportal-api.json b/sasportal/v1alpha1/sasportal-api.json index 529dbc83ab7..4b1103bcd16 100644 --- a/sasportal/v1alpha1/sasportal-api.json +++ b/sasportal/v1alpha1/sasportal-api.json @@ -2636,7 +2636,7 @@ } } }, - "revision": "20230829", + "revision": "20231001", "rootUrl": "https://sasportal.googleapis.com/", "schemas": { "SasPortalAssignment": { @@ -3584,7 +3584,12 @@ "SasPortalSetupSasAnalyticsRequest": { "description": "Request for the SetupSasAnalytics rpc.", "id": "SasPortalSetupSasAnalyticsRequest", - "properties": {}, + "properties": { + "userId": { + "description": "Optional. User id to setup analytics for, if not provided the user id associated with the project is used. optional", + "type": "string" + } + }, "type": "object" }, "SasPortalSetupSasAnalyticsResponse": { diff --git a/sasportal/v1alpha1/sasportal-gen.go b/sasportal/v1alpha1/sasportal-gen.go index bc6bdbb528c..37ffdb4e97f 100644 --- a/sasportal/v1alpha1/sasportal-gen.go +++ b/sasportal/v1alpha1/sasportal-gen.go @@ -2008,6 +2008,31 @@ type SasPortalSetupSasAnalyticsMetadata struct { // SasPortalSetupSasAnalyticsRequest: Request for the SetupSasAnalytics // rpc. type SasPortalSetupSasAnalyticsRequest struct { + // UserId: Optional. User id to setup analytics for, if not provided the + // user id associated with the project is used. optional + UserId string `json:"userId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "UserId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "UserId") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SasPortalSetupSasAnalyticsRequest) MarshalJSON() ([]byte, error) { + type NoMethod SasPortalSetupSasAnalyticsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // SasPortalSetupSasAnalyticsResponse: Response returned by the long