diff --git a/aiplatform/v1/aiplatform-api.json b/aiplatform/v1/aiplatform-api.json index f77796737f6..c1fb0ce6309 100644 --- a/aiplatform/v1/aiplatform-api.json +++ b/aiplatform/v1/aiplatform-api.json @@ -11522,6 +11522,11 @@ "description": "The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are `/a-z-/`.", "location": "query", "type": "string" + }, + "preflightValidations": { + "description": "Optional. Whether to do component level validations before job creation. Currently we only support Google First Party Component/Pipelines.", + "location": "query", + "type": "boolean" } }, "path": "v1/{+parent}/pipelineJobs", @@ -15388,7 +15393,7 @@ } } }, - "revision": "20240117", + "revision": "20240125", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionEmbedVideoResponse": { @@ -15789,6 +15794,10 @@ ], "type": "string" }, + "groundingMetadata": { + "$ref": "LearningGenaiRootGroundingMetadata", + "description": "Grounding metadata. Combine with the facts list from response to generate grounding citations for this choice." + }, "index": { "description": "Index of the candidate.", "format": "int32", @@ -15869,6 +15878,29 @@ }, "type": "object" }, + "CloudAiNlLlmProtoServiceFact": { + "description": "A condense version of WorldFact (assistant/boq/lamda/factuality/proto/factuality.proto) to propagate the essential information about the fact used in factuality to the upstream caller.", + "id": "CloudAiNlLlmProtoServiceFact", + "properties": { + "query": { + "description": "Query that is used to retrieve this fact.", + "type": "string" + }, + "summary": { + "description": "If present, the summary/snippet of the fact.", + "type": "string" + }, + "title": { + "description": "If present, it refers to the title of this fact.", + "type": "string" + }, + "url": { + "description": "If present, this URL links to the webpage of the fact.", + "type": "string" + } + }, + "type": "object" + }, "CloudAiNlLlmProtoServiceFunctionCall": { "description": "Function call details.", "id": "CloudAiNlLlmProtoServiceFunctionCall", @@ -15921,6 +15953,13 @@ "$ref": "CloudAiNlLlmProtoServiceMessageMetadata", "description": "Debug information containing message metadata. Clients should not consume this field, and this is only populated for Flow Runner path." }, + "facts": { + "description": "External facts retrieved for factuality/grounding.", + "items": { + "$ref": "CloudAiNlLlmProtoServiceFact" + }, + "type": "array" + }, "promptFeedback": { "$ref": "CloudAiNlLlmProtoServicePromptFeedback", "description": "Content filter results for a prompt sent in the request. Note: Sent only in the first stream chunk. Only happens when no candidates were generated due to content violations." @@ -16032,6 +16071,10 @@ "format": "google-duration", "type": "string" }, + "modelLevelMetaData": { + "$ref": "CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata", + "description": "Internal only model level metadata." + }, "startOffset": { "description": "The start offset of the video.", "format": "google-duration", @@ -16040,6 +16083,23 @@ }, "type": "object" }, + "CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata": { + "description": "Internal only fields", + "id": "CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata", + "properties": { + "fps": { + "description": "Frame rate to decode from this video.", + "format": "float", + "type": "number" + }, + "numFrames": { + "description": "Number of frames to decode from this video.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "CloudAiNlLlmProtoServicePromptFeedback": { "description": "Content filter results for a prompt sent in the request.", "id": "CloudAiNlLlmProtoServicePromptFeedback", @@ -18073,6 +18133,10 @@ "pipelineJobId": { "description": "The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are `/a-z-/`.", "type": "string" + }, + "preflightValidations": { + "description": "Optional. Whether to do component level validations before job creation. Currently we only support Google First Party Component/Pipelines.", + "type": "boolean" } }, "type": "object" @@ -19795,7 +19859,7 @@ "id": "GoogleCloudAiplatformV1Explanation", "properties": { "attributions": { - "description": "Output only. Feature attributions grouped by predicted outputs. For Models that predict only one output, such as regression Models that predict only one score, there is only one attibution that explains the predicted output. For Models that predict multiple outputs, such as multiclass Models that predict multiple classes, each element explains one specific item. Attribution.output_index can be used to identify which output this attribution is explaining. If users set ExplanationParameters.top_k, the attributions are sorted by instance_output_value in descending order. If ExplanationParameters.output_indices is specified, the attributions are stored by Attribution.output_index in the same order as they appear in the output_indices.", + "description": "Output only. Feature attributions grouped by predicted outputs. For Models that predict only one output, such as regression Models that predict only one score, there is only one attibution that explains the predicted output. For Models that predict multiple outputs, such as multiclass Models that predict multiple classes, each element explains one specific item. Attribution.output_index can be used to identify which output this attribution is explaining. By default, we provide Shapley values for the predicted class. However, you can configure the explanation request to generate Shapley values for any other classes too. For example, if a model predicts a probability of `0.4` for approving a loan application, the model's decision is to reject the application since `p(reject) = 0.6 \u003e p(approve) = 0.4`, and the default Shapley values would be computed for rejection decision and not approval, even though the latter might be the positive class. If users set ExplanationParameters.top_k, the attributions are sorted by instance_output_value in descending order. If ExplanationParameters.output_indices is specified, the attributions are stored by Attribution.output_index in the same order as they appear in the output_indices.", "items": { "$ref": "GoogleCloudAiplatformV1Attribution" }, @@ -22362,6 +22426,14 @@ "readOnly": true, "type": "string" }, + "pscAutomatedEndpoints": { + "description": "Output only. PscAutomatedEndpoints is populated if private service connect is enabled if PscAutomatedConfig is set.", + "items": { + "$ref": "GoogleCloudAiplatformV1PscAutomatedEndpoints" + }, + "readOnly": true, + "type": "array" + }, "serviceAttachment": { "description": "Output only. The name of the service attachment resource. Populated if private service connect is enabled.", "readOnly": true, @@ -26535,6 +26607,25 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1PscAutomatedEndpoints": { + "description": "PscAutomatedEndpoints defines the output of the forwarding rule automatically created by each PscAutomationConfig.", + "id": "GoogleCloudAiplatformV1PscAutomatedEndpoints", + "properties": { + "matchAddress": { + "description": "Ip Address created by the automated forwarding rule.", + "type": "string" + }, + "network": { + "description": "Corresponding network in pscAutomationConfigs.", + "type": "string" + }, + "projectId": { + "description": "Corresponding project_id in pscAutomationConfigs", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1PublisherModel": { "description": "A Model Garden Publisher Model.", "id": "GoogleCloudAiplatformV1PublisherModel", @@ -33841,7 +33932,7 @@ "type": "array" }, "role": { - "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", + "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).", "type": "string" } }, diff --git a/aiplatform/v1/aiplatform-gen.go b/aiplatform/v1/aiplatform-gen.go index 3d086e205a5..a1a158bd7c8 100644 --- a/aiplatform/v1/aiplatform-gen.go +++ b/aiplatform/v1/aiplatform-gen.go @@ -1861,6 +1861,10 @@ type CloudAiNlLlmProtoServiceCandidate struct { // generation. FinishReason string `json:"finishReason,omitempty"` + // GroundingMetadata: Grounding metadata. Combine with the facts list + // from response to generate grounding citations for this choice. + GroundingMetadata *LearningGenaiRootGroundingMetadata `json:"groundingMetadata,omitempty"` + // Index: Index of the candidate. Index int64 `json:"index,omitempty"` @@ -1995,6 +1999,46 @@ func (s *CloudAiNlLlmProtoServiceContent) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CloudAiNlLlmProtoServiceFact: A condense version of WorldFact +// (assistant/boq/lamda/factuality/proto/factuality.proto) to propagate +// the essential information about the fact used in factuality to the +// upstream caller. +type CloudAiNlLlmProtoServiceFact struct { + // Query: Query that is used to retrieve this fact. + Query string `json:"query,omitempty"` + + // Summary: If present, the summary/snippet of the fact. + Summary string `json:"summary,omitempty"` + + // Title: If present, it refers to the title of this fact. + Title string `json:"title,omitempty"` + + // Url: If present, this URL links to the webpage of the fact. + Url string `json:"url,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 *CloudAiNlLlmProtoServiceFact) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiNlLlmProtoServiceFact + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CloudAiNlLlmProtoServiceFunctionCall: Function call details. type CloudAiNlLlmProtoServiceFunctionCall struct { // Args: The function parameters and values in JSON format. @@ -2067,6 +2111,9 @@ type CloudAiNlLlmProtoServiceGenerateMultiModalResponse struct { // Runner path. DebugMetadata *CloudAiNlLlmProtoServiceMessageMetadata `json:"debugMetadata,omitempty"` + // Facts: External facts retrieved for factuality/grounding. + Facts []*CloudAiNlLlmProtoServiceFact `json:"facts,omitempty"` + // PromptFeedback: Content filter results for a prompt sent in the // request. Note: Sent only in the first stream chunk. Only happens when // no candidates were generated due to content violations. @@ -2252,6 +2299,9 @@ type CloudAiNlLlmProtoServicePartVideoMetadata struct { // EndOffset: The end offset of the video. EndOffset string `json:"endOffset,omitempty"` + // ModelLevelMetaData: Internal only model level metadata. + ModelLevelMetaData *CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata `json:"modelLevelMetaData,omitempty"` + // StartOffset: The start offset of the video. StartOffset string `json:"startOffset,omitempty"` @@ -2278,6 +2328,52 @@ func (s *CloudAiNlLlmProtoServicePartVideoMetadata) MarshalJSON() ([]byte, error return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata: Internal +// only fields +type CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata struct { + // Fps: Frame rate to decode from this video. + Fps float64 `json:"fps,omitempty"` + + // NumFrames: Number of frames to decode from this video. + NumFrames int64 `json:"numFrames,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Fps") 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. "Fps") 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 *CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata) UnmarshalJSON(data []byte) error { + type NoMethod CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata + var s1 struct { + Fps gensupport.JSONFloat64 `json:"fps"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Fps = float64(s1.Fps) + return nil +} + // CloudAiNlLlmProtoServicePromptFeedback: Content filter results for a // prompt sent in the request. type CloudAiNlLlmProtoServicePromptFeedback struct { @@ -6028,6 +6124,11 @@ type GoogleCloudAiplatformV1CreatePipelineJobRequest struct { // characters, and valid characters are `/a-z-/`. PipelineJobId string `json:"pipelineJobId,omitempty"` + // PreflightValidations: Optional. Whether to do component level + // validations before job creation. Currently we only support Google + // First Party Component/Pipelines. + PreflightValidations bool `json:"preflightValidations,omitempty"` + // ForceSendFields is a list of field names (e.g. "Parent") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -9120,12 +9221,19 @@ type GoogleCloudAiplatformV1Explanation struct { // explains the predicted output. For Models that predict multiple // outputs, such as multiclass Models that predict multiple classes, // each element explains one specific item. Attribution.output_index can - // be used to identify which output this attribution is explaining. If - // users set ExplanationParameters.top_k, the attributions are sorted by - // instance_output_value in descending order. If - // ExplanationParameters.output_indices is specified, the attributions - // are stored by Attribution.output_index in the same order as they - // appear in the output_indices. + // be used to identify which output this attribution is explaining. By + // default, we provide Shapley values for the predicted class. However, + // you can configure the explanation request to generate Shapley values + // for any other classes too. For example, if a model predicts a + // probability of `0.4` for approving a loan application, the model's + // decision is to reject the application since `p(reject) = 0.6 > + // p(approve) = 0.4`, and the default Shapley values would be computed + // for rejection decision and not approval, even though the latter might + // be the positive class. If users set ExplanationParameters.top_k, the + // attributions are sorted by instance_output_value in descending order. + // If ExplanationParameters.output_indices is specified, the + // attributions are stored by Attribution.output_index in the same order + // as they appear in the output_indices. Attributions []*GoogleCloudAiplatformV1Attribution `json:"attributions,omitempty"` // Neighbors: Output only. List of the nearest neighbors for @@ -13876,6 +13984,11 @@ type GoogleCloudAiplatformV1IndexPrivateEndpoints struct { // requests. MatchGrpcAddress string `json:"matchGrpcAddress,omitempty"` + // PscAutomatedEndpoints: Output only. PscAutomatedEndpoints is + // populated if private service connect is enabled if PscAutomatedConfig + // is set. + PscAutomatedEndpoints []*GoogleCloudAiplatformV1PscAutomatedEndpoints `json:"pscAutomatedEndpoints,omitempty"` + // ServiceAttachment: Output only. The name of the service attachment // resource. Populated if private service connect is enabled. ServiceAttachment string `json:"serviceAttachment,omitempty"` @@ -21298,6 +21411,42 @@ func (s *GoogleCloudAiplatformV1ProbeExecAction) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1PscAutomatedEndpoints: PscAutomatedEndpoints +// defines the output of the forwarding rule automatically created by +// each PscAutomationConfig. +type GoogleCloudAiplatformV1PscAutomatedEndpoints struct { + // MatchAddress: Ip Address created by the automated forwarding rule. + MatchAddress string `json:"matchAddress,omitempty"` + + // Network: Corresponding network in pscAutomationConfigs. + Network string `json:"network,omitempty"` + + // ProjectId: Corresponding project_id in pscAutomationConfigs + ProjectId string `json:"projectId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MatchAddress") 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. "MatchAddress") 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 *GoogleCloudAiplatformV1PscAutomatedEndpoints) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1PscAutomatedEndpoints + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1PublisherModel: A Model Garden Publisher // Model. type GoogleCloudAiplatformV1PublisherModel struct { @@ -35594,7 +35743,11 @@ type GoogleIamV1Binding struct { Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. - // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an + // overview of the IAM roles and permissions, see the IAM documentation + // (https://cloud.google.com/iam/docs/roles-overview). For a list of the + // available pre-defined roles, see here + // (https://cloud.google.com/iam/docs/understanding-roles). Role string `json:"role,omitempty"` // ForceSendFields is a list of field names (e.g. "Condition") to @@ -97713,6 +97866,15 @@ func (c *ProjectsLocationsPipelineJobsCreateCall) PipelineJobId(pipelineJobId st return c } +// PreflightValidations sets the optional parameter +// "preflightValidations": Whether to do component level validations +// before job creation. Currently we only support Google First Party +// Component/Pipelines. +func (c *ProjectsLocationsPipelineJobsCreateCall) PreflightValidations(preflightValidations bool) *ProjectsLocationsPipelineJobsCreateCall { + c.urlParams_.Set("preflightValidations", fmt.Sprint(preflightValidations)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -97824,6 +97986,11 @@ func (c *ProjectsLocationsPipelineJobsCreateCall) Do(opts ...googleapi.CallOptio // "description": "The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are `/a-z-/`.", // "location": "query", // "type": "string" + // }, + // "preflightValidations": { + // "description": "Optional. Whether to do component level validations before job creation. Currently we only support Google First Party Component/Pipelines.", + // "location": "query", + // "type": "boolean" // } // }, // "path": "v1/{+parent}/pipelineJobs", diff --git a/aiplatform/v1beta1/aiplatform-api.json b/aiplatform/v1beta1/aiplatform-api.json index 1a009579e5e..69a5ffb48c2 100644 --- a/aiplatform/v1beta1/aiplatform-api.json +++ b/aiplatform/v1beta1/aiplatform-api.json @@ -13098,6 +13098,11 @@ "description": "The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are `/a-z-/`.", "location": "query", "type": "string" + }, + "preflightValidations": { + "description": "Optional. Whether to do component level validations before job creation. Currently we only support Google First Party Component/Pipelines.", + "location": "query", + "type": "boolean" } }, "path": "v1beta1/{+parent}/pipelineJobs", @@ -17279,7 +17284,7 @@ } } }, - "revision": "20240117", + "revision": "20240125", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionEmbedVideoResponse": { @@ -17680,6 +17685,10 @@ ], "type": "string" }, + "groundingMetadata": { + "$ref": "LearningGenaiRootGroundingMetadata", + "description": "Grounding metadata. Combine with the facts list from response to generate grounding citations for this choice." + }, "index": { "description": "Index of the candidate.", "format": "int32", @@ -17760,6 +17769,29 @@ }, "type": "object" }, + "CloudAiNlLlmProtoServiceFact": { + "description": "A condense version of WorldFact (assistant/boq/lamda/factuality/proto/factuality.proto) to propagate the essential information about the fact used in factuality to the upstream caller.", + "id": "CloudAiNlLlmProtoServiceFact", + "properties": { + "query": { + "description": "Query that is used to retrieve this fact.", + "type": "string" + }, + "summary": { + "description": "If present, the summary/snippet of the fact.", + "type": "string" + }, + "title": { + "description": "If present, it refers to the title of this fact.", + "type": "string" + }, + "url": { + "description": "If present, this URL links to the webpage of the fact.", + "type": "string" + } + }, + "type": "object" + }, "CloudAiNlLlmProtoServiceFunctionCall": { "description": "Function call details.", "id": "CloudAiNlLlmProtoServiceFunctionCall", @@ -17812,6 +17844,13 @@ "$ref": "CloudAiNlLlmProtoServiceMessageMetadata", "description": "Debug information containing message metadata. Clients should not consume this field, and this is only populated for Flow Runner path." }, + "facts": { + "description": "External facts retrieved for factuality/grounding.", + "items": { + "$ref": "CloudAiNlLlmProtoServiceFact" + }, + "type": "array" + }, "promptFeedback": { "$ref": "CloudAiNlLlmProtoServicePromptFeedback", "description": "Content filter results for a prompt sent in the request. Note: Sent only in the first stream chunk. Only happens when no candidates were generated due to content violations." @@ -17923,6 +17962,10 @@ "format": "google-duration", "type": "string" }, + "modelLevelMetaData": { + "$ref": "CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata", + "description": "Internal only model level metadata." + }, "startOffset": { "description": "The start offset of the video.", "format": "google-duration", @@ -17931,6 +17974,23 @@ }, "type": "object" }, + "CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata": { + "description": "Internal only fields", + "id": "CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata", + "properties": { + "fps": { + "description": "Frame rate to decode from this video.", + "format": "float", + "type": "number" + }, + "numFrames": { + "description": "Number of frames to decode from this video.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "CloudAiNlLlmProtoServicePromptFeedback": { "description": "Content filter results for a prompt sent in the request.", "id": "CloudAiNlLlmProtoServicePromptFeedback", @@ -19910,17 +19970,6 @@ }, "type": "object" }, - "GoogleCloudAiplatformV1beta1CreateExtensionDeploymentOperationMetadata": { - "description": "Details of ExtensionRegistryService.CreateExtensionDeployment operation.", - "id": "GoogleCloudAiplatformV1beta1CreateExtensionDeploymentOperationMetadata", - "properties": { - "genericMetadata": { - "$ref": "GoogleCloudAiplatformV1beta1GenericOperationMetadata", - "description": "The common part of the operation metadata." - } - }, - "type": "object" - }, "GoogleCloudAiplatformV1beta1CreateFeatureGroupOperationMetadata": { "description": "Details of operations that perform create FeatureGroup.", "id": "GoogleCloudAiplatformV1beta1CreateFeatureGroupOperationMetadata", @@ -20073,6 +20122,10 @@ "pipelineJobId": { "description": "The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are `/a-z-/`.", "type": "string" + }, + "preflightValidations": { + "description": "Optional. Whether to do component level validations before job creation. Currently we only support Google First Party Component/Pipelines.", + "type": "boolean" } }, "type": "object" @@ -21857,7 +21910,7 @@ "id": "GoogleCloudAiplatformV1beta1Explanation", "properties": { "attributions": { - "description": "Output only. Feature attributions grouped by predicted outputs. For Models that predict only one output, such as regression Models that predict only one score, there is only one attibution that explains the predicted output. For Models that predict multiple outputs, such as multiclass Models that predict multiple classes, each element explains one specific item. Attribution.output_index can be used to identify which output this attribution is explaining. If users set ExplanationParameters.top_k, the attributions are sorted by instance_output_value in descending order. If ExplanationParameters.output_indices is specified, the attributions are stored by Attribution.output_index in the same order as they appear in the output_indices.", + "description": "Output only. Feature attributions grouped by predicted outputs. For Models that predict only one output, such as regression Models that predict only one score, there is only one attibution that explains the predicted output. For Models that predict multiple outputs, such as multiclass Models that predict multiple classes, each element explains one specific item. Attribution.output_index can be used to identify which output this attribution is explaining. By default, we provide Shapley values for the predicted class. However, you can configure the explanation request to generate Shapley values for any other classes too. For example, if a model predicts a probability of `0.4` for approving a loan application, the model's decision is to reject the application since `p(reject) = 0.6 \u003e p(approve) = 0.4`, and the default Shapley values would be computed for rejection decision and not approval, even though the latter might be the positive class. If users set ExplanationParameters.top_k, the attributions are sorted by instance_output_value in descending order. If ExplanationParameters.output_indices is specified, the attributions are stored by Attribution.output_index in the same order as they appear in the output_indices.", "items": { "$ref": "GoogleCloudAiplatformV1beta1Attribution" }, @@ -24616,6 +24669,14 @@ "readOnly": true, "type": "string" }, + "pscAutomatedEndpoints": { + "description": "Output only. PscAutomatedEndpoints is populated if private service connect is enabled if PscAutomatedConfig is set.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1PscAutomatedEndpoints" + }, + "readOnly": true, + "type": "array" + }, "serviceAttachment": { "description": "Output only. The name of the service attachment resource. Populated if private service connect is enabled.", "readOnly": true, @@ -29094,6 +29155,25 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1PscAutomatedEndpoints": { + "description": "PscAutomatedEndpoints defines the output of the forwarding rule automatically created by each PscAutomationConfig.", + "id": "GoogleCloudAiplatformV1beta1PscAutomatedEndpoints", + "properties": { + "matchAddress": { + "description": "Ip Address created by the automated forwarding rule.", + "type": "string" + }, + "network": { + "description": "Corresponding network in pscAutomationConfigs.", + "type": "string" + }, + "projectId": { + "description": "Corresponding project_id in pscAutomationConfigs", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1PublisherModel": { "description": "A Model Garden Publisher Model.", "id": "GoogleCloudAiplatformV1beta1PublisherModel", @@ -36615,7 +36695,7 @@ "type": "array" }, "role": { - "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", + "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).", "type": "string" } }, diff --git a/aiplatform/v1beta1/aiplatform-gen.go b/aiplatform/v1beta1/aiplatform-gen.go index dd51c64fdc0..864736b2e1a 100644 --- a/aiplatform/v1beta1/aiplatform-gen.go +++ b/aiplatform/v1beta1/aiplatform-gen.go @@ -2089,6 +2089,10 @@ type CloudAiNlLlmProtoServiceCandidate struct { // generation. FinishReason string `json:"finishReason,omitempty"` + // GroundingMetadata: Grounding metadata. Combine with the facts list + // from response to generate grounding citations for this choice. + GroundingMetadata *LearningGenaiRootGroundingMetadata `json:"groundingMetadata,omitempty"` + // Index: Index of the candidate. Index int64 `json:"index,omitempty"` @@ -2223,6 +2227,46 @@ func (s *CloudAiNlLlmProtoServiceContent) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CloudAiNlLlmProtoServiceFact: A condense version of WorldFact +// (assistant/boq/lamda/factuality/proto/factuality.proto) to propagate +// the essential information about the fact used in factuality to the +// upstream caller. +type CloudAiNlLlmProtoServiceFact struct { + // Query: Query that is used to retrieve this fact. + Query string `json:"query,omitempty"` + + // Summary: If present, the summary/snippet of the fact. + Summary string `json:"summary,omitempty"` + + // Title: If present, it refers to the title of this fact. + Title string `json:"title,omitempty"` + + // Url: If present, this URL links to the webpage of the fact. + Url string `json:"url,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 *CloudAiNlLlmProtoServiceFact) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiNlLlmProtoServiceFact + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CloudAiNlLlmProtoServiceFunctionCall: Function call details. type CloudAiNlLlmProtoServiceFunctionCall struct { // Args: The function parameters and values in JSON format. @@ -2295,6 +2339,9 @@ type CloudAiNlLlmProtoServiceGenerateMultiModalResponse struct { // Runner path. DebugMetadata *CloudAiNlLlmProtoServiceMessageMetadata `json:"debugMetadata,omitempty"` + // Facts: External facts retrieved for factuality/grounding. + Facts []*CloudAiNlLlmProtoServiceFact `json:"facts,omitempty"` + // PromptFeedback: Content filter results for a prompt sent in the // request. Note: Sent only in the first stream chunk. Only happens when // no candidates were generated due to content violations. @@ -2480,6 +2527,9 @@ type CloudAiNlLlmProtoServicePartVideoMetadata struct { // EndOffset: The end offset of the video. EndOffset string `json:"endOffset,omitempty"` + // ModelLevelMetaData: Internal only model level metadata. + ModelLevelMetaData *CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata `json:"modelLevelMetaData,omitempty"` + // StartOffset: The start offset of the video. StartOffset string `json:"startOffset,omitempty"` @@ -2506,6 +2556,52 @@ func (s *CloudAiNlLlmProtoServicePartVideoMetadata) MarshalJSON() ([]byte, error return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata: Internal +// only fields +type CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata struct { + // Fps: Frame rate to decode from this video. + Fps float64 `json:"fps,omitempty"` + + // NumFrames: Number of frames to decode from this video. + NumFrames int64 `json:"numFrames,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Fps") 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. "Fps") 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 *CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata) MarshalJSON() ([]byte, error) { + type NoMethod CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata) UnmarshalJSON(data []byte) error { + type NoMethod CloudAiNlLlmProtoServicePartVideoMetadataModelLevelMetadata + var s1 struct { + Fps gensupport.JSONFloat64 `json:"fps"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Fps = float64(s1.Fps) + return nil +} + // CloudAiNlLlmProtoServicePromptFeedback: Content filter results for a // prompt sent in the request. type CloudAiNlLlmProtoServicePromptFeedback struct { @@ -6085,37 +6181,6 @@ func (s *GoogleCloudAiplatformV1beta1CreateExtensionControllerOperationMetadata) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1beta1CreateExtensionDeploymentOperationMetadata -// : Details of ExtensionRegistryService.CreateExtensionDeployment -// operation. -type GoogleCloudAiplatformV1beta1CreateExtensionDeploymentOperationMetadata struct { - // GenericMetadata: The common part of the operation metadata. - 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 *GoogleCloudAiplatformV1beta1CreateExtensionDeploymentOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1CreateExtensionDeploymentOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // GoogleCloudAiplatformV1beta1CreateFeatureGroupOperationMetadata: // Details of operations that perform create FeatureGroup. type GoogleCloudAiplatformV1beta1CreateFeatureGroupOperationMetadata struct { @@ -6489,6 +6554,11 @@ type GoogleCloudAiplatformV1beta1CreatePipelineJobRequest struct { // characters, and valid characters are `/a-z-/`. PipelineJobId string `json:"pipelineJobId,omitempty"` + // PreflightValidations: Optional. Whether to do component level + // validations before job creation. Currently we only support Google + // First Party Component/Pipelines. + PreflightValidations bool `json:"preflightValidations,omitempty"` + // ForceSendFields is a list of field names (e.g. "Parent") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -9710,12 +9780,19 @@ type GoogleCloudAiplatformV1beta1Explanation struct { // explains the predicted output. For Models that predict multiple // outputs, such as multiclass Models that predict multiple classes, // each element explains one specific item. Attribution.output_index can - // be used to identify which output this attribution is explaining. If - // users set ExplanationParameters.top_k, the attributions are sorted by - // instance_output_value in descending order. If - // ExplanationParameters.output_indices is specified, the attributions - // are stored by Attribution.output_index in the same order as they - // appear in the output_indices. + // be used to identify which output this attribution is explaining. By + // default, we provide Shapley values for the predicted class. However, + // you can configure the explanation request to generate Shapley values + // for any other classes too. For example, if a model predicts a + // probability of `0.4` for approving a loan application, the model's + // decision is to reject the application since `p(reject) = 0.6 > + // p(approve) = 0.4`, and the default Shapley values would be computed + // for rejection decision and not approval, even though the latter might + // be the positive class. If users set ExplanationParameters.top_k, the + // attributions are sorted by instance_output_value in descending order. + // If ExplanationParameters.output_indices is specified, the + // attributions are stored by Attribution.output_index in the same order + // as they appear in the output_indices. Attributions []*GoogleCloudAiplatformV1beta1Attribution `json:"attributions,omitempty"` // Neighbors: Output only. List of the nearest neighbors for @@ -14826,6 +14903,11 @@ type GoogleCloudAiplatformV1beta1IndexPrivateEndpoints struct { // requests. MatchGrpcAddress string `json:"matchGrpcAddress,omitempty"` + // PscAutomatedEndpoints: Output only. PscAutomatedEndpoints is + // populated if private service connect is enabled if PscAutomatedConfig + // is set. + PscAutomatedEndpoints []*GoogleCloudAiplatformV1beta1PscAutomatedEndpoints `json:"pscAutomatedEndpoints,omitempty"` + // ServiceAttachment: Output only. The name of the service attachment // resource. Populated if private service connect is enabled. ServiceAttachment string `json:"serviceAttachment,omitempty"` @@ -22789,6 +22871,42 @@ func (s *GoogleCloudAiplatformV1beta1ProbeExecAction) MarshalJSON() ([]byte, err return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1PscAutomatedEndpoints: +// PscAutomatedEndpoints defines the output of the forwarding rule +// automatically created by each PscAutomationConfig. +type GoogleCloudAiplatformV1beta1PscAutomatedEndpoints struct { + // MatchAddress: Ip Address created by the automated forwarding rule. + MatchAddress string `json:"matchAddress,omitempty"` + + // Network: Corresponding network in pscAutomationConfigs. + Network string `json:"network,omitempty"` + + // ProjectId: Corresponding project_id in pscAutomationConfigs + ProjectId string `json:"projectId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MatchAddress") 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. "MatchAddress") 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 *GoogleCloudAiplatformV1beta1PscAutomatedEndpoints) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1PscAutomatedEndpoints + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1PublisherModel: A Model Garden Publisher // Model. type GoogleCloudAiplatformV1beta1PublisherModel struct { @@ -37588,7 +37706,11 @@ type GoogleIamV1Binding struct { Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. - // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an + // overview of the IAM roles and permissions, see the IAM documentation + // (https://cloud.google.com/iam/docs/roles-overview). For a list of the + // available pre-defined roles, see here + // (https://cloud.google.com/iam/docs/understanding-roles). Role string `json:"role,omitempty"` // ForceSendFields is a list of field names (e.g. "Condition") to @@ -107952,6 +108074,15 @@ func (c *ProjectsLocationsPipelineJobsCreateCall) PipelineJobId(pipelineJobId st return c } +// PreflightValidations sets the optional parameter +// "preflightValidations": Whether to do component level validations +// before job creation. Currently we only support Google First Party +// Component/Pipelines. +func (c *ProjectsLocationsPipelineJobsCreateCall) PreflightValidations(preflightValidations bool) *ProjectsLocationsPipelineJobsCreateCall { + c.urlParams_.Set("preflightValidations", fmt.Sprint(preflightValidations)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -108063,6 +108194,11 @@ func (c *ProjectsLocationsPipelineJobsCreateCall) Do(opts ...googleapi.CallOptio // "description": "The ID to use for the PipelineJob, which will become the final component of the PipelineJob name. If not provided, an ID will be automatically generated. This value should be less than 128 characters, and valid characters are `/a-z-/`.", // "location": "query", // "type": "string" + // }, + // "preflightValidations": { + // "description": "Optional. Whether to do component level validations before job creation. Currently we only support Google First Party Component/Pipelines.", + // "location": "query", + // "type": "boolean" // } // }, // "path": "v1beta1/{+parent}/pipelineJobs", diff --git a/bigquerydatapolicy/v1/bigquerydatapolicy-api.json b/bigquerydatapolicy/v1/bigquerydatapolicy-api.json index edf6ec887b5..a5119d92c3a 100644 --- a/bigquerydatapolicy/v1/bigquerydatapolicy-api.json +++ b/bigquerydatapolicy/v1/bigquerydatapolicy-api.json @@ -395,7 +395,7 @@ } } }, - "revision": "20240107", + "revision": "20240122", "rootUrl": "https://bigquerydatapolicy.googleapis.com/", "schemas": { "AuditConfig": { @@ -462,7 +462,7 @@ "type": "array" }, "role": { - "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", + "description": "Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles).", "type": "string" } }, diff --git a/bigquerydatapolicy/v1/bigquerydatapolicy-gen.go b/bigquerydatapolicy/v1/bigquerydatapolicy-gen.go index bf7a9157e13..9863bf0a1a2 100644 --- a/bigquerydatapolicy/v1/bigquerydatapolicy-gen.go +++ b/bigquerydatapolicy/v1/bigquerydatapolicy-gen.go @@ -375,7 +375,11 @@ type Binding struct { Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. - // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an + // overview of the IAM roles and permissions, see the IAM documentation + // (https://cloud.google.com/iam/docs/roles-overview). For a list of the + // available pre-defined roles, see here + // (https://cloud.google.com/iam/docs/understanding-roles). Role string `json:"role,omitempty"` // ForceSendFields is a list of field names (e.g. "Condition") to diff --git a/bigtableadmin/v2/bigtableadmin-api.json b/bigtableadmin/v2/bigtableadmin-api.json index 5348b033920..d723beff1e2 100644 --- a/bigtableadmin/v2/bigtableadmin-api.json +++ b/bigtableadmin/v2/bigtableadmin-api.json @@ -1875,7 +1875,7 @@ } } }, - "revision": "20240110", + "revision": "20240120", "rootUrl": "https://bigtableadmin.googleapis.com/", "schemas": { "AppProfile": { @@ -3002,6 +3002,10 @@ "description": "Request message for google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies", "id": "ModifyColumnFamiliesRequest", "properties": { + "ignoreWarnings": { + "description": "Optional. If true, ignore safety checks when modifying the column families.", + "type": "boolean" + }, "modifications": { "description": "Required. Modifications to be atomically applied to the specified table's families. Entries are applied in order, meaning that earlier modifications can be masked by later ones (in the case of repeated updates to the same family, for example).", "items": { diff --git a/bigtableadmin/v2/bigtableadmin-gen.go b/bigtableadmin/v2/bigtableadmin-gen.go index 6b4596813b3..e115aaa0f24 100644 --- a/bigtableadmin/v2/bigtableadmin-gen.go +++ b/bigtableadmin/v2/bigtableadmin-gen.go @@ -2512,13 +2512,17 @@ func (s *Modification) MarshalJSON() ([]byte, error) { // ModifyColumnFamiliesRequest: Request message for // google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies type ModifyColumnFamiliesRequest struct { + // IgnoreWarnings: Optional. If true, ignore safety checks when + // modifying the column families. + IgnoreWarnings bool `json:"ignoreWarnings,omitempty"` + // Modifications: Required. Modifications to be atomically applied to // the specified table's families. Entries are applied in order, meaning // that earlier modifications can be masked by later ones (in the case // of repeated updates to the same family, for example). Modifications []*Modification `json:"modifications,omitempty"` - // ForceSendFields is a list of field names (e.g. "Modifications") to + // ForceSendFields is a list of field names (e.g. "IgnoreWarnings") 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 @@ -2526,12 +2530,13 @@ type ModifyColumnFamiliesRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Modifications") 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. "IgnoreWarnings") 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:"-"` } diff --git a/container/v1beta1/container-api.json b/container/v1beta1/container-api.json index 64d58badbc4..140fa4d3093 100644 --- a/container/v1beta1/container-api.json +++ b/container/v1beta1/container-api.json @@ -2565,7 +2565,7 @@ } } }, - "revision": "20240109", + "revision": "20240116", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2716,6 +2716,10 @@ "networkPolicyConfig": { "$ref": "NetworkPolicyConfig", "description": "Configuration for NetworkPolicy. This only tracks whether the addon is enabled or not on the Master, it does not track whether network policy is enabled for the nodes." + }, + "statefulHaConfig": { + "$ref": "StatefulHAConfig", + "description": "Optional. Configuration for the StatefulHA add-on." } }, "type": "object" @@ -2799,7 +2803,8 @@ "properties": { "conversionStatus": { "$ref": "AutopilotConversionStatus", - "description": "ConversionStatus shows conversion status." + "description": "Output only. ConversionStatus shows conversion status.", + "readOnly": true }, "enabled": { "description": "Enable Autopilot", @@ -7393,6 +7398,17 @@ }, "type": "object" }, + "StatefulHAConfig": { + "description": "Configuration for the Stateful HA add-on.", + "id": "StatefulHAConfig", + "properties": { + "enabled": { + "description": "Whether the Stateful HA add-on is enabled for this cluster.", + "type": "boolean" + } + }, + "type": "object" + }, "Status": { "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "id": "Status", diff --git a/container/v1beta1/container-gen.go b/container/v1beta1/container-gen.go index 323114235c7..e89ea82e756 100644 --- a/container/v1beta1/container-gen.go +++ b/container/v1beta1/container-gen.go @@ -521,6 +521,9 @@ type AddonsConfig struct { // track whether network policy is enabled for the nodes. NetworkPolicyConfig *NetworkPolicyConfig `json:"networkPolicyConfig,omitempty"` + // StatefulHaConfig: Optional. Configuration for the StatefulHA add-on. + StatefulHaConfig *StatefulHAConfig `json:"statefulHaConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "CloudRunConfig") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -695,7 +698,8 @@ func (s *AutoUpgradeOptions) MarshalJSON() ([]byte, error) { // Autopilot: Autopilot is the configuration for Autopilot settings on // the cluster. type Autopilot struct { - // ConversionStatus: ConversionStatus shows conversion status. + // ConversionStatus: Output only. ConversionStatus shows conversion + // status. ConversionStatus *AutopilotConversionStatus `json:"conversionStatus,omitempty"` // Enabled: Enable Autopilot @@ -8268,6 +8272,34 @@ func (s *StartIPRotationRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// StatefulHAConfig: Configuration for the Stateful HA add-on. +type StatefulHAConfig struct { + // Enabled: Whether the Stateful HA add-on is enabled for this cluster. + 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 *StatefulHAConfig) MarshalJSON() ([]byte, error) { + type NoMethod StatefulHAConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Status: The `Status` type defines a logical error model that is // suitable for different programming environments, including REST APIs // and RPC APIs. It is used by gRPC (https://github.com/grpc). Each