From ede75f3b571323d04e4d715f7feb2be1d0f0649d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 22 Sep 2024 07:11:01 +0000 Subject: [PATCH] feat(all): auto-regenerate discovery clients --- aiplatform/v1/aiplatform-api.json | 181 ++++++- aiplatform/v1/aiplatform-gen.go | 374 ++++++++++++- aiplatform/v1beta1/aiplatform-api.json | 272 +++++++++- aiplatform/v1beta1/aiplatform-gen.go | 490 +++++++++++++++++- alloydb/v1/alloydb-api.json | 94 +++- alloydb/v1/alloydb-gen.go | 44 +- composer/v1/composer-api.json | 9 +- composer/v1beta1/composer-api.json | 9 +- compute/v1/compute-api.json | 14 +- compute/v1/compute-gen.go | 15 +- connectors/v1/connectors-api.json | 6 +- connectors/v1/connectors-gen.go | 3 + dlp/v2/dlp-api.json | 289 ++++++++++- dlp/v2/dlp-gen.go | 470 ++++++++++++++++- healthcare/v1/healthcare-api.json | 52 +- healthcare/v1/healthcare-gen.go | 170 +++--- redis/v1beta1/redis-api.json | 40 +- redis/v1beta1/redis-gen.go | 32 +- spanner/v1/spanner-api.json | 23 +- spanner/v1/spanner-gen.go | 35 ++ .../v1/workflowexecutions-api.json | 6 +- .../v1/workflowexecutions-gen.go | 12 +- 22 files changed, 2411 insertions(+), 229 deletions(-) diff --git a/aiplatform/v1/aiplatform-api.json b/aiplatform/v1/aiplatform-api.json index 0caf7d6a412..8ffd941f86d 100644 --- a/aiplatform/v1/aiplatform-api.json +++ b/aiplatform/v1/aiplatform-api.json @@ -17476,6 +17476,34 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "rebaseTunedModel": { + "description": "Rebase a TunedModel.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/tuningJobs:rebaseTunedModel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.tuningJobs.rebaseTunedModel", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the Location into which to rebase the Model. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/tuningJobs:rebaseTunedModel", + "request": { + "$ref": "GoogleCloudAiplatformV1RebaseTunedModelRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } }, "resources": { @@ -17506,6 +17534,31 @@ "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": "v1/projects/{projectsId}/locations/{locationsId}/tuningJobs/{tuningJobsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.tuningJobs.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+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": "v1/projects/{projectsId}/locations/{locationsId}/tuningJobs/{tuningJobsId}/operations/{operationsId}", @@ -17760,7 +17813,7 @@ } } }, - "revision": "20240907", + "revision": "20240916", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoResponse": { @@ -19412,6 +19465,11 @@ "readOnly": true, "type": "integer" }, + "logprobsResult": { + "$ref": "GoogleCloudAiplatformV1LogprobsResult", + "description": "Output only. Log-likelihood scores for the response tokens and top tokens", + "readOnly": true + }, "safetyRatings": { "description": "Output only. List of ratings for the safety of a response candidate. There is at most one rating per category.", "items": { @@ -24535,6 +24593,11 @@ "readOnly": true, "type": "array" }, + "modelVersion": { + "description": "Output only. The model version used to generate the response.", + "readOnly": true, + "type": "string" + }, "promptFeedback": { "$ref": "GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback", "description": "Output only. 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.", @@ -24622,6 +24685,11 @@ "format": "float", "type": "number" }, + "logprobs": { + "description": "Optional. Logit probabilities.", + "format": "int32", + "type": "integer" + }, "maxOutputTokens": { "description": "Optional. The maximum number of output tokens to generate per message.", "format": "int32", @@ -24632,6 +24700,10 @@ "format": "float", "type": "number" }, + "responseLogprobs": { + "description": "Optional. If true, export the logprobs results in response.", + "type": "boolean" + }, "responseMimeType": { "description": "Optional. Output response mimetype of the generated candidate text. Supported mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature.", "type": "string" @@ -26660,6 +26732,62 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1LogprobsResult": { + "description": "Logprobs Result", + "id": "GoogleCloudAiplatformV1LogprobsResult", + "properties": { + "chosenCandidates": { + "description": "Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates.", + "items": { + "$ref": "GoogleCloudAiplatformV1LogprobsResultCandidate" + }, + "type": "array" + }, + "topCandidates": { + "description": "Length = total number of decoding steps.", + "items": { + "$ref": "GoogleCloudAiplatformV1LogprobsResultTopCandidates" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1LogprobsResultCandidate": { + "description": "Candidate for the logprobs token and score.", + "id": "GoogleCloudAiplatformV1LogprobsResultCandidate", + "properties": { + "logProbability": { + "description": "The candidate's log probability.", + "format": "float", + "type": "number" + }, + "token": { + "description": "The candidate’s token string value.", + "type": "string" + }, + "tokenId": { + "description": "The candidate’s token id value.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1LogprobsResultTopCandidates": { + "description": "Candidates with top log probabilities at each decoding step.", + "id": "GoogleCloudAiplatformV1LogprobsResultTopCandidates", + "properties": { + "candidates": { + "description": "Sorted by log probability in descending order.", + "items": { + "$ref": "GoogleCloudAiplatformV1LogprobsResultCandidate" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1LookupStudyRequest": { "description": "Request message for VizierService.LookupStudy.", "id": "GoogleCloudAiplatformV1LookupStudyRequest", @@ -31900,6 +32028,29 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1RebaseTunedModelRequest": { + "description": "Request message for GenAiTuningService.RebaseTunedModel.", + "id": "GoogleCloudAiplatformV1RebaseTunedModelRequest", + "properties": { + "artifactDestination": { + "$ref": "GoogleCloudAiplatformV1GcsDestination", + "description": "Optional. The Google Cloud Storage location to write the artifacts." + }, + "deployToSameEndpoint": { + "description": "Optional. By default, bison to gemini migration will always create new model/endpoint, but for gemini-1.0 to gemini-1.5 migration, we default deploy to the same endpoint. See details in this Section.", + "type": "boolean" + }, + "tunedModelRef": { + "$ref": "GoogleCloudAiplatformV1TunedModelRef", + "description": "Required. TunedModel reference to retrieve the legacy model information." + }, + "tuningJob": { + "$ref": "GoogleCloudAiplatformV1TuningJob", + "description": "Optional. The TuningJob to be updated. Users can use this TuningJob field to overwrite tuning configs." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1RebootPersistentResourceOperationMetadata": { "description": "Details of operations that perform reboot PersistentResource.", "id": "GoogleCloudAiplatformV1RebootPersistentResourceOperationMetadata", @@ -32742,6 +32893,13 @@ "description": "Schema is used to define the format of input/output data. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may be added in the future as needed.", "id": "GoogleCloudAiplatformV1Schema", "properties": { + "anyOf": { + "description": "Optional. The value should be validated against any (one or more) of the subschemas in the list.", + "items": { + "$ref": "GoogleCloudAiplatformV1Schema" + }, + "type": "array" + }, "default": { "description": "Optional. Default value of the data.", "type": "any" @@ -38742,7 +38900,7 @@ "id": "GoogleCloudAiplatformV1Tool", "properties": { "functionDeclarations": { - "description": "Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 64 function declarations can be provided.", + "description": "Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 128 function declarations can be provided.", "items": { "$ref": "GoogleCloudAiplatformV1FunctionDeclaration" }, @@ -39312,6 +39470,25 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1TunedModelRef": { + "description": "TunedModel Reference for legacy model migration.", + "id": "GoogleCloudAiplatformV1TunedModelRef", + "properties": { + "pipelineJob": { + "description": "Support migration from tuning job list page, from bison model to gemini model.", + "type": "string" + }, + "tunedModel": { + "description": "Support migration from model registry.", + "type": "string" + }, + "tuningJob": { + "description": "Support migration from tuning job list page, from gemini-1.0-pro-002 to 1.5 and above.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1TuningDataStats": { "description": "The tuning data statistic values for TuningJob.", "id": "GoogleCloudAiplatformV1TuningDataStats", diff --git a/aiplatform/v1/aiplatform-gen.go b/aiplatform/v1/aiplatform-gen.go index d51abdfd094..6f3f8e52248 100644 --- a/aiplatform/v1/aiplatform-gen.go +++ b/aiplatform/v1/aiplatform-gen.go @@ -3761,6 +3761,9 @@ type GoogleCloudAiplatformV1Candidate struct { GroundingMetadata *GoogleCloudAiplatformV1GroundingMetadata `json:"groundingMetadata,omitempty"` // Index: Output only. Index of the candidate. Index int64 `json:"index,omitempty"` + // LogprobsResult: Output only. Log-likelihood scores for the response tokens + // and top tokens + LogprobsResult *GoogleCloudAiplatformV1LogprobsResult `json:"logprobsResult,omitempty"` // SafetyRatings: Output only. List of ratings for the safety of a response // candidate. There is at most one rating per category. SafetyRatings []*GoogleCloudAiplatformV1SafetyRating `json:"safetyRatings,omitempty"` @@ -11225,6 +11228,8 @@ func (s GoogleCloudAiplatformV1GenerateContentRequest) MarshalJSON() ([]byte, er type GoogleCloudAiplatformV1GenerateContentResponse struct { // Candidates: Output only. Generated candidates. Candidates []*GoogleCloudAiplatformV1Candidate `json:"candidates,omitempty"` + // ModelVersion: Output only. The model version used to generate the response. + ModelVersion string `json:"modelVersion,omitempty"` // PromptFeedback: Output only. 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. @@ -11322,11 +11327,16 @@ type GoogleCloudAiplatformV1GenerationConfig struct { CandidateCount int64 `json:"candidateCount,omitempty"` // FrequencyPenalty: Optional. Frequency penalties. FrequencyPenalty float64 `json:"frequencyPenalty,omitempty"` + // Logprobs: Optional. Logit probabilities. + Logprobs int64 `json:"logprobs,omitempty"` // MaxOutputTokens: Optional. The maximum number of output tokens to generate // per message. MaxOutputTokens int64 `json:"maxOutputTokens,omitempty"` // PresencePenalty: Optional. Positive penalties. PresencePenalty float64 `json:"presencePenalty,omitempty"` + // ResponseLogprobs: Optional. If true, export the logprobs results in + // response. + ResponseLogprobs bool `json:"responseLogprobs,omitempty"` // ResponseMimeType: Optional. Output response mimetype of the generated // candidate text. Supported mimetype: - `text/plain`: (default) Text output. - // `application/json`: JSON response in the candidates. The model needs to be @@ -14274,6 +14284,95 @@ func (s GoogleCloudAiplatformV1ListTuningJobsResponse) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1LogprobsResult: Logprobs Result +type GoogleCloudAiplatformV1LogprobsResult struct { + // ChosenCandidates: Length = total number of decoding steps. The chosen + // candidates may or may not be in top_candidates. + ChosenCandidates []*GoogleCloudAiplatformV1LogprobsResultCandidate `json:"chosenCandidates,omitempty"` + // TopCandidates: Length = total number of decoding steps. + TopCandidates []*GoogleCloudAiplatformV1LogprobsResultTopCandidates `json:"topCandidates,omitempty"` + // ForceSendFields is a list of field names (e.g. "ChosenCandidates") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ChosenCandidates") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1LogprobsResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1LogprobsResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1LogprobsResultCandidate: Candidate for the logprobs +// token and score. +type GoogleCloudAiplatformV1LogprobsResultCandidate struct { + // LogProbability: The candidate's log probability. + LogProbability float64 `json:"logProbability,omitempty"` + // Token: The candidate’s token string value. + Token string `json:"token,omitempty"` + // TokenId: The candidate’s token id value. + TokenId int64 `json:"tokenId,omitempty"` + // ForceSendFields is a list of field names (e.g. "LogProbability") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "LogProbability") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1LogprobsResultCandidate) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1LogprobsResultCandidate + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1LogprobsResultCandidate) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1LogprobsResultCandidate + var s1 struct { + LogProbability gensupport.JSONFloat64 `json:"logProbability"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.LogProbability = float64(s1.LogProbability) + return nil +} + +// GoogleCloudAiplatformV1LogprobsResultTopCandidates: Candidates with top log +// probabilities at each decoding step. +type GoogleCloudAiplatformV1LogprobsResultTopCandidates struct { + // Candidates: Sorted by log probability in descending order. + Candidates []*GoogleCloudAiplatformV1LogprobsResultCandidate `json:"candidates,omitempty"` + // ForceSendFields is a list of field names (e.g. "Candidates") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Candidates") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1LogprobsResultTopCandidates) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1LogprobsResultTopCandidates + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1LookupStudyRequest: Request message for // VizierService.LookupStudy. type GoogleCloudAiplatformV1LookupStudyRequest struct { @@ -21351,6 +21450,41 @@ func (s GoogleCloudAiplatformV1ReadTensorboardUsageResponsePerUserUsageData) Mar return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1RebaseTunedModelRequest: Request message for +// GenAiTuningService.RebaseTunedModel. +type GoogleCloudAiplatformV1RebaseTunedModelRequest struct { + // ArtifactDestination: Optional. The Google Cloud Storage location to write + // the artifacts. + ArtifactDestination *GoogleCloudAiplatformV1GcsDestination `json:"artifactDestination,omitempty"` + // DeployToSameEndpoint: Optional. By default, bison to gemini migration will + // always create new model/endpoint, but for gemini-1.0 to gemini-1.5 + // migration, we default deploy to the same endpoint. See details in this + // Section. + DeployToSameEndpoint bool `json:"deployToSameEndpoint,omitempty"` + // TunedModelRef: Required. TunedModel reference to retrieve the legacy model + // information. + TunedModelRef *GoogleCloudAiplatformV1TunedModelRef `json:"tunedModelRef,omitempty"` + // TuningJob: Optional. The TuningJob to be updated. Users can use this + // TuningJob field to overwrite tuning configs. + TuningJob *GoogleCloudAiplatformV1TuningJob `json:"tuningJob,omitempty"` + // ForceSendFields is a list of field names (e.g. "ArtifactDestination") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ArtifactDestination") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1RebaseTunedModelRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1RebaseTunedModelRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1RebootPersistentResourceOperationMetadata: Details of // operations that perform reboot PersistentResource. type GoogleCloudAiplatformV1RebootPersistentResourceOperationMetadata struct { @@ -22496,6 +22630,9 @@ func (s GoogleCloudAiplatformV1Scheduling) MarshalJSON() ([]byte, error) { // object (https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may // be added in the future as needed. type GoogleCloudAiplatformV1Schema struct { + // AnyOf: Optional. The value should be validated against any (one or more) of + // the subschemas in the list. + AnyOf []*GoogleCloudAiplatformV1Schema `json:"anyOf,omitempty"` // Default: Optional. Default value of the data. Default interface{} `json:"default,omitempty"` // Description: Optional. The description of the data. @@ -22558,13 +22695,13 @@ type GoogleCloudAiplatformV1Schema struct { // "ARRAY" - OpenAPI array type // "OBJECT" - OpenAPI object type Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Default") to unconditionally + // ForceSendFields is a list of field names (e.g. "AnyOf") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Default") to include in API + // NullFields is a list of field names (e.g. "AnyOf") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -31816,7 +31953,7 @@ type GoogleCloudAiplatformV1Tool struct { // Model may decide to call a subset of these functions by populating // FunctionCall in the response. User should provide a FunctionResponse for // each function call in the next turn. Based on the function responses, Model - // will generate the final response back to the user. Maximum 64 function + // will generate the final response back to the user. Maximum 128 function // declarations can be provided. FunctionDeclarations []*GoogleCloudAiplatformV1FunctionDeclaration `json:"functionDeclarations,omitempty"` // GoogleSearchRetrieval: Optional. GoogleSearchRetrieval tool type. @@ -32665,6 +32802,35 @@ func (s GoogleCloudAiplatformV1TunedModel) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1TunedModelRef: TunedModel Reference for legacy model +// migration. +type GoogleCloudAiplatformV1TunedModelRef struct { + // PipelineJob: Support migration from tuning job list page, from bison model + // to gemini model. + PipelineJob string `json:"pipelineJob,omitempty"` + // TunedModel: Support migration from model registry. + TunedModel string `json:"tunedModel,omitempty"` + // TuningJob: Support migration from tuning job list page, from + // gemini-1.0-pro-002 to 1.5 and above. + TuningJob string `json:"tuningJob,omitempty"` + // ForceSendFields is a list of field names (e.g. "PipelineJob") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "PipelineJob") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1TunedModelRef) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1TunedModelRef + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1TuningDataStats: The tuning data statistic values for // TuningJob. type GoogleCloudAiplatformV1TuningDataStats struct { @@ -97749,6 +97915,109 @@ func (c *ProjectsLocationsTuningJobsListCall) Pages(ctx context.Context, f func( } } +type ProjectsLocationsTuningJobsRebaseTunedModelCall struct { + s *Service + parent string + googlecloudaiplatformv1rebasetunedmodelrequest *GoogleCloudAiplatformV1RebaseTunedModelRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// RebaseTunedModel: Rebase a TunedModel. +// +// - parent: The resource name of the Location into which to rebase the Model. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsTuningJobsService) RebaseTunedModel(parent string, googlecloudaiplatformv1rebasetunedmodelrequest *GoogleCloudAiplatformV1RebaseTunedModelRequest) *ProjectsLocationsTuningJobsRebaseTunedModelCall { + c := &ProjectsLocationsTuningJobsRebaseTunedModelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1rebasetunedmodelrequest = googlecloudaiplatformv1rebasetunedmodelrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsTuningJobsRebaseTunedModelCall) Fields(s ...googleapi.Field) *ProjectsLocationsTuningJobsRebaseTunedModelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsTuningJobsRebaseTunedModelCall) Context(ctx context.Context) *ProjectsLocationsTuningJobsRebaseTunedModelCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsTuningJobsRebaseTunedModelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTuningJobsRebaseTunedModelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1rebasetunedmodelrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/tuningJobs:rebaseTunedModel") + 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.tuningJobs.rebaseTunedModel" call. +// 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 *ProjectsLocationsTuningJobsRebaseTunedModelCall) 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 +} + type ProjectsLocationsTuningJobsOperationsCancelCall struct { s *Service name string @@ -97853,6 +98122,105 @@ func (c *ProjectsLocationsTuningJobsOperationsCancelCall) Do(opts ...googleapi.C return ret, nil } +type ProjectsLocationsTuningJobsOperationsDeleteCall 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 *ProjectsLocationsTuningJobsOperationsService) Delete(name string) *ProjectsLocationsTuningJobsOperationsDeleteCall { + c := &ProjectsLocationsTuningJobsOperationsDeleteCall{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 +// details. +func (c *ProjectsLocationsTuningJobsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTuningJobsOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsTuningJobsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsTuningJobsOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsTuningJobsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTuningJobsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+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.tuningJobs.operations.delete" call. +// 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 *ProjectsLocationsTuningJobsOperationsDeleteCall) 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 +} + type ProjectsLocationsTuningJobsOperationsGetCall struct { s *Service name string diff --git a/aiplatform/v1beta1/aiplatform-api.json b/aiplatform/v1beta1/aiplatform-api.json index daf78eacc4e..726c16a0c64 100644 --- a/aiplatform/v1beta1/aiplatform-api.json +++ b/aiplatform/v1beta1/aiplatform-api.json @@ -20887,6 +20887,65 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "rebaseTunedModel": { + "description": "Rebase a TunedModel.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/tuningJobs:rebaseTunedModel", + "httpMethod": "POST", + "id": "aiplatform.projects.locations.tuningJobs.rebaseTunedModel", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The resource name of the Location into which to rebase the Model. Format: `projects/{project}/locations/{location}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/tuningJobs:rebaseTunedModel", + "request": { + "$ref": "GoogleCloudAiplatformV1beta1RebaseTunedModelRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "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}/tuningJobs/{tuningJobsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "aiplatform.projects.locations.tuningJobs.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/tuningJobs/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } } } } @@ -21143,7 +21202,7 @@ } } }, - "revision": "20240907", + "revision": "20240916", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoResponse": { @@ -23194,6 +23253,11 @@ "readOnly": true, "type": "integer" }, + "logprobsResult": { + "$ref": "GoogleCloudAiplatformV1beta1LogprobsResult", + "description": "Output only. Log-likelihood scores for the response tokens and top tokens", + "readOnly": true + }, "safetyRatings": { "description": "Output only. List of ratings for the safety of a response candidate. There is at most one rating per category.", "items": { @@ -27886,6 +27950,10 @@ "description": "Identifier. Name of the FeatureView. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", "type": "string" }, + "optimizedConfig": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureViewOptimizedConfig", + "description": "Optional. Configuration for FeatureView created under Optimized FeatureOnlineStore." + }, "satisfiesPzi": { "description": "Output only. Reserved for future use.", "readOnly": true, @@ -28089,6 +28157,17 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1FeatureViewOptimizedConfig": { + "description": "Configuration for FeatureViews created in Optimized FeatureOnlineStore.", + "id": "GoogleCloudAiplatformV1beta1FeatureViewOptimizedConfig", + "properties": { + "automaticResources": { + "$ref": "GoogleCloudAiplatformV1beta1AutomaticResources", + "description": "Optional. A description of resources that the FeatureView uses, which to large degree are decided by Vertex AI, and optionally allows only a modest additional configuration. If min_replica_count is not set, the default value is 2. If max_replica_count is not set, the default value is 6. The max allowed replica count is 1000." + } + }, + "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", @@ -29106,6 +29185,11 @@ "readOnly": true, "type": "array" }, + "modelVersion": { + "description": "Output only. The model version used to generate the response.", + "readOnly": true, + "type": "string" + }, "promptFeedback": { "$ref": "GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback", "description": "Output only. 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.", @@ -29225,6 +29309,11 @@ "format": "float", "type": "number" }, + "logprobs": { + "description": "Optional. Logit probabilities.", + "format": "int32", + "type": "integer" + }, "maxOutputTokens": { "description": "Optional. The maximum number of output tokens to generate per message.", "format": "int32", @@ -29235,6 +29324,10 @@ "format": "float", "type": "number" }, + "responseLogprobs": { + "description": "Optional. If true, export the logprobs results in response.", + "type": "boolean" + }, "responseMimeType": { "description": "Optional. Output response mimetype of the generated candidate text. Supported mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature.", "type": "string" @@ -29986,6 +30079,10 @@ "$ref": "GoogleCloudAiplatformV1beta1RagFileParsingConfig", "description": "Specifies the parsing config for RagFiles." }, + "sharePointSources": { + "$ref": "GoogleCloudAiplatformV1beta1SharePointSources", + "description": "SharePoint sources." + }, "slackSource": { "$ref": "GoogleCloudAiplatformV1beta1SlackSource", "description": "Slack channels with their corresponding access tokens." @@ -31619,6 +31716,62 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1LogprobsResult": { + "description": "Logprobs Result", + "id": "GoogleCloudAiplatformV1beta1LogprobsResult", + "properties": { + "chosenCandidates": { + "description": "Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1LogprobsResultCandidate" + }, + "type": "array" + }, + "topCandidates": { + "description": "Length = total number of decoding steps.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1LogprobsResultCandidate": { + "description": "Candidate for the logprobs token and score.", + "id": "GoogleCloudAiplatformV1beta1LogprobsResultCandidate", + "properties": { + "logProbability": { + "description": "The candidate's log probability.", + "format": "float", + "type": "number" + }, + "token": { + "description": "The candidate’s token string value.", + "type": "string" + }, + "tokenId": { + "description": "The candidate’s token id value.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates": { + "description": "Candidates with top log probabilities at each decoding step.", + "id": "GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates", + "properties": { + "candidates": { + "description": "Sorted by log probability in descending order.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1LogprobsResultCandidate" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1LookupStudyRequest": { "description": "Request message for VizierService.LookupStudy.", "id": "GoogleCloudAiplatformV1beta1LookupStudyRequest", @@ -36521,6 +36674,10 @@ "description": "Required. If true, expose the IndexEndpoint via private service connect.", "type": "boolean" }, + "enableSecurePrivateServiceConnect": { + "description": "Optional. If set to true, enable secure private service connect with IAM authorization. Otherwise, private service connect will be done without authorization. Note latency will be slightly increased if authorization is enabled.", + "type": "boolean" + }, "projectAllowlist": { "description": "A list of Projects from which the forwarding rule will target the service attachment.", "items": { @@ -37791,6 +37948,10 @@ "readOnly": true, "type": "string" }, + "sharePointSources": { + "$ref": "GoogleCloudAiplatformV1beta1SharePointSources", + "description": "The RagFile is imported from a SharePoint source." + }, "sizeBytes": { "description": "Output only. The size of the RagFile in bytes.", "format": "int64", @@ -38311,6 +38472,29 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1RebaseTunedModelRequest": { + "description": "Request message for GenAiTuningService.RebaseTunedModel.", + "id": "GoogleCloudAiplatformV1beta1RebaseTunedModelRequest", + "properties": { + "artifactDestination": { + "$ref": "GoogleCloudAiplatformV1beta1GcsDestination", + "description": "Optional. The Google Cloud Storage location to write the artifacts." + }, + "deployToSameEndpoint": { + "description": "Optional. By default, bison to gemini migration will always create new model/endpoint, but for gemini-1.0 to gemini-1.5 migration, we default deploy to the same endpoint. See details in this Section.", + "type": "boolean" + }, + "tunedModelRef": { + "$ref": "GoogleCloudAiplatformV1beta1TunedModelRef", + "description": "Required. TunedModel reference to retrieve the legacy model information." + }, + "tuningJob": { + "$ref": "GoogleCloudAiplatformV1beta1TuningJob", + "description": "Optional. The TuningJob to be updated. Users can use this TuningJob field to overwrite tuning configs." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1RebootPersistentResourceOperationMetadata": { "description": "Details of operations that perform reboot PersistentResource.", "id": "GoogleCloudAiplatformV1beta1RebootPersistentResourceOperationMetadata", @@ -39423,6 +39607,13 @@ "description": "Schema is used to define the format of input/output data. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may be added in the future as needed.", "id": "GoogleCloudAiplatformV1beta1Schema", "properties": { + "anyOf": { + "description": "Optional. The value should be validated against any (one or more) of the subschemas in the list.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1Schema" + }, + "type": "array" + }, "default": { "description": "Optional. Default value of the data.", "type": "any" @@ -43573,6 +43764,64 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1SharePointSources": { + "description": "The SharePointSources to pass to ImportRagFiles.", + "id": "GoogleCloudAiplatformV1beta1SharePointSources", + "properties": { + "sharePointSources": { + "description": "The SharePoint sources.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1SharePointSourcesSharePointSource" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1SharePointSourcesSharePointSource": { + "description": "An individual SharePointSource.", + "id": "GoogleCloudAiplatformV1beta1SharePointSourcesSharePointSource", + "properties": { + "clientId": { + "description": "The Application ID for the app registered in Microsoft Azure Portal. The application must also be configured with MS Graph permissions \"Files.ReadAll\", \"Sites.ReadAll\" and BrowserSiteLists.Read.All.", + "type": "string" + }, + "clientSecret": { + "$ref": "GoogleCloudAiplatformV1beta1ApiAuthApiKeyConfig", + "description": "The application secret for the app registered in Azure." + }, + "driveId": { + "description": "The ID of the drive to download from.", + "type": "string" + }, + "driveName": { + "description": "The name of the drive to download from.", + "type": "string" + }, + "fileId": { + "description": "Output only. The SharePoint file id. Output only.", + "readOnly": true, + "type": "string" + }, + "sharepointFolderId": { + "description": "The ID of the SharePoint folder to download from.", + "type": "string" + }, + "sharepointFolderPath": { + "description": "The path of the SharePoint folder to download from.", + "type": "string" + }, + "sharepointSiteName": { + "description": "The name of the SharePoint site to download from. This can be the site name or the site id.", + "type": "string" + }, + "tenantId": { + "description": "Unique identifier of the Azure Active Directory Instance.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1ShieldedVmConfig": { "description": "A set of Shielded Instance options. See [Images using supported Shielded VM features](https://cloud.google.com/compute/docs/instances/modifying-shielded-vm).", "id": "GoogleCloudAiplatformV1beta1ShieldedVmConfig", @@ -45585,7 +45834,7 @@ "id": "GoogleCloudAiplatformV1beta1Tool", "properties": { "functionDeclarations": { - "description": "Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 64 function declarations can be provided.", + "description": "Optional. Function tool type. One or more function declarations to be passed to the model along with the current user query. Model may decide to call a subset of these functions by populating FunctionCall in the response. User should provide a FunctionResponse for each function call in the next turn. Based on the function responses, Model will generate the final response back to the user. Maximum 128 function declarations can be provided.", "items": { "$ref": "GoogleCloudAiplatformV1beta1FunctionDeclaration" }, @@ -46213,6 +46462,25 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1TunedModelRef": { + "description": "TunedModel Reference for legacy model migration.", + "id": "GoogleCloudAiplatformV1beta1TunedModelRef", + "properties": { + "pipelineJob": { + "description": "Support migration from tuning job list page, from bison model to gemini model.", + "type": "string" + }, + "tunedModel": { + "description": "Support migration from model registry.", + "type": "string" + }, + "tuningJob": { + "description": "Support migration from tuning job list page, from gemini-1.0-pro-002 to 1.5 and above.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1TuningDataStats": { "description": "The tuning data statistic values for TuningJob.", "id": "GoogleCloudAiplatformV1beta1TuningDataStats", diff --git a/aiplatform/v1beta1/aiplatform-gen.go b/aiplatform/v1beta1/aiplatform-gen.go index d4551ea3885..4870edc2a0a 100644 --- a/aiplatform/v1beta1/aiplatform-gen.go +++ b/aiplatform/v1beta1/aiplatform-gen.go @@ -1669,11 +1669,23 @@ type ProjectsLocationsTrainingPipelinesOperationsService struct { func NewProjectsLocationsTuningJobsService(s *Service) *ProjectsLocationsTuningJobsService { rs := &ProjectsLocationsTuningJobsService{s: s} + rs.Operations = NewProjectsLocationsTuningJobsOperationsService(s) return rs } type ProjectsLocationsTuningJobsService struct { s *Service + + Operations *ProjectsLocationsTuningJobsOperationsService +} + +func NewProjectsLocationsTuningJobsOperationsService(s *Service) *ProjectsLocationsTuningJobsOperationsService { + rs := &ProjectsLocationsTuningJobsOperationsService{s: s} + return rs +} + +type ProjectsLocationsTuningJobsOperationsService struct { + s *Service } func NewPublishersService(s *Service) *PublishersService { @@ -4633,6 +4645,9 @@ type GoogleCloudAiplatformV1beta1Candidate struct { GroundingMetadata *GoogleCloudAiplatformV1beta1GroundingMetadata `json:"groundingMetadata,omitempty"` // Index: Output only. Index of the candidate. Index int64 `json:"index,omitempty"` + // LogprobsResult: Output only. Log-likelihood scores for the response tokens + // and top tokens + LogprobsResult *GoogleCloudAiplatformV1beta1LogprobsResult `json:"logprobsResult,omitempty"` // SafetyRatings: Output only. List of ratings for the safety of a response // candidate. There is at most one rating per category. SafetyRatings []*GoogleCloudAiplatformV1beta1SafetyRating `json:"safetyRatings,omitempty"` @@ -11326,6 +11341,9 @@ type GoogleCloudAiplatformV1beta1FeatureView struct { // `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_ // store}/featureViews/{feature_view}` Name string `json:"name,omitempty"` + // OptimizedConfig: Optional. Configuration for FeatureView created under + // Optimized FeatureOnlineStore. + OptimizedConfig *GoogleCloudAiplatformV1beta1FeatureViewOptimizedConfig `json:"optimizedConfig,omitempty"` // SatisfiesPzi: Output only. Reserved for future use. SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` // SatisfiesPzs: Output only. Reserved for future use. @@ -11603,6 +11621,33 @@ func (s GoogleCloudAiplatformV1beta1FeatureViewIndexConfigTreeAHConfig) MarshalJ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1FeatureViewOptimizedConfig: Configuration for +// FeatureViews created in Optimized FeatureOnlineStore. +type GoogleCloudAiplatformV1beta1FeatureViewOptimizedConfig struct { + // AutomaticResources: Optional. A description of resources that the + // FeatureView uses, which to large degree are decided by Vertex AI, and + // optionally allows only a modest additional configuration. If + // min_replica_count is not set, the default value is 2. If max_replica_count + // is not set, the default value is 6. The max allowed replica count is 1000. + AutomaticResources *GoogleCloudAiplatformV1beta1AutomaticResources `json:"automaticResources,omitempty"` + // ForceSendFields is a list of field names (e.g. "AutomaticResources") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AutomaticResources") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1FeatureViewOptimizedConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FeatureViewOptimizedConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1FeatureViewSync: FeatureViewSync is a // representation of sync operation which copies data from data source to // Feature View in Online Store. @@ -13200,6 +13245,8 @@ func (s GoogleCloudAiplatformV1beta1GenerateContentRequest) MarshalJSON() ([]byt type GoogleCloudAiplatformV1beta1GenerateContentResponse struct { // Candidates: Output only. Generated candidates. Candidates []*GoogleCloudAiplatformV1beta1Candidate `json:"candidates,omitempty"` + // ModelVersion: Output only. The model version used to generate the response. + ModelVersion string `json:"modelVersion,omitempty"` // PromptFeedback: Output only. 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. @@ -13327,11 +13374,16 @@ type GoogleCloudAiplatformV1beta1GenerationConfig struct { CandidateCount int64 `json:"candidateCount,omitempty"` // FrequencyPenalty: Optional. Frequency penalties. FrequencyPenalty float64 `json:"frequencyPenalty,omitempty"` + // Logprobs: Optional. Logit probabilities. + Logprobs int64 `json:"logprobs,omitempty"` // MaxOutputTokens: Optional. The maximum number of output tokens to generate // per message. MaxOutputTokens int64 `json:"maxOutputTokens,omitempty"` // PresencePenalty: Optional. Positive penalties. PresencePenalty float64 `json:"presencePenalty,omitempty"` + // ResponseLogprobs: Optional. If true, export the logprobs results in + // response. + ResponseLogprobs bool `json:"responseLogprobs,omitempty"` // ResponseMimeType: Optional. Output response mimetype of the generated // candidate text. Supported mimetype: - `text/plain`: (default) Text output. - // `application/json`: JSON response in the candidates. The model needs to be @@ -14316,6 +14368,8 @@ type GoogleCloudAiplatformV1beta1ImportRagFilesConfig struct { RagFileChunkingConfig *GoogleCloudAiplatformV1beta1RagFileChunkingConfig `json:"ragFileChunkingConfig,omitempty"` // RagFileParsingConfig: Specifies the parsing config for RagFiles. RagFileParsingConfig *GoogleCloudAiplatformV1beta1RagFileParsingConfig `json:"ragFileParsingConfig,omitempty"` + // SharePointSources: SharePoint sources. + SharePointSources *GoogleCloudAiplatformV1beta1SharePointSources `json:"sharePointSources,omitempty"` // SlackSource: Slack channels with their corresponding access tokens. SlackSource *GoogleCloudAiplatformV1beta1SlackSource `json:"slackSource,omitempty"` // ForceSendFields is a list of field names (e.g. "GcsSource") to @@ -16779,6 +16833,95 @@ func (s GoogleCloudAiplatformV1beta1ListTuningJobsResponse) MarshalJSON() ([]byt return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1LogprobsResult: Logprobs Result +type GoogleCloudAiplatformV1beta1LogprobsResult struct { + // ChosenCandidates: Length = total number of decoding steps. The chosen + // candidates may or may not be in top_candidates. + ChosenCandidates []*GoogleCloudAiplatformV1beta1LogprobsResultCandidate `json:"chosenCandidates,omitempty"` + // TopCandidates: Length = total number of decoding steps. + TopCandidates []*GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates `json:"topCandidates,omitempty"` + // ForceSendFields is a list of field names (e.g. "ChosenCandidates") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ChosenCandidates") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1LogprobsResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1LogprobsResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1LogprobsResultCandidate: Candidate for the +// logprobs token and score. +type GoogleCloudAiplatformV1beta1LogprobsResultCandidate struct { + // LogProbability: The candidate's log probability. + LogProbability float64 `json:"logProbability,omitempty"` + // Token: The candidate’s token string value. + Token string `json:"token,omitempty"` + // TokenId: The candidate’s token id value. + TokenId int64 `json:"tokenId,omitempty"` + // ForceSendFields is a list of field names (e.g. "LogProbability") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "LogProbability") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1LogprobsResultCandidate) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1LogprobsResultCandidate + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1beta1LogprobsResultCandidate) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1beta1LogprobsResultCandidate + var s1 struct { + LogProbability gensupport.JSONFloat64 `json:"logProbability"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.LogProbability = float64(s1.LogProbability) + return nil +} + +// GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates: Candidates with top +// log probabilities at each decoding step. +type GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates struct { + // Candidates: Sorted by log probability in descending order. + Candidates []*GoogleCloudAiplatformV1beta1LogprobsResultCandidate `json:"candidates,omitempty"` + // ForceSendFields is a list of field names (e.g. "Candidates") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Candidates") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1LookupStudyRequest: Request message for // VizierService.LookupStudy. type GoogleCloudAiplatformV1beta1LookupStudyRequest struct { @@ -23284,6 +23427,11 @@ type GoogleCloudAiplatformV1beta1PrivateServiceConnectConfig struct { // EnablePrivateServiceConnect: Required. If true, expose the IndexEndpoint via // private service connect. EnablePrivateServiceConnect bool `json:"enablePrivateServiceConnect,omitempty"` + // EnableSecurePrivateServiceConnect: Optional. If set to true, enable secure + // private service connect with IAM authorization. Otherwise, private service + // connect will be done without authorization. Note latency will be slightly + // increased if authorization is enabled. + EnableSecurePrivateServiceConnect bool `json:"enableSecurePrivateServiceConnect,omitempty"` // ProjectAllowlist: A list of Projects from which the forwarding rule will // target the service attachment. ProjectAllowlist []string `json:"projectAllowlist,omitempty"` @@ -25107,6 +25255,8 @@ type GoogleCloudAiplatformV1beta1RagFile struct { // "RAG_FILE_TYPE_TXT" - RagFile type is TXT. // "RAG_FILE_TYPE_PDF" - RagFile type is PDF. RagFileType string `json:"ragFileType,omitempty"` + // SharePointSources: The RagFile is imported from a SharePoint source. + SharePointSources *GoogleCloudAiplatformV1beta1SharePointSources `json:"sharePointSources,omitempty"` // SizeBytes: Output only. The size of the RagFile in bytes. SizeBytes int64 `json:"sizeBytes,omitempty,string"` // SlackSource: The RagFile is imported from a Slack channel. @@ -25984,6 +26134,41 @@ func (s GoogleCloudAiplatformV1beta1ReasoningEngineSpecPackageSpec) MarshalJSON( return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1RebaseTunedModelRequest: Request message for +// GenAiTuningService.RebaseTunedModel. +type GoogleCloudAiplatformV1beta1RebaseTunedModelRequest struct { + // ArtifactDestination: Optional. The Google Cloud Storage location to write + // the artifacts. + ArtifactDestination *GoogleCloudAiplatformV1beta1GcsDestination `json:"artifactDestination,omitempty"` + // DeployToSameEndpoint: Optional. By default, bison to gemini migration will + // always create new model/endpoint, but for gemini-1.0 to gemini-1.5 + // migration, we default deploy to the same endpoint. See details in this + // Section. + DeployToSameEndpoint bool `json:"deployToSameEndpoint,omitempty"` + // TunedModelRef: Required. TunedModel reference to retrieve the legacy model + // information. + TunedModelRef *GoogleCloudAiplatformV1beta1TunedModelRef `json:"tunedModelRef,omitempty"` + // TuningJob: Optional. The TuningJob to be updated. Users can use this + // TuningJob field to overwrite tuning configs. + TuningJob *GoogleCloudAiplatformV1beta1TuningJob `json:"tuningJob,omitempty"` + // ForceSendFields is a list of field names (e.g. "ArtifactDestination") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ArtifactDestination") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1RebaseTunedModelRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1RebaseTunedModelRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1RebootPersistentResourceOperationMetadata: // Details of operations that perform reboot PersistentResource. type GoogleCloudAiplatformV1beta1RebootPersistentResourceOperationMetadata struct { @@ -27504,6 +27689,9 @@ func (s GoogleCloudAiplatformV1beta1Scheduling) MarshalJSON() ([]byte, error) { // object (https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may // be added in the future as needed. type GoogleCloudAiplatformV1beta1Schema struct { + // AnyOf: Optional. The value should be validated against any (one or more) of + // the subschemas in the list. + AnyOf []*GoogleCloudAiplatformV1beta1Schema `json:"anyOf,omitempty"` // Default: Optional. Default value of the data. Default interface{} `json:"default,omitempty"` // Description: Optional. The description of the data. @@ -27566,13 +27754,13 @@ type GoogleCloudAiplatformV1beta1Schema struct { // "ARRAY" - OpenAPI array type // "OBJECT" - OpenAPI object type Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "Default") to unconditionally + // ForceSendFields is a list of field names (e.g. "AnyOf") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Default") to include in API + // NullFields is a list of field names (e.g. "AnyOf") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -34282,6 +34470,71 @@ func (s GoogleCloudAiplatformV1beta1ServiceAccountSpec) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1SharePointSources: The SharePointSources to pass +// to ImportRagFiles. +type GoogleCloudAiplatformV1beta1SharePointSources struct { + // SharePointSources: The SharePoint sources. + SharePointSources []*GoogleCloudAiplatformV1beta1SharePointSourcesSharePointSource `json:"sharePointSources,omitempty"` + // ForceSendFields is a list of field names (e.g. "SharePointSources") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "SharePointSources") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1SharePointSources) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1SharePointSources + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1SharePointSourcesSharePointSource: An individual +// SharePointSource. +type GoogleCloudAiplatformV1beta1SharePointSourcesSharePointSource struct { + // ClientId: The Application ID for the app registered in Microsoft Azure + // Portal. The application must also be configured with MS Graph permissions + // "Files.ReadAll", "Sites.ReadAll" and BrowserSiteLists.Read.All. + ClientId string `json:"clientId,omitempty"` + // ClientSecret: The application secret for the app registered in Azure. + ClientSecret *GoogleCloudAiplatformV1beta1ApiAuthApiKeyConfig `json:"clientSecret,omitempty"` + // DriveId: The ID of the drive to download from. + DriveId string `json:"driveId,omitempty"` + // DriveName: The name of the drive to download from. + DriveName string `json:"driveName,omitempty"` + // FileId: Output only. The SharePoint file id. Output only. + FileId string `json:"fileId,omitempty"` + // SharepointFolderId: The ID of the SharePoint folder to download from. + SharepointFolderId string `json:"sharepointFolderId,omitempty"` + // SharepointFolderPath: The path of the SharePoint folder to download from. + SharepointFolderPath string `json:"sharepointFolderPath,omitempty"` + // SharepointSiteName: The name of the SharePoint site to download from. This + // can be the site name or the site id. + SharepointSiteName string `json:"sharepointSiteName,omitempty"` + // TenantId: Unique identifier of the Azure Active Directory Instance. + TenantId string `json:"tenantId,omitempty"` + // ForceSendFields is a list of field names (e.g. "ClientId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ClientId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1SharePointSourcesSharePointSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1SharePointSourcesSharePointSource + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1ShieldedVmConfig: A set of Shielded Instance // options. See Images using supported Shielded VM features // (https://cloud.google.com/compute/docs/instances/modifying-shielded-vm). @@ -37107,7 +37360,7 @@ type GoogleCloudAiplatformV1beta1Tool struct { // Model may decide to call a subset of these functions by populating // FunctionCall in the response. User should provide a FunctionResponse for // each function call in the next turn. Based on the function responses, Model - // will generate the final response back to the user. Maximum 64 function + // will generate the final response back to the user. Maximum 128 function // declarations can be provided. FunctionDeclarations []*GoogleCloudAiplatformV1beta1FunctionDeclaration `json:"functionDeclarations,omitempty"` // GoogleSearchRetrieval: Optional. GoogleSearchRetrieval tool type. @@ -38020,6 +38273,35 @@ func (s GoogleCloudAiplatformV1beta1TunedModel) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1TunedModelRef: TunedModel Reference for legacy +// model migration. +type GoogleCloudAiplatformV1beta1TunedModelRef struct { + // PipelineJob: Support migration from tuning job list page, from bison model + // to gemini model. + PipelineJob string `json:"pipelineJob,omitempty"` + // TunedModel: Support migration from model registry. + TunedModel string `json:"tunedModel,omitempty"` + // TuningJob: Support migration from tuning job list page, from + // gemini-1.0-pro-002 to 1.5 and above. + TuningJob string `json:"tuningJob,omitempty"` + // ForceSendFields is a list of field names (e.g. "PipelineJob") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "PipelineJob") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudAiplatformV1beta1TunedModelRef) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1TunedModelRef + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1TuningDataStats: The tuning data statistic // values for TuningJob. type GoogleCloudAiplatformV1beta1TuningDataStats struct { @@ -116040,6 +116322,208 @@ func (c *ProjectsLocationsTuningJobsListCall) Pages(ctx context.Context, f func( } } +type ProjectsLocationsTuningJobsRebaseTunedModelCall struct { + s *Service + parent string + googlecloudaiplatformv1beta1rebasetunedmodelrequest *GoogleCloudAiplatformV1beta1RebaseTunedModelRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// RebaseTunedModel: Rebase a TunedModel. +// +// - parent: The resource name of the Location into which to rebase the Model. +// Format: `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsTuningJobsService) RebaseTunedModel(parent string, googlecloudaiplatformv1beta1rebasetunedmodelrequest *GoogleCloudAiplatformV1beta1RebaseTunedModelRequest) *ProjectsLocationsTuningJobsRebaseTunedModelCall { + c := &ProjectsLocationsTuningJobsRebaseTunedModelCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudaiplatformv1beta1rebasetunedmodelrequest = googlecloudaiplatformv1beta1rebasetunedmodelrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsTuningJobsRebaseTunedModelCall) Fields(s ...googleapi.Field) *ProjectsLocationsTuningJobsRebaseTunedModelCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsTuningJobsRebaseTunedModelCall) Context(ctx context.Context) *ProjectsLocationsTuningJobsRebaseTunedModelCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsTuningJobsRebaseTunedModelCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTuningJobsRebaseTunedModelCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudaiplatformv1beta1rebasetunedmodelrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/tuningJobs:rebaseTunedModel") + 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.tuningJobs.rebaseTunedModel" call. +// 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 *ProjectsLocationsTuningJobsRebaseTunedModelCall) 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 +} + +type ProjectsLocationsTuningJobsOperationsDeleteCall 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 *ProjectsLocationsTuningJobsOperationsService) Delete(name string) *ProjectsLocationsTuningJobsOperationsDeleteCall { + c := &ProjectsLocationsTuningJobsOperationsDeleteCall{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 +// details. +func (c *ProjectsLocationsTuningJobsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsTuningJobsOperationsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsTuningJobsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsTuningJobsOperationsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsTuningJobsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsTuningJobsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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.tuningJobs.operations.delete" call. +// 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 *ProjectsLocationsTuningJobsOperationsDeleteCall) 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 +} + type PublishersModelsComputeTokensCall struct { s *Service endpoint string diff --git a/alloydb/v1/alloydb-api.json b/alloydb/v1/alloydb-api.json index bc792f08397..aa350ab30e3 100644 --- a/alloydb/v1/alloydb-api.json +++ b/alloydb/v1/alloydb-api.json @@ -1517,7 +1517,7 @@ } } }, - "revision": "20240828", + "revision": "20240909", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { "AuthorizedNetwork": { @@ -1606,19 +1606,22 @@ "DATABASE_VERSION_UNSPECIFIED", "POSTGRES_13", "POSTGRES_14", - "POSTGRES_15" + "POSTGRES_15", + "POSTGRES_16" ], "enumDeprecated": [ false, true, false, + false, false ], "enumDescriptions": [ "This is an unknown database version.", "DEPRECATED - The database version is Postgres 13.", "The database version is Postgres 14.", - "The database version is Postgres 15." + "The database version is Postgres 15.", + "The database version is Postgres 16." ], "readOnly": true, "type": "string" @@ -1862,19 +1865,22 @@ "DATABASE_VERSION_UNSPECIFIED", "POSTGRES_13", "POSTGRES_14", - "POSTGRES_15" + "POSTGRES_15", + "POSTGRES_16" ], "enumDeprecated": [ false, true, false, + false, false ], "enumDescriptions": [ "This is an unknown database version.", "DEPRECATED - The database version is Postgres 13.", "The database version is Postgres 14.", - "The database version is Postgres 15." + "The database version is Postgres 15.", + "The database version is Postgres 16." ], "type": "string" }, @@ -2053,19 +2059,22 @@ "DATABASE_VERSION_UNSPECIFIED", "POSTGRES_13", "POSTGRES_14", - "POSTGRES_15" + "POSTGRES_15", + "POSTGRES_16" ], "enumDeprecated": [ false, true, false, + false, false ], "enumDescriptions": [ "This is an unknown database version.", "DEPRECATED - The database version is Postgres 13.", "The database version is Postgres 14.", - "The database version is Postgres 15." + "The database version is Postgres 15.", + "The database version is Postgres 16." ], "type": "string" }, @@ -2095,7 +2104,9 @@ "IN_PROGRESS", "SUCCESS", "FAILED", - "PARTIAL_SUCCESS" + "PARTIAL_SUCCESS", + "CANCEL_IN_PROGRESS", + "CANCELLED" ], "enumDescriptions": [ "Unspecified status.", @@ -2103,7 +2114,9 @@ "In progress.", "Operation succeeded.", "Operation failed.", - "Operation partially succeeded." + "Operation partially succeeded.", + "Cancel is in progress.", + "Cancellation complete." ], "type": "string" } @@ -2636,7 +2649,9 @@ "IN_PROGRESS", "SUCCESS", "FAILED", - "PARTIAL_SUCCESS" + "PARTIAL_SUCCESS", + "CANCEL_IN_PROGRESS", + "CANCELLED" ], "enumDescriptions": [ "Unspecified status.", @@ -2644,7 +2659,9 @@ "In progress.", "Operation succeeded.", "Operation failed.", - "Operation partially succeeded." + "Operation partially succeeded.", + "Cancel is in progress.", + "Cancellation complete." ], "type": "string" } @@ -3312,7 +3329,9 @@ "IN_PROGRESS", "SUCCESS", "FAILED", - "PARTIAL_SUCCESS" + "PARTIAL_SUCCESS", + "CANCEL_IN_PROGRESS", + "CANCELLED" ], "enumDescriptions": [ "Unspecified status.", @@ -3320,7 +3339,9 @@ "In progress.", "Operation succeeded.", "Operation failed.", - "Operation partially succeeded." + "Operation partially succeeded.", + "Cancel is in progress.", + "Cancellation complete." ], "type": "string" } @@ -3938,7 +3959,7 @@ "type": "object" }, "StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata": { - "description": "Common model for database resource instance metadata.", + "description": "Common model for database resource instance metadata. Next ID: 21", "id": "StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata", "properties": { "availabilityConfiguration": { @@ -4077,6 +4098,10 @@ "description": "Required. Different from DatabaseResourceId.unique_id, a resource name can be reused over time. That is, after a resource named \"ABC\" is deleted, the name \"ABC\" can be used to to create a new resource within the same source. Resource name to follow CAIS resource_name format as noted here go/condor-common-datamodel", "type": "string" }, + "tagsSet": { + "$ref": "StorageDatabasecenterPartnerapiV1mainTags", + "description": "Optional. Tags associated with this resources." + }, "updationTime": { "description": "The time at which the resource was updated and recorded at partner service.", "format": "google-datetime", @@ -4463,6 +4488,11 @@ "description": "Memory size in bytes. TODO(b/342344482, b/342346271) add proto validations again after bug fix.", "format": "int64", "type": "string" + }, + "shardCount": { + "description": "Optional. Number of shards (if applicable).", + "format": "int32", + "type": "integer" } }, "type": "object" @@ -4590,6 +4620,20 @@ }, "type": "object" }, + "StorageDatabasecenterPartnerapiV1mainTags": { + "description": "Message type for storing tags. Tags provide a way to create annotations for resources, and in some cases conditionally allow or deny policies based on whether a resource has a specific tag.", + "id": "StorageDatabasecenterPartnerapiV1mainTags", + "properties": { + "tags": { + "additionalProperties": { + "type": "string" + }, + "description": "The Tag key/value mappings.", + "type": "object" + } + }, + "type": "object" + }, "StorageDatabasecenterPartnerapiV1mainUserLabels": { "description": "Message type for storing user labels. User labels are used to tag App Engine resources, allowing users to search for resources matching a set of labels and to aggregate usage data by labels.", "id": "StorageDatabasecenterPartnerapiV1mainUserLabels", @@ -4792,19 +4836,22 @@ "DATABASE_VERSION_UNSPECIFIED", "POSTGRES_13", "POSTGRES_14", - "POSTGRES_15" + "POSTGRES_15", + "POSTGRES_16" ], "enumDeprecated": [ false, true, false, + false, false ], "enumDescriptions": [ "This is an unknown database version.", "DEPRECATED - The database version is Postgres 13.", "The database version is Postgres 14.", - "The database version is Postgres 15." + "The database version is Postgres 15.", + "The database version is Postgres 16." ], "type": "string" }, @@ -4906,19 +4953,22 @@ "DATABASE_VERSION_UNSPECIFIED", "POSTGRES_13", "POSTGRES_14", - "POSTGRES_15" + "POSTGRES_15", + "POSTGRES_16" ], "enumDeprecated": [ false, true, false, + false, false ], "enumDescriptions": [ "This is an unknown database version.", "DEPRECATED - The database version is Postgres 13.", "The database version is Postgres 14.", - "The database version is Postgres 15." + "The database version is Postgres 15.", + "The database version is Postgres 16." ], "type": "string" } @@ -4948,7 +4998,9 @@ "IN_PROGRESS", "SUCCESS", "FAILED", - "PARTIAL_SUCCESS" + "PARTIAL_SUCCESS", + "CANCEL_IN_PROGRESS", + "CANCELLED" ], "enumDescriptions": [ "Unspecified status.", @@ -4956,7 +5008,9 @@ "In progress.", "Operation succeeded.", "Operation failed.", - "Operation partially succeeded." + "Operation partially succeeded.", + "Cancel is in progress.", + "Cancellation complete." ], "type": "string" } diff --git a/alloydb/v1/alloydb-gen.go b/alloydb/v1/alloydb-gen.go index e93dcea8c95..8418ed17cdf 100644 --- a/alloydb/v1/alloydb-gen.go +++ b/alloydb/v1/alloydb-gen.go @@ -341,6 +341,7 @@ type Backup struct { // "POSTGRES_13" - DEPRECATED - The database version is Postgres 13. // "POSTGRES_14" - The database version is Postgres 14. // "POSTGRES_15" - The database version is Postgres 15. + // "POSTGRES_16" - The database version is Postgres 16. DatabaseVersion string `json:"databaseVersion,omitempty"` // DeleteTime: Output only. Delete time stamp DeleteTime string `json:"deleteTime,omitempty"` @@ -567,6 +568,7 @@ type Cluster struct { // "POSTGRES_13" - DEPRECATED - The database version is Postgres 13. // "POSTGRES_14" - The database version is Postgres 14. // "POSTGRES_15" - The database version is Postgres 15. + // "POSTGRES_16" - The database version is Postgres 16. DatabaseVersion string `json:"databaseVersion,omitempty"` // DeleteTime: Output only. Delete time stamp DeleteTime string `json:"deleteTime,omitempty"` @@ -709,6 +711,7 @@ type ClusterUpgradeDetails struct { // "POSTGRES_13" - DEPRECATED - The database version is Postgres 13. // "POSTGRES_14" - The database version is Postgres 14. // "POSTGRES_15" - The database version is Postgres 15. + // "POSTGRES_16" - The database version is Postgres 16. DatabaseVersion string `json:"databaseVersion,omitempty"` // InstanceUpgradeDetails: Upgrade details of the instances directly associated // with this cluster. @@ -726,6 +729,8 @@ type ClusterUpgradeDetails struct { // "SUCCESS" - Operation succeeded. // "FAILED" - Operation failed. // "PARTIAL_SUCCESS" - Operation partially succeeded. + // "CANCEL_IN_PROGRESS" - Cancel is in progress. + // "CANCELLED" - Cancellation complete. UpgradeStatus string `json:"upgradeStatus,omitempty"` // ForceSendFields is a list of field names (e.g. "ClusterType") to // unconditionally include in API requests. By default, fields with empty or @@ -1345,6 +1350,8 @@ type InstanceUpgradeDetails struct { // "SUCCESS" - Operation succeeded. // "FAILED" - Operation failed. // "PARTIAL_SUCCESS" - Operation partially succeeded. + // "CANCEL_IN_PROGRESS" - Cancel is in progress. + // "CANCELLED" - Cancellation complete. UpgradeStatus string `json:"upgradeStatus,omitempty"` // ForceSendFields is a list of field names (e.g. "InstanceType") to // unconditionally include in API requests. By default, fields with empty or @@ -2272,6 +2279,8 @@ type StageInfo struct { // "SUCCESS" - Operation succeeded. // "FAILED" - Operation failed. // "PARTIAL_SUCCESS" - Operation partially succeeded. + // "CANCEL_IN_PROGRESS" - Cancel is in progress. + // "CANCELLED" - Cancellation complete. Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "LogsUrl") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -2874,7 +2883,7 @@ func (s StorageDatabasecenterPartnerapiV1mainDatabaseResourceId) MarshalJSON() ( } // StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata: Common model -// for database resource instance metadata. +// for database resource instance metadata. Next ID: 21 type StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata struct { // AvailabilityConfiguration: Availability configuration for this instance AvailabilityConfiguration *StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration `json:"availabilityConfiguration,omitempty"` @@ -2952,6 +2961,8 @@ type StorageDatabasecenterPartnerapiV1mainDatabaseResourceMetadata struct { // the same source. Resource name to follow CAIS resource_name format as noted // here go/condor-common-datamodel ResourceName string `json:"resourceName,omitempty"` + // TagsSet: Optional. Tags associated with this resources. + TagsSet *StorageDatabasecenterPartnerapiV1mainTags `json:"tagsSet,omitempty"` // UpdationTime: The time at which the resource was updated and recorded at // partner service. UpdationTime string `json:"updationTime,omitempty"` @@ -3308,6 +3319,8 @@ type StorageDatabasecenterPartnerapiV1mainMachineConfiguration struct { // MemorySizeInBytes: Memory size in bytes. TODO(b/342344482, b/342346271) add // proto validations again after bug fix. MemorySizeInBytes int64 `json:"memorySizeInBytes,omitempty,string"` + // ShardCount: Optional. Number of shards (if applicable). + ShardCount int64 `json:"shardCount,omitempty"` // ForceSendFields is a list of field names (e.g. "CpuCount") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -3443,6 +3456,31 @@ func (s StorageDatabasecenterPartnerapiV1mainRetentionSettings) MarshalJSON() ([ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// StorageDatabasecenterPartnerapiV1mainTags: Message type for storing tags. +// Tags provide a way to create annotations for resources, and in some cases +// conditionally allow or deny policies based on whether a resource has a +// specific tag. +type StorageDatabasecenterPartnerapiV1mainTags struct { + // Tags: The Tag key/value mappings. + Tags map[string]string `json:"tags,omitempty"` + // ForceSendFields is a list of field names (e.g. "Tags") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Tags") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s StorageDatabasecenterPartnerapiV1mainTags) MarshalJSON() ([]byte, error) { + type NoMethod StorageDatabasecenterPartnerapiV1mainTags + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // StorageDatabasecenterPartnerapiV1mainUserLabels: Message type for storing // user labels. User labels are used to tag App Engine resources, allowing // users to search for resources matching a set of labels and to aggregate @@ -3637,6 +3675,7 @@ type SupportedDatabaseFlag struct { // "POSTGRES_13" - DEPRECATED - The database version is Postgres 13. // "POSTGRES_14" - The database version is Postgres 14. // "POSTGRES_15" - The database version is Postgres 15. + // "POSTGRES_16" - The database version is Postgres 16. SupportedDbVersions []string `json:"supportedDbVersions,omitempty"` // Possible values: // "VALUE_TYPE_UNSPECIFIED" - This is an unknown flag type. @@ -3780,6 +3819,7 @@ type UpgradeClusterRequest struct { // "POSTGRES_13" - DEPRECATED - The database version is Postgres 13. // "POSTGRES_14" - The database version is Postgres 14. // "POSTGRES_15" - The database version is Postgres 15. + // "POSTGRES_16" - The database version is Postgres 16. Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -3817,6 +3857,8 @@ type UpgradeClusterResponse struct { // "SUCCESS" - Operation succeeded. // "FAILED" - Operation failed. // "PARTIAL_SUCCESS" - Operation partially succeeded. + // "CANCEL_IN_PROGRESS" - Cancel is in progress. + // "CANCELLED" - Cancellation complete. Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "ClusterUpgradeDetails") to // unconditionally include in API requests. By default, fields with empty or diff --git a/composer/v1/composer-api.json b/composer/v1/composer-api.json index 21c00954259..3413aaf8dd1 100644 --- a/composer/v1/composer-api.json +++ b/composer/v1/composer-api.json @@ -15,6 +15,13 @@ "description": "Manages Apache Airflow environments on Google Cloud Platform.", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/composer/", + "endpoints": [ + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.us-south1.rep.googleapis.com/", + "location": "us-south1" + } + ], "fullyEncodeReservedExpansion": true, "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", @@ -966,7 +973,7 @@ } } }, - "revision": "20240716", + "revision": "20240917", "rootUrl": "https://composer.googleapis.com/", "schemas": { "AirflowMetadataRetentionPolicyConfig": { diff --git a/composer/v1beta1/composer-api.json b/composer/v1beta1/composer-api.json index 92f27591643..1982241bd9a 100644 --- a/composer/v1beta1/composer-api.json +++ b/composer/v1beta1/composer-api.json @@ -15,6 +15,13 @@ "description": "Manages Apache Airflow environments on Google Cloud Platform.", "discoveryVersion": "v1", "documentationLink": "https://cloud.google.com/composer/", + "endpoints": [ + { + "description": "Regional Endpoint", + "endpointUrl": "https://composer.us-south1.rep.googleapis.com/", + "location": "us-south1" + } + ], "fullyEncodeReservedExpansion": true, "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", @@ -994,7 +1001,7 @@ } } }, - "revision": "20240716", + "revision": "20240917", "rootUrl": "https://composer.googleapis.com/", "schemas": { "AirflowMetadataRetentionPolicyConfig": { diff --git a/compute/v1/compute-api.json b/compute/v1/compute-api.json index fcf10a73c27..2e8649e05f6 100644 --- a/compute/v1/compute-api.json +++ b/compute/v1/compute-api.json @@ -37779,7 +37779,7 @@ } } }, - "revision": "20240903", + "revision": "20240919", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -42308,7 +42308,7 @@ }, "locationPolicy": { "$ref": "LocationPolicy", - "description": "Policy for chosing target zone. For more information, see Create VMs in bulk ." + "description": "Policy for choosing target zone. For more information, see Create VMs in bulk." }, "minCount": { "description": "The minimum number of instances to create. If no min_count is specified then count is used as the default value. If min_count instances cannot be created, then no instances will be created and instances already created will be deleted.", @@ -43200,12 +43200,14 @@ "enum": [ "CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED", "SEV", - "SEV_SNP" + "SEV_SNP", + "TDX" ], "enumDescriptions": [ "No type specified. Do not use this value.", "AMD Secure Encrypted Virtualization.", - "AMD Secure Encrypted Virtualization - Secure Nested Paging." + "AMD Secure Encrypted Virtualization - Secure Nested Paging.", + "Intel Trust Domain eXtension." ], "type": "string" }, @@ -55245,7 +55247,7 @@ "type": "boolean" }, "availableFeatures": { - "description": "[Output only] List of features available for this Interconnect connection, which can take one of the following values: - MACSEC If present then the Interconnect connection is provisioned on MACsec capable hardware ports. If not present then the Interconnect connection is provisioned on non-MACsec capable ports and MACsec isn't supported and enabling MACsec fails.", + "description": "[Output only] List of features available for this Interconnect connection, which can take one of the following values: - IF_MACSEC If present then the Interconnect connection is provisioned on MACsec capable hardware ports. If not present then the Interconnect connection is provisioned on non-MACsec capable ports and MACsec isn't supported and enabling MACsec fails.", "items": { "enum": [ "IF_MACSEC" @@ -55398,7 +55400,7 @@ "type": "string" }, "requestedFeatures": { - "description": "Optional. List of features requested for this Interconnect connection, which can take one of the following values: - MACSEC If specified then the connection is created on MACsec capable hardware ports. If not specified, the default value is false, which allocates non-MACsec capable ports first if available. This parameter can be provided only with Interconnect INSERT. It isn't valid for Interconnect PATCH.", + "description": "Optional. List of features requested for this Interconnect connection, which can take one of the following values: - IF_MACSEC If specified then the connection is created on MACsec capable hardware ports. If not specified, the default value is false, which allocates non-MACsec capable ports first if available. This parameter can be provided only with Interconnect INSERT. It isn't valid for Interconnect PATCH.", "items": { "enum": [ "IF_MACSEC" diff --git a/compute/v1/compute-gen.go b/compute/v1/compute-gen.go index 1a0dde8f2d2..c149bd86169 100644 --- a/compute/v1/compute-gen.go +++ b/compute/v1/compute-gen.go @@ -6819,8 +6819,8 @@ type BulkInsertInstanceResource struct { // InstanceProperties: The instance properties defining the VM instances to be // created. Required if sourceInstanceTemplate is not provided. InstanceProperties *InstanceProperties `json:"instanceProperties,omitempty"` - // LocationPolicy: Policy for chosing target zone. For more information, see - // Create VMs in bulk . + // LocationPolicy: Policy for choosing target zone. For more information, see + // Create VMs in bulk. LocationPolicy *LocationPolicy `json:"locationPolicy,omitempty"` // MinCount: The minimum number of instances to create. If no min_count is // specified then count is used as the default value. If min_count instances @@ -7706,6 +7706,7 @@ type ConfidentialInstanceConfig struct { // this value. // "SEV" - AMD Secure Encrypted Virtualization. // "SEV_SNP" - AMD Secure Encrypted Virtualization - Secure Nested Paging. + // "TDX" - Intel Trust Domain eXtension. ConfidentialInstanceType string `json:"confidentialInstanceType,omitempty"` // EnableConfidentialCompute: Defines whether the instance should have // confidential compute enabled. @@ -21704,10 +21705,10 @@ type Interconnect struct { AdminEnabled bool `json:"adminEnabled,omitempty"` // AvailableFeatures: [Output only] List of features available for this // Interconnect connection, which can take one of the following values: - - // MACSEC If present then the Interconnect connection is provisioned on MACsec - // capable hardware ports. If not present then the Interconnect connection is - // provisioned on non-MACsec capable ports and MACsec isn't supported and - // enabling MACsec fails. + // IF_MACSEC If present then the Interconnect connection is provisioned on + // MACsec capable hardware ports. If not present then the Interconnect + // connection is provisioned on non-MACsec capable ports and MACsec isn't + // supported and enabling MACsec fails. // // Possible values: // "IF_MACSEC" - Media Access Control security (MACsec) @@ -21831,7 +21832,7 @@ type Interconnect struct { RemoteLocation string `json:"remoteLocation,omitempty"` // RequestedFeatures: Optional. List of features requested for this // Interconnect connection, which can take one of the following values: - - // MACSEC If specified then the connection is created on MACsec capable + // IF_MACSEC If specified then the connection is created on MACsec capable // hardware ports. If not specified, the default value is false, which // allocates non-MACsec capable ports first if available. This parameter can be // provided only with Interconnect INSERT. It isn't valid for Interconnect diff --git a/connectors/v1/connectors-api.json b/connectors/v1/connectors-api.json index 97be8fcdbcc..4470a42cb81 100644 --- a/connectors/v1/connectors-api.json +++ b/connectors/v1/connectors-api.json @@ -2497,7 +2497,7 @@ } } }, - "revision": "20240904", + "revision": "20240918", "rootUrl": "https://connectors.googleapis.com/", "schemas": { "AuditConfig": { @@ -2802,6 +2802,10 @@ "description": "The client ID assigned to the Google Cloud Connectors OAuth app for the connector data source.", "type": "string" }, + "clientSecret": { + "$ref": "Secret", + "description": "Optional. The client secret assigned to the Google Cloud Connectors OAuth app for the connector data source." + }, "enablePkce": { "description": "Whether to enable PKCE for the auth code flow.", "type": "boolean" diff --git a/connectors/v1/connectors-gen.go b/connectors/v1/connectors-gen.go index 08ef23a15dd..c18c3390d53 100644 --- a/connectors/v1/connectors-gen.go +++ b/connectors/v1/connectors-gen.go @@ -688,6 +688,9 @@ type AuthorizationCodeLink struct { // ClientId: The client ID assigned to the Google Cloud Connectors OAuth app // for the connector data source. ClientId string `json:"clientId,omitempty"` + // ClientSecret: Optional. The client secret assigned to the Google Cloud + // Connectors OAuth app for the connector data source. + ClientSecret *Secret `json:"clientSecret,omitempty"` // EnablePkce: Whether to enable PKCE for the auth code flow. EnablePkce bool `json:"enablePkce,omitempty"` // OmitQueryParams: Optional. Omit query params from the redirect URI. diff --git a/dlp/v2/dlp-api.json b/dlp/v2/dlp-api.json index fb28ac8587d..5a71bf1dd0a 100644 --- a/dlp/v2/dlp-api.json +++ b/dlp/v2/dlp-api.json @@ -1432,7 +1432,7 @@ ], "parameters": { "filter": { - "description": "Optional. Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values: - `project_id` - The Google Cloud project ID. - `file_store_path` - The path like \"gs://bucket\". - `data_source_type` - The profile's data source type, like \"google/storage/bucket\". - `data_storage_location` - The location where the file store's data is stored, like \"us-central1\". - `sensitivity_level` - HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - `resource_visibility`: PUBLIC|RESTRICTED - `status_code` - an RPC status code as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` * `project_id = 12345 AND resource_visibility = PUBLIC` * `file_store_path = \"gs://mybucket\"` The length of this field should be no more than 500 characters.", + "description": "Optional. Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values: - `project_id` - The Google Cloud project ID. - `account_id` - The AWS account ID. - `file_store_path` - The path like \"gs://bucket\". - `data_source_type` - The profile's data source type, like \"google/storage/bucket\". - `data_storage_location` - The location where the file store's data is stored, like \"us-central1\". - `sensitivity_level` - HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - `resource_visibility`: PUBLIC|RESTRICTED - `status_code` - an RPC status code as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` * `project_id = 12345 AND resource_visibility = PUBLIC` * `file_store_path = \"gs://mybucket\"` The length of this field should be no more than 500 characters.", "location": "query", "type": "string" }, @@ -4065,7 +4065,7 @@ ], "parameters": { "filter": { - "description": "Optional. Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values: - `project_id` - The Google Cloud project ID. - `file_store_path` - The path like \"gs://bucket\". - `data_source_type` - The profile's data source type, like \"google/storage/bucket\". - `data_storage_location` - The location where the file store's data is stored, like \"us-central1\". - `sensitivity_level` - HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - `resource_visibility`: PUBLIC|RESTRICTED - `status_code` - an RPC status code as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` * `project_id = 12345 AND resource_visibility = PUBLIC` * `file_store_path = \"gs://mybucket\"` The length of this field should be no more than 500 characters.", + "description": "Optional. Allows filtering. Supported syntax: * Filter expressions are made up of one or more restrictions. * Restrictions can be combined by `AND` or `OR` logical operators. A sequence of restrictions implicitly uses `AND`. * A restriction has the form of `{field} {operator} {value}`. * Supported fields/values: - `project_id` - The Google Cloud project ID. - `account_id` - The AWS account ID. - `file_store_path` - The path like \"gs://bucket\". - `data_source_type` - The profile's data source type, like \"google/storage/bucket\". - `data_storage_location` - The location where the file store's data is stored, like \"us-central1\". - `sensitivity_level` - HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - `resource_visibility`: PUBLIC|RESTRICTED - `status_code` - an RPC status code as defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` * `project_id = 12345 AND resource_visibility = PUBLIC` * `file_store_path = \"gs://mybucket\"` The length of this field should be no more than 500 characters.", "location": "query", "type": "string" }, @@ -5015,7 +5015,7 @@ } } }, - "revision": "20240901", + "revision": "20240916", "rootUrl": "https://dlp.googleapis.com/", "schemas": { "GooglePrivacyDlpV2Action": { @@ -5100,6 +5100,83 @@ "properties": {}, "type": "object" }, + "GooglePrivacyDlpV2AmazonS3Bucket": { + "description": "Amazon S3 bucket.", + "id": "GooglePrivacyDlpV2AmazonS3Bucket", + "properties": { + "awsAccount": { + "$ref": "GooglePrivacyDlpV2AwsAccount", + "description": "The AWS account." + }, + "bucketName": { + "description": "Required. The bucket name.", + "type": "string" + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2AmazonS3BucketConditions": { + "description": "Amazon S3 bucket conditions.", + "id": "GooglePrivacyDlpV2AmazonS3BucketConditions", + "properties": { + "bucketTypes": { + "description": "Optional. Bucket types that should be profiled. Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified.", + "items": { + "enum": [ + "TYPE_UNSPECIFIED", + "TYPE_ALL_SUPPORTED", + "TYPE_GENERAL_PURPOSE" + ], + "enumDescriptions": [ + "Unused.", + "All supported classes.", + "A general purpose Amazon S3 bucket." + ], + "type": "string" + }, + "type": "array" + }, + "objectStorageClasses": { + "description": "Optional. Object classes that should be profiled. Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified.", + "items": { + "enum": [ + "UNSPECIFIED", + "ALL_SUPPORTED_CLASSES", + "STANDARD", + "STANDARD_INFREQUENT_ACCESS", + "GLACIER_INSTANT_RETRIEVAL", + "INTELLIGENT_TIERING" + ], + "enumDescriptions": [ + "Unused.", + "All supported classes.", + "Standard object class.", + "Standard - infrequent access object class.", + "Glacier - instant retrieval object class.", + "Objects in the S3 Intelligent-Tiering access tiers." + ], + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2AmazonS3BucketRegex": { + "description": "Amazon S3 bucket regex.", + "id": "GooglePrivacyDlpV2AmazonS3BucketRegex", + "properties": { + "awsAccountRegex": { + "$ref": "GooglePrivacyDlpV2AwsAccountRegex", + "description": "The AWS account regex." + }, + "bucketNameRegex": { + "description": "Optional. Regex to test the bucket name against. If empty, all buckets match.", + "type": "string" + } + }, + "type": "object" + }, "GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails": { "description": "Result of a risk analysis operation request.", "id": "GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails", @@ -5165,6 +5242,43 @@ }, "type": "object" }, + "GooglePrivacyDlpV2AwsAccount": { + "description": "AWS account.", + "id": "GooglePrivacyDlpV2AwsAccount", + "properties": { + "accountId": { + "description": "Required. AWS account ID.", + "type": "string" + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2AwsAccountRegex": { + "description": "AWS account regex.", + "id": "GooglePrivacyDlpV2AwsAccountRegex", + "properties": { + "accountIdRegex": { + "description": "Optional. Regex to test the AWS account ID against. If empty, all accounts match.", + "type": "string" + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2AwsDiscoveryStartingLocation": { + "description": "The AWS starting location for discovery.", + "id": "GooglePrivacyDlpV2AwsDiscoveryStartingLocation", + "properties": { + "accountId": { + "description": "The AWS account ID that this discovery config applies to. Within an AWS organization, you can find the AWS account ID inside an AWS account ARN. Example: arn:{partition}:organizations::{management_account_id}:account/{org_id}/{account_id}", + "type": "string" + }, + "allAssetInventoryAssets": { + "description": "All AWS assets stored in Asset Inventory that didn't match other AWS discovery configs.", + "type": "boolean" + } + }, + "type": "object" + }, "GooglePrivacyDlpV2BigQueryDiscoveryTarget": { "description": "Target used to match against for discovery with BigQuery tables", "id": "GooglePrivacyDlpV2BigQueryDiscoveryTarget", @@ -6610,6 +6724,10 @@ "$ref": "GooglePrivacyDlpV2DataProfileLocation", "description": "The data to scan." }, + "otherCloudStartingLocation": { + "$ref": "GooglePrivacyDlpV2OtherCloudDiscoveryStartingLocation", + "description": "Must be set only when scanning other clouds." + }, "projectId": { "description": "The project that will run the scan. The DLP service account that exists within this project must have access to all resources that are profiled, and the Cloud DLP API must be enabled.", "type": "string" @@ -7495,6 +7613,10 @@ "$ref": "GooglePrivacyDlpV2OrgConfig", "description": "Only set when the parent is an org." }, + "otherCloudStartingLocation": { + "$ref": "GooglePrivacyDlpV2OtherCloudDiscoveryStartingLocation", + "description": "Must be set only when scanning other clouds." + }, "status": { "description": "Required. A status for this configuration.", "enum": [ @@ -7604,6 +7726,68 @@ }, "type": "object" }, + "GooglePrivacyDlpV2DiscoveryOtherCloudConditions": { + "description": "Requirements that must be true before a resource is profiled for the first time.", + "id": "GooglePrivacyDlpV2DiscoveryOtherCloudConditions", + "properties": { + "amazonS3BucketConditions": { + "$ref": "GooglePrivacyDlpV2AmazonS3BucketConditions", + "description": "Amazon S3 bucket conditions." + }, + "minAge": { + "description": "Minimum age a resource must be before Cloud DLP can profile it. Value must be 1 hour or greater.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2DiscoveryOtherCloudFilter": { + "description": "Determines which resources from the other cloud will have profiles generated. Includes the ability to filter by resource names.", + "id": "GooglePrivacyDlpV2DiscoveryOtherCloudFilter", + "properties": { + "collection": { + "$ref": "GooglePrivacyDlpV2OtherCloudResourceCollection", + "description": "A collection of resources for this filter to apply to." + }, + "others": { + "$ref": "GooglePrivacyDlpV2AllOtherResources", + "description": "Optional. Catch-all. This should always be the last target in the list because anything above it will apply first. Should only appear once in a configuration. If none is specified, a default one will be added automatically." + }, + "singleResource": { + "$ref": "GooglePrivacyDlpV2OtherCloudSingleResourceReference", + "description": "The resource to scan. Configs using this filter can only have one target (the target with this single resource reference)." + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2DiscoveryOtherCloudGenerationCadence": { + "description": "How often existing resources should have their profiles refreshed. New resources are scanned as quickly as possible depending on system capacity.", + "id": "GooglePrivacyDlpV2DiscoveryOtherCloudGenerationCadence", + "properties": { + "inspectTemplateModifiedCadence": { + "$ref": "GooglePrivacyDlpV2DiscoveryInspectTemplateModifiedCadence", + "description": "Optional. Governs when to update data profiles when the inspection rules defined by the `InspectTemplate` change. If not set, changing the template will not cause a data profile to update." + }, + "refreshFrequency": { + "description": "Optional. Frequency to update profiles regardless of whether the underlying resource has changes. Defaults to never.", + "enum": [ + "UPDATE_FREQUENCY_UNSPECIFIED", + "UPDATE_FREQUENCY_NEVER", + "UPDATE_FREQUENCY_DAILY", + "UPDATE_FREQUENCY_MONTHLY" + ], + "enumDescriptions": [ + "Unspecified.", + "After the data profile is created, it will never be updated.", + "The data profile can be updated up to once every 24 hours.", + "The data profile can be updated up to once every 30 days. Default." + ], + "type": "string" + } + }, + "type": "object" + }, "GooglePrivacyDlpV2DiscoverySchemaModifiedCadence": { "description": "The cadence at which to update data profiles when a schema is modified.", "id": "GooglePrivacyDlpV2DiscoverySchemaModifiedCadence", @@ -7715,6 +7899,10 @@ "$ref": "GooglePrivacyDlpV2CloudStorageDiscoveryTarget", "description": "Cloud Storage target for Discovery. The first target to match a table will be the one applied." }, + "otherCloudTarget": { + "$ref": "GooglePrivacyDlpV2OtherCloudDiscoveryTarget", + "description": "Other clouds target for discovery. The first target to match a resource will be the one applied." + }, "secretsTarget": { "$ref": "GooglePrivacyDlpV2SecretsDiscoveryTarget", "description": "Discovery target that looks for credentials and secrets stored in cloud resource metadata and reports them as vulnerabilities to Security Command Center. Only one target of this type is allowed." @@ -8134,7 +8322,7 @@ "type": "object" }, "GooglePrivacyDlpV2FileStoreDataProfile": { - "description": "The profile for a file store. * Cloud Storage: maps 1:1 with a bucket.", + "description": "The profile for a file store. * Cloud Storage: maps 1:1 with a bucket. * Amazon S3: maps 1:1 with a bucket.", "id": "GooglePrivacyDlpV2FileStoreDataProfile", "properties": { "configSnapshot": { @@ -8180,15 +8368,15 @@ "type": "boolean" }, "fileStoreLocation": { - "description": "The location of the file store. * Cloud Storage: https://cloud.google.com/storage/docs/locations#available-locations", + "description": "The location of the file store. * Cloud Storage: https://cloud.google.com/storage/docs/locations#available-locations * Amazon S3: https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints", "type": "string" }, "fileStorePath": { - "description": "The file store path. * Cloud Storage: `gs://{bucket}`", + "description": "The file store path. * Cloud Storage: `gs://{bucket}` * Amazon S3: `s3://{bucket}`", "type": "string" }, "fullResource": { - "description": "The resource name of the resource profiled. https://cloud.google.com/apis/design/resource_names#full_resource_name", + "description": "The resource name of the resource profiled. https://cloud.google.com/apis/design/resource_names#full_resource_name Example format of an S3 bucket full resource name: `//cloudasset.googleapis.com/organizations/{org_id}/otherCloudConnections/aws/arn:aws:s3:::{bucket_name}`", "type": "string" }, "lastModifiedTime": { @@ -8218,7 +8406,7 @@ "type": "string" }, "projectId": { - "description": "The Google Cloud project ID that owns the resource.", + "description": "The Google Cloud project ID that owns the resource. For Amazon S3 buckets, this is the AWS Account Id.", "type": "string" }, "resourceAttributes": { @@ -10042,6 +10230,91 @@ }, "type": "object" }, + "GooglePrivacyDlpV2OtherCloudDiscoveryStartingLocation": { + "description": "The other cloud starting location for discovery.", + "id": "GooglePrivacyDlpV2OtherCloudDiscoveryStartingLocation", + "properties": { + "awsLocation": { + "$ref": "GooglePrivacyDlpV2AwsDiscoveryStartingLocation", + "description": "The AWS starting location for discovery." + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2OtherCloudDiscoveryTarget": { + "description": "Target used to match against for discovery of resources from other clouds. An [AWS connector in Security Command Center (Enterprise](https://cloud.google.com/security-command-center/docs/connect-scc-to-aws) is required to use this feature.", + "id": "GooglePrivacyDlpV2OtherCloudDiscoveryTarget", + "properties": { + "conditions": { + "$ref": "GooglePrivacyDlpV2DiscoveryOtherCloudConditions", + "description": "Optional. In addition to matching the filter, these conditions must be true before a profile is generated." + }, + "dataSourceType": { + "$ref": "GooglePrivacyDlpV2DataSourceType", + "description": "Required. The type of data profiles generated by this discovery target. Supported values are: * aws/s3/bucket" + }, + "disabled": { + "$ref": "GooglePrivacyDlpV2Disabled", + "description": "Disable profiling for resources that match this filter." + }, + "filter": { + "$ref": "GooglePrivacyDlpV2DiscoveryOtherCloudFilter", + "description": "Required. The resources that the discovery cadence applies to. The first target with a matching filter will be the one to apply to a resource." + }, + "generationCadence": { + "$ref": "GooglePrivacyDlpV2DiscoveryOtherCloudGenerationCadence", + "description": "How often and when to update data profiles. New resources that match both the filter and conditions are scanned as quickly as possible depending on system capacity." + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2OtherCloudResourceCollection": { + "description": "Match resources using regex filters.", + "id": "GooglePrivacyDlpV2OtherCloudResourceCollection", + "properties": { + "includeRegexes": { + "$ref": "GooglePrivacyDlpV2OtherCloudResourceRegexes", + "description": "A collection of regular expressions to match a resource against." + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2OtherCloudResourceRegex": { + "description": "A pattern to match against one or more resources. At least one pattern must be specified. Regular expressions use RE2 [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found under the google/re2 repository on GitHub.", + "id": "GooglePrivacyDlpV2OtherCloudResourceRegex", + "properties": { + "amazonS3BucketRegex": { + "$ref": "GooglePrivacyDlpV2AmazonS3BucketRegex", + "description": "Regex for Amazon S3 buckets." + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2OtherCloudResourceRegexes": { + "description": "A collection of regular expressions to determine what resources to match against.", + "id": "GooglePrivacyDlpV2OtherCloudResourceRegexes", + "properties": { + "patterns": { + "description": "A group of regular expression patterns to match against one or more resources. Maximum of 100 entries. The sum of all regular expression's length can't exceed 10 KiB.", + "items": { + "$ref": "GooglePrivacyDlpV2OtherCloudResourceRegex" + }, + "type": "array" + } + }, + "type": "object" + }, + "GooglePrivacyDlpV2OtherCloudSingleResourceReference": { + "description": "Identifies a single resource, like a single Amazon S3 bucket.", + "id": "GooglePrivacyDlpV2OtherCloudSingleResourceReference", + "properties": { + "amazonS3Bucket": { + "$ref": "GooglePrivacyDlpV2AmazonS3Bucket", + "description": "Amazon S3 bucket." + } + }, + "type": "object" + }, "GooglePrivacyDlpV2OtherInfoTypeSummary": { "description": "Infotype details for other infoTypes found within a column.", "id": "GooglePrivacyDlpV2OtherInfoTypeSummary", diff --git a/dlp/v2/dlp-gen.go b/dlp/v2/dlp-gen.go index 983f4e213ff..e1c1003295e 100644 --- a/dlp/v2/dlp-gen.go +++ b/dlp/v2/dlp-gen.go @@ -736,6 +736,95 @@ type GooglePrivacyDlpV2AllOtherResources struct { type GooglePrivacyDlpV2AllText struct { } +// GooglePrivacyDlpV2AmazonS3Bucket: Amazon S3 bucket. +type GooglePrivacyDlpV2AmazonS3Bucket struct { + // AwsAccount: The AWS account. + AwsAccount *GooglePrivacyDlpV2AwsAccount `json:"awsAccount,omitempty"` + // BucketName: Required. The bucket name. + BucketName string `json:"bucketName,omitempty"` + // ForceSendFields is a list of field names (e.g. "AwsAccount") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AwsAccount") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2AmazonS3Bucket) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2AmazonS3Bucket + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GooglePrivacyDlpV2AmazonS3BucketConditions: Amazon S3 bucket conditions. +type GooglePrivacyDlpV2AmazonS3BucketConditions struct { + // BucketTypes: Optional. Bucket types that should be profiled. Optional. + // Defaults to TYPE_ALL_SUPPORTED if unspecified. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Unused. + // "TYPE_ALL_SUPPORTED" - All supported classes. + // "TYPE_GENERAL_PURPOSE" - A general purpose Amazon S3 bucket. + BucketTypes []string `json:"bucketTypes,omitempty"` + // ObjectStorageClasses: Optional. Object classes that should be profiled. + // Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified. + // + // Possible values: + // "UNSPECIFIED" - Unused. + // "ALL_SUPPORTED_CLASSES" - All supported classes. + // "STANDARD" - Standard object class. + // "STANDARD_INFREQUENT_ACCESS" - Standard - infrequent access object class. + // "GLACIER_INSTANT_RETRIEVAL" - Glacier - instant retrieval object class. + // "INTELLIGENT_TIERING" - Objects in the S3 Intelligent-Tiering access + // tiers. + ObjectStorageClasses []string `json:"objectStorageClasses,omitempty"` + // ForceSendFields is a list of field names (e.g. "BucketTypes") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "BucketTypes") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2AmazonS3BucketConditions) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2AmazonS3BucketConditions + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GooglePrivacyDlpV2AmazonS3BucketRegex: Amazon S3 bucket regex. +type GooglePrivacyDlpV2AmazonS3BucketRegex struct { + // AwsAccountRegex: The AWS account regex. + AwsAccountRegex *GooglePrivacyDlpV2AwsAccountRegex `json:"awsAccountRegex,omitempty"` + // BucketNameRegex: Optional. Regex to test the bucket name against. If empty, + // all buckets match. + BucketNameRegex string `json:"bucketNameRegex,omitempty"` + // ForceSendFields is a list of field names (e.g. "AwsAccountRegex") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AwsAccountRegex") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2AmazonS3BucketRegex) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2AmazonS3BucketRegex + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails: Result of a risk analysis // operation request. type GooglePrivacyDlpV2AnalyzeDataSourceRiskDetails struct { @@ -809,6 +898,81 @@ func (s GooglePrivacyDlpV2AuxiliaryTable) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GooglePrivacyDlpV2AwsAccount: AWS account. +type GooglePrivacyDlpV2AwsAccount struct { + // AccountId: Required. AWS account ID. + AccountId string `json:"accountId,omitempty"` + // ForceSendFields is a list of field names (e.g. "AccountId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2AwsAccount) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2AwsAccount + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GooglePrivacyDlpV2AwsAccountRegex: AWS account regex. +type GooglePrivacyDlpV2AwsAccountRegex struct { + // AccountIdRegex: Optional. Regex to test the AWS account ID against. If + // empty, all accounts match. + AccountIdRegex string `json:"accountIdRegex,omitempty"` + // ForceSendFields is a list of field names (e.g. "AccountIdRegex") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AccountIdRegex") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2AwsAccountRegex) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2AwsAccountRegex + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GooglePrivacyDlpV2AwsDiscoveryStartingLocation: The AWS starting location +// for discovery. +type GooglePrivacyDlpV2AwsDiscoveryStartingLocation struct { + // AccountId: The AWS account ID that this discovery config applies to. Within + // an AWS organization, you can find the AWS account ID inside an AWS account + // ARN. Example: + // arn:{partition}:organizations::{management_account_id}:account/{org_id}/{acco + // unt_id} + AccountId string `json:"accountId,omitempty"` + // AllAssetInventoryAssets: All AWS assets stored in Asset Inventory that + // didn't match other AWS discovery configs. + AllAssetInventoryAssets bool `json:"allAssetInventoryAssets,omitempty"` + // ForceSendFields is a list of field names (e.g. "AccountId") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AccountId") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2AwsDiscoveryStartingLocation) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2AwsDiscoveryStartingLocation + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GooglePrivacyDlpV2BigQueryDiscoveryTarget: Target used to match against for // discovery with BigQuery tables type GooglePrivacyDlpV2BigQueryDiscoveryTarget struct { @@ -2804,6 +2968,8 @@ type GooglePrivacyDlpV2DataProfileJobConfig struct { InspectTemplates []string `json:"inspectTemplates,omitempty"` // Location: The data to scan. Location *GooglePrivacyDlpV2DataProfileLocation `json:"location,omitempty"` + // OtherCloudStartingLocation: Must be set only when scanning other clouds. + OtherCloudStartingLocation *GooglePrivacyDlpV2OtherCloudDiscoveryStartingLocation `json:"otherCloudStartingLocation,omitempty"` // ProjectId: The project that will run the scan. The DLP service account that // exists within this project must have access to all resources that are // profiled, and the Cloud DLP API must be enabled. @@ -4124,6 +4290,8 @@ type GooglePrivacyDlpV2DiscoveryConfig struct { Name string `json:"name,omitempty"` // OrgConfig: Only set when the parent is an org. OrgConfig *GooglePrivacyDlpV2OrgConfig `json:"orgConfig,omitempty"` + // OtherCloudStartingLocation: Must be set only when scanning other clouds. + OtherCloudStartingLocation *GooglePrivacyDlpV2OtherCloudDiscoveryStartingLocation `json:"otherCloudStartingLocation,omitempty"` // Status: Required. A status for this configuration. // // Possible values: @@ -4266,6 +4434,103 @@ func (s GooglePrivacyDlpV2DiscoveryInspectTemplateModifiedCadence) MarshalJSON() return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GooglePrivacyDlpV2DiscoveryOtherCloudConditions: Requirements that must be +// true before a resource is profiled for the first time. +type GooglePrivacyDlpV2DiscoveryOtherCloudConditions struct { + // AmazonS3BucketConditions: Amazon S3 bucket conditions. + AmazonS3BucketConditions *GooglePrivacyDlpV2AmazonS3BucketConditions `json:"amazonS3BucketConditions,omitempty"` + // MinAge: Minimum age a resource must be before Cloud DLP can profile it. + // Value must be 1 hour or greater. + MinAge string `json:"minAge,omitempty"` + // ForceSendFields is a list of field names (e.g. "AmazonS3BucketConditions") + // to unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AmazonS3BucketConditions") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2DiscoveryOtherCloudConditions) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2DiscoveryOtherCloudConditions + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GooglePrivacyDlpV2DiscoveryOtherCloudFilter: Determines which resources from +// the other cloud will have profiles generated. Includes the ability to filter +// by resource names. +type GooglePrivacyDlpV2DiscoveryOtherCloudFilter struct { + // Collection: A collection of resources for this filter to apply to. + Collection *GooglePrivacyDlpV2OtherCloudResourceCollection `json:"collection,omitempty"` + // Others: Optional. Catch-all. This should always be the last target in the + // list because anything above it will apply first. Should only appear once in + // a configuration. If none is specified, a default one will be added + // automatically. + Others *GooglePrivacyDlpV2AllOtherResources `json:"others,omitempty"` + // SingleResource: The resource to scan. Configs using this filter can only + // have one target (the target with this single resource reference). + SingleResource *GooglePrivacyDlpV2OtherCloudSingleResourceReference `json:"singleResource,omitempty"` + // ForceSendFields is a list of field names (e.g. "Collection") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Collection") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2DiscoveryOtherCloudFilter) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2DiscoveryOtherCloudFilter + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GooglePrivacyDlpV2DiscoveryOtherCloudGenerationCadence: How often existing +// resources should have their profiles refreshed. New resources are scanned as +// quickly as possible depending on system capacity. +type GooglePrivacyDlpV2DiscoveryOtherCloudGenerationCadence struct { + // InspectTemplateModifiedCadence: Optional. Governs when to update data + // profiles when the inspection rules defined by the `InspectTemplate` change. + // If not set, changing the template will not cause a data profile to update. + InspectTemplateModifiedCadence *GooglePrivacyDlpV2DiscoveryInspectTemplateModifiedCadence `json:"inspectTemplateModifiedCadence,omitempty"` + // RefreshFrequency: Optional. Frequency to update profiles regardless of + // whether the underlying resource has changes. Defaults to never. + // + // Possible values: + // "UPDATE_FREQUENCY_UNSPECIFIED" - Unspecified. + // "UPDATE_FREQUENCY_NEVER" - After the data profile is created, it will + // never be updated. + // "UPDATE_FREQUENCY_DAILY" - The data profile can be updated up to once + // every 24 hours. + // "UPDATE_FREQUENCY_MONTHLY" - The data profile can be updated up to once + // every 30 days. Default. + RefreshFrequency string `json:"refreshFrequency,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "InspectTemplateModifiedCadence") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted from + // API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "InspectTemplateModifiedCadence") + // to include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2DiscoveryOtherCloudGenerationCadence) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2DiscoveryOtherCloudGenerationCadence + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GooglePrivacyDlpV2DiscoverySchemaModifiedCadence: The cadence at which to // update data profiles when a schema is modified. type GooglePrivacyDlpV2DiscoverySchemaModifiedCadence struct { @@ -4390,6 +4655,9 @@ type GooglePrivacyDlpV2DiscoveryTarget struct { // CloudStorageTarget: Cloud Storage target for Discovery. The first target to // match a table will be the one applied. CloudStorageTarget *GooglePrivacyDlpV2CloudStorageDiscoveryTarget `json:"cloudStorageTarget,omitempty"` + // OtherCloudTarget: Other clouds target for discovery. The first target to + // match a resource will be the one applied. + OtherCloudTarget *GooglePrivacyDlpV2OtherCloudDiscoveryTarget `json:"otherCloudTarget,omitempty"` // SecretsTarget: Discovery target that looks for credentials and secrets // stored in cloud resource metadata and reports them as vulnerabilities to // Security Command Center. Only one target of this type is allowed. @@ -4951,7 +5219,7 @@ func (s GooglePrivacyDlpV2FileStoreCollection) MarshalJSON() ([]byte, error) { } // GooglePrivacyDlpV2FileStoreDataProfile: The profile for a file store. * -// Cloud Storage: maps 1:1 with a bucket. +// Cloud Storage: maps 1:1 with a bucket. * Amazon S3: maps 1:1 with a bucket. type GooglePrivacyDlpV2FileStoreDataProfile struct { // ConfigSnapshot: The snapshot of the configurations used to generate the // profile. @@ -4976,12 +5244,18 @@ type GooglePrivacyDlpV2FileStoreDataProfile struct { // FileStoreIsEmpty: The file store does not have any files. FileStoreIsEmpty bool `json:"fileStoreIsEmpty,omitempty"` // FileStoreLocation: The location of the file store. * Cloud Storage: - // https://cloud.google.com/storage/docs/locations#available-locations + // https://cloud.google.com/storage/docs/locations#available-locations * Amazon + // S3: + // https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints FileStoreLocation string `json:"fileStoreLocation,omitempty"` - // FileStorePath: The file store path. * Cloud Storage: `gs://{bucket}` + // FileStorePath: The file store path. * Cloud Storage: `gs://{bucket}` * + // Amazon S3: `s3://{bucket}` FileStorePath string `json:"fileStorePath,omitempty"` // FullResource: The resource name of the resource profiled. // https://cloud.google.com/apis/design/resource_names#full_resource_name + // Example format of an S3 bucket full resource name: + // `//cloudasset.googleapis.com/organizations/{org_id}/otherCloudConnections/aws + // /arn:aws:s3:::{bucket_name}` FullResource string `json:"fullResource,omitempty"` // LastModifiedTime: The time the file store was last modified. LastModifiedTime string `json:"lastModifiedTime,omitempty"` @@ -4999,7 +5273,8 @@ type GooglePrivacyDlpV2FileStoreDataProfile struct { // ProjectDataProfile: The resource name of the project data profile for this // file store. ProjectDataProfile string `json:"projectDataProfile,omitempty"` - // ProjectId: The Google Cloud project ID that owns the resource. + // ProjectId: The Google Cloud project ID that owns the resource. For Amazon S3 + // buckets, this is the AWS Account Id. ProjectId string `json:"projectId,omitempty"` // ResourceAttributes: Attributes of the resource being profiled. Currently // used attributes: * customer_managed_encryption: boolean - true: the resource @@ -7477,6 +7752,165 @@ func (s GooglePrivacyDlpV2OrgConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GooglePrivacyDlpV2OtherCloudDiscoveryStartingLocation: The other cloud +// starting location for discovery. +type GooglePrivacyDlpV2OtherCloudDiscoveryStartingLocation struct { + // AwsLocation: The AWS starting location for discovery. + AwsLocation *GooglePrivacyDlpV2AwsDiscoveryStartingLocation `json:"awsLocation,omitempty"` + // ForceSendFields is a list of field names (e.g. "AwsLocation") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AwsLocation") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2OtherCloudDiscoveryStartingLocation) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2OtherCloudDiscoveryStartingLocation + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GooglePrivacyDlpV2OtherCloudDiscoveryTarget: Target used to match against +// for discovery of resources from other clouds. An AWS connector in Security +// Command Center (Enterprise +// (https://cloud.google.com/security-command-center/docs/connect-scc-to-aws) +// is required to use this feature. +type GooglePrivacyDlpV2OtherCloudDiscoveryTarget struct { + // Conditions: Optional. In addition to matching the filter, these conditions + // must be true before a profile is generated. + Conditions *GooglePrivacyDlpV2DiscoveryOtherCloudConditions `json:"conditions,omitempty"` + // DataSourceType: Required. The type of data profiles generated by this + // discovery target. Supported values are: * aws/s3/bucket + DataSourceType *GooglePrivacyDlpV2DataSourceType `json:"dataSourceType,omitempty"` + // Disabled: Disable profiling for resources that match this filter. + Disabled *GooglePrivacyDlpV2Disabled `json:"disabled,omitempty"` + // Filter: Required. The resources that the discovery cadence applies to. The + // first target with a matching filter will be the one to apply to a resource. + Filter *GooglePrivacyDlpV2DiscoveryOtherCloudFilter `json:"filter,omitempty"` + // GenerationCadence: How often and when to update data profiles. New resources + // that match both the filter and conditions are scanned as quickly as possible + // depending on system capacity. + GenerationCadence *GooglePrivacyDlpV2DiscoveryOtherCloudGenerationCadence `json:"generationCadence,omitempty"` + // ForceSendFields is a list of field names (e.g. "Conditions") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Conditions") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2OtherCloudDiscoveryTarget) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2OtherCloudDiscoveryTarget + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GooglePrivacyDlpV2OtherCloudResourceCollection: Match resources using regex +// filters. +type GooglePrivacyDlpV2OtherCloudResourceCollection struct { + // IncludeRegexes: A collection of regular expressions to match a resource + // against. + IncludeRegexes *GooglePrivacyDlpV2OtherCloudResourceRegexes `json:"includeRegexes,omitempty"` + // ForceSendFields is a list of field names (e.g. "IncludeRegexes") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "IncludeRegexes") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2OtherCloudResourceCollection) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2OtherCloudResourceCollection + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GooglePrivacyDlpV2OtherCloudResourceRegex: A pattern to match against one or +// more resources. At least one pattern must be specified. Regular expressions +// use RE2 syntax (https://github.com/google/re2/wiki/Syntax); a guide can be +// found under the google/re2 repository on GitHub. +type GooglePrivacyDlpV2OtherCloudResourceRegex struct { + // AmazonS3BucketRegex: Regex for Amazon S3 buckets. + AmazonS3BucketRegex *GooglePrivacyDlpV2AmazonS3BucketRegex `json:"amazonS3BucketRegex,omitempty"` + // ForceSendFields is a list of field names (e.g. "AmazonS3BucketRegex") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AmazonS3BucketRegex") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2OtherCloudResourceRegex) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2OtherCloudResourceRegex + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GooglePrivacyDlpV2OtherCloudResourceRegexes: A collection of regular +// expressions to determine what resources to match against. +type GooglePrivacyDlpV2OtherCloudResourceRegexes struct { + // Patterns: A group of regular expression patterns to match against one or + // more resources. Maximum of 100 entries. The sum of all regular expression's + // length can't exceed 10 KiB. + Patterns []*GooglePrivacyDlpV2OtherCloudResourceRegex `json:"patterns,omitempty"` + // ForceSendFields is a list of field names (e.g. "Patterns") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Patterns") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2OtherCloudResourceRegexes) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2OtherCloudResourceRegexes + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GooglePrivacyDlpV2OtherCloudSingleResourceReference: Identifies a single +// resource, like a single Amazon S3 bucket. +type GooglePrivacyDlpV2OtherCloudSingleResourceReference struct { + // AmazonS3Bucket: Amazon S3 bucket. + AmazonS3Bucket *GooglePrivacyDlpV2AmazonS3Bucket `json:"amazonS3Bucket,omitempty"` + // ForceSendFields is a list of field names (e.g. "AmazonS3Bucket") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AmazonS3Bucket") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GooglePrivacyDlpV2OtherCloudSingleResourceReference) MarshalJSON() ([]byte, error) { + type NoMethod GooglePrivacyDlpV2OtherCloudSingleResourceReference + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GooglePrivacyDlpV2OtherInfoTypeSummary: Infotype details for other infoTypes // found within a column. type GooglePrivacyDlpV2OtherInfoTypeSummary struct { @@ -14650,13 +15084,13 @@ func (r *OrganizationsLocationsFileStoreDataProfilesService) List(parent string) // Restrictions can be combined by `AND` or `OR` logical operators. A sequence // of restrictions implicitly uses `AND`. * A restriction has the form of // `{field} {operator} {value}`. * Supported fields/values: - `project_id` - -// The Google Cloud project ID. - `file_store_path` - The path like -// "gs://bucket". - `data_source_type` - The profile's data source type, like -// "google/storage/bucket". - `data_storage_location` - The location where the -// file store's data is stored, like "us-central1". - `sensitivity_level` - -// HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - -// `resource_visibility`: PUBLIC|RESTRICTED - `status_code` - an RPC status -// code as defined in +// The Google Cloud project ID. - `account_id` - The AWS account ID. - +// `file_store_path` - The path like "gs://bucket". - `data_source_type` - The +// profile's data source type, like "google/storage/bucket". - +// `data_storage_location` - The location where the file store's data is +// stored, like "us-central1". - `sensitivity_level` - HIGH|MODERATE|LOW - +// `data_risk_level` - HIGH|MODERATE|LOW - `resource_visibility`: +// PUBLIC|RESTRICTED - `status_code` - an RPC status code as defined in // https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * // The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND // status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` * @@ -24693,13 +25127,13 @@ func (r *ProjectsLocationsFileStoreDataProfilesService) List(parent string) *Pro // Restrictions can be combined by `AND` or `OR` logical operators. A sequence // of restrictions implicitly uses `AND`. * A restriction has the form of // `{field} {operator} {value}`. * Supported fields/values: - `project_id` - -// The Google Cloud project ID. - `file_store_path` - The path like -// "gs://bucket". - `data_source_type` - The profile's data source type, like -// "google/storage/bucket". - `data_storage_location` - The location where the -// file store's data is stored, like "us-central1". - `sensitivity_level` - -// HIGH|MODERATE|LOW - `data_risk_level` - HIGH|MODERATE|LOW - -// `resource_visibility`: PUBLIC|RESTRICTED - `status_code` - an RPC status -// code as defined in +// The Google Cloud project ID. - `account_id` - The AWS account ID. - +// `file_store_path` - The path like "gs://bucket". - `data_source_type` - The +// profile's data source type, like "google/storage/bucket". - +// `data_storage_location` - The location where the file store's data is +// stored, like "us-central1". - `sensitivity_level` - HIGH|MODERATE|LOW - +// `data_risk_level` - HIGH|MODERATE|LOW - `resource_visibility`: +// PUBLIC|RESTRICTED - `status_code` - an RPC status code as defined in // https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto * // The operator must be `=` or `!=`. Examples: * `project_id = 12345 AND // status_code = 1` * `project_id = 12345 AND sensitivity_level = HIGH` * diff --git a/healthcare/v1/healthcare-api.json b/healthcare/v1/healthcare-api.json index 3e53a9ccae3..c687007865e 100644 --- a/healthcare/v1/healthcare-api.json +++ b/healthcare/v1/healthcare-api.json @@ -4783,7 +4783,7 @@ } } }, - "revision": "20240822", + "revision": "20240910", "rootUrl": "https://healthcare.googleapis.com/", "schemas": { "ActivateConsentRequest": { @@ -5586,7 +5586,7 @@ }, "notificationConfig": { "$ref": "NotificationConfig", - "description": "Notification destination for new DICOM instances. Supplied by the client." + "description": "Optional. Notification destination for new DICOM instances. Supplied by the client." }, "streamConfigs": { "description": "Optional. A list of streaming configs used to configure the destination of streaming exports for every DICOM instance insertion in this DICOM store. After a new config is added to `stream_configs`, DICOM instance insertions are streamed to the new destination. When a config is removed from `stream_configs`, the server stops streaming to that destination. Each config must contain a unique destination.", @@ -5963,15 +5963,15 @@ "id": "FhirNotificationConfig", "properties": { "pubsubTopic": { - "description": "The [Pub/Sub](https://cloud.google.com/pubsub/docs/) topic that notifications of changes are published on. Supplied by the client. The notification is a `PubsubMessage` with the following fields: * `PubsubMessage.Data` contains the resource name. * `PubsubMessage.MessageId` is the ID of this notification. It is guaranteed to be unique within the topic. * `PubsubMessage.PublishTime` is the time when the message was published. Note that notifications are only sent if the topic is non-empty. [Topic names](https://cloud.google.com/pubsub/docs/overview#names) must be scoped to a project. The Cloud Healthcare API service account, service-@gcp-sa-healthcare.iam.gserviceaccount.com, must have publisher permissions on the given Pub/Sub topic. Not having adequate permissions causes the calls that send notifications to fail (https://cloud.google.com/healthcare-api/docs/permissions-healthcare-api-gcp-products#dicom_fhir_and_hl7v2_store_cloud_pubsub_permissions). If a notification can't be published to Pub/Sub, errors are logged to Cloud Logging. For more information, see [Viewing error logs in Cloud Logging](https://cloud.google.com/healthcare-api/docs/how-tos/logging).", + "description": "Optional. The [Pub/Sub](https://cloud.google.com/pubsub/docs/) topic that notifications of changes are published on. Supplied by the client. The notification is a `PubsubMessage` with the following fields: * `PubsubMessage.Data` contains the resource name. * `PubsubMessage.MessageId` is the ID of this notification. It is guaranteed to be unique within the topic. * `PubsubMessage.PublishTime` is the time when the message was published. Note that notifications are only sent if the topic is non-empty. [Topic names](https://cloud.google.com/pubsub/docs/overview#names) must be scoped to a project. The Cloud Healthcare API service account, service-@gcp-sa-healthcare.iam.gserviceaccount.com, must have publisher permissions on the given Pub/Sub topic. Not having adequate permissions causes the calls that send notifications to fail (https://cloud.google.com/healthcare-api/docs/permissions-healthcare-api-gcp-products#dicom_fhir_and_hl7v2_store_cloud_pubsub_permissions). If a notification can't be published to Pub/Sub, errors are logged to Cloud Logging. For more information, see [Viewing error logs in Cloud Logging](https://cloud.google.com/healthcare-api/docs/how-tos/logging).", "type": "string" }, "sendFullResource": { - "description": "Whether to send full FHIR resource to this Pub/Sub topic. The default value is false.", + "description": "Optional. Whether to send full FHIR resource to this Pub/Sub topic. The default value is false.", "type": "boolean" }, "sendPreviousResourceOnDelete": { - "description": "Whether to send full FHIR resource to this Pub/Sub topic for deleting FHIR resource. The default value is false. Note that setting this to true does not guarantee that all previous resources will be sent in the format of full FHIR resource. When a resource change is too large or during heavy traffic, only the resource name will be sent. Clients should always check the \"payloadType\" label from a Pub/Sub message to determine whether it needs to fetch the full previous resource as a separate operation.", + "description": "Optional. Whether to send full FHIR resource to this Pub/Sub topic for deleting FHIR resource. The default value is false. Note that setting this to true does not guarantee that all previous resources will be sent in the format of full FHIR resource. When a resource change is too large or during heavy traffic, only the resource name will be sent. Clients should always check the \"payloadType\" label from a Pub/Sub message to determine whether it needs to fetch the full previous resource as a separate operation.", "type": "boolean" } }, @@ -5996,7 +5996,7 @@ "type": "string" }, "defaultSearchHandlingStrict": { - "description": "If true, overrides the default search behavior for this FHIR store to `handling=strict` which returns an error for unrecognized search parameters. If false, uses the FHIR specification default `handling=lenient` which ignores unrecognized search parameters. The handling can always be changed from the default on an individual API call by setting the HTTP header `Prefer: handling=strict` or `Prefer: handling=lenient`. Defaults to false.", + "description": "Optional. If true, overrides the default search behavior for this FHIR store to `handling=strict` which returns an error for unrecognized search parameters. If false, uses the FHIR specification default `handling=lenient` which ignores unrecognized search parameters. The handling can always be changed from the default on an individual API call by setting the HTTP header `Prefer: handling=strict` or `Prefer: handling=lenient`. Defaults to false.", "type": "boolean" }, "disableReferentialIntegrity": { @@ -6008,7 +6008,7 @@ "type": "boolean" }, "enableUpdateCreate": { - "description": "Whether this FHIR store has the [updateCreate capability](https://www.hl7.org/fhir/capabilitystatement-definitions.html#CapabilityStatement.rest.resource.updateCreate). This determines if the client can use an Update operation to create a new resource with a client-specified ID. If false, all IDs are server-assigned through the Create operation and attempts to update a non-existent resource return errors. It is strongly advised not to include or encode any sensitive data such as patient identifiers in client-specified resource IDs. Those IDs are part of the FHIR resource path recorded in Cloud audit logs and Pub/Sub notifications. Those IDs can also be contained in reference fields within other resources. Defaults to false.", + "description": "Optional. Whether this FHIR store has the [updateCreate capability](https://www.hl7.org/fhir/capabilitystatement-definitions.html#CapabilityStatement.rest.resource.updateCreate). This determines if the client can use an Update operation to create a new resource with a client-specified ID. If false, all IDs are server-assigned through the Create operation and attempts to update a non-existent resource return errors. It is strongly advised not to include or encode any sensitive data such as patient identifiers in client-specified resource IDs. Those IDs are part of the FHIR resource path recorded in Cloud audit logs and Pub/Sub notifications. Those IDs can also be contained in reference fields within other resources. Defaults to false.", "type": "boolean" }, "labels": { @@ -6028,14 +6028,14 @@ "description": "Deprecated. Use `notification_configs` instead. If non-empty, publish all resource modifications of this FHIR store to this destination. The Pub/Sub message attributes contain a map with a string describing the action that has triggered the notification. For example, \"action\":\"CreateResource\"." }, "notificationConfigs": { - "description": "Specifies where and whether to send notifications upon changes to a FHIR store.", + "description": "Optional. Specifies where and whether to send notifications upon changes to a FHIR store.", "items": { "$ref": "FhirNotificationConfig" }, "type": "array" }, "streamConfigs": { - "description": "A list of streaming configs that configure the destinations of streaming export for every resource mutation in this FHIR store. Each store is allowed to have up to 10 streaming configs. After a new config is added, the next resource mutation is streamed to the new location in addition to the existing ones. When a location is removed from the list, the server stops streaming to that location. Before adding a new config, you must add the required [`bigquery.dataEditor`](https://cloud.google.com/bigquery/docs/access-control#bigquery.dataEditor) role to your project's **Cloud Healthcare Service Agent** [service account](https://cloud.google.com/iam/docs/service-accounts). Some lag (typically on the order of dozens of seconds) is expected before the results show up in the streaming destination.", + "description": "Optional. A list of streaming configs that configure the destinations of streaming export for every resource mutation in this FHIR store. Each store is allowed to have up to 10 streaming configs. After a new config is added, the next resource mutation is streamed to the new location in addition to the existing ones. When a location is removed from the list, the server stops streaming to that location. Before adding a new config, you must add the required [`bigquery.dataEditor`](https://cloud.google.com/bigquery/docs/access-control#bigquery.dataEditor) role to your project's **Cloud Healthcare Service Agent** [service account](https://cloud.google.com/iam/docs/service-accounts). Some lag (typically on the order of dozens of seconds) is expected before the results show up in the streaming destination.", "items": { "$ref": "StreamConfig" }, @@ -6330,19 +6330,19 @@ "id": "GoogleCloudHealthcareV1FhirBigQueryDestination", "properties": { "datasetUri": { - "description": "BigQuery URI to an existing dataset, up to 2000 characters long, in the format `bq://projectId.bqDatasetId`.", + "description": "Optional. BigQuery URI to an existing dataset, up to 2000 characters long, in the format `bq://projectId.bqDatasetId`.", "type": "string" }, "force": { - "description": "The default value is false. If this flag is `TRUE`, all tables are deleted from the dataset before the new exported tables are written. If the flag is not set and the destination dataset contains tables, the export call returns an error. If `write_disposition` is specified, this parameter is ignored. force=false is equivalent to write_disposition=WRITE_EMPTY and force=true is equivalent to write_disposition=WRITE_TRUNCATE.", + "description": "Optional. The default value is false. If this flag is `TRUE`, all tables are deleted from the dataset before the new exported tables are written. If the flag is not set and the destination dataset contains tables, the export call returns an error. If `write_disposition` is specified, this parameter is ignored. force=false is equivalent to write_disposition=WRITE_EMPTY and force=true is equivalent to write_disposition=WRITE_TRUNCATE.", "type": "boolean" }, "schemaConfig": { "$ref": "SchemaConfig", - "description": "The configuration for the exported BigQuery schema." + "description": "Optional. The configuration for the exported BigQuery schema." }, "writeDisposition": { - "description": "Determines if existing data in the destination dataset is overwritten, appended to, or not written if the tables contain data. If a write_disposition is specified, the `force` parameter is ignored.", + "description": "Optional. Determines if existing data in the destination dataset is overwritten, appended to, or not written if the tables contain data. If a write_disposition is specified, the `force` parameter is ignored.", "enum": [ "WRITE_DISPOSITION_UNSPECIFIED", "WRITE_EMPTY", @@ -6442,7 +6442,7 @@ "id": "Hl7V2NotificationConfig", "properties": { "filter": { - "description": "Restricts notifications sent for messages matching a filter. If this is empty, all messages are matched. The following syntax is available: * A string field value can be written as text inside quotation marks, for example `\"query text\"`. The only valid relational operation for text fields is equality (`=`), where text is searched within the field, rather than having the field be equal to the text. For example, `\"Comment = great\"` returns messages with `great` in the comment field. * A number field value can be written as an integer, a decimal, or an exponential. The valid relational operators for number fields are the equality operator (`=`), along with the less than/greater than operators (`\u003c`, `\u003c=`, `\u003e`, `\u003e=`). Note that there is no inequality (`!=`) operator. You can prepend the `NOT` operator to an expression to negate it. * A date field value must be written in `yyyy-mm-dd` form. Fields with date and time use the RFC3339 time format. Leading zeros are required for one-digit months and days. The valid relational operators for date fields are the equality operator (`=`) , along with the less than/greater than operators (`\u003c`, `\u003c=`, `\u003e`, `\u003e=`). Note that there is no inequality (`!=`) operator. You can prepend the `NOT` operator to an expression to negate it. * Multiple field query expressions can be combined in one query by adding `AND` or `OR` operators between the expressions. If a boolean operator appears within a quoted string, it is not treated as special, it's just another part of the character string to be matched. You can prepend the `NOT` operator to an expression to negate it. The following fields and functions are available for filtering: * `message_type`, from the MSH-9.1 field. For example, `NOT message_type = \"ADT\"`. * `send_date` or `sendDate`, the YYYY-MM-DD date the message was sent in the dataset's time_zone, from the MSH-7 segment. For example, `send_date \u003c \"2017-01-02\"`. * `send_time`, the timestamp when the message was sent, using the RFC3339 time format for comparisons, from the MSH-7 segment. For example, `send_time \u003c \"2017-01-02T00:00:00-05:00\"`. * `create_time`, the timestamp when the message was created in the HL7v2 store. Use the RFC3339 time format for comparisons. For example, `create_time \u003c \"2017-01-02T00:00:00-05:00\"`. * `send_facility`, the care center that the message came from, from the MSH-4 segment. For example, `send_facility = \"ABC\"`. * `PatientId(value, type)`, which matches if the message lists a patient having an ID of the given value and type in the PID-2, PID-3, or PID-4 segments. For example, `PatientId(\"123456\", \"MRN\")`. * `labels.x`, a string value of the label with key `x` as set using the Message.labels map. For example, `labels.\"priority\"=\"high\"`. The operator `:*` can be used to assert the existence of a label. For example, `labels.\"priority\":*`.", + "description": "Optional. Restricts notifications sent for messages matching a filter. If this is empty, all messages are matched. The following syntax is available: * A string field value can be written as text inside quotation marks, for example `\"query text\"`. The only valid relational operation for text fields is equality (`=`), where text is searched within the field, rather than having the field be equal to the text. For example, `\"Comment = great\"` returns messages with `great` in the comment field. * A number field value can be written as an integer, a decimal, or an exponential. The valid relational operators for number fields are the equality operator (`=`), along with the less than/greater than operators (`\u003c`, `\u003c=`, `\u003e`, `\u003e=`). Note that there is no inequality (`!=`) operator. You can prepend the `NOT` operator to an expression to negate it. * A date field value must be written in `yyyy-mm-dd` form. Fields with date and time use the RFC3339 time format. Leading zeros are required for one-digit months and days. The valid relational operators for date fields are the equality operator (`=`) , along with the less than/greater than operators (`\u003c`, `\u003c=`, `\u003e`, `\u003e=`). Note that there is no inequality (`!=`) operator. You can prepend the `NOT` operator to an expression to negate it. * Multiple field query expressions can be combined in one query by adding `AND` or `OR` operators between the expressions. If a boolean operator appears within a quoted string, it is not treated as special, it's just another part of the character string to be matched. You can prepend the `NOT` operator to an expression to negate it. The following fields and functions are available for filtering: * `message_type`, from the MSH-9.1 field. For example, `NOT message_type = \"ADT\"`. * `send_date` or `sendDate`, the YYYY-MM-DD date the message was sent in the dataset's time_zone, from the MSH-7 segment. For example, `send_date \u003c \"2017-01-02\"`. * `send_time`, the timestamp when the message was sent, using the RFC3339 time format for comparisons, from the MSH-7 segment. For example, `send_time \u003c \"2017-01-02T00:00:00-05:00\"`. * `create_time`, the timestamp when the message was created in the HL7v2 store. Use the RFC3339 time format for comparisons. For example, `create_time \u003c \"2017-01-02T00:00:00-05:00\"`. * `send_facility`, the care center that the message came from, from the MSH-4 segment. For example, `send_facility = \"ABC\"`. * `PatientId(value, type)`, which matches if the message lists a patient having an ID of the given value and type in the PID-2, PID-3, or PID-4 segments. For example, `PatientId(\"123456\", \"MRN\")`. * `labels.x`, a string value of the label with key `x` as set using the Message.labels map. For example, `labels.\"priority\"=\"high\"`. The operator `:*` can be used to assert the existence of a label. For example, `labels.\"priority\":*`.", "type": "string" }, "pubsubTopic": { @@ -6468,7 +6468,7 @@ "type": "string" }, "notificationConfigs": { - "description": "A list of notification configs. Each configuration uses a filter to determine whether to publish a message (both Ingest \u0026 Create) on the corresponding notification destination. Only the message name is sent as part of the notification. Supplied by the client.", + "description": "Optional. A list of notification configs. Each configuration uses a filter to determine whether to publish a message (both Ingest \u0026 Create) on the corresponding notification destination. Only the message name is sent as part of the notification. Supplied by the client.", "items": { "$ref": "Hl7V2NotificationConfig" }, @@ -6476,10 +6476,10 @@ }, "parserConfig": { "$ref": "ParserConfig", - "description": "The configuration for the parser. It determines how the server parses the messages." + "description": "Optional. The configuration for the parser. It determines how the server parses the messages." }, "rejectDuplicateMessage": { - "description": "Determines whether to reject duplicate messages. A duplicate message is a message with the same raw bytes as a message that has already been ingested/created in this HL7v2 store. The default value is false, meaning that the store accepts the duplicate messages and it also returns the same ACK message in the IngestMessageResponse as has been returned previously. Note that only one resource is created in the store. When this field is set to true, CreateMessage/IngestMessage requests with a duplicate message will be rejected by the store, and IngestMessageErrorDetail returns a NACK message upon rejection.", + "description": "Optional. Determines whether to reject duplicate messages. A duplicate message is a message with the same raw bytes as a message that has already been ingested/created in this HL7v2 store. The default value is false, meaning that the store accepts the duplicate messages and it also returns the same ACK message in the IngestMessageResponse as has been returned previously. Note that only one resource is created in the store. When this field is set to true, CreateMessage/IngestMessage requests with a duplicate message will be rejected by the store, and IngestMessageErrorDetail returns a NACK message upon rejection.", "type": "boolean" } }, @@ -7177,12 +7177,12 @@ "id": "ParserConfig", "properties": { "allowNullHeader": { - "description": "Determines whether messages with no header are allowed.", + "description": "Optional. Determines whether messages with no header are allowed.", "type": "boolean" }, "schema": { "$ref": "SchemaPackage", - "description": "Schemas used to parse messages in this store, if schematized parsing is desired." + "description": "Optional. Schemas used to parse messages in this store, if schematized parsing is desired." }, "segmentTerminator": { "description": "Byte(s) to use as the segment terminator. If this is unset, '\\r' is used as segment terminator, matching the HL7 version 2 specification.", @@ -7624,18 +7624,18 @@ "id": "SchemaPackage", "properties": { "ignoreMinOccurs": { - "description": "Flag to ignore all min_occurs restrictions in the schema. This means that incoming messages can omit any group, segment, field, component, or subcomponent.", + "description": "Optional. Flag to ignore all min_occurs restrictions in the schema. This means that incoming messages can omit any group, segment, field, component, or subcomponent.", "type": "boolean" }, "schemas": { - "description": "Schema configs that are layered based on their VersionSources that match the incoming message. Schema configs present in higher indices override those in lower indices with the same message type and trigger event if their VersionSources all match an incoming message.", + "description": "Optional. Schema configs that are layered based on their VersionSources that match the incoming message. Schema configs present in higher indices override those in lower indices with the same message type and trigger event if their VersionSources all match an incoming message.", "items": { "$ref": "Hl7SchemaConfig" }, "type": "array" }, "schematizedParsingType": { - "description": "Determines how messages that fail to parse are handled.", + "description": "Optional. Determines how messages that fail to parse are handled.", "enum": [ "SCHEMATIZED_PARSING_TYPE_UNSPECIFIED", "SOFT_FAIL", @@ -7649,14 +7649,14 @@ "type": "string" }, "types": { - "description": "Schema type definitions that are layered based on their VersionSources that match the incoming message. Type definitions present in higher indices override those in lower indices with the same type name if their VersionSources all match an incoming message.", + "description": "Optional. Schema type definitions that are layered based on their VersionSources that match the incoming message. Type definitions present in higher indices override those in lower indices with the same type name if their VersionSources all match an incoming message.", "items": { "$ref": "Hl7TypesConfig" }, "type": "array" }, "unexpectedSegmentHandling": { - "description": "Determines how unexpected segments (segments not matched to the schema) are handled.", + "description": "Optional. Determines how unexpected segments (segments not matched to the schema) are handled.", "enum": [ "UNEXPECTED_SEGMENT_HANDLING_MODE_UNSPECIFIED", "FAIL", @@ -7885,14 +7885,14 @@ "properties": { "bigqueryDestination": { "$ref": "GoogleCloudHealthcareV1FhirBigQueryDestination", - "description": "The destination BigQuery structure that contains both the dataset location and corresponding schema config. The output is organized in one table per resource type. The server reuses the existing tables (if any) that are named after the resource types. For example, \"Patient\", \"Observation\". When there is no existing table for a given resource type, the server attempts to create one. When a table schema doesn't align with the schema config, either because of existing incompatible schema or out of band incompatible modification, the server does not stream in new data. BigQuery imposes a 1 MB limit on streaming insert row size, therefore any resource mutation that generates more than 1 MB of BigQuery data is not streamed. One resolution in this case is to delete the incompatible table and let the server recreate one, though the newly created table only contains data after the table recreation. Results are written to BigQuery tables according to the parameters in BigQueryDestination.WriteDisposition. Different versions of the same resource are distinguishable by the meta.versionId and meta.lastUpdated columns. The operation (CREATE/UPDATE/DELETE) that results in the new version is recorded in the meta.tag. The tables contain all historical resource versions since streaming was enabled. For query convenience, the server also creates one view per table of the same name containing only the current resource version. The streamed data in the BigQuery dataset is not guaranteed to be completely unique. The combination of the id and meta.versionId columns should ideally identify a single unique row. But in rare cases, duplicates may exist. At query time, users may use the SQL select statement to keep only one of the duplicate rows given an id and meta.versionId pair. Alternatively, the server created view mentioned above also filters out duplicates. If a resource mutation cannot be streamed to BigQuery, errors are logged to Cloud Logging. For more information, see [Viewing error logs in Cloud Logging](https://cloud.google.com/healthcare/docs/how-tos/logging))." + "description": "Optional. The destination BigQuery structure that contains both the dataset location and corresponding schema config. The output is organized in one table per resource type. The server reuses the existing tables (if any) that are named after the resource types. For example, \"Patient\", \"Observation\". When there is no existing table for a given resource type, the server attempts to create one. When a table schema doesn't align with the schema config, either because of existing incompatible schema or out of band incompatible modification, the server does not stream in new data. BigQuery imposes a 1 MB limit on streaming insert row size, therefore any resource mutation that generates more than 1 MB of BigQuery data is not streamed. One resolution in this case is to delete the incompatible table and let the server recreate one, though the newly created table only contains data after the table recreation. Results are written to BigQuery tables according to the parameters in BigQueryDestination.WriteDisposition. Different versions of the same resource are distinguishable by the meta.versionId and meta.lastUpdated columns. The operation (CREATE/UPDATE/DELETE) that results in the new version is recorded in the meta.tag. The tables contain all historical resource versions since streaming was enabled. For query convenience, the server also creates one view per table of the same name containing only the current resource version. The streamed data in the BigQuery dataset is not guaranteed to be completely unique. The combination of the id and meta.versionId columns should ideally identify a single unique row. But in rare cases, duplicates may exist. At query time, users may use the SQL select statement to keep only one of the duplicate rows given an id and meta.versionId pair. Alternatively, the server created view mentioned above also filters out duplicates. If a resource mutation cannot be streamed to BigQuery, errors are logged to Cloud Logging. For more information, see [Viewing error logs in Cloud Logging](https://cloud.google.com/healthcare/docs/how-tos/logging))." }, "deidentifiedStoreDestination": { "$ref": "DeidentifiedStoreDestination", "description": "The destination FHIR store for de-identified resources. After this field is added, all subsequent creates/updates/patches to the source store will be de-identified using the provided configuration and applied to the destination store. Importing resources to the source store will not trigger the streaming. If the source store already contains resources when this option is enabled, those resources will not be copied to the destination store unless they are subsequently updated. This may result in invalid references in the destination store. Before adding this config, you must grant the healthcare.fhirResources.update permission on the destination store to your project's **Cloud Healthcare Service Agent** [service account](https://cloud.google.com/healthcare/docs/how-tos/permissions-healthcare-api-gcp-products#the_cloud_healthcare_service_agent). The destination store must set enable_update_create to true. The destination store must have disable_referential_integrity set to true. If a resource cannot be de-identified, errors will be logged to Cloud Logging (see [Viewing error logs in Cloud Logging](https://cloud.google.com/healthcare/docs/how-tos/logging))." }, "resourceTypes": { - "description": "Supply a FHIR resource type (such as \"Patient\" or \"Observation\"). See https://www.hl7.org/fhir/valueset-resource-types.html for a list of all FHIR resource types. The server treats an empty list as an intent to stream all the supported resource types in this FHIR store.", + "description": "Optional. Supply a FHIR resource type (such as \"Patient\" or \"Observation\"). See https://www.hl7.org/fhir/valueset-resource-types.html for a list of all FHIR resource types. The server treats an empty list as an intent to stream all the supported resource types in this FHIR store.", "items": { "type": "string" }, diff --git a/healthcare/v1/healthcare-gen.go b/healthcare/v1/healthcare-gen.go index 5ce214504fb..ae77e8cffae 100644 --- a/healthcare/v1/healthcare-gen.go +++ b/healthcare/v1/healthcare-gen.go @@ -1666,8 +1666,8 @@ type DicomStore struct { // `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/dicomSto // res/{dicom_store_id}`. Name string `json:"name,omitempty"` - // NotificationConfig: Notification destination for new DICOM instances. - // Supplied by the client. + // NotificationConfig: Optional. Notification destination for new DICOM + // instances. Supplied by the client. NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"` // StreamConfigs: Optional. A list of streaming configs used to configure the // destination of streaming exports for every DICOM instance insertion in this @@ -2311,9 +2311,9 @@ func (s FhirFilter) MarshalJSON() ([]byte, error) { // FhirNotificationConfig: Contains the configuration for FHIR notifications. type FhirNotificationConfig struct { - // PubsubTopic: The Pub/Sub (https://cloud.google.com/pubsub/docs/) topic that - // notifications of changes are published on. Supplied by the client. The - // notification is a `PubsubMessage` with the following fields: * + // PubsubTopic: Optional. The Pub/Sub (https://cloud.google.com/pubsub/docs/) + // topic that notifications of changes are published on. Supplied by the + // client. The notification is a `PubsubMessage` with the following fields: * // `PubsubMessage.Data` contains the resource name. * `PubsubMessage.MessageId` // is the ID of this notification. It is guaranteed to be unique within the // topic. * `PubsubMessage.PublishTime` is the time when the message was @@ -2328,17 +2328,17 @@ type FhirNotificationConfig struct { // Logging. For more information, see Viewing error logs in Cloud Logging // (https://cloud.google.com/healthcare-api/docs/how-tos/logging). PubsubTopic string `json:"pubsubTopic,omitempty"` - // SendFullResource: Whether to send full FHIR resource to this Pub/Sub topic. - // The default value is false. + // SendFullResource: Optional. Whether to send full FHIR resource to this + // Pub/Sub topic. The default value is false. SendFullResource bool `json:"sendFullResource,omitempty"` - // SendPreviousResourceOnDelete: Whether to send full FHIR resource to this - // Pub/Sub topic for deleting FHIR resource. The default value is false. Note - // that setting this to true does not guarantee that all previous resources - // will be sent in the format of full FHIR resource. When a resource change is - // too large or during heavy traffic, only the resource name will be sent. - // Clients should always check the "payloadType" label from a Pub/Sub message - // to determine whether it needs to fetch the full previous resource as a - // separate operation. + // SendPreviousResourceOnDelete: Optional. Whether to send full FHIR resource + // to this Pub/Sub topic for deleting FHIR resource. The default value is + // false. Note that setting this to true does not guarantee that all previous + // resources will be sent in the format of full FHIR resource. When a resource + // change is too large or during heavy traffic, only the resource name will be + // sent. Clients should always check the "payloadType" label from a Pub/Sub + // message to determine whether it needs to fetch the full previous resource as + // a separate operation. SendPreviousResourceOnDelete bool `json:"sendPreviousResourceOnDelete,omitempty"` // ForceSendFields is a list of field names (e.g. "PubsubTopic") to // unconditionally include in API requests. By default, fields with empty or @@ -2375,8 +2375,8 @@ type FhirStore struct { // "DISABLED" - References in complex data types are ignored. // "ENABLED" - References in complex data types are parsed. ComplexDataTypeReferenceParsing string `json:"complexDataTypeReferenceParsing,omitempty"` - // DefaultSearchHandlingStrict: If true, overrides the default search behavior - // for this FHIR store to `handling=strict` which returns an error for + // DefaultSearchHandlingStrict: Optional. If true, overrides the default search + // behavior for this FHIR store to `handling=strict` which returns an error for // unrecognized search parameters. If false, uses the FHIR specification // default `handling=lenient` which ignores unrecognized search parameters. The // handling can always be changed from the default on an individual API call by @@ -2400,7 +2400,8 @@ type FhirStore struct { // versions are kept. The server sends errors for attempts to read the // historical versions. Defaults to false. DisableResourceVersioning bool `json:"disableResourceVersioning,omitempty"` - // EnableUpdateCreate: Whether this FHIR store has the updateCreate capability + // EnableUpdateCreate: Optional. Whether this FHIR store has the updateCreate + // capability // (https://www.hl7.org/fhir/capabilitystatement-definitions.html#CapabilityStatement.rest.resource.updateCreate). // This determines if the client can use an Update operation to create a new // resource with a client-specified ID. If false, all IDs are server-assigned @@ -2430,15 +2431,15 @@ type FhirStore struct { // describing the action that has triggered the notification. For example, // "action":"CreateResource". NotificationConfig *NotificationConfig `json:"notificationConfig,omitempty"` - // NotificationConfigs: Specifies where and whether to send notifications upon - // changes to a FHIR store. + // NotificationConfigs: Optional. Specifies where and whether to send + // notifications upon changes to a FHIR store. NotificationConfigs []*FhirNotificationConfig `json:"notificationConfigs,omitempty"` - // StreamConfigs: A list of streaming configs that configure the destinations - // of streaming export for every resource mutation in this FHIR store. Each - // store is allowed to have up to 10 streaming configs. After a new config is - // added, the next resource mutation is streamed to the new location in - // addition to the existing ones. When a location is removed from the list, the - // server stops streaming to that location. Before adding a new config, you + // StreamConfigs: Optional. A list of streaming configs that configure the + // destinations of streaming export for every resource mutation in this FHIR + // store. Each store is allowed to have up to 10 streaming configs. After a new + // config is added, the next resource mutation is streamed to the new location + // in addition to the existing ones. When a location is removed from the list, + // the server stops streaming to that location. Before adding a new config, you // must add the required `bigquery.dataEditor` // (https://cloud.google.com/bigquery/docs/access-control#bigquery.dataEditor) // role to your project's **Cloud Healthcare Service Agent** service account @@ -2935,21 +2936,22 @@ func (s GoogleCloudHealthcareV1DicomStreamConfig) MarshalJSON() ([]byte, error) // GoogleCloudHealthcareV1FhirBigQueryDestination: The configuration for // exporting to BigQuery. type GoogleCloudHealthcareV1FhirBigQueryDestination struct { - // DatasetUri: BigQuery URI to an existing dataset, up to 2000 characters long, - // in the format `bq://projectId.bqDatasetId`. + // DatasetUri: Optional. BigQuery URI to an existing dataset, up to 2000 + // characters long, in the format `bq://projectId.bqDatasetId`. DatasetUri string `json:"datasetUri,omitempty"` - // Force: The default value is false. If this flag is `TRUE`, all tables are - // deleted from the dataset before the new exported tables are written. If the - // flag is not set and the destination dataset contains tables, the export call - // returns an error. If `write_disposition` is specified, this parameter is - // ignored. force=false is equivalent to write_disposition=WRITE_EMPTY and - // force=true is equivalent to write_disposition=WRITE_TRUNCATE. + // Force: Optional. The default value is false. If this flag is `TRUE`, all + // tables are deleted from the dataset before the new exported tables are + // written. If the flag is not set and the destination dataset contains tables, + // the export call returns an error. If `write_disposition` is specified, this + // parameter is ignored. force=false is equivalent to + // write_disposition=WRITE_EMPTY and force=true is equivalent to + // write_disposition=WRITE_TRUNCATE. Force bool `json:"force,omitempty"` - // SchemaConfig: The configuration for the exported BigQuery schema. + // SchemaConfig: Optional. The configuration for the exported BigQuery schema. SchemaConfig *SchemaConfig `json:"schemaConfig,omitempty"` - // WriteDisposition: Determines if existing data in the destination dataset is - // overwritten, appended to, or not written if the tables contain data. If a - // write_disposition is specified, the `force` parameter is ignored. + // WriteDisposition: Optional. Determines if existing data in the destination + // dataset is overwritten, appended to, or not written if the tables contain + // data. If a write_disposition is specified, the `force` parameter is ignored. // // Possible values: // "WRITE_DISPOSITION_UNSPECIFIED" - Default behavior is the same as @@ -3117,14 +3119,14 @@ func (s Hl7TypesConfig) MarshalJSON() ([]byte, error) { // Hl7V2NotificationConfig: Specifies where and whether to send notifications // upon changes to a data store. type Hl7V2NotificationConfig struct { - // Filter: Restricts notifications sent for messages matching a filter. If this - // is empty, all messages are matched. The following syntax is available: * A - // string field value can be written as text inside quotation marks, for - // example "query text". The only valid relational operation for text fields - // is equality (`=`), where text is searched within the field, rather than - // having the field be equal to the text. For example, "Comment = great" - // returns messages with `great` in the comment field. * A number field value - // can be written as an integer, a decimal, or an exponential. The valid + // Filter: Optional. Restricts notifications sent for messages matching a + // filter. If this is empty, all messages are matched. The following syntax is + // available: * A string field value can be written as text inside quotation + // marks, for example "query text". The only valid relational operation for + // text fields is equality (`=`), where text is searched within the field, + // rather than having the field be equal to the text. For example, "Comment = + // great" returns messages with `great` in the comment field. * A number field + // value can be written as an integer, a decimal, or an exponential. The valid // relational operators for number fields are the equality operator (`=`), // along with the less than/greater than operators (`<`, `<=`, `>`, `>=`). Note // that there is no inequality (`!=`) operator. You can prepend the `NOT` @@ -3207,23 +3209,24 @@ type Hl7V2Store struct { // `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/hl7V2Sto // res/{hl7v2_store_id}`. Name string `json:"name,omitempty"` - // NotificationConfigs: A list of notification configs. Each configuration uses - // a filter to determine whether to publish a message (both Ingest & Create) on - // the corresponding notification destination. Only the message name is sent as - // part of the notification. Supplied by the client. + // NotificationConfigs: Optional. A list of notification configs. Each + // configuration uses a filter to determine whether to publish a message (both + // Ingest & Create) on the corresponding notification destination. Only the + // message name is sent as part of the notification. Supplied by the client. NotificationConfigs []*Hl7V2NotificationConfig `json:"notificationConfigs,omitempty"` - // ParserConfig: The configuration for the parser. It determines how the server - // parses the messages. + // ParserConfig: Optional. The configuration for the parser. It determines how + // the server parses the messages. ParserConfig *ParserConfig `json:"parserConfig,omitempty"` - // RejectDuplicateMessage: Determines whether to reject duplicate messages. A - // duplicate message is a message with the same raw bytes as a message that has - // already been ingested/created in this HL7v2 store. The default value is - // false, meaning that the store accepts the duplicate messages and it also - // returns the same ACK message in the IngestMessageResponse as has been - // returned previously. Note that only one resource is created in the store. - // When this field is set to true, CreateMessage/IngestMessage requests with a - // duplicate message will be rejected by the store, and - // IngestMessageErrorDetail returns a NACK message upon rejection. + // RejectDuplicateMessage: Optional. Determines whether to reject duplicate + // messages. A duplicate message is a message with the same raw bytes as a + // message that has already been ingested/created in this HL7v2 store. The + // default value is false, meaning that the store accepts the duplicate + // messages and it also returns the same ACK message in the + // IngestMessageResponse as has been returned previously. Note that only one + // resource is created in the store. When this field is set to true, + // CreateMessage/IngestMessage requests with a duplicate message will be + // rejected by the store, and IngestMessageErrorDetail returns a NACK message + // upon rejection. RejectDuplicateMessage bool `json:"rejectDuplicateMessage,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. @@ -4286,10 +4289,11 @@ func (s ParsedData) MarshalJSON() ([]byte, error) { // ParserConfig: The configuration for the parser. It determines how the server // parses the messages. type ParserConfig struct { - // AllowNullHeader: Determines whether messages with no header are allowed. + // AllowNullHeader: Optional. Determines whether messages with no header are + // allowed. AllowNullHeader bool `json:"allowNullHeader,omitempty"` - // Schema: Schemas used to parse messages in this store, if schematized parsing - // is desired. + // Schema: Optional. Schemas used to parse messages in this store, if + // schematized parsing is desired. Schema *SchemaPackage `json:"schema,omitempty"` // SegmentTerminator: Byte(s) to use as the segment terminator. If this is // unset, '\r' is used as segment terminator, matching the HL7 version 2 @@ -4970,17 +4974,17 @@ func (s SchemaGroup) MarshalJSON() ([]byte, error) { // SchemaPackage: A schema package contains a set of schemas and type // definitions. type SchemaPackage struct { - // IgnoreMinOccurs: Flag to ignore all min_occurs restrictions in the schema. - // This means that incoming messages can omit any group, segment, field, - // component, or subcomponent. + // IgnoreMinOccurs: Optional. Flag to ignore all min_occurs restrictions in the + // schema. This means that incoming messages can omit any group, segment, + // field, component, or subcomponent. IgnoreMinOccurs bool `json:"ignoreMinOccurs,omitempty"` - // Schemas: Schema configs that are layered based on their VersionSources that - // match the incoming message. Schema configs present in higher indices - // override those in lower indices with the same message type and trigger event - // if their VersionSources all match an incoming message. + // Schemas: Optional. Schema configs that are layered based on their + // VersionSources that match the incoming message. Schema configs present in + // higher indices override those in lower indices with the same message type + // and trigger event if their VersionSources all match an incoming message. Schemas []*Hl7SchemaConfig `json:"schemas,omitempty"` - // SchematizedParsingType: Determines how messages that fail to parse are - // handled. + // SchematizedParsingType: Optional. Determines how messages that fail to parse + // are handled. // // Possible values: // "SCHEMATIZED_PARSING_TYPE_UNSPECIFIED" - Unspecified schematized parsing @@ -4990,13 +4994,13 @@ type SchemaPackage struct { // "HARD_FAIL" - Messages that fail to parse are rejected from // ingestion/insertion and return an error code. SchematizedParsingType string `json:"schematizedParsingType,omitempty"` - // Types: Schema type definitions that are layered based on their + // Types: Optional. Schema type definitions that are layered based on their // VersionSources that match the incoming message. Type definitions present in // higher indices override those in lower indices with the same type name if // their VersionSources all match an incoming message. Types []*Hl7TypesConfig `json:"types,omitempty"` - // UnexpectedSegmentHandling: Determines how unexpected segments (segments not - // matched to the schema) are handled. + // UnexpectedSegmentHandling: Optional. Determines how unexpected segments + // (segments not matched to the schema) are handled. // // Possible values: // "UNEXPECTED_SEGMENT_HANDLING_MODE_UNSPECIFIED" - Unspecified handling @@ -5340,12 +5344,12 @@ func (s StorageInfo) MarshalJSON() ([]byte, error) { // StreamConfig: Contains configuration for streaming FHIR export. type StreamConfig struct { - // BigqueryDestination: The destination BigQuery structure that contains both - // the dataset location and corresponding schema config. The output is - // organized in one table per resource type. The server reuses the existing - // tables (if any) that are named after the resource types. For example, - // "Patient", "Observation". When there is no existing table for a given - // resource type, the server attempts to create one. When a table schema + // BigqueryDestination: Optional. The destination BigQuery structure that + // contains both the dataset location and corresponding schema config. The + // output is organized in one table per resource type. The server reuses the + // existing tables (if any) that are named after the resource types. For + // example, "Patient", "Observation". When there is no existing table for a + // given resource type, the server attempts to create one. When a table schema // doesn't align with the schema config, either because of existing // incompatible schema or out of band incompatible modification, the server // does not stream in new data. BigQuery imposes a 1 MB limit on streaming @@ -5389,7 +5393,7 @@ type StreamConfig struct { // error logs in Cloud Logging // (https://cloud.google.com/healthcare/docs/how-tos/logging)). DeidentifiedStoreDestination *DeidentifiedStoreDestination `json:"deidentifiedStoreDestination,omitempty"` - // ResourceTypes: Supply a FHIR resource type (such as "Patient" or + // ResourceTypes: Optional. Supply a FHIR resource type (such as "Patient" or // "Observation"). See https://www.hl7.org/fhir/valueset-resource-types.html // for a list of all FHIR resource types. The server treats an empty list as an // intent to stream all the supported resource types in this FHIR store. diff --git a/redis/v1beta1/redis-api.json b/redis/v1beta1/redis-api.json index 72a7ef28882..860d9623fb6 100644 --- a/redis/v1beta1/redis-api.json +++ b/redis/v1beta1/redis-api.json @@ -849,7 +849,7 @@ } } }, - "revision": "20240904", + "revision": "20240918", "rootUrl": "https://redis.googleapis.com/", "schemas": { "AOFConfig": { @@ -1131,7 +1131,7 @@ "REDIS_STANDARD_SMALL" ], "enumDescriptions": [ - "", + "Node type unspecified", "Redis shared core nano node_type.", "Redis highmem medium node_type.", "Redis highmem xlarge node_type.", @@ -1157,7 +1157,7 @@ "type": "array" }, "pscConnections": { - "description": "Output only. PSC connections for discovery of the cluster topology and accessing the cluster.", + "description": "Output only. The list of PSC connections that are auto-created through service connectivity automation.", "items": { "$ref": "PscConnection" }, @@ -1273,12 +1273,6 @@ "readOnly": true, "type": "string" }, - "scheduleDeadlineTime": { - "description": "Output only. The deadline that the maintenance schedule start time can not go beyond, including reschedule.", - "format": "google-datetime", - "readOnly": true, - "type": "string" - }, "startTime": { "description": "Output only. The start time of any upcoming scheduled maintenance for this instance.", "format": "google-datetime", @@ -1347,11 +1341,6 @@ ], "type": "string" }, - "duration": { - "description": "Duration of the time window.", - "format": "google-duration", - "type": "string" - }, "startTime": { "$ref": "TimeOfDay", "description": "Start time of the window in UTC." @@ -3193,6 +3182,11 @@ "description": "Memory size in bytes. TODO(b/342344482, b/342346271) add proto validations again after bug fix.", "format": "int64", "type": "string" + }, + "shardCount": { + "description": "Optional. Number of shards (if applicable).", + "format": "int32", + "type": "integer" } }, "type": "object" @@ -3681,27 +3675,27 @@ "id": "PscConnection", "properties": { "address": { - "description": "Output only. The IP allocated on the consumer network for the PSC forwarding rule.", - "readOnly": true, + "description": "Required. The IP allocated on the consumer network for the PSC forwarding rule.", "type": "string" }, "forwardingRule": { - "description": "Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.", - "readOnly": true, + "description": "Required. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.", "type": "string" }, "network": { - "description": "The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.", + "description": "Required. The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.", "type": "string" }, "projectId": { - "description": "Output only. The consumer project_id where the forwarding rule is created from.", - "readOnly": true, + "description": "Optional. Project ID of the consumer project where the forwarding rule is created in.", "type": "string" }, "pscConnectionId": { - "description": "Output only. The PSC connection id of the forwarding rule connected to the service attachment.", - "readOnly": true, + "description": "Optional. The PSC connection id of the forwarding rule connected to the service attachment.", + "type": "string" + }, + "serviceAttachment": { + "description": "Required. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.", "type": "string" } }, diff --git a/redis/v1beta1/redis-gen.go b/redis/v1beta1/redis-gen.go index 569e7b8074b..baf97cbb8ab 100644 --- a/redis/v1beta1/redis-gen.go +++ b/redis/v1beta1/redis-gen.go @@ -536,7 +536,7 @@ type Cluster struct { // determines the underlying machine-type of a redis node. // // Possible values: - // "NODE_TYPE_UNSPECIFIED" + // "NODE_TYPE_UNSPECIFIED" - Node type unspecified // "REDIS_SHARED_CORE_NANO" - Redis shared core nano node_type. // "REDIS_HIGHMEM_MEDIUM" - Redis highmem medium node_type. // "REDIS_HIGHMEM_XLARGE" - Redis highmem xlarge node_type. @@ -551,8 +551,8 @@ type Cluster struct { // IPs will be designated to the cluster for client access through Private // Service Connect Automation. Currently, only one PscConfig is supported. PscConfigs []*PscConfig `json:"pscConfigs,omitempty"` - // PscConnections: Output only. PSC connections for discovery of the cluster - // topology and accessing the cluster. + // PscConnections: Output only. The list of PSC connections that are + // auto-created through service connectivity automation. PscConnections []*PscConnection `json:"pscConnections,omitempty"` // RedisConfigs: Optional. Key/Value pairs of customer overrides for mutable // Redis Configs @@ -661,9 +661,6 @@ type ClusterMaintenanceSchedule struct { // EndTime: Output only. The end time of any upcoming scheduled maintenance for // this instance. EndTime string `json:"endTime,omitempty"` - // ScheduleDeadlineTime: Output only. The deadline that the maintenance - // schedule start time can not go beyond, including reschedule. - ScheduleDeadlineTime string `json:"scheduleDeadlineTime,omitempty"` // StartTime: Output only. The start time of any upcoming scheduled maintenance // for this instance. StartTime string `json:"startTime,omitempty"` @@ -733,8 +730,6 @@ type ClusterWeeklyMaintenanceWindow struct { // "SATURDAY" - Saturday // "SUNDAY" - Sunday Day string `json:"day,omitempty"` - // Duration: Duration of the time window. - Duration string `json:"duration,omitempty"` // StartTime: Start time of the window in UTC. StartTime *TimeOfDay `json:"startTime,omitempty"` // ForceSendFields is a list of field names (e.g. "Day") to unconditionally @@ -2520,6 +2515,8 @@ type MachineConfiguration struct { // MemorySizeInBytes: Memory size in bytes. TODO(b/342344482, b/342346271) add // proto validations again after bug fix. MemorySizeInBytes int64 `json:"memorySizeInBytes,omitempty,string"` + // ShardCount: Optional. Number of shards (if applicable). + ShardCount int64 `json:"shardCount,omitempty"` // ForceSendFields is a list of field names (e.g. "CpuCount") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -3040,22 +3037,27 @@ func (s PscConfig) MarshalJSON() ([]byte, error) { // PscConnection: Details of consumer resources in a PSC connection. type PscConnection struct { - // Address: Output only. The IP allocated on the consumer network for the PSC + // Address: Required. The IP allocated on the consumer network for the PSC // forwarding rule. Address string `json:"address,omitempty"` - // ForwardingRule: Output only. The URI of the consumer side forwarding rule. + // ForwardingRule: Required. The URI of the consumer side forwarding rule. // Example: // projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}. ForwardingRule string `json:"forwardingRule,omitempty"` - // Network: The consumer network where the IP address resides, in the form of - // projects/{project_id}/global/networks/{network_id}. + // Network: Required. The consumer network where the IP address resides, in the + // form of projects/{project_id}/global/networks/{network_id}. Network string `json:"network,omitempty"` - // ProjectId: Output only. The consumer project_id where the forwarding rule is - // created from. + // ProjectId: Optional. Project ID of the consumer project where the forwarding + // rule is created in. ProjectId string `json:"projectId,omitempty"` - // PscConnectionId: Output only. The PSC connection id of the forwarding rule + // PscConnectionId: Optional. The PSC connection id of the forwarding rule // connected to the service attachment. PscConnectionId string `json:"pscConnectionId,omitempty"` + // ServiceAttachment: Required. The service attachment which is the target of + // the PSC connection, in the form of + // projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment + // -id}. + ServiceAttachment string `json:"serviceAttachment,omitempty"` // ForceSendFields is a list of field names (e.g. "Address") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See diff --git a/spanner/v1/spanner-api.json b/spanner/v1/spanner-api.json index 42ec5bc5a45..a000359477d 100644 --- a/spanner/v1/spanner-api.json +++ b/spanner/v1/spanner-api.json @@ -3264,7 +3264,7 @@ } } }, - "revision": "20240831", + "revision": "20240910", "rootUrl": "https://spanner.googleapis.com/", "schemas": { "AutoscalingConfig": { @@ -5647,6 +5647,23 @@ }, "type": "object" }, + "MultiplexedSessionPrecommitToken": { + "description": "When a read-write transaction is executed on a multiplexed session, this precommit token is sent back to the client as a part of the [Transaction] message in the BeginTransaction response and also as a part of the [ResultSet] and [PartialResultSet] responses.", + "id": "MultiplexedSessionPrecommitToken", + "properties": { + "precommitToken": { + "description": "Opaque precommit token.", + "format": "byte", + "type": "string" + }, + "seqNum": { + "description": "An incrementing seq number is generated on every precommit token that is returned. Clients should remember the precommit token with the highest sequence number from the current transaction attempt.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "Mutation": { "description": "A modification to one or more Cloud Spanner rows. Mutations can be applied to a Cloud Spanner database by sending them in a Commit call.", "id": "Mutation", @@ -6790,6 +6807,10 @@ "format": "byte", "type": "string" }, + "precommitToken": { + "$ref": "MultiplexedSessionPrecommitToken", + "description": "A precommit token will be included in the response of a BeginTransaction request if the read-write transaction is on a multiplexed session and a mutation_key was specified in the BeginTransaction. The precommit token with the highest sequence number from this transaction attempt should be passed to the Commit request for this transaction." + }, "readTimestamp": { "description": "For snapshot read-only transactions, the read timestamp chosen for the transaction. Not returned by default: see TransactionOptions.ReadOnly.return_read_timestamp. A timestamp in RFC3339 UTC \\\"Zulu\\\" format, accurate to nanoseconds. Example: `\"2014-10-02T15:01:23.045123456Z\"`.", "format": "google-datetime", diff --git a/spanner/v1/spanner-gen.go b/spanner/v1/spanner-gen.go index 531974cda26..ff996da3981 100644 --- a/spanner/v1/spanner-gen.go +++ b/spanner/v1/spanner-gen.go @@ -3872,6 +3872,35 @@ func (s MoveInstanceRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// MultiplexedSessionPrecommitToken: When a read-write transaction is executed +// on a multiplexed session, this precommit token is sent back to the client as +// a part of the [Transaction] message in the BeginTransaction response and +// also as a part of the [ResultSet] and [PartialResultSet] responses. +type MultiplexedSessionPrecommitToken struct { + // PrecommitToken: Opaque precommit token. + PrecommitToken string `json:"precommitToken,omitempty"` + // SeqNum: An incrementing seq number is generated on every precommit token + // that is returned. Clients should remember the precommit token with the + // highest sequence number from the current transaction attempt. + SeqNum int64 `json:"seqNum,omitempty"` + // ForceSendFields is a list of field names (e.g. "PrecommitToken") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "PrecommitToken") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s MultiplexedSessionPrecommitToken) MarshalJSON() ([]byte, error) { + type NoMethod MultiplexedSessionPrecommitToken + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Mutation: A modification to one or more Cloud Spanner rows. Mutations can be // applied to a Cloud Spanner database by sending them in a Commit call. type Mutation struct { @@ -5635,6 +5664,12 @@ type Transaction struct { // not have IDs, because single-use transactions do not support multiple // requests. Id string `json:"id,omitempty"` + // PrecommitToken: A precommit token will be included in the response of a + // BeginTransaction request if the read-write transaction is on a multiplexed + // session and a mutation_key was specified in the BeginTransaction. The + // precommit token with the highest sequence number from this transaction + // attempt should be passed to the Commit request for this transaction. + PrecommitToken *MultiplexedSessionPrecommitToken `json:"precommitToken,omitempty"` // ReadTimestamp: For snapshot read-only transactions, the read timestamp // chosen for the transaction. Not returned by default: see // TransactionOptions.ReadOnly.return_read_timestamp. A timestamp in RFC3339 diff --git a/workflowexecutions/v1/workflowexecutions-api.json b/workflowexecutions/v1/workflowexecutions-api.json index 1faf90d104f..38fa6f4d1c7 100644 --- a/workflowexecutions/v1/workflowexecutions-api.json +++ b/workflowexecutions/v1/workflowexecutions-api.json @@ -302,7 +302,7 @@ ], "parameters": { "filter": { - "description": "Optional. Filters applied to the `[Executions.ListExecutions]` results. The following fields are supported for filtering: `executionId`, `state`, `createTime`, `startTime`, `endTime`, `duration`, `workflowRevisionId`, `stepName`, and `label`. For details, see AIP-160. For more information, see Filter executions. For example, if you are using the Google APIs Explorer: `state=\"SUCCEEDED\"` or `startTime\u003e\"2023-08-01\" AND state=\"FAILED\"`", + "description": "Optional. Filters applied to the `[Executions.ListExecutions]` results. The following fields are supported for filtering: `executionId`, `state`, `createTime`, `startTime`, `endTime`, `duration`, `workflowRevisionId`, `stepName`, `label`, and `disableConcurrencyQuotaOverflowBuffering`. For details, see AIP-160. For more information, see Filter executions. For example, if you are using the Google APIs Explorer: `state=\"SUCCEEDED\"` or `startTime\u003e\"2023-08-01\" AND state=\"FAILED\"`", "location": "query", "type": "string" }, @@ -517,7 +517,7 @@ } } }, - "revision": "20240827", + "revision": "20240916", "rootUrl": "https://workflowexecutions.googleapis.com/", "schemas": { "Callback": { @@ -682,7 +682,7 @@ "type": "string" }, "startTime": { - "description": "Output only. Marks the beginning of execution.", + "description": "Output only. Marks the beginning of execution. Note that this will be the same as `createTime` for executions that start immediately.", "format": "google-datetime", "readOnly": true, "type": "string" diff --git a/workflowexecutions/v1/workflowexecutions-gen.go b/workflowexecutions/v1/workflowexecutions-gen.go index 92db07bc4c9..d87e83d8417 100644 --- a/workflowexecutions/v1/workflowexecutions-gen.go +++ b/workflowexecutions/v1/workflowexecutions-gen.go @@ -381,7 +381,8 @@ type Execution struct { // Result: Output only. Output of the execution represented as a JSON string. // The value can only be present if the execution's state is `SUCCEEDED`. Result string `json:"result,omitempty"` - // StartTime: Output only. Marks the beginning of execution. + // StartTime: Output only. Marks the beginning of execution. Note that this + // will be the same as `createTime` for executions that start immediately. StartTime string `json:"startTime,omitempty"` // State: Output only. Current state of the execution. // @@ -1653,10 +1654,11 @@ func (r *ProjectsLocationsWorkflowsExecutionsService) List(parent string) *Proje // Filter sets the optional parameter "filter": Filters applied to the // `[Executions.ListExecutions]` results. The following fields are supported // for filtering: `executionId`, `state`, `createTime`, `startTime`, `endTime`, -// `duration`, `workflowRevisionId`, `stepName`, and `label`. For details, see -// AIP-160. For more information, see Filter executions. For example, if you -// are using the Google APIs Explorer: `state="SUCCEEDED" or -// `startTime>"2023-08-01" AND state="FAILED" +// `duration`, `workflowRevisionId`, `stepName`, `label`, and +// `disableConcurrencyQuotaOverflowBuffering`. For details, see AIP-160. For +// more information, see Filter executions. For example, if you are using the +// Google APIs Explorer: `state="SUCCEEDED" or `startTime>"2023-08-01" AND +// state="FAILED" func (c *ProjectsLocationsWorkflowsExecutionsListCall) Filter(filter string) *ProjectsLocationsWorkflowsExecutionsListCall { c.urlParams_.Set("filter", filter) return c