diff --git a/aiplatform/v1/aiplatform-api.json b/aiplatform/v1/aiplatform-api.json index 979ee1d3cea..d5bf9b39f63 100644 --- a/aiplatform/v1/aiplatform-api.json +++ b/aiplatform/v1/aiplatform-api.json @@ -16976,7 +16976,7 @@ } } }, - "revision": "20240715", + "revision": "20240725", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoResponse": { @@ -17013,6 +17013,11 @@ "description": "Image encoding, encoded as \"image/png\" or \"image/jpg\".", "type": "string" }, + "generationSeed": { + "description": "Generation seed for the sampled image. This parameter is exposed to the user only if one of the following is true: 1. The user specified per-example seeds in the request. 2. The user doesn't specify the generation seed in the request.", + "format": "int32", + "type": "integer" + }, "image": { "description": "Raw bytes.", "format": "byte", @@ -18109,6 +18114,16 @@ "description": "Output only. Information about resources that had been consumed by this job. Provided in real time at best effort basis, as well as a final value once the job completes. Note: This field currently may be not populated for batch predictions that use AutoML Models.", "readOnly": true }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "serviceAccount": { "description": "The service account that the DeployedModel's container runs as. If not specified, a system generated one will be used, which has minimal permissions and the custom container, if used, may not have enough permission to access other Google Cloud resources. Users deploying the Model must have the `iam.serviceAccounts.actAs` permission on this service account.", "type": "string" @@ -18575,14 +18590,14 @@ ], "enumDescriptions": [ "The finish reason is unspecified.", - "Natural stop point of the model or provided stop sequence.", - "The maximum number of tokens as specified in the request was reached.", - "The token generation was stopped as the response was flagged for safety reasons. NOTE: When streaming the Candidate.content will be empty if content filters blocked the output.", - "The token generation was stopped as the response was flagged for unauthorized citations.", - "All other reasons that stopped the token generation", - "The token generation was stopped as the response was flagged for the terms which are included from the terminology blocklist.", - "The token generation was stopped as the response was flagged for the prohibited contents.", - "The token generation was stopped as the response was flagged for Sensitive Personally Identifiable Information (SPII) contents.", + "Token generation reached a natural stopping point or a configured stop sequence.", + "Token generation reached the configured maximum output tokens.", + "Token generation stopped because the content potentially contains safety violations. NOTE: When streaming, Candidate.content is empty if content filters blocks the output.", + "Token generation stopped because the content potentially contains copyright violations.", + "All other reasons that stopped the token generation.", + "Token generation stopped because the content contains forbidden terms.", + "Token generation stopped for potentially containing prohibited content.", + "Token generation stopped because the content potentially contains Sensitive Personally Identifiable Information (SPII).", "The function call generated by the model is invalid." ], "readOnly": true, @@ -18606,12 +18621,6 @@ }, "readOnly": true, "type": "array" - }, - "score": { - "description": "Output only. Confidence score of the candidate.", - "format": "double", - "readOnly": true, - "type": "number" } }, "type": "object" @@ -19624,6 +19633,16 @@ "description": "Required. The data that the DataItem represents (for example, an image or a text snippet). The schema of the payload is stored in the parent Dataset's metadata schema's dataItemSchemaUri field.", "type": "any" }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "updateTime": { "description": "Output only. Timestamp when this DataItem was last updated.", "format": "google-datetime", @@ -19846,6 +19865,16 @@ "readOnly": true, "type": "string" }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "savedQueries": { "description": "All SavedQueries belong to the Dataset will be returned in List/Get Dataset response. The annotation_specs field will not be populated except for UI cases which will only use annotation_spec_count. In CreateDataset request, a SavedQuery is created together if this field is set, up to one SavedQuery can be set in CreateDatasetRequest. The SavedQuery should not contain any AnnotationSpec.", "items": { @@ -19900,6 +19929,16 @@ "readOnly": true, "type": "string" }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "updateTime": { "description": "Output only. Timestamp when this DatasetVersion was last updated.", "format": "google-datetime", @@ -20370,6 +20409,16 @@ "description": "Immutable. The resource name of the DeploymentResourcePool. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`", "type": "string" }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "serviceAccount": { "description": "The service account that the DeploymentResourcePool's container(s) run as. Specify the email address of the service account. If this service account is not specified, the container(s) run as a service account that doesn't have access to the resource project. Users deploying the Models to this DeploymentResourcePool must have the `iam.serviceAccounts.actAs` permission on this service account.", "type": "string" @@ -20574,6 +20623,16 @@ "$ref": "GoogleCloudAiplatformV1PrivateServiceConnectConfig", "description": "Optional. Configuration for private service connect. network and private_service_connect_config are mutually exclusive." }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "trafficSplit": { "additionalProperties": { "format": "int32", @@ -23614,6 +23673,11 @@ "$ref": "GoogleCloudAiplatformV1Schema", "description": "Optional. The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). If set, a compatible response_mime_type must also be set. Compatible mimetypes: `application/json`: Schema for JSON response." }, + "seed": { + "description": "Optional. Seed.", + "format": "int32", + "type": "integer" + }, "stopSequences": { "description": "Optional. Stop sequences.", "items": { @@ -28673,10 +28737,6 @@ "description": "Optional. The full name of the Compute Engine [network](/compute/docs/networks-and-firewalls#networks) to peered with Vertex AI to host the persistent resources. For example, `projects/12345/global/networks/myVPC`. [Format](/compute/docs/reference/rest/v1/networks/insert) is of the form `projects/{project}/global/networks/{network}`. Where {project} is a project number, as in `12345`, and {network} is a network name. To specify this field, you must have already [configured VPC Network Peering for Vertex AI](https://cloud.google.com/vertex-ai/docs/general/vpc-peering). If this field is left unspecified, the resources aren't peered with any network.", "type": "string" }, - "pscInterfaceConfig": { - "$ref": "GoogleCloudAiplatformV1PscInterfaceConfig", - "description": "Optional. Configuration for PSC-I for PersistentResource." - }, "reservedIpRanges": { "description": "Optional. A list of names for the reserved IP ranges under the VPC network that can be used for this persistent resource. If set, we will deploy the persistent resource within the provided IP ranges. Otherwise, the persistent resource is deployed to any IP ranges under the provided VPC network. Example: ['vertex-ai-ip-range'].", "items": { @@ -29459,17 +29519,6 @@ }, "type": "object" }, - "GoogleCloudAiplatformV1PscInterfaceConfig": { - "description": "Configuration for PSC-I.", - "id": "GoogleCloudAiplatformV1PscInterfaceConfig", - "properties": { - "networkAttachment": { - "description": "Optional. The full name of the Compute Engine [network attachment](https://cloud.google.com/vpc/docs/about-network-attachments) to attach to the resource. For example, `projects/12345/regions/us-central1/networkAttachments/myNA`. is of the form `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`. Where {project} is a project number, as in `12345`, and {networkAttachment} is a network attachment name. To specify this field, you must have already [created a network attachment] (https://cloud.google.com/vpc/docs/create-manage-network-attachments#create-network-attachments). This field is only used for resources using PSC-I.", - "type": "string" - } - }, - "type": "object" - }, "GoogleCloudAiplatformV1PublisherModel": { "description": "A Model Garden Publisher Model.", "id": "GoogleCloudAiplatformV1PublisherModel", @@ -29679,6 +29728,10 @@ }, "description": "Optional. Labels for the deployment. For managing deployment config like verifying, source of deployment config, etc.", "type": "object" + }, + "sampleRequest": { + "description": "Optional. Sample request for deployed endpoint.", + "type": "string" } }, "type": "object" @@ -37875,7 +37928,6 @@ "type": "object" }, "GoogleCloudAiplatformV1TrialContext": { - "description": "Next ID: 3", "id": "GoogleCloudAiplatformV1TrialContext", "properties": { "description": { diff --git a/aiplatform/v1/aiplatform-gen.go b/aiplatform/v1/aiplatform-gen.go index a3d14194b92..49cdaeb0ab5 100644 --- a/aiplatform/v1/aiplatform-gen.go +++ b/aiplatform/v1/aiplatform-gen.go @@ -1368,6 +1368,11 @@ func (s CloudAiLargeModelsVisionGenerateVideoResponse) MarshalJSON() ([]byte, er type CloudAiLargeModelsVisionImage struct { // Encoding: Image encoding, encoded as "image/png" or "image/jpg". Encoding string `json:"encoding,omitempty"` + // GenerationSeed: Generation seed for the sampled image. This parameter is + // exposed to the user only if one of the following is true: 1. The user + // specified per-example seeds in the request. 2. The user doesn't specify the + // generation seed in the request. + GenerationSeed int64 `json:"generationSeed,omitempty"` // Image: Raw bytes. Image string `json:"image,omitempty"` // ImageRaiScores: RAI scores for generated image. @@ -2947,6 +2952,10 @@ type GoogleCloudAiplatformV1BatchPredictionJob struct { // a final value once the job completes. Note: This field currently may be not // populated for batch predictions that use AutoML Models. ResourcesConsumed *GoogleCloudAiplatformV1ResourcesConsumed `json:"resourcesConsumed,omitempty"` + // SatisfiesPzi: Output only. Reserved for future use. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` + // SatisfiesPzs: Output only. Reserved for future use. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // ServiceAccount: The service account that the DeployedModel's container runs // as. If not specified, a system generated one will be used, which has minimal // permissions and the custom container, if used, may not have enough @@ -3686,21 +3695,22 @@ type GoogleCloudAiplatformV1Candidate struct { // // Possible values: // "FINISH_REASON_UNSPECIFIED" - The finish reason is unspecified. - // "STOP" - Natural stop point of the model or provided stop sequence. - // "MAX_TOKENS" - The maximum number of tokens as specified in the request - // was reached. - // "SAFETY" - The token generation was stopped as the response was flagged - // for safety reasons. NOTE: When streaming the Candidate.content will be empty - // if content filters blocked the output. - // "RECITATION" - The token generation was stopped as the response was - // flagged for unauthorized citations. - // "OTHER" - All other reasons that stopped the token generation - // "BLOCKLIST" - The token generation was stopped as the response was flagged - // for the terms which are included from the terminology blocklist. - // "PROHIBITED_CONTENT" - The token generation was stopped as the response - // was flagged for the prohibited contents. - // "SPII" - The token generation was stopped as the response was flagged for - // Sensitive Personally Identifiable Information (SPII) contents. + // "STOP" - Token generation reached a natural stopping point or a configured + // stop sequence. + // "MAX_TOKENS" - Token generation reached the configured maximum output + // tokens. + // "SAFETY" - Token generation stopped because the content potentially + // contains safety violations. NOTE: When streaming, Candidate.content is empty + // if content filters blocks the output. + // "RECITATION" - Token generation stopped because the content potentially + // contains copyright violations. + // "OTHER" - All other reasons that stopped the token generation. + // "BLOCKLIST" - Token generation stopped because the content contains + // forbidden terms. + // "PROHIBITED_CONTENT" - Token generation stopped for potentially containing + // prohibited content. + // "SPII" - Token generation stopped because the content potentially contains + // Sensitive Personally Identifiable Information (SPII). // "MALFORMED_FUNCTION_CALL" - The function call generated by the model is // invalid. FinishReason string `json:"finishReason,omitempty"` @@ -3712,8 +3722,6 @@ type GoogleCloudAiplatformV1Candidate struct { // 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"` - // Score: Output only. Confidence score of the candidate. - Score float64 `json:"score,omitempty"` // ForceSendFields is a list of field names (e.g. "CitationMetadata") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -3732,20 +3740,6 @@ func (s GoogleCloudAiplatformV1Candidate) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -func (s *GoogleCloudAiplatformV1Candidate) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudAiplatformV1Candidate - var s1 struct { - Score gensupport.JSONFloat64 `json:"score"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Score = float64(s1.Score) - return nil -} - // GoogleCloudAiplatformV1CheckTrialEarlyStoppingStateMetatdata: This message // will be placed in the metadata field of a google.longrunning.Operation // associated with a CheckTrialEarlyStoppingState request. @@ -5270,6 +5264,10 @@ type GoogleCloudAiplatformV1DataItem struct { // image or a text snippet). The schema of the payload is stored in the parent // Dataset's metadata schema's dataItemSchemaUri field. Payload interface{} `json:"payload,omitempty"` + // SatisfiesPzi: Output only. Reserved for future use. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` + // SatisfiesPzs: Output only. Reserved for future use. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // UpdateTime: Output only. Timestamp when this DataItem was last updated. UpdateTime string `json:"updateTime,omitempty"` // ForceSendFields is a list of field names (e.g. "CreateTime") to @@ -5491,6 +5489,10 @@ type GoogleCloudAiplatformV1Dataset struct { ModelReference string `json:"modelReference,omitempty"` // Name: Output only. Identifier. The resource name of the Dataset. Name string `json:"name,omitempty"` + // SatisfiesPzi: Output only. Reserved for future use. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` + // SatisfiesPzs: Output only. Reserved for future use. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // SavedQueries: All SavedQueries belong to the Dataset will be returned in // List/Get Dataset response. The annotation_specs field will not be populated // except for UI cases which will only use annotation_spec_count. In @@ -5541,6 +5543,10 @@ type GoogleCloudAiplatformV1DatasetVersion struct { ModelReference string `json:"modelReference,omitempty"` // Name: Output only. Identifier. The resource name of the DatasetVersion. Name string `json:"name,omitempty"` + // SatisfiesPzi: Output only. Reserved for future use. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` + // SatisfiesPzs: Output only. Reserved for future use. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // UpdateTime: Output only. Timestamp when this DatasetVersion was last // updated. UpdateTime string `json:"updateTime,omitempty"` @@ -6343,6 +6349,10 @@ type GoogleCloudAiplatformV1DeploymentResourcePool struct { // `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_ // resource_pool}` Name string `json:"name,omitempty"` + // SatisfiesPzi: Output only. Reserved for future use. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` + // SatisfiesPzs: Output only. Reserved for future use. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // ServiceAccount: The service account that the DeploymentResourcePool's // container(s) run as. Specify the email address of the service account. If // this service account is not specified, the container(s) run as a service @@ -6659,6 +6669,10 @@ type GoogleCloudAiplatformV1Endpoint struct { // PrivateServiceConnectConfig: Optional. Configuration for private service // connect. network and private_service_connect_config are mutually exclusive. PrivateServiceConnectConfig *GoogleCloudAiplatformV1PrivateServiceConnectConfig `json:"privateServiceConnectConfig,omitempty"` + // SatisfiesPzi: Output only. Reserved for future use. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` + // SatisfiesPzs: Output only. Reserved for future use. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // TrafficSplit: A map from a DeployedModel's ID to the percentage of this // Endpoint's traffic that should be forwarded to that DeployedModel. If a // DeployedModel's ID is not listed in this map, then it receives no traffic. @@ -11104,6 +11118,8 @@ type GoogleCloudAiplatformV1GenerationConfig struct { // response_mime_type must also be set. Compatible mimetypes: // `application/json`: Schema for JSON response. ResponseSchema *GoogleCloudAiplatformV1Schema `json:"responseSchema,omitempty"` + // Seed: Optional. Seed. + Seed int64 `json:"seed,omitempty"` // StopSequences: Optional. Stop sequences. StopSequences []string `json:"stopSequences,omitempty"` // Temperature: Optional. Controls the randomness of predictions. @@ -18069,9 +18085,6 @@ type GoogleCloudAiplatformV1PersistentResource struct { // (https://cloud.google.com/vertex-ai/docs/general/vpc-peering). If this field // is left unspecified, the resources aren't peered with any network. Network string `json:"network,omitempty"` - // PscInterfaceConfig: Optional. Configuration for PSC-I for - // PersistentResource. - PscInterfaceConfig *GoogleCloudAiplatformV1PscInterfaceConfig `json:"pscInterfaceConfig,omitempty"` // ReservedIpRanges: Optional. A list of names for the reserved IP ranges under // the VPC network that can be used for this persistent resource. If set, we // will deploy the persistent resource within the provided IP ranges. @@ -19028,37 +19041,6 @@ func (s GoogleCloudAiplatformV1PscAutomatedEndpoints) MarshalJSON() ([]byte, err return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1PscInterfaceConfig: Configuration for PSC-I. -type GoogleCloudAiplatformV1PscInterfaceConfig struct { - // NetworkAttachment: Optional. The full name of the Compute Engine network - // attachment (https://cloud.google.com/vpc/docs/about-network-attachments) to - // attach to the resource. For example, - // `projects/12345/regions/us-central1/networkAttachments/myNA`. is of the form - // `projects/{project}/regions/{region}/networkAttachments/{networkAttachment}`. - // Where {project} is a project number, as in `12345`, and {networkAttachment} - // is a network attachment name. To specify this field, you must have already - // [created a network attachment] - // (https://cloud.google.com/vpc/docs/create-manage-network-attachments#create-network-attachments). - // This field is only used for resources using PSC-I. - NetworkAttachment string `json:"networkAttachment,omitempty"` - // ForceSendFields is a list of field names (e.g. "NetworkAttachment") 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. "NetworkAttachment") 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 GoogleCloudAiplatformV1PscInterfaceConfig) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1PscInterfaceConfig - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // GoogleCloudAiplatformV1PublisherModel: A Model Garden Publisher Model. type GoogleCloudAiplatformV1PublisherModel struct { // Frameworks: Optional. Additional information about the model's Frameworks. @@ -19250,6 +19232,8 @@ type GoogleCloudAiplatformV1PublisherModelCallToActionDeployDeployMetadata struc // Labels: Optional. Labels for the deployment. For managing deployment config // like verifying, source of deployment config, etc. Labels map[string]string `json:"labels,omitempty"` + // SampleRequest: Optional. Sample request for deployed endpoint. + SampleRequest string `json:"sampleRequest,omitempty"` // ForceSendFields is a list of field names (e.g. "Labels") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See @@ -31918,7 +31902,6 @@ func (s GoogleCloudAiplatformV1Trial) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1TrialContext: Next ID: 3 type GoogleCloudAiplatformV1TrialContext struct { // Description: A human-readable field which can store a description of this // context. This will become part of the resulting Trial's description field. diff --git a/aiplatform/v1beta1/aiplatform-api.json b/aiplatform/v1beta1/aiplatform-api.json index 592632b70e3..a5334b89b55 100644 --- a/aiplatform/v1beta1/aiplatform-api.json +++ b/aiplatform/v1beta1/aiplatform-api.json @@ -20452,7 +20452,7 @@ } } }, - "revision": "20240715", + "revision": "20240725", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoResponse": { @@ -20489,6 +20489,11 @@ "description": "Image encoding, encoded as \"image/png\" or \"image/jpg\".", "type": "string" }, + "generationSeed": { + "description": "Generation seed for the sampled image. This parameter is exposed to the user only if one of the following is true: 1. The user specified per-example seeds in the request. 2. The user doesn't specify the generation seed in the request.", + "format": "int32", + "type": "integer" + }, "image": { "description": "Raw bytes.", "format": "byte", @@ -21776,6 +21781,16 @@ "description": "Output only. Information about resources that had been consumed by this job. Provided in real time at best effort basis, as well as a final value once the job completes. Note: This field currently may be not populated for batch predictions that use AutoML Models.", "readOnly": true }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "serviceAccount": { "description": "The service account that the DeployedModel's container runs as. If not specified, a system generated one will be used, which has minimal permissions and the custom container, if used, may not have enough permission to access other Google Cloud resources. Users deploying the Model must have the `iam.serviceAccounts.actAs` permission on this service account.", "type": "string" @@ -22320,14 +22335,14 @@ ], "enumDescriptions": [ "The finish reason is unspecified.", - "Natural stop point of the model or provided stop sequence.", - "The maximum number of tokens as specified in the request was reached.", - "The token generation was stopped as the response was flagged for safety reasons. NOTE: When streaming the Candidate.content will be empty if content filters blocked the output.", - "The token generation was stopped as the response was flagged for unauthorized citations.", - "All other reasons that stopped the token generation", - "The token generation was stopped as the response was flagged for the terms which are included from the terminology blocklist.", - "The token generation was stopped as the response was flagged for the prohibited contents.", - "The token generation was stopped as the response was flagged for Sensitive Personally Identifiable Information (SPII) contents.", + "Token generation reached a natural stopping point or a configured stop sequence.", + "Token generation reached the configured maximum output tokens.", + "Token generation stopped because the content potentially contains safety violations. NOTE: When streaming, Candidate.content is empty if content filters blocks the output.", + "Token generation stopped because the content potentially contains copyright violations.", + "All other reasons that stopped the token generation.", + "Token generation stopped because the content contains forbidden terms.", + "Token generation stopped for potentially containing prohibited content.", + "Token generation stopped because the content potentially contains Sensitive Personally Identifiable Information (SPII).", "The function call generated by the model is invalid." ], "readOnly": true, @@ -22351,12 +22366,6 @@ }, "readOnly": true, "type": "array" - }, - "score": { - "description": "Output only. Confidence score of the candidate.", - "format": "double", - "readOnly": true, - "type": "number" } }, "type": "object" @@ -23440,6 +23449,16 @@ "description": "Required. The data that the DataItem represents (for example, an image or a text snippet). The schema of the payload is stored in the parent Dataset's metadata schema's dataItemSchemaUri field.", "type": "any" }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "updateTime": { "description": "Output only. Timestamp when this DataItem was last updated.", "format": "google-datetime", @@ -23662,6 +23681,16 @@ "readOnly": true, "type": "string" }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "savedQueries": { "description": "All SavedQueries belong to the Dataset will be returned in List/Get Dataset response. The annotation_specs field will not be populated except for UI cases which will only use annotation_spec_count. In CreateDataset request, a SavedQuery is created together if this field is set, up to one SavedQuery can be set in CreateDatasetRequest. The SavedQuery should not contain any AnnotationSpec.", "items": { @@ -23678,6 +23707,142 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1DatasetDistribution": { + "description": "Distribution computed over a tuning dataset.", + "id": "GoogleCloudAiplatformV1beta1DatasetDistribution", + "properties": { + "buckets": { + "description": "Output only. Defines the histogram bucket.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1DatasetDistributionDistributionBucket" + }, + "readOnly": true, + "type": "array" + }, + "max": { + "description": "Output only. The maximum of the population values.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "mean": { + "description": "Output only. The arithmetic mean of the values in the population.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "median": { + "description": "Output only. The median of the values in the population.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "min": { + "description": "Output only. The minimum of the population values.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "p5": { + "description": "Output only. The 5th percentile of the values in the population.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "p95": { + "description": "Output only. The 95th percentile of the values in the population.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "sum": { + "description": "Output only. Sum of a given population of values.", + "format": "double", + "readOnly": true, + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1DatasetDistributionDistributionBucket": { + "description": "Dataset bucket used to create a histogram for the distribution given a population of values.", + "id": "GoogleCloudAiplatformV1beta1DatasetDistributionDistributionBucket", + "properties": { + "count": { + "description": "Output only. Number of values in the bucket.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "left": { + "description": "Output only. Left bound of the bucket.", + "format": "double", + "readOnly": true, + "type": "number" + }, + "right": { + "description": "Output only. Right bound of the bucket.", + "format": "double", + "readOnly": true, + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1DatasetStats": { + "description": "Statistics computed over a tuning dataset.", + "id": "GoogleCloudAiplatformV1beta1DatasetStats", + "properties": { + "totalBillableCharacterCount": { + "description": "Output only. Number of billable characters in the tuning dataset.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "totalTuningCharacterCount": { + "description": "Output only. Number of tuning characters in the tuning dataset.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "tuningDatasetExampleCount": { + "description": "Output only. Number of examples in the tuning dataset.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "tuningStepCount": { + "description": "Output only. Number of tuning steps for this Tuning Job.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "userDatasetExamples": { + "description": "Output only. Sample user messages in the training dataset uri.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1Content" + }, + "readOnly": true, + "type": "array" + }, + "userInputTokenDistribution": { + "$ref": "GoogleCloudAiplatformV1beta1DatasetDistribution", + "description": "Output only. Dataset distributions for the user input tokens.", + "readOnly": true + }, + "userMessagePerExampleDistribution": { + "$ref": "GoogleCloudAiplatformV1beta1DatasetDistribution", + "description": "Output only. Dataset distributions for the messages per example.", + "readOnly": true + }, + "userOutputTokenDistribution": { + "$ref": "GoogleCloudAiplatformV1beta1DatasetDistribution", + "description": "Output only. Dataset distributions for the user output tokens.", + "readOnly": true + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1DatasetVersion": { "description": "Describes the dataset version.", "id": "GoogleCloudAiplatformV1beta1DatasetVersion", @@ -23716,6 +23881,16 @@ "readOnly": true, "type": "string" }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "updateTime": { "description": "Output only. Timestamp when this DatasetVersion was last updated.", "format": "google-datetime", @@ -24197,6 +24372,16 @@ "description": "Immutable. The resource name of the DeploymentResourcePool. Format: `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}`", "type": "string" }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "serviceAccount": { "description": "The service account that the DeploymentResourcePool's container(s) run as. Specify the email address of the service account. If this service account is not specified, the container(s) run as a service account that doesn't have access to the resource project. Users deploying the Models to this DeploymentResourcePool must have the `iam.serviceAccounts.actAs` permission on this service account.", "type": "string" @@ -24304,6 +24489,90 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1DistillationDataStats": { + "description": "Statistics computed for datasets used for distillation.", + "id": "GoogleCloudAiplatformV1beta1DistillationDataStats", + "properties": { + "trainingDatasetStats": { + "$ref": "GoogleCloudAiplatformV1beta1DatasetStats", + "description": "Output only. Statistics computed for the training dataset.", + "readOnly": true + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1DistillationHyperParameters": { + "description": "Hyperparameters for Distillation.", + "id": "GoogleCloudAiplatformV1beta1DistillationHyperParameters", + "properties": { + "adapterSize": { + "description": "Optional. Adapter size for distillation.", + "enum": [ + "ADAPTER_SIZE_UNSPECIFIED", + "ADAPTER_SIZE_ONE", + "ADAPTER_SIZE_FOUR", + "ADAPTER_SIZE_EIGHT", + "ADAPTER_SIZE_SIXTEEN", + "ADAPTER_SIZE_THIRTY_TWO" + ], + "enumDescriptions": [ + "Adapter size is unspecified.", + "Adapter size 1.", + "Adapter size 4.", + "Adapter size 8.", + "Adapter size 16.", + "Adapter size 32." + ], + "type": "string" + }, + "epochCount": { + "description": "Optional. Number of complete passes the model makes over the entire training dataset during training.", + "format": "int64", + "type": "string" + }, + "learningRateMultiplier": { + "description": "Optional. Multiplier for adjusting the default learning rate.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1DistillationSpec": { + "description": "Tuning Spec for Distillation.", + "id": "GoogleCloudAiplatformV1beta1DistillationSpec", + "properties": { + "baseTeacherModel": { + "description": "The base teacher model that is being distilled, e.g., \"gemini-1.0-pro-002\".", + "type": "string" + }, + "hyperParameters": { + "$ref": "GoogleCloudAiplatformV1beta1DistillationHyperParameters", + "description": "Optional. Hyperparameters for Distillation." + }, + "pipelineRootDirectory": { + "description": "Required. A path in a Cloud Storage bucket, which will be treated as the root output directory of the distillation pipeline. It is used by the system to generate the paths of output artifacts.", + "type": "string" + }, + "studentModel": { + "description": "The student model that is being tuned, e.g., \"google/gemma-2b-1.1-it\".", + "type": "string" + }, + "trainingDatasetUri": { + "description": "Required. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file.", + "type": "string" + }, + "tunedTeacherModelSource": { + "description": "The resource name of the Tuned teacher model. Format: `projects/{project}/locations/{location}/models/{model}`.", + "type": "string" + }, + "validationDatasetUri": { + "description": "Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1DoubleArray": { "description": "A list of double values.", "id": "GoogleCloudAiplatformV1beta1DoubleArray", @@ -24407,6 +24676,16 @@ "$ref": "GoogleCloudAiplatformV1beta1PrivateServiceConnectConfig", "description": "Optional. Configuration for private service connect. network and private_service_connect_config are mutually exclusive." }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "trafficSplit": { "additionalProperties": { "format": "int32", @@ -27752,6 +28031,32 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1GenerateVideoResponse": { + "description": "Generate video response.", + "id": "GoogleCloudAiplatformV1beta1GenerateVideoResponse", + "properties": { + "generatedSamples": { + "description": "The cloud storage uris of the generated videos.", + "items": { + "type": "string" + }, + "type": "array" + }, + "raiMediaFilteredCount": { + "description": "Returns if any videos were filtered due to RAI policies.", + "format": "int32", + "type": "integer" + }, + "raiMediaFilteredReasons": { + "description": "Returns rai failure reasons if any.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1GenerationConfig": { "description": "Generation config.", "id": "GoogleCloudAiplatformV1beta1GenerationConfig", @@ -27784,6 +28089,11 @@ "$ref": "GoogleCloudAiplatformV1beta1Schema", "description": "Optional. The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). If set, a compatible response_mime_type must also be set. Compatible mimetypes: `application/json`: Schema for JSON response." }, + "seed": { + "description": "Optional. Seed.", + "format": "int32", + "type": "integer" + }, "stopSequences": { "description": "Optional. Stop sequences.", "items": { @@ -34519,6 +34829,23 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1PredictLongRunningMetadata": { + "description": "Metadata for PredictLongRunning long running operations.", + "id": "GoogleCloudAiplatformV1beta1PredictLongRunningMetadata", + "properties": {}, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1PredictLongRunningResponse": { + "description": "Response message for [PredictionService.PredictLongRunning]", + "id": "GoogleCloudAiplatformV1beta1PredictLongRunningResponse", + "properties": { + "generateVideoResponse": { + "$ref": "GoogleCloudAiplatformV1beta1GenerateVideoResponse", + "description": "The response of the video generation prediction." + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1PredictRequest": { "description": "Request message for PredictionService.Predict.", "id": "GoogleCloudAiplatformV1beta1PredictRequest", @@ -34972,6 +35299,10 @@ }, "description": "Optional. Labels for the deployment. For managing deployment config like verifying, source of deployment config, etc.", "type": "object" + }, + "sampleRequest": { + "description": "Optional. Sample request for deployed endpoint.", + "type": "string" } }, "type": "object" @@ -43991,7 +44322,6 @@ "type": "object" }, "GoogleCloudAiplatformV1beta1TrialContext": { - "description": "Next ID: 3", "id": "GoogleCloudAiplatformV1beta1TrialContext", "properties": { "description": { @@ -44046,6 +44376,11 @@ "description": "The tuning data statistic values for TuningJob.", "id": "GoogleCloudAiplatformV1beta1TuningDataStats", "properties": { + "distillationDataStats": { + "$ref": "GoogleCloudAiplatformV1beta1DistillationDataStats", + "description": "Output only. Statistics for distillation.", + "readOnly": true + }, "supervisedTuningDataStats": { "$ref": "GoogleCloudAiplatformV1beta1SupervisedTuningDataStats", "description": "The SFT Tuning data stats." @@ -44071,6 +44406,10 @@ "description": "Optional. The description of the TuningJob.", "type": "string" }, + "distillationSpec": { + "$ref": "GoogleCloudAiplatformV1beta1DistillationSpec", + "description": "Tuning Spec for Distillation." + }, "encryptionSpec": { "$ref": "GoogleCloudAiplatformV1beta1EncryptionSpec", "description": "Customer-managed encryption key options for a TuningJob. If this is set, then all resources created by the TuningJob will be encrypted with the provided encryption key." @@ -44103,6 +44442,11 @@ "readOnly": true, "type": "string" }, + "pipelineJob": { + "description": "Output only. The resource name of the PipelineJob associated with the TuningJob. Format: `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`.", + "readOnly": true, + "type": "string" + }, "startTime": { "description": "Output only. Time when the TuningJob for the first time entered the `JOB_STATE_RUNNING` state.", "format": "google-datetime", diff --git a/aiplatform/v1beta1/aiplatform-gen.go b/aiplatform/v1beta1/aiplatform-gen.go index f05797de7bf..2bce3335410 100644 --- a/aiplatform/v1beta1/aiplatform-gen.go +++ b/aiplatform/v1beta1/aiplatform-gen.go @@ -1692,6 +1692,11 @@ func (s CloudAiLargeModelsVisionGenerateVideoResponse) MarshalJSON() ([]byte, er type CloudAiLargeModelsVisionImage struct { // Encoding: Image encoding, encoded as "image/png" or "image/jpg". Encoding string `json:"encoding,omitempty"` + // GenerationSeed: Generation seed for the sampled image. This parameter is + // exposed to the user only if one of the following is true: 1. The user + // specified per-example seeds in the request. 2. The user doesn't specify the + // generation seed in the request. + GenerationSeed int64 `json:"generationSeed,omitempty"` // Image: Raw bytes. Image string `json:"image,omitempty"` // ImageRaiScores: RAI scores for generated image. @@ -3559,6 +3564,10 @@ type GoogleCloudAiplatformV1beta1BatchPredictionJob struct { // a final value once the job completes. Note: This field currently may be not // populated for batch predictions that use AutoML Models. ResourcesConsumed *GoogleCloudAiplatformV1beta1ResourcesConsumed `json:"resourcesConsumed,omitempty"` + // SatisfiesPzi: Output only. Reserved for future use. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` + // SatisfiesPzs: Output only. Reserved for future use. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // ServiceAccount: The service account that the DeployedModel's container runs // as. If not specified, a system generated one will be used, which has minimal // permissions and the custom container, if used, may not have enough @@ -4386,21 +4395,22 @@ type GoogleCloudAiplatformV1beta1Candidate struct { // // Possible values: // "FINISH_REASON_UNSPECIFIED" - The finish reason is unspecified. - // "STOP" - Natural stop point of the model or provided stop sequence. - // "MAX_TOKENS" - The maximum number of tokens as specified in the request - // was reached. - // "SAFETY" - The token generation was stopped as the response was flagged - // for safety reasons. NOTE: When streaming the Candidate.content will be empty - // if content filters blocked the output. - // "RECITATION" - The token generation was stopped as the response was - // flagged for unauthorized citations. - // "OTHER" - All other reasons that stopped the token generation - // "BLOCKLIST" - The token generation was stopped as the response was flagged - // for the terms which are included from the terminology blocklist. - // "PROHIBITED_CONTENT" - The token generation was stopped as the response - // was flagged for the prohibited contents. - // "SPII" - The token generation was stopped as the response was flagged for - // Sensitive Personally Identifiable Information (SPII) contents. + // "STOP" - Token generation reached a natural stopping point or a configured + // stop sequence. + // "MAX_TOKENS" - Token generation reached the configured maximum output + // tokens. + // "SAFETY" - Token generation stopped because the content potentially + // contains safety violations. NOTE: When streaming, Candidate.content is empty + // if content filters blocks the output. + // "RECITATION" - Token generation stopped because the content potentially + // contains copyright violations. + // "OTHER" - All other reasons that stopped the token generation. + // "BLOCKLIST" - Token generation stopped because the content contains + // forbidden terms. + // "PROHIBITED_CONTENT" - Token generation stopped for potentially containing + // prohibited content. + // "SPII" - Token generation stopped because the content potentially contains + // Sensitive Personally Identifiable Information (SPII). // "MALFORMED_FUNCTION_CALL" - The function call generated by the model is // invalid. FinishReason string `json:"finishReason,omitempty"` @@ -4412,8 +4422,6 @@ type GoogleCloudAiplatformV1beta1Candidate struct { // 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"` - // Score: Output only. Confidence score of the candidate. - Score float64 `json:"score,omitempty"` // ForceSendFields is a list of field names (e.g. "CitationMetadata") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -4432,20 +4440,6 @@ func (s GoogleCloudAiplatformV1beta1Candidate) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -func (s *GoogleCloudAiplatformV1beta1Candidate) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudAiplatformV1beta1Candidate - var s1 struct { - Score gensupport.JSONFloat64 `json:"score"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.Score = float64(s1.Score) - return nil -} - // GoogleCloudAiplatformV1beta1CheckTrialEarlyStoppingStateMetatdata: This // message will be placed in the metadata field of a // google.longrunning.Operation associated with a CheckTrialEarlyStoppingState @@ -6102,6 +6096,10 @@ type GoogleCloudAiplatformV1beta1DataItem struct { // image or a text snippet). The schema of the payload is stored in the parent // Dataset's metadata schema's dataItemSchemaUri field. Payload interface{} `json:"payload,omitempty"` + // SatisfiesPzi: Output only. Reserved for future use. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` + // SatisfiesPzs: Output only. Reserved for future use. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // UpdateTime: Output only. Timestamp when this DataItem was last updated. UpdateTime string `json:"updateTime,omitempty"` // ForceSendFields is a list of field names (e.g. "CreateTime") to @@ -6323,6 +6321,10 @@ type GoogleCloudAiplatformV1beta1Dataset struct { ModelReference string `json:"modelReference,omitempty"` // Name: Output only. Identifier. The resource name of the Dataset. Name string `json:"name,omitempty"` + // SatisfiesPzi: Output only. Reserved for future use. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` + // SatisfiesPzs: Output only. Reserved for future use. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // SavedQueries: All SavedQueries belong to the Dataset will be returned in // List/Get Dataset response. The annotation_specs field will not be populated // except for UI cases which will only use annotation_spec_count. In @@ -6353,6 +6355,157 @@ func (s GoogleCloudAiplatformV1beta1Dataset) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1DatasetDistribution: Distribution computed over +// a tuning dataset. +type GoogleCloudAiplatformV1beta1DatasetDistribution struct { + // Buckets: Output only. Defines the histogram bucket. + Buckets []*GoogleCloudAiplatformV1beta1DatasetDistributionDistributionBucket `json:"buckets,omitempty"` + // Max: Output only. The maximum of the population values. + Max float64 `json:"max,omitempty"` + // Mean: Output only. The arithmetic mean of the values in the population. + Mean float64 `json:"mean,omitempty"` + // Median: Output only. The median of the values in the population. + Median float64 `json:"median,omitempty"` + // Min: Output only. The minimum of the population values. + Min float64 `json:"min,omitempty"` + // P5: Output only. The 5th percentile of the values in the population. + P5 float64 `json:"p5,omitempty"` + // P95: Output only. The 95th percentile of the values in the population. + P95 float64 `json:"p95,omitempty"` + // Sum: Output only. Sum of a given population of values. + Sum float64 `json:"sum,omitempty"` + // ForceSendFields is a list of field names (e.g. "Buckets") 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. "Buckets") 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 GoogleCloudAiplatformV1beta1DatasetDistribution) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1DatasetDistribution + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1beta1DatasetDistribution) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1beta1DatasetDistribution + var s1 struct { + Max gensupport.JSONFloat64 `json:"max"` + Mean gensupport.JSONFloat64 `json:"mean"` + Median gensupport.JSONFloat64 `json:"median"` + Min gensupport.JSONFloat64 `json:"min"` + P5 gensupport.JSONFloat64 `json:"p5"` + P95 gensupport.JSONFloat64 `json:"p95"` + Sum gensupport.JSONFloat64 `json:"sum"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Max = float64(s1.Max) + s.Mean = float64(s1.Mean) + s.Median = float64(s1.Median) + s.Min = float64(s1.Min) + s.P5 = float64(s1.P5) + s.P95 = float64(s1.P95) + s.Sum = float64(s1.Sum) + return nil +} + +// GoogleCloudAiplatformV1beta1DatasetDistributionDistributionBucket: Dataset +// bucket used to create a histogram for the distribution given a population of +// values. +type GoogleCloudAiplatformV1beta1DatasetDistributionDistributionBucket struct { + // Count: Output only. Number of values in the bucket. + Count int64 `json:"count,omitempty,string"` + // Left: Output only. Left bound of the bucket. + Left float64 `json:"left,omitempty"` + // Right: Output only. Right bound of the bucket. + Right float64 `json:"right,omitempty"` + // ForceSendFields is a list of field names (e.g. "Count") 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. "Count") 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 GoogleCloudAiplatformV1beta1DatasetDistributionDistributionBucket) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1DatasetDistributionDistributionBucket + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1beta1DatasetDistributionDistributionBucket) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1beta1DatasetDistributionDistributionBucket + var s1 struct { + Left gensupport.JSONFloat64 `json:"left"` + Right gensupport.JSONFloat64 `json:"right"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Left = float64(s1.Left) + s.Right = float64(s1.Right) + return nil +} + +// GoogleCloudAiplatformV1beta1DatasetStats: Statistics computed over a tuning +// dataset. +type GoogleCloudAiplatformV1beta1DatasetStats struct { + // TotalBillableCharacterCount: Output only. Number of billable characters in + // the tuning dataset. + TotalBillableCharacterCount int64 `json:"totalBillableCharacterCount,omitempty,string"` + // TotalTuningCharacterCount: Output only. Number of tuning characters in the + // tuning dataset. + TotalTuningCharacterCount int64 `json:"totalTuningCharacterCount,omitempty,string"` + // TuningDatasetExampleCount: Output only. Number of examples in the tuning + // dataset. + TuningDatasetExampleCount int64 `json:"tuningDatasetExampleCount,omitempty,string"` + // TuningStepCount: Output only. Number of tuning steps for this Tuning Job. + TuningStepCount int64 `json:"tuningStepCount,omitempty,string"` + // UserDatasetExamples: Output only. Sample user messages in the training + // dataset uri. + UserDatasetExamples []*GoogleCloudAiplatformV1beta1Content `json:"userDatasetExamples,omitempty"` + // UserInputTokenDistribution: Output only. Dataset distributions for the user + // input tokens. + UserInputTokenDistribution *GoogleCloudAiplatformV1beta1DatasetDistribution `json:"userInputTokenDistribution,omitempty"` + // UserMessagePerExampleDistribution: Output only. Dataset distributions for + // the messages per example. + UserMessagePerExampleDistribution *GoogleCloudAiplatformV1beta1DatasetDistribution `json:"userMessagePerExampleDistribution,omitempty"` + // UserOutputTokenDistribution: Output only. Dataset distributions for the user + // output tokens. + UserOutputTokenDistribution *GoogleCloudAiplatformV1beta1DatasetDistribution `json:"userOutputTokenDistribution,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "TotalBillableCharacterCount") 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. "TotalBillableCharacterCount") 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 GoogleCloudAiplatformV1beta1DatasetStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1DatasetStats + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1DatasetVersion: Describes the dataset version. type GoogleCloudAiplatformV1beta1DatasetVersion struct { // BigQueryDatasetName: Output only. Name of the associated BigQuery dataset. @@ -6373,6 +6526,10 @@ type GoogleCloudAiplatformV1beta1DatasetVersion struct { ModelReference string `json:"modelReference,omitempty"` // Name: Output only. Identifier. The resource name of the DatasetVersion. Name string `json:"name,omitempty"` + // SatisfiesPzi: Output only. Reserved for future use. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` + // SatisfiesPzs: Output only. Reserved for future use. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // UpdateTime: Output only. Timestamp when this DatasetVersion was last // updated. UpdateTime string `json:"updateTime,omitempty"` @@ -7197,6 +7354,10 @@ type GoogleCloudAiplatformV1beta1DeploymentResourcePool struct { // `projects/{project}/locations/{location}/deploymentResourcePools/{deployment_ // resource_pool}` Name string `json:"name,omitempty"` + // SatisfiesPzi: Output only. Reserved for future use. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` + // SatisfiesPzs: Output only. Reserved for future use. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // ServiceAccount: The service account that the DeploymentResourcePool's // container(s) run as. Specify the email address of the service account. If // this service account is not specified, the container(s) run as a service @@ -7386,6 +7547,123 @@ func (s GoogleCloudAiplatformV1beta1DiskSpec) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1DistillationDataStats: Statistics computed for +// datasets used for distillation. +type GoogleCloudAiplatformV1beta1DistillationDataStats struct { + // TrainingDatasetStats: Output only. Statistics computed for the training + // dataset. + TrainingDatasetStats *GoogleCloudAiplatformV1beta1DatasetStats `json:"trainingDatasetStats,omitempty"` + // ForceSendFields is a list of field names (e.g. "TrainingDatasetStats") 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. "TrainingDatasetStats") 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 GoogleCloudAiplatformV1beta1DistillationDataStats) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1DistillationDataStats + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1DistillationHyperParameters: Hyperparameters for +// Distillation. +type GoogleCloudAiplatformV1beta1DistillationHyperParameters struct { + // AdapterSize: Optional. Adapter size for distillation. + // + // Possible values: + // "ADAPTER_SIZE_UNSPECIFIED" - Adapter size is unspecified. + // "ADAPTER_SIZE_ONE" - Adapter size 1. + // "ADAPTER_SIZE_FOUR" - Adapter size 4. + // "ADAPTER_SIZE_EIGHT" - Adapter size 8. + // "ADAPTER_SIZE_SIXTEEN" - Adapter size 16. + // "ADAPTER_SIZE_THIRTY_TWO" - Adapter size 32. + AdapterSize string `json:"adapterSize,omitempty"` + // EpochCount: Optional. Number of complete passes the model makes over the + // entire training dataset during training. + EpochCount int64 `json:"epochCount,omitempty,string"` + // LearningRateMultiplier: Optional. Multiplier for adjusting the default + // learning rate. + LearningRateMultiplier float64 `json:"learningRateMultiplier,omitempty"` + // ForceSendFields is a list of field names (e.g. "AdapterSize") 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. "AdapterSize") 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 GoogleCloudAiplatformV1beta1DistillationHyperParameters) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1DistillationHyperParameters + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1beta1DistillationHyperParameters) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1beta1DistillationHyperParameters + var s1 struct { + LearningRateMultiplier gensupport.JSONFloat64 `json:"learningRateMultiplier"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.LearningRateMultiplier = float64(s1.LearningRateMultiplier) + return nil +} + +// GoogleCloudAiplatformV1beta1DistillationSpec: Tuning Spec for Distillation. +type GoogleCloudAiplatformV1beta1DistillationSpec struct { + // BaseTeacherModel: The base teacher model that is being distilled, e.g., + // "gemini-1.0-pro-002". + BaseTeacherModel string `json:"baseTeacherModel,omitempty"` + // HyperParameters: Optional. Hyperparameters for Distillation. + HyperParameters *GoogleCloudAiplatformV1beta1DistillationHyperParameters `json:"hyperParameters,omitempty"` + // PipelineRootDirectory: Required. A path in a Cloud Storage bucket, which + // will be treated as the root output directory of the distillation pipeline. + // It is used by the system to generate the paths of output artifacts. + PipelineRootDirectory string `json:"pipelineRootDirectory,omitempty"` + // StudentModel: The student model that is being tuned, e.g., + // "google/gemma-2b-1.1-it". + StudentModel string `json:"studentModel,omitempty"` + // TrainingDatasetUri: Required. Cloud Storage path to file containing training + // dataset for tuning. The dataset must be formatted as a JSONL file. + TrainingDatasetUri string `json:"trainingDatasetUri,omitempty"` + // TunedTeacherModelSource: The resource name of the Tuned teacher model. + // Format: `projects/{project}/locations/{location}/models/{model}`. + TunedTeacherModelSource string `json:"tunedTeacherModelSource,omitempty"` + // ValidationDatasetUri: Optional. Cloud Storage path to file containing + // validation dataset for tuning. The dataset must be formatted as a JSONL + // file. + ValidationDatasetUri string `json:"validationDatasetUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "BaseTeacherModel") 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. "BaseTeacherModel") 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 GoogleCloudAiplatformV1beta1DistillationSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1DistillationSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1DoubleArray: A list of double values. type GoogleCloudAiplatformV1beta1DoubleArray struct { // Values: A list of double values. @@ -7518,6 +7796,10 @@ type GoogleCloudAiplatformV1beta1Endpoint struct { // PrivateServiceConnectConfig: Optional. Configuration for private service // connect. network and private_service_connect_config are mutually exclusive. PrivateServiceConnectConfig *GoogleCloudAiplatformV1beta1PrivateServiceConnectConfig `json:"privateServiceConnectConfig,omitempty"` + // SatisfiesPzi: Output only. Reserved for future use. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` + // SatisfiesPzs: Output only. Reserved for future use. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // TrafficSplit: A map from a DeployedModel's ID to the percentage of this // Endpoint's traffic that should be forwarded to that DeployedModel. If a // DeployedModel's ID is not listed in this map, then it receives no traffic. @@ -12386,6 +12668,33 @@ func (s GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata) Marsha return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1GenerateVideoResponse: Generate video response. +type GoogleCloudAiplatformV1beta1GenerateVideoResponse struct { + // GeneratedSamples: The cloud storage uris of the generated videos. + GeneratedSamples []string `json:"generatedSamples,omitempty"` + // RaiMediaFilteredCount: Returns if any videos were filtered due to RAI + // policies. + RaiMediaFilteredCount int64 `json:"raiMediaFilteredCount,omitempty"` + // RaiMediaFilteredReasons: Returns rai failure reasons if any. + RaiMediaFilteredReasons []string `json:"raiMediaFilteredReasons,omitempty"` + // ForceSendFields is a list of field names (e.g. "GeneratedSamples") 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. "GeneratedSamples") 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 GoogleCloudAiplatformV1beta1GenerateVideoResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1GenerateVideoResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1GenerationConfig: Generation config. type GoogleCloudAiplatformV1beta1GenerationConfig struct { // CandidateCount: Optional. Number of candidates to generate. @@ -12410,6 +12719,8 @@ type GoogleCloudAiplatformV1beta1GenerationConfig struct { // response_mime_type must also be set. Compatible mimetypes: // `application/json`: Schema for JSON response. ResponseSchema *GoogleCloudAiplatformV1beta1Schema `json:"responseSchema,omitempty"` + // Seed: Optional. Seed. + Seed int64 `json:"seed,omitempty"` // StopSequences: Optional. Stop sequences. StopSequences []string `json:"stopSequences,omitempty"` // Temperature: Optional. Controls the randomness of predictions. @@ -21598,6 +21909,34 @@ func (s GoogleCloudAiplatformV1beta1PredefinedSplit) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1PredictLongRunningMetadata: Metadata for +// PredictLongRunning long running operations. +type GoogleCloudAiplatformV1beta1PredictLongRunningMetadata struct { +} + +// GoogleCloudAiplatformV1beta1PredictLongRunningResponse: Response message for +// [PredictionService.PredictLongRunning] +type GoogleCloudAiplatformV1beta1PredictLongRunningResponse struct { + // GenerateVideoResponse: The response of the video generation prediction. + GenerateVideoResponse *GoogleCloudAiplatformV1beta1GenerateVideoResponse `json:"generateVideoResponse,omitempty"` + // ForceSendFields is a list of field names (e.g. "GenerateVideoResponse") 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. "GenerateVideoResponse") 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 GoogleCloudAiplatformV1beta1PredictLongRunningResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1PredictLongRunningResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1PredictRequest: Request message for // PredictionService.Predict. type GoogleCloudAiplatformV1beta1PredictRequest struct { @@ -22190,6 +22529,8 @@ type GoogleCloudAiplatformV1beta1PublisherModelCallToActionDeployDeployMetadata // Labels: Optional. Labels for the deployment. For managing deployment config // like verifying, source of deployment config, etc. Labels map[string]string `json:"labels,omitempty"` + // SampleRequest: Optional. Sample request for deployed endpoint. + SampleRequest string `json:"sampleRequest,omitempty"` // ForceSendFields is a list of field names (e.g. "Labels") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See @@ -36051,7 +36392,6 @@ func (s GoogleCloudAiplatformV1beta1Trial) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleCloudAiplatformV1beta1TrialContext: Next ID: 3 type GoogleCloudAiplatformV1beta1TrialContext struct { // Description: A human-readable field which can store a description of this // context. This will become part of the resulting Trial's description field. @@ -36142,15 +36482,17 @@ func (s GoogleCloudAiplatformV1beta1TunedModel) MarshalJSON() ([]byte, error) { // GoogleCloudAiplatformV1beta1TuningDataStats: The tuning data statistic // values for TuningJob. type GoogleCloudAiplatformV1beta1TuningDataStats struct { + // DistillationDataStats: Output only. Statistics for distillation. + DistillationDataStats *GoogleCloudAiplatformV1beta1DistillationDataStats `json:"distillationDataStats,omitempty"` // SupervisedTuningDataStats: The SFT Tuning data stats. SupervisedTuningDataStats *GoogleCloudAiplatformV1beta1SupervisedTuningDataStats `json:"supervisedTuningDataStats,omitempty"` - // ForceSendFields is a list of field names (e.g. "SupervisedTuningDataStats") - // to unconditionally include in API requests. By default, fields with empty or + // ForceSendFields is a list of field names (e.g. "DistillationDataStats") 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. "SupervisedTuningDataStats") to + // NullFields is a list of field names (e.g. "DistillationDataStats") 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. @@ -36171,6 +36513,8 @@ type GoogleCloudAiplatformV1beta1TuningJob struct { CreateTime string `json:"createTime,omitempty"` // Description: Optional. The description of the TuningJob. Description string `json:"description,omitempty"` + // DistillationSpec: Tuning Spec for Distillation. + DistillationSpec *GoogleCloudAiplatformV1beta1DistillationSpec `json:"distillationSpec,omitempty"` // EncryptionSpec: Customer-managed encryption key options for a TuningJob. If // this is set, then all resources created by the TuningJob will be encrypted // with the provided encryption key. @@ -36194,6 +36538,10 @@ type GoogleCloudAiplatformV1beta1TuningJob struct { // Name: Output only. Identifier. Resource name of a TuningJob. Format: // `projects/{project}/locations/{location}/tuningJobs/{tuning_job}` Name string `json:"name,omitempty"` + // PipelineJob: Output only. The resource name of the PipelineJob associated + // with the TuningJob. Format: + // `projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}`. + PipelineJob string `json:"pipelineJob,omitempty"` // StartTime: Output only. Time when the TuningJob for the first time entered // the `JOB_STATE_RUNNING` state. StartTime string `json:"startTime,omitempty"` diff --git a/analyticsadmin/v1alpha/analyticsadmin-api.json b/analyticsadmin/v1alpha/analyticsadmin-api.json index 31626bd87bc..6e1ddb2e8c9 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-api.json +++ b/analyticsadmin/v1alpha/analyticsadmin-api.json @@ -3103,6 +3103,188 @@ } } }, + "eventEditRules": { + "methods": { + "create": { + "description": "Creates an EventEditRule.", + "flatPath": "v1alpha/properties/{propertiesId}/dataStreams/{dataStreamsId}/eventEditRules", + "httpMethod": "POST", + "id": "analyticsadmin.properties.dataStreams.eventEditRules.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Example format: properties/123/dataStreams/456", + "location": "path", + "pattern": "^properties/[^/]+/dataStreams/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/eventEditRules", + "request": { + "$ref": "GoogleAnalyticsAdminV1alphaEventEditRule" + }, + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaEventEditRule" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit" + ] + }, + "delete": { + "description": "Deletes an EventEditRule.", + "flatPath": "v1alpha/properties/{propertiesId}/dataStreams/{dataStreamsId}/eventEditRules/{eventEditRulesId}", + "httpMethod": "DELETE", + "id": "analyticsadmin.properties.dataStreams.eventEditRules.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Example format: properties/123/dataStreams/456/eventEditRules/789", + "location": "path", + "pattern": "^properties/[^/]+/dataStreams/[^/]+/eventEditRules/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit" + ] + }, + "get": { + "description": "Lookup for a single EventEditRule.", + "flatPath": "v1alpha/properties/{propertiesId}/dataStreams/{dataStreamsId}/eventEditRules/{eventEditRulesId}", + "httpMethod": "GET", + "id": "analyticsadmin.properties.dataStreams.eventEditRules.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the EventEditRule to get. Example format: properties/123/dataStreams/456/eventEditRules/789", + "location": "path", + "pattern": "^properties/[^/]+/dataStreams/[^/]+/eventEditRules/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaEventEditRule" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit", + "https://www.googleapis.com/auth/analytics.readonly" + ] + }, + "list": { + "description": "Lists EventEditRules on a web data stream.", + "flatPath": "v1alpha/properties/{propertiesId}/dataStreams/{dataStreamsId}/eventEditRules", + "httpMethod": "GET", + "id": "analyticsadmin.properties.dataStreams.eventEditRules.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Optional. The maximum number of resources to return. If unspecified, at most 50 resources will be returned. The maximum value is 200 (higher values will be coerced to the maximum).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListEventEditRules` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListEventEditRules` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Example format: properties/123/dataStreams/456", + "location": "path", + "pattern": "^properties/[^/]+/dataStreams/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/eventEditRules", + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaListEventEditRulesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit", + "https://www.googleapis.com/auth/analytics.readonly" + ] + }, + "patch": { + "description": "Updates an EventEditRule.", + "flatPath": "v1alpha/properties/{propertiesId}/dataStreams/{dataStreamsId}/eventEditRules/{eventEditRulesId}", + "httpMethod": "PATCH", + "id": "analyticsadmin.properties.dataStreams.eventEditRules.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Identifier. Resource name for this EventEditRule resource. Format: properties/{property}/dataStreams/{data_stream}/eventEditRules/{event_edit_rule}", + "location": "path", + "pattern": "^properties/[^/]+/dataStreams/[^/]+/eventEditRules/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The list of fields to be updated. Field names must be in snake case (e.g., \"field_to_update\"). Omitted fields will not be updated. To replace the entire entity, use one path with the string \"*\" to match all fields.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "request": { + "$ref": "GoogleAnalyticsAdminV1alphaEventEditRule" + }, + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaEventEditRule" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit" + ] + }, + "reorder": { + "description": "Changes the processing order of event edit rules on the specified stream.", + "flatPath": "v1alpha/properties/{propertiesId}/dataStreams/{dataStreamsId}/eventEditRules:reorder", + "httpMethod": "POST", + "id": "analyticsadmin.properties.dataStreams.eventEditRules.reorder", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Example format: properties/123/dataStreams/456", + "location": "path", + "pattern": "^properties/[^/]+/dataStreams/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/eventEditRules:reorder", + "request": { + "$ref": "GoogleAnalyticsAdminV1alphaReorderEventEditRulesRequest" + }, + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit" + ] + } + } + }, "measurementProtocolSecrets": { "methods": { "create": { @@ -4704,7 +4886,7 @@ } } }, - "revision": "20240722", + "revision": "20240728", "rootUrl": "https://analyticsadmin.googleapis.com/", "schemas": { "GoogleAnalyticsAdminV1alphaAccessBetweenFilter": { @@ -7025,6 +7207,41 @@ }, "type": "object" }, + "GoogleAnalyticsAdminV1alphaEventEditRule": { + "description": "An Event Edit Rule defines conditions that will trigger the creation of an entirely new event based upon matched criteria of a source event. Additional mutations of the parameters from the source event can be defined. Unlike Event Create rules, Event Edit Rules are applied in their defined order. Event Edit rules can't be used to modify an event created from an Event Create rule.", + "id": "GoogleAnalyticsAdminV1alphaEventEditRule", + "properties": { + "displayName": { + "description": "Required. The display name of this event edit rule. Maximum of 255 characters.", + "type": "string" + }, + "eventConditions": { + "description": "Required. Conditions on the source event must match for this rule to be applied. Must have at least one condition, and can have up to 10 max.", + "items": { + "$ref": "GoogleAnalyticsAdminV1alphaMatchingCondition" + }, + "type": "array" + }, + "name": { + "description": "Identifier. Resource name for this EventEditRule resource. Format: properties/{property}/dataStreams/{data_stream}/eventEditRules/{event_edit_rule}", + "type": "string" + }, + "parameterMutations": { + "description": "Required. Parameter mutations define parameter behavior on the new event, and are applied in order. A maximum of 20 mutations can be applied.", + "items": { + "$ref": "GoogleAnalyticsAdminV1alphaParameterMutation" + }, + "type": "array" + }, + "processingOrder": { + "description": "Output only. The order for which this rule will be processed. Rules with an order value lower than this will be processed before this rule, rules with an order value higher than this will be processed after this rule. New event edit rules will be assigned an order value at the end of the order. This value does not apply to event create rules.", + "format": "int64", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleAnalyticsAdminV1alphaEventMapping": { "description": "Event setting conditions to match an event.", "id": "GoogleAnalyticsAdminV1alphaEventMapping", @@ -7779,6 +7996,24 @@ }, "type": "object" }, + "GoogleAnalyticsAdminV1alphaListEventEditRulesResponse": { + "description": "Response message for ListEventEditRules RPC.", + "id": "GoogleAnalyticsAdminV1alphaListEventEditRulesResponse", + "properties": { + "eventEditRules": { + "description": "List of EventEditRules. These will be ordered stably, but in an arbitrary order.", + "items": { + "$ref": "GoogleAnalyticsAdminV1alphaEventEditRule" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, "GoogleAnalyticsAdminV1alphaListExpandedDataSetsResponse": { "description": "Response message for ListExpandedDataSets RPC.", "id": "GoogleAnalyticsAdminV1alphaListExpandedDataSetsResponse", @@ -8297,6 +8532,20 @@ }, "type": "object" }, + "GoogleAnalyticsAdminV1alphaReorderEventEditRulesRequest": { + "description": "Request message for ReorderEventEditRules RPC.", + "id": "GoogleAnalyticsAdminV1alphaReorderEventEditRulesRequest", + "properties": { + "eventEditRules": { + "description": "Required. EventEditRule resource names for the specified data stream, in the needed processing order. All EventEditRules for the stream must be present in the list.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleAnalyticsAdminV1alphaRollupPropertySourceLink": { "description": "A link that references a source property under the parent rollup property.", "id": "GoogleAnalyticsAdminV1alphaRollupPropertySourceLink", diff --git a/analyticsadmin/v1alpha/analyticsadmin-gen.go b/analyticsadmin/v1alpha/analyticsadmin-gen.go index c087dd4bfcd..3b5b75eccc9 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-gen.go +++ b/analyticsadmin/v1alpha/analyticsadmin-gen.go @@ -356,6 +356,7 @@ type PropertiesCustomMetricsService struct { func NewPropertiesDataStreamsService(s *Service) *PropertiesDataStreamsService { rs := &PropertiesDataStreamsService{s: s} rs.EventCreateRules = NewPropertiesDataStreamsEventCreateRulesService(s) + rs.EventEditRules = NewPropertiesDataStreamsEventEditRulesService(s) rs.MeasurementProtocolSecrets = NewPropertiesDataStreamsMeasurementProtocolSecretsService(s) rs.SKAdNetworkConversionValueSchema = NewPropertiesDataStreamsSKAdNetworkConversionValueSchemaService(s) return rs @@ -366,6 +367,8 @@ type PropertiesDataStreamsService struct { EventCreateRules *PropertiesDataStreamsEventCreateRulesService + EventEditRules *PropertiesDataStreamsEventEditRulesService + MeasurementProtocolSecrets *PropertiesDataStreamsMeasurementProtocolSecretsService SKAdNetworkConversionValueSchema *PropertiesDataStreamsSKAdNetworkConversionValueSchemaService @@ -380,6 +383,15 @@ type PropertiesDataStreamsEventCreateRulesService struct { s *Service } +func NewPropertiesDataStreamsEventEditRulesService(s *Service) *PropertiesDataStreamsEventEditRulesService { + rs := &PropertiesDataStreamsEventEditRulesService{s: s} + return rs +} + +type PropertiesDataStreamsEventEditRulesService struct { + s *Service +} + func NewPropertiesDataStreamsMeasurementProtocolSecretsService(s *Service) *PropertiesDataStreamsMeasurementProtocolSecretsService { rs := &PropertiesDataStreamsMeasurementProtocolSecretsService{s: s} return rs @@ -3583,6 +3595,56 @@ func (s GoogleAnalyticsAdminV1alphaEventCreateRule) MarshalJSON() ([]byte, error return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleAnalyticsAdminV1alphaEventEditRule: An Event Edit Rule defines +// conditions that will trigger the creation of an entirely new event based +// upon matched criteria of a source event. Additional mutations of the +// parameters from the source event can be defined. Unlike Event Create rules, +// Event Edit Rules are applied in their defined order. Event Edit rules can't +// be used to modify an event created from an Event Create rule. +type GoogleAnalyticsAdminV1alphaEventEditRule struct { + // DisplayName: Required. The display name of this event edit rule. Maximum of + // 255 characters. + DisplayName string `json:"displayName,omitempty"` + // EventConditions: Required. Conditions on the source event must match for + // this rule to be applied. Must have at least one condition, and can have up + // to 10 max. + EventConditions []*GoogleAnalyticsAdminV1alphaMatchingCondition `json:"eventConditions,omitempty"` + // Name: Identifier. Resource name for this EventEditRule resource. Format: + // properties/{property}/dataStreams/{data_stream}/eventEditRules/{event_edit_ru + // le} + Name string `json:"name,omitempty"` + // ParameterMutations: Required. Parameter mutations define parameter behavior + // on the new event, and are applied in order. A maximum of 20 mutations can be + // applied. + ParameterMutations []*GoogleAnalyticsAdminV1alphaParameterMutation `json:"parameterMutations,omitempty"` + // ProcessingOrder: Output only. The order for which this rule will be + // processed. Rules with an order value lower than this will be processed + // before this rule, rules with an order value higher than this will be + // processed after this rule. New event edit rules will be assigned an order + // value at the end of the order. This value does not apply to event create + // rules. + ProcessingOrder int64 `json:"processingOrder,omitempty,string"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "DisplayName") 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. "DisplayName") 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 GoogleAnalyticsAdminV1alphaEventEditRule) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaEventEditRule + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleAnalyticsAdminV1alphaEventMapping: Event setting conditions to match // an event. type GoogleAnalyticsAdminV1alphaEventMapping struct { @@ -4748,6 +4810,36 @@ func (s GoogleAnalyticsAdminV1alphaListEventCreateRulesResponse) MarshalJSON() ( return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleAnalyticsAdminV1alphaListEventEditRulesResponse: Response message for +// ListEventEditRules RPC. +type GoogleAnalyticsAdminV1alphaListEventEditRulesResponse struct { + // EventEditRules: List of EventEditRules. These will be ordered stably, but in + // an arbitrary order. + EventEditRules []*GoogleAnalyticsAdminV1alphaEventEditRule `json:"eventEditRules,omitempty"` + // NextPageToken: A token, which can be sent as `page_token` to retrieve the + // next page. If this field is omitted, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "EventEditRules") 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. "EventEditRules") 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 GoogleAnalyticsAdminV1alphaListEventEditRulesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaListEventEditRulesResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleAnalyticsAdminV1alphaListExpandedDataSetsResponse: Response message // for ListExpandedDataSets RPC. type GoogleAnalyticsAdminV1alphaListExpandedDataSetsResponse struct { @@ -5441,6 +5533,31 @@ func (s GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse) MarshalJSON() return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleAnalyticsAdminV1alphaReorderEventEditRulesRequest: Request message for +// ReorderEventEditRules RPC. +type GoogleAnalyticsAdminV1alphaReorderEventEditRulesRequest struct { + // EventEditRules: Required. EventEditRule resource names for the specified + // data stream, in the needed processing order. All EventEditRules for the + // stream must be present in the list. + EventEditRules []string `json:"eventEditRules,omitempty"` + // ForceSendFields is a list of field names (e.g. "EventEditRules") 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. "EventEditRules") 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 GoogleAnalyticsAdminV1alphaReorderEventEditRulesRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleAnalyticsAdminV1alphaReorderEventEditRulesRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleAnalyticsAdminV1alphaRollupPropertySourceLink: A link that references // a source property under the parent rollup property. type GoogleAnalyticsAdminV1alphaRollupPropertySourceLink struct { @@ -17585,6 +17702,675 @@ func (c *PropertiesDataStreamsEventCreateRulesPatchCall) Do(opts ...googleapi.Ca return ret, nil } +type PropertiesDataStreamsEventEditRulesCreateCall struct { + s *Service + parent string + googleanalyticsadminv1alphaeventeditrule *GoogleAnalyticsAdminV1alphaEventEditRule + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates an EventEditRule. +// +// - parent: Example format: properties/123/dataStreams/456. +func (r *PropertiesDataStreamsEventEditRulesService) Create(parent string, googleanalyticsadminv1alphaeventeditrule *GoogleAnalyticsAdminV1alphaEventEditRule) *PropertiesDataStreamsEventEditRulesCreateCall { + c := &PropertiesDataStreamsEventEditRulesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleanalyticsadminv1alphaeventeditrule = googleanalyticsadminv1alphaeventeditrule + 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 *PropertiesDataStreamsEventEditRulesCreateCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsEventEditRulesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *PropertiesDataStreamsEventEditRulesCreateCall) Context(ctx context.Context) *PropertiesDataStreamsEventEditRulesCreateCall { + 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 *PropertiesDataStreamsEventEditRulesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesDataStreamsEventEditRulesCreateCall) 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.googleanalyticsadminv1alphaeventeditrule) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/eventEditRules") + 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 "analyticsadmin.properties.dataStreams.eventEditRules.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleAnalyticsAdminV1alphaEventEditRule.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 *PropertiesDataStreamsEventEditRulesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaEventEditRule, 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 := &GoogleAnalyticsAdminV1alphaEventEditRule{ + 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 PropertiesDataStreamsEventEditRulesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes an EventEditRule. +// +// - name: Example format: properties/123/dataStreams/456/eventEditRules/789. +func (r *PropertiesDataStreamsEventEditRulesService) Delete(name string) *PropertiesDataStreamsEventEditRulesDeleteCall { + c := &PropertiesDataStreamsEventEditRulesDeleteCall{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 *PropertiesDataStreamsEventEditRulesDeleteCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsEventEditRulesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *PropertiesDataStreamsEventEditRulesDeleteCall) Context(ctx context.Context) *PropertiesDataStreamsEventEditRulesDeleteCall { + 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 *PropertiesDataStreamsEventEditRulesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesDataStreamsEventEditRulesDeleteCall) 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, "v1alpha/{+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 "analyticsadmin.properties.dataStreams.eventEditRules.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 *PropertiesDataStreamsEventEditRulesDeleteCall) 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 PropertiesDataStreamsEventEditRulesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Lookup for a single EventEditRule. +// +// - name: The name of the EventEditRule to get. Example format: +// properties/123/dataStreams/456/eventEditRules/789. +func (r *PropertiesDataStreamsEventEditRulesService) Get(name string) *PropertiesDataStreamsEventEditRulesGetCall { + c := &PropertiesDataStreamsEventEditRulesGetCall{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 *PropertiesDataStreamsEventEditRulesGetCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsEventEditRulesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *PropertiesDataStreamsEventEditRulesGetCall) IfNoneMatch(entityTag string) *PropertiesDataStreamsEventEditRulesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *PropertiesDataStreamsEventEditRulesGetCall) Context(ctx context.Context) *PropertiesDataStreamsEventEditRulesGetCall { + 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 *PropertiesDataStreamsEventEditRulesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesDataStreamsEventEditRulesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.properties.dataStreams.eventEditRules.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleAnalyticsAdminV1alphaEventEditRule.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 *PropertiesDataStreamsEventEditRulesGetCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaEventEditRule, 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 := &GoogleAnalyticsAdminV1alphaEventEditRule{ + 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 PropertiesDataStreamsEventEditRulesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists EventEditRules on a web data stream. +// +// - parent: Example format: properties/123/dataStreams/456. +func (r *PropertiesDataStreamsEventEditRulesService) List(parent string) *PropertiesDataStreamsEventEditRulesListCall { + c := &PropertiesDataStreamsEventEditRulesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// resources to return. If unspecified, at most 50 resources will be returned. +// The maximum value is 200 (higher values will be coerced to the maximum). +func (c *PropertiesDataStreamsEventEditRulesListCall) PageSize(pageSize int64) *PropertiesDataStreamsEventEditRulesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListEventEditRules` call. Provide this to retrieve the +// subsequent page. When paginating, all other parameters provided to +// `ListEventEditRules` must match the call that provided the page token. +func (c *PropertiesDataStreamsEventEditRulesListCall) PageToken(pageToken string) *PropertiesDataStreamsEventEditRulesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *PropertiesDataStreamsEventEditRulesListCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsEventEditRulesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *PropertiesDataStreamsEventEditRulesListCall) IfNoneMatch(entityTag string) *PropertiesDataStreamsEventEditRulesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *PropertiesDataStreamsEventEditRulesListCall) Context(ctx context.Context) *PropertiesDataStreamsEventEditRulesListCall { + 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 *PropertiesDataStreamsEventEditRulesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesDataStreamsEventEditRulesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/eventEditRules") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.properties.dataStreams.eventEditRules.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleAnalyticsAdminV1alphaListEventEditRulesResponse.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 *PropertiesDataStreamsEventEditRulesListCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaListEventEditRulesResponse, 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 := &GoogleAnalyticsAdminV1alphaListEventEditRulesResponse{ + 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 +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *PropertiesDataStreamsEventEditRulesListCall) Pages(ctx context.Context, f func(*GoogleAnalyticsAdminV1alphaListEventEditRulesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type PropertiesDataStreamsEventEditRulesPatchCall struct { + s *Service + name string + googleanalyticsadminv1alphaeventeditrule *GoogleAnalyticsAdminV1alphaEventEditRule + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates an EventEditRule. +// +// - name: Identifier. Resource name for this EventEditRule resource. Format: +// properties/{property}/dataStreams/{data_stream}/eventEditRules/{event_edit_ +// rule}. +func (r *PropertiesDataStreamsEventEditRulesService) Patch(name string, googleanalyticsadminv1alphaeventeditrule *GoogleAnalyticsAdminV1alphaEventEditRule) *PropertiesDataStreamsEventEditRulesPatchCall { + c := &PropertiesDataStreamsEventEditRulesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleanalyticsadminv1alphaeventeditrule = googleanalyticsadminv1alphaeventeditrule + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The list of +// fields to be updated. Field names must be in snake case (e.g., +// "field_to_update"). Omitted fields will not be updated. To replace the +// entire entity, use one path with the string "*" to match all fields. +func (c *PropertiesDataStreamsEventEditRulesPatchCall) UpdateMask(updateMask string) *PropertiesDataStreamsEventEditRulesPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *PropertiesDataStreamsEventEditRulesPatchCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsEventEditRulesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *PropertiesDataStreamsEventEditRulesPatchCall) Context(ctx context.Context) *PropertiesDataStreamsEventEditRulesPatchCall { + 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 *PropertiesDataStreamsEventEditRulesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesDataStreamsEventEditRulesPatchCall) 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.googleanalyticsadminv1alphaeventeditrule) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "analyticsadmin.properties.dataStreams.eventEditRules.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleAnalyticsAdminV1alphaEventEditRule.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 *PropertiesDataStreamsEventEditRulesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaEventEditRule, 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 := &GoogleAnalyticsAdminV1alphaEventEditRule{ + 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 PropertiesDataStreamsEventEditRulesReorderCall struct { + s *Service + parent string + googleanalyticsadminv1alphareordereventeditrulesrequest *GoogleAnalyticsAdminV1alphaReorderEventEditRulesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Reorder: Changes the processing order of event edit rules on the specified +// stream. +// +// - parent: Example format: properties/123/dataStreams/456. +func (r *PropertiesDataStreamsEventEditRulesService) Reorder(parent string, googleanalyticsadminv1alphareordereventeditrulesrequest *GoogleAnalyticsAdminV1alphaReorderEventEditRulesRequest) *PropertiesDataStreamsEventEditRulesReorderCall { + c := &PropertiesDataStreamsEventEditRulesReorderCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleanalyticsadminv1alphareordereventeditrulesrequest = googleanalyticsadminv1alphareordereventeditrulesrequest + 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 *PropertiesDataStreamsEventEditRulesReorderCall) Fields(s ...googleapi.Field) *PropertiesDataStreamsEventEditRulesReorderCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *PropertiesDataStreamsEventEditRulesReorderCall) Context(ctx context.Context) *PropertiesDataStreamsEventEditRulesReorderCall { + 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 *PropertiesDataStreamsEventEditRulesReorderCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesDataStreamsEventEditRulesReorderCall) 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.googleanalyticsadminv1alphareordereventeditrulesrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/eventEditRules:reorder") + 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 "analyticsadmin.properties.dataStreams.eventEditRules.reorder" 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 *PropertiesDataStreamsEventEditRulesReorderCall) 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 PropertiesDataStreamsMeasurementProtocolSecretsCreateCall struct { s *Service parent string diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index 4f2f9c18fdb..124e779b833 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -1241,7 +1241,7 @@ } } }, - "revision": "20240723", + "revision": "20240725", "rootUrl": "https://chat.googleapis.com/", "schemas": { "AccessSettings": { @@ -1892,7 +1892,7 @@ }, "message": { "$ref": "Message", - "description": "The message that triggered the interaction event, if applicable." + "description": "For `ADDED_TO_SPACE`, `CARD_CLICKED`, and `MESSAGE` interaction events, the message that triggered the interaction event, if applicable." }, "space": { "$ref": "Space", diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 94959aa1bd1..f4465648e1f 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -1321,7 +1321,8 @@ type DeprecatedEvent struct { // the user is interacting with or about to interact with a dialog // (https://developers.google.com/workspace/chat/dialogs). IsDialogEvent bool `json:"isDialogEvent,omitempty"` - // Message: The message that triggered the interaction event, if applicable. + // Message: For `ADDED_TO_SPACE`, `CARD_CLICKED`, and `MESSAGE` interaction + // events, the message that triggered the interaction event, if applicable. Message *Message `json:"message,omitempty"` // Space: The space in which the user interacted with the Chat app. Space *Space `json:"space,omitempty"` diff --git a/cloudchannel/v1/cloudchannel-api.json b/cloudchannel/v1/cloudchannel-api.json index 0b92f2e573b..7180fa700f8 100644 --- a/cloudchannel/v1/cloudchannel-api.json +++ b/cloudchannel/v1/cloudchannel-api.json @@ -148,12 +148,17 @@ ], "parameters": { "account": { - "description": "Required. Resource name of the account.", + "description": "Optional. Resource name of the account.", "location": "path", "pattern": "^accounts/[^/]+$", "required": true, "type": "string" }, + "integrator": { + "description": "Optional. Resource name of the integrator.", + "location": "query", + "type": "string" + }, "pageSize": { "description": "Optional. The maximum number of service accounts to return. The service may return fewer than this value. If unspecified, returns at most 100 service accounts. The maximum value is 1000; the server will coerce values above 1000.", "format": "int32", @@ -240,7 +245,7 @@ ], "parameters": { "account": { - "description": "Required. Resource name of the account.", + "description": "Optional. Resource name of the account.", "location": "path", "pattern": "^accounts/[^/]+$", "required": true, @@ -268,7 +273,7 @@ ], "parameters": { "account": { - "description": "Required. Resource name of the account.", + "description": "Optional. Resource name of the account.", "location": "path", "pattern": "^accounts/[^/]+$", "required": true, @@ -1966,6 +1971,121 @@ } } }, + "integrators": { + "methods": { + "listSubscribers": { + "description": "Lists service accounts with subscriber privileges on the Cloud Pub/Sub topic created for this Channel Services account. Possible error codes: * PERMISSION_DENIED: The reseller account making the request and the provided reseller account are different, or the impersonated user is not a super admin. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: The topic resource doesn't exist. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: A list of service email addresses.", + "flatPath": "v1/integrators/{integratorsId}:listSubscribers", + "httpMethod": "GET", + "id": "cloudchannel.integrators.listSubscribers", + "parameterOrder": [ + "integrator" + ], + "parameters": { + "account": { + "description": "Optional. Resource name of the account.", + "location": "query", + "type": "string" + }, + "integrator": { + "description": "Optional. Resource name of the integrator.", + "location": "path", + "pattern": "^integrators/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of service accounts to return. The service may return fewer than this value. If unspecified, returns at most 100 service accounts. The maximum value is 1000; the server will coerce values above 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListSubscribers` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListSubscribers` must match the call that provided the page token.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+integrator}:listSubscribers", + "response": { + "$ref": "GoogleCloudChannelV1ListSubscribersResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/apps.order" + ] + }, + "register": { + "description": "Registers a service account with subscriber privileges on the Cloud Pub/Sub topic for this Channel Services account. After you create a subscriber, you get the events through SubscriberEvent Possible error codes: * PERMISSION_DENIED: The reseller account making the request and the provided reseller account are different, or the impersonated user is not a super admin. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The topic name with the registered service email address.", + "flatPath": "v1/integrators/{integratorsId}:register", + "httpMethod": "POST", + "id": "cloudchannel.integrators.register", + "parameterOrder": [ + "integrator" + ], + "parameters": { + "account": { + "description": "Optional. Resource name of the account.", + "location": "query", + "type": "string" + }, + "integrator": { + "description": "Optional. Resource name of the integrator.", + "location": "path", + "pattern": "^integrators/[^/]+$", + "required": true, + "type": "string" + }, + "serviceAccount": { + "description": "Required. Service account that provides subscriber access to the registered topic.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+integrator}:register", + "response": { + "$ref": "GoogleCloudChannelV1RegisterSubscriberResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/apps.order" + ] + }, + "unregister": { + "description": "Unregisters a service account with subscriber privileges on the Cloud Pub/Sub topic created for this Channel Services account. If there are no service accounts left with subscriber privileges, this deletes the topic. You can call ListSubscribers to check for these accounts. Possible error codes: * PERMISSION_DENIED: The reseller account making the request and the provided reseller account are different, or the impersonated user is not a super admin. * INVALID_ARGUMENT: Required request parameters are missing or invalid. * NOT_FOUND: The topic resource doesn't exist. * INTERNAL: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a technical issue in the backend. Contact Cloud Channel support. Return value: The topic name that unregistered the service email address. Returns a success response if the service email address wasn't registered with the topic.", + "flatPath": "v1/integrators/{integratorsId}:unregister", + "httpMethod": "POST", + "id": "cloudchannel.integrators.unregister", + "parameterOrder": [ + "integrator" + ], + "parameters": { + "account": { + "description": "Optional. Resource name of the account.", + "location": "query", + "type": "string" + }, + "integrator": { + "description": "Optional. Resource name of the integrator.", + "location": "path", + "pattern": "^integrators/[^/]+$", + "required": true, + "type": "string" + }, + "serviceAccount": { + "description": "Required. Service account to unregister from subscriber access to the topic.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+integrator}:unregister", + "response": { + "$ref": "GoogleCloudChannelV1UnregisterSubscriberResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/apps.order" + ] + } + } + }, "operations": { "methods": { "cancel": { @@ -2183,7 +2303,7 @@ } } }, - "revision": "20240109", + "revision": "20240728", "rootUrl": "https://cloudchannel.googleapis.com/", "schemas": { "GoogleCloudChannelV1ActivateEntitlementRequest": { @@ -4217,6 +4337,10 @@ "description": "Request Message for RegisterSubscriber.", "id": "GoogleCloudChannelV1RegisterSubscriberRequest", "properties": { + "integrator": { + "description": "Optional. Resource name of the integrator.", + "type": "string" + }, "serviceAccount": { "description": "Required. Service account that provides subscriber access to the registered topic.", "type": "string" @@ -4791,6 +4915,10 @@ "description": "Request Message for UnregisterSubscriber.", "id": "GoogleCloudChannelV1UnregisterSubscriberRequest", "properties": { + "integrator": { + "description": "Optional. Resource name of the integrator.", + "type": "string" + }, "serviceAccount": { "description": "Required. Service account to unregister from subscriber access to the topic.", "type": "string" diff --git a/cloudchannel/v1/cloudchannel-gen.go b/cloudchannel/v1/cloudchannel-gen.go index 7b826f3e632..d6945143713 100644 --- a/cloudchannel/v1/cloudchannel-gen.go +++ b/cloudchannel/v1/cloudchannel-gen.go @@ -144,6 +144,7 @@ func New(client *http.Client) (*Service, error) { } s := &Service{client: client, BasePath: basePath} s.Accounts = NewAccountsService(s) + s.Integrators = NewIntegratorsService(s) s.Operations = NewOperationsService(s) s.Products = NewProductsService(s) return s, nil @@ -156,6 +157,8 @@ type Service struct { Accounts *AccountsService + Integrators *IntegratorsService + Operations *OperationsService Products *ProductsService @@ -309,6 +312,15 @@ type AccountsSkuGroupsBillableSkusService struct { s *Service } +func NewIntegratorsService(s *Service) *IntegratorsService { + rs := &IntegratorsService{s: s} + return rs +} + +type IntegratorsService struct { + s *Service +} + func NewOperationsService(s *Service) *OperationsService { rs := &OperationsService{s: s} return rs @@ -2897,18 +2909,20 @@ func (s GoogleCloudChannelV1QueryEligibleBillingAccountsResponse) MarshalJSON() // GoogleCloudChannelV1RegisterSubscriberRequest: Request Message for // RegisterSubscriber. type GoogleCloudChannelV1RegisterSubscriberRequest struct { + // Integrator: Optional. Resource name of the integrator. + Integrator string `json:"integrator,omitempty"` // ServiceAccount: Required. Service account that provides subscriber access to // the registered topic. ServiceAccount string `json:"serviceAccount,omitempty"` - // ForceSendFields is a list of field names (e.g. "ServiceAccount") to + // ForceSendFields is a list of field names (e.g. "Integrator") 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. "ServiceAccount") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "Integrator") 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:"-"` } @@ -3776,18 +3790,20 @@ func (s GoogleCloudChannelV1TrialSettings) MarshalJSON() ([]byte, error) { // GoogleCloudChannelV1UnregisterSubscriberRequest: Request Message for // UnregisterSubscriber. type GoogleCloudChannelV1UnregisterSubscriberRequest struct { + // Integrator: Optional. Resource name of the integrator. + Integrator string `json:"integrator,omitempty"` // ServiceAccount: Required. Service account to unregister from subscriber // access to the topic. ServiceAccount string `json:"serviceAccount,omitempty"` - // ForceSendFields is a list of field names (e.g. "ServiceAccount") to + // ForceSendFields is a list of field names (e.g. "Integrator") 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. "ServiceAccount") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See + // NullFields is a list of field names (e.g. "Integrator") 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:"-"` } @@ -5302,13 +5318,20 @@ type AccountsListSubscribersCall struct { // technical issue in the backend. Contact Cloud Channel support. Return value: // A list of service email addresses. // -// - account: Resource name of the account. +// - account: Optional. Resource name of the account. func (r *AccountsService) ListSubscribers(account string) *AccountsListSubscribersCall { c := &AccountsListSubscribersCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.account = account return c } +// Integrator sets the optional parameter "integrator": Resource name of the +// integrator. +func (c *AccountsListSubscribersCall) Integrator(integrator string) *AccountsListSubscribersCall { + c.urlParams_.Set("integrator", integrator) + return c +} + // PageSize sets the optional parameter "pageSize": The maximum number of // service accounts to return. The service may return fewer than this value. If // unspecified, returns at most 100 service accounts. The maximum value is @@ -5724,7 +5747,7 @@ type AccountsRegisterCall struct { // related to a technical issue in the backend. Contact Cloud Channel support. // Return value: The topic name with the registered service email address. // -// - account: Resource name of the account. +// - account: Optional. Resource name of the account. func (r *AccountsService) Register(account string, googlecloudchannelv1registersubscriberrequest *GoogleCloudChannelV1RegisterSubscriberRequest) *AccountsRegisterCall { c := &AccountsRegisterCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.account = account @@ -5838,7 +5861,7 @@ type AccountsUnregisterCall struct { // that unregistered the service email address. Returns a success response if // the service email address wasn't registered with the topic. // -// - account: Resource name of the account. +// - account: Optional. Resource name of the account. func (r *AccountsService) Unregister(account string, googlecloudchannelv1unregistersubscriberrequest *GoogleCloudChannelV1UnregisterSubscriberRequest) *AccountsUnregisterCall { c := &AccountsUnregisterCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.account = account @@ -12431,6 +12454,407 @@ func (c *AccountsSkuGroupsBillableSkusListCall) Pages(ctx context.Context, f fun } } +type IntegratorsListSubscribersCall struct { + s *Service + integrator string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// ListSubscribers: Lists service accounts with subscriber privileges on the +// Cloud Pub/Sub topic created for this Channel Services account. Possible +// error codes: * PERMISSION_DENIED: The reseller account making the request +// and the provided reseller account are different, or the impersonated user is +// not a super admin. * INVALID_ARGUMENT: Required request parameters are +// missing or invalid. * NOT_FOUND: The topic resource doesn't exist. * +// INTERNAL: Any non-user error related to a technical issue in the backend. +// Contact Cloud Channel support. * UNKNOWN: Any non-user error related to a +// technical issue in the backend. Contact Cloud Channel support. Return value: +// A list of service email addresses. +// +// - integrator: Optional. Resource name of the integrator. +func (r *IntegratorsService) ListSubscribers(integrator string) *IntegratorsListSubscribersCall { + c := &IntegratorsListSubscribersCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.integrator = integrator + return c +} + +// Account sets the optional parameter "account": Resource name of the account. +func (c *IntegratorsListSubscribersCall) Account(account string) *IntegratorsListSubscribersCall { + c.urlParams_.Set("account", account) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// service accounts to return. The service may return fewer than this value. If +// unspecified, returns at most 100 service accounts. The maximum value is +// 1000; the server will coerce values above 1000. +func (c *IntegratorsListSubscribersCall) PageSize(pageSize int64) *IntegratorsListSubscribersCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListSubscribers` call. Provide this to retrieve the +// subsequent page. When paginating, all other parameters provided to +// `ListSubscribers` must match the call that provided the page token. +func (c *IntegratorsListSubscribersCall) PageToken(pageToken string) *IntegratorsListSubscribersCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *IntegratorsListSubscribersCall) Fields(s ...googleapi.Field) *IntegratorsListSubscribersCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *IntegratorsListSubscribersCall) IfNoneMatch(entityTag string) *IntegratorsListSubscribersCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *IntegratorsListSubscribersCall) Context(ctx context.Context) *IntegratorsListSubscribersCall { + 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 *IntegratorsListSubscribersCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *IntegratorsListSubscribersCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+integrator}:listSubscribers") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "integrator": c.integrator, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "cloudchannel.integrators.listSubscribers" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudChannelV1ListSubscribersResponse.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 *IntegratorsListSubscribersCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1ListSubscribersResponse, 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 := &GoogleCloudChannelV1ListSubscribersResponse{ + 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 +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *IntegratorsListSubscribersCall) Pages(ctx context.Context, f func(*GoogleCloudChannelV1ListSubscribersResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type IntegratorsRegisterCall struct { + s *Service + integrator string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Register: Registers a service account with subscriber privileges on the +// Cloud Pub/Sub topic for this Channel Services account. After you create a +// subscriber, you get the events through SubscriberEvent Possible error codes: +// * PERMISSION_DENIED: The reseller account making the request and the +// provided reseller account are different, or the impersonated user is not a +// super admin. * INVALID_ARGUMENT: Required request parameters are missing or +// invalid. * INTERNAL: Any non-user error related to a technical issue in the +// backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error +// related to a technical issue in the backend. Contact Cloud Channel support. +// Return value: The topic name with the registered service email address. +// +// - integrator: Optional. Resource name of the integrator. +func (r *IntegratorsService) Register(integrator string) *IntegratorsRegisterCall { + c := &IntegratorsRegisterCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.integrator = integrator + return c +} + +// Account sets the optional parameter "account": Resource name of the account. +func (c *IntegratorsRegisterCall) Account(account string) *IntegratorsRegisterCall { + c.urlParams_.Set("account", account) + return c +} + +// ServiceAccount sets the optional parameter "serviceAccount": Required. +// Service account that provides subscriber access to the registered topic. +func (c *IntegratorsRegisterCall) ServiceAccount(serviceAccount string) *IntegratorsRegisterCall { + c.urlParams_.Set("serviceAccount", serviceAccount) + 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 *IntegratorsRegisterCall) Fields(s ...googleapi.Field) *IntegratorsRegisterCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *IntegratorsRegisterCall) Context(ctx context.Context) *IntegratorsRegisterCall { + 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 *IntegratorsRegisterCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *IntegratorsRegisterCall) 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/{+integrator}:register") + 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{ + "integrator": c.integrator, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "cloudchannel.integrators.register" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudChannelV1RegisterSubscriberResponse.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 *IntegratorsRegisterCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1RegisterSubscriberResponse, 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 := &GoogleCloudChannelV1RegisterSubscriberResponse{ + 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 IntegratorsUnregisterCall struct { + s *Service + integrator string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Unregister: Unregisters a service account with subscriber privileges on the +// Cloud Pub/Sub topic created for this Channel Services account. If there are +// no service accounts left with subscriber privileges, this deletes the topic. +// You can call ListSubscribers to check for these accounts. Possible error +// codes: * PERMISSION_DENIED: The reseller account making the request and the +// provided reseller account are different, or the impersonated user is not a +// super admin. * INVALID_ARGUMENT: Required request parameters are missing or +// invalid. * NOT_FOUND: The topic resource doesn't exist. * INTERNAL: Any +// non-user error related to a technical issue in the backend. Contact Cloud +// Channel support. * UNKNOWN: Any non-user error related to a technical issue +// in the backend. Contact Cloud Channel support. Return value: The topic name +// that unregistered the service email address. Returns a success response if +// the service email address wasn't registered with the topic. +// +// - integrator: Optional. Resource name of the integrator. +func (r *IntegratorsService) Unregister(integrator string) *IntegratorsUnregisterCall { + c := &IntegratorsUnregisterCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.integrator = integrator + return c +} + +// Account sets the optional parameter "account": Resource name of the account. +func (c *IntegratorsUnregisterCall) Account(account string) *IntegratorsUnregisterCall { + c.urlParams_.Set("account", account) + return c +} + +// ServiceAccount sets the optional parameter "serviceAccount": Required. +// Service account to unregister from subscriber access to the topic. +func (c *IntegratorsUnregisterCall) ServiceAccount(serviceAccount string) *IntegratorsUnregisterCall { + c.urlParams_.Set("serviceAccount", serviceAccount) + 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 *IntegratorsUnregisterCall) Fields(s ...googleapi.Field) *IntegratorsUnregisterCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *IntegratorsUnregisterCall) Context(ctx context.Context) *IntegratorsUnregisterCall { + 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 *IntegratorsUnregisterCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *IntegratorsUnregisterCall) 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/{+integrator}:unregister") + 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{ + "integrator": c.integrator, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "cloudchannel.integrators.unregister" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudChannelV1UnregisterSubscriberResponse.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 *IntegratorsUnregisterCall) Do(opts ...googleapi.CallOption) (*GoogleCloudChannelV1UnregisterSubscriberResponse, 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 := &GoogleCloudChannelV1UnregisterSubscriberResponse{ + 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 OperationsCancelCall struct { s *Service name string diff --git a/cloudkms/v1/cloudkms-api.json b/cloudkms/v1/cloudkms-api.json index ecbfa4e5052..b13f9308e06 100644 --- a/cloudkms/v1/cloudkms-api.json +++ b/cloudkms/v1/cloudkms-api.json @@ -38,6 +38,21 @@ "description": "Regional Endpoint", "endpointUrl": "https://cloudkms.us-east1.rep.googleapis.com/", "location": "us-east1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://cloudkms.us-east4.rep.googleapis.com/", + "location": "us-east4" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://cloudkms.us-west2.rep.googleapis.com/", + "location": "us-west2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://cloudkms.us-west1.rep.googleapis.com/", + "location": "us-west1" } ], "fullyEncodeReservedExpansion": true, @@ -2061,7 +2076,7 @@ } } }, - "revision": "20240613", + "revision": "20240723", "rootUrl": "https://cloudkms.googleapis.com/", "schemas": { "AsymmetricDecryptRequest": { @@ -2378,7 +2393,7 @@ "type": "string" }, "destroyScheduledDuration": { - "description": "Immutable. The period of time that versions of this key spend in the DESTROY_SCHEDULED state before transitioning to DESTROYED. If not specified at creation time, the default duration is 24 hours.", + "description": "Immutable. The period of time that versions of this key spend in the DESTROY_SCHEDULED state before transitioning to DESTROYED. If not specified at creation time, the default duration is 30 days.", "format": "google-duration", "type": "string" }, diff --git a/cloudkms/v1/cloudkms-gen.go b/cloudkms/v1/cloudkms-gen.go index fbcc5774175..f0feb4b5373 100644 --- a/cloudkms/v1/cloudkms-gen.go +++ b/cloudkms/v1/cloudkms-gen.go @@ -815,8 +815,8 @@ type CryptoKey struct { CryptoKeyBackend string `json:"cryptoKeyBackend,omitempty"` // DestroyScheduledDuration: Immutable. The period of time that versions of // this key spend in the DESTROY_SCHEDULED state before transitioning to - // DESTROYED. If not specified at creation time, the default duration is 24 - // hours. + // DESTROYED. If not specified at creation time, the default duration is 30 + // days. DestroyScheduledDuration string `json:"destroyScheduledDuration,omitempty"` // ImportOnly: Immutable. Whether this key may contain imported versions only. ImportOnly bool `json:"importOnly,omitempty"` diff --git a/dialogflow/v2/dialogflow-api.json b/dialogflow/v2/dialogflow-api.json index 645e4f90249..5399e4753f6 100644 --- a/dialogflow/v2/dialogflow-api.json +++ b/dialogflow/v2/dialogflow-api.json @@ -8714,7 +8714,7 @@ } } }, - "revision": "20240721", + "revision": "20240724", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -8783,7 +8783,7 @@ "type": "boolean" }, "enableStackdriverLogging": { - "description": "Enables StackDriver logging.", + "description": "Enables Google Cloud Logging.", "type": "boolean" } }, @@ -9097,7 +9097,7 @@ "id": "GoogleCloudDialogflowCxV3DeployFlowResponse", "properties": { "deployment": { - "description": "The name of the flow version Deployment. Format: `projects//locations//agents// environments//deployments/`.", + "description": "The name of the flow version Deployment. Format: `projects//locations//agents//environments//deployments/`.", "type": "string" }, "environment": { @@ -9175,7 +9175,7 @@ "type": "boolean" }, "testCases": { - "description": "A list of test case names to run. They should be under the same agent. Format of each test case name: `projects//locations/ /agents//testCases/`", + "description": "A list of test case names to run. They should be under the same agent. Format of each test case name: `projects//locations//agents//testCases/`", "items": { "type": "string" }, @@ -10450,7 +10450,7 @@ "description": "The latest test result." }, "name": { - "description": "The unique identifier of the test case. TestCases.CreateTestCase will populate the name automatically. Otherwise use format: `projects//locations//agents/ /testCases/`.", + "description": "The unique identifier of the test case. TestCases.CreateTestCase will populate the name automatically. Otherwise use format: `projects//locations//agents//testCases/`.", "type": "string" }, "notes": { @@ -10509,7 +10509,7 @@ "type": "string" }, "name": { - "description": "The resource name for the test case result. Format: `projects//locations//agents//testCases/ /results/`.", + "description": "The resource name for the test case result. Format: `projects//locations//agents//testCases//results/`.", "type": "string" }, "testResult": { @@ -11181,7 +11181,7 @@ "type": "boolean" }, "enableStackdriverLogging": { - "description": "Enables StackDriver logging.", + "description": "Enables Google Cloud Logging.", "type": "boolean" } }, @@ -11495,7 +11495,7 @@ "id": "GoogleCloudDialogflowCxV3beta1DeployFlowResponse", "properties": { "deployment": { - "description": "The name of the flow version deployment. Format: `projects//locations//agents// environments//deployments/`.", + "description": "The name of the flow version deployment. Format: `projects//locations//agents//environments//deployments/`.", "type": "string" }, "environment": { @@ -11573,7 +11573,7 @@ "type": "boolean" }, "testCases": { - "description": "A list of test case names to run. They should be under the same agent. Format of each test case name: `projects//locations/ /agents//testCases/`", + "description": "A list of test case names to run. They should be under the same agent. Format of each test case name: `projects//locations//agents//testCases/`", "items": { "type": "string" }, @@ -12840,7 +12840,7 @@ "description": "The latest test result." }, "name": { - "description": "The unique identifier of the test case. TestCases.CreateTestCase will populate the name automatically. Otherwise use format: `projects//locations//agents/ /testCases/`.", + "description": "The unique identifier of the test case. TestCases.CreateTestCase will populate the name automatically. Otherwise use format: `projects//locations//agents//testCases/`.", "type": "string" }, "notes": { @@ -12899,7 +12899,7 @@ "type": "string" }, "name": { - "description": "The resource name for the test case result. Format: `projects//locations//agents//testCases/ /results/`.", + "description": "The resource name for the test case result. Format: `projects//locations//agents//testCases//results/`.", "type": "string" }, "testResult": { @@ -18694,13 +18694,6 @@ "description": "Configures speech transcription for ConversationProfile.", "id": "GoogleCloudDialogflowV2SpeechToTextConfig", "properties": { - "alternativeLanguageCodes": { - "description": "Defines the list of other language codes in addition to the one provided by the conversation profile that may be detected as the language code for the utterances over the conversation. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes.", - "items": { - "type": "string" - }, - "type": "array" - }, "audioEncoding": { "description": "Audio encoding of the audio content to process.", "enum": [ diff --git a/dialogflow/v2/dialogflow-gen.go b/dialogflow/v2/dialogflow-gen.go index 48023fe2269..c0b1e1cd625 100644 --- a/dialogflow/v2/dialogflow-gen.go +++ b/dialogflow/v2/dialogflow-gen.go @@ -1020,7 +1020,7 @@ type GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings struct { EnableConsentBasedRedaction bool `json:"enableConsentBasedRedaction,omitempty"` // EnableInteractionLogging: Enables DF Interaction logging. EnableInteractionLogging bool `json:"enableInteractionLogging,omitempty"` - // EnableStackdriverLogging: Enables StackDriver logging. + // EnableStackdriverLogging: Enables Google Cloud Logging. EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"` // ForceSendFields is a list of field names (e.g. // "EnableConsentBasedRedaction") to unconditionally include in API requests. @@ -1489,7 +1489,7 @@ func (s GoogleCloudDialogflowCxV3DeployFlowMetadata) MarshalJSON() ([]byte, erro // Environments.DeployFlow. type GoogleCloudDialogflowCxV3DeployFlowResponse struct { // Deployment: The name of the flow version Deployment. Format: - // `projects//locations//agents// environments//deployments/`. + // `projects//locations//agents//environments//deployments/`. Deployment string `json:"deployment,omitempty"` // Environment: The updated environment where the flow is deployed. Environment *GoogleCloudDialogflowCxV3Environment `json:"environment,omitempty"` @@ -1593,8 +1593,8 @@ type GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig struct { // environment. Default false. EnablePredeploymentRun bool `json:"enablePredeploymentRun,omitempty"` // TestCases: A list of test case names to run. They should be under the same - // agent. Format of each test case name: `projects//locations/ - // /agents//testCases/` + // agent. Format of each test case name: + // `projects//locations//agents//testCases/` TestCases []string `json:"testCases,omitempty"` // ForceSendFields is a list of field names (e.g. "EnableContinuousRun") to // unconditionally include in API requests. By default, fields with empty or @@ -3542,7 +3542,7 @@ type GoogleCloudDialogflowCxV3TestCase struct { LastTestResult *GoogleCloudDialogflowCxV3TestCaseResult `json:"lastTestResult,omitempty"` // Name: The unique identifier of the test case. TestCases.CreateTestCase will // populate the name automatically. Otherwise use format: - // `projects//locations//agents/ /testCases/`. + // `projects//locations//agents//testCases/`. Name string `json:"name,omitempty"` // Notes: Additional freeform notes about the test case. Limit of 400 // characters. @@ -3609,7 +3609,7 @@ type GoogleCloudDialogflowCxV3TestCaseResult struct { // the draft environment. Environment string `json:"environment,omitempty"` // Name: The resource name for the test case result. Format: - // `projects//locations//agents//testCases/ /results/`. + // `projects//locations//agents//testCases//results/`. Name string `json:"name,omitempty"` // TestResult: Whether the test case passed in the agent environment. // @@ -4463,7 +4463,7 @@ type GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings struct { EnableConsentBasedRedaction bool `json:"enableConsentBasedRedaction,omitempty"` // EnableInteractionLogging: Enables DF Interaction logging. EnableInteractionLogging bool `json:"enableInteractionLogging,omitempty"` - // EnableStackdriverLogging: Enables StackDriver logging. + // EnableStackdriverLogging: Enables Google Cloud Logging. EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"` // ForceSendFields is a list of field names (e.g. // "EnableConsentBasedRedaction") to unconditionally include in API requests. @@ -4932,7 +4932,7 @@ func (s GoogleCloudDialogflowCxV3beta1DeployFlowMetadata) MarshalJSON() ([]byte, // Environments.DeployFlow. type GoogleCloudDialogflowCxV3beta1DeployFlowResponse struct { // Deployment: The name of the flow version deployment. Format: - // `projects//locations//agents// environments//deployments/`. + // `projects//locations//agents//environments//deployments/`. Deployment string `json:"deployment,omitempty"` // Environment: The updated environment where the flow is deployed. Environment *GoogleCloudDialogflowCxV3beta1Environment `json:"environment,omitempty"` @@ -5037,8 +5037,8 @@ type GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig struct { // environment. Default false. EnablePredeploymentRun bool `json:"enablePredeploymentRun,omitempty"` // TestCases: A list of test case names to run. They should be under the same - // agent. Format of each test case name: `projects//locations/ - // /agents//testCases/` + // agent. Format of each test case name: + // `projects//locations//agents//testCases/` TestCases []string `json:"testCases,omitempty"` // ForceSendFields is a list of field names (e.g. "EnableContinuousRun") to // unconditionally include in API requests. By default, fields with empty or @@ -6984,7 +6984,7 @@ type GoogleCloudDialogflowCxV3beta1TestCase struct { LastTestResult *GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"lastTestResult,omitempty"` // Name: The unique identifier of the test case. TestCases.CreateTestCase will // populate the name automatically. Otherwise use format: - // `projects//locations//agents/ /testCases/`. + // `projects//locations//agents//testCases/`. Name string `json:"name,omitempty"` // Notes: Additional freeform notes about the test case. Limit of 400 // characters. @@ -7052,7 +7052,7 @@ type GoogleCloudDialogflowCxV3beta1TestCaseResult struct { // the draft environment. Environment string `json:"environment,omitempty"` // Name: The resource name for the test case result. Format: - // `projects//locations//agents//testCases/ /results/`. + // `projects//locations//agents//testCases//results/`. Name string `json:"name,omitempty"` // TestResult: Whether the test case passed in the agent environment. // @@ -15175,13 +15175,6 @@ func (s *GoogleCloudDialogflowV2SpeechContext) UnmarshalJSON(data []byte) error // GoogleCloudDialogflowV2SpeechToTextConfig: Configures speech transcription // for ConversationProfile. type GoogleCloudDialogflowV2SpeechToTextConfig struct { - // AlternativeLanguageCodes: Defines the list of other language codes in - // addition to the one provided by the conversation profile that may be - // detected as the language code for the utterances over the conversation. See - // Language Support - // (https://cloud.google.com/dialogflow/docs/reference/language) for a list of - // the currently supported language codes. - AlternativeLanguageCodes []string `json:"alternativeLanguageCodes,omitempty"` // AudioEncoding: Audio encoding of the audio content to process. // // Possible values: @@ -15276,15 +15269,15 @@ type GoogleCloudDialogflowV2SpeechToTextConfig struct { // UseTimeoutBasedEndpointing: Use timeout based endpointing, interpreting // endpointer sensitivy as seconds of timeout value. UseTimeoutBasedEndpointing bool `json:"useTimeoutBasedEndpointing,omitempty"` - // ForceSendFields is a list of field names (e.g. "AlternativeLanguageCodes") - // to unconditionally include in API requests. By default, fields with empty or + // ForceSendFields is a list of field names (e.g. "AudioEncoding") 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. "AlternativeLanguageCodes") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "AudioEncoding") 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:"-"` } diff --git a/dialogflow/v2beta1/dialogflow-api.json b/dialogflow/v2beta1/dialogflow-api.json index c73a5f14e63..1d9da16ff47 100644 --- a/dialogflow/v2beta1/dialogflow-api.json +++ b/dialogflow/v2beta1/dialogflow-api.json @@ -8082,7 +8082,7 @@ } } }, - "revision": "20240721", + "revision": "20240724", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -8151,7 +8151,7 @@ "type": "boolean" }, "enableStackdriverLogging": { - "description": "Enables StackDriver logging.", + "description": "Enables Google Cloud Logging.", "type": "boolean" } }, @@ -8465,7 +8465,7 @@ "id": "GoogleCloudDialogflowCxV3DeployFlowResponse", "properties": { "deployment": { - "description": "The name of the flow version Deployment. Format: `projects//locations//agents// environments//deployments/`.", + "description": "The name of the flow version Deployment. Format: `projects//locations//agents//environments//deployments/`.", "type": "string" }, "environment": { @@ -8543,7 +8543,7 @@ "type": "boolean" }, "testCases": { - "description": "A list of test case names to run. They should be under the same agent. Format of each test case name: `projects//locations/ /agents//testCases/`", + "description": "A list of test case names to run. They should be under the same agent. Format of each test case name: `projects//locations//agents//testCases/`", "items": { "type": "string" }, @@ -9818,7 +9818,7 @@ "description": "The latest test result." }, "name": { - "description": "The unique identifier of the test case. TestCases.CreateTestCase will populate the name automatically. Otherwise use format: `projects//locations//agents/ /testCases/`.", + "description": "The unique identifier of the test case. TestCases.CreateTestCase will populate the name automatically. Otherwise use format: `projects//locations//agents//testCases/`.", "type": "string" }, "notes": { @@ -9877,7 +9877,7 @@ "type": "string" }, "name": { - "description": "The resource name for the test case result. Format: `projects//locations//agents//testCases/ /results/`.", + "description": "The resource name for the test case result. Format: `projects//locations//agents//testCases//results/`.", "type": "string" }, "testResult": { @@ -10549,7 +10549,7 @@ "type": "boolean" }, "enableStackdriverLogging": { - "description": "Enables StackDriver logging.", + "description": "Enables Google Cloud Logging.", "type": "boolean" } }, @@ -10863,7 +10863,7 @@ "id": "GoogleCloudDialogflowCxV3beta1DeployFlowResponse", "properties": { "deployment": { - "description": "The name of the flow version deployment. Format: `projects//locations//agents// environments//deployments/`.", + "description": "The name of the flow version deployment. Format: `projects//locations//agents//environments//deployments/`.", "type": "string" }, "environment": { @@ -10941,7 +10941,7 @@ "type": "boolean" }, "testCases": { - "description": "A list of test case names to run. They should be under the same agent. Format of each test case name: `projects//locations/ /agents//testCases/`", + "description": "A list of test case names to run. They should be under the same agent. Format of each test case name: `projects//locations//agents//testCases/`", "items": { "type": "string" }, @@ -12208,7 +12208,7 @@ "description": "The latest test result." }, "name": { - "description": "The unique identifier of the test case. TestCases.CreateTestCase will populate the name automatically. Otherwise use format: `projects//locations//agents/ /testCases/`.", + "description": "The unique identifier of the test case. TestCases.CreateTestCase will populate the name automatically. Otherwise use format: `projects//locations//agents//testCases/`.", "type": "string" }, "notes": { @@ -12267,7 +12267,7 @@ "type": "string" }, "name": { - "description": "The resource name for the test case result. Format: `projects//locations//agents//testCases/ /results/`.", + "description": "The resource name for the test case result. Format: `projects//locations//agents//testCases//results/`.", "type": "string" }, "testResult": { @@ -20521,13 +20521,6 @@ "description": "Configures speech transcription for ConversationProfile.", "id": "GoogleCloudDialogflowV2beta1SpeechToTextConfig", "properties": { - "alternativeLanguageCodes": { - "description": "Defines the list of other language codes in addition to the one provided by the conversation profile that may be detected as the language code for the utterances over the conversation. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes.", - "items": { - "type": "string" - }, - "type": "array" - }, "audioEncoding": { "description": "Audio encoding of the audio content to process.", "enum": [ diff --git a/dialogflow/v2beta1/dialogflow-gen.go b/dialogflow/v2beta1/dialogflow-gen.go index 089ec2652ab..18387ea9318 100644 --- a/dialogflow/v2beta1/dialogflow-gen.go +++ b/dialogflow/v2beta1/dialogflow-gen.go @@ -948,7 +948,7 @@ type GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings struct { EnableConsentBasedRedaction bool `json:"enableConsentBasedRedaction,omitempty"` // EnableInteractionLogging: Enables DF Interaction logging. EnableInteractionLogging bool `json:"enableInteractionLogging,omitempty"` - // EnableStackdriverLogging: Enables StackDriver logging. + // EnableStackdriverLogging: Enables Google Cloud Logging. EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"` // ForceSendFields is a list of field names (e.g. // "EnableConsentBasedRedaction") to unconditionally include in API requests. @@ -1417,7 +1417,7 @@ func (s GoogleCloudDialogflowCxV3DeployFlowMetadata) MarshalJSON() ([]byte, erro // Environments.DeployFlow. type GoogleCloudDialogflowCxV3DeployFlowResponse struct { // Deployment: The name of the flow version Deployment. Format: - // `projects//locations//agents// environments//deployments/`. + // `projects//locations//agents//environments//deployments/`. Deployment string `json:"deployment,omitempty"` // Environment: The updated environment where the flow is deployed. Environment *GoogleCloudDialogflowCxV3Environment `json:"environment,omitempty"` @@ -1521,8 +1521,8 @@ type GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig struct { // environment. Default false. EnablePredeploymentRun bool `json:"enablePredeploymentRun,omitempty"` // TestCases: A list of test case names to run. They should be under the same - // agent. Format of each test case name: `projects//locations/ - // /agents//testCases/` + // agent. Format of each test case name: + // `projects//locations//agents//testCases/` TestCases []string `json:"testCases,omitempty"` // ForceSendFields is a list of field names (e.g. "EnableContinuousRun") to // unconditionally include in API requests. By default, fields with empty or @@ -3470,7 +3470,7 @@ type GoogleCloudDialogflowCxV3TestCase struct { LastTestResult *GoogleCloudDialogflowCxV3TestCaseResult `json:"lastTestResult,omitempty"` // Name: The unique identifier of the test case. TestCases.CreateTestCase will // populate the name automatically. Otherwise use format: - // `projects//locations//agents/ /testCases/`. + // `projects//locations//agents//testCases/`. Name string `json:"name,omitempty"` // Notes: Additional freeform notes about the test case. Limit of 400 // characters. @@ -3537,7 +3537,7 @@ type GoogleCloudDialogflowCxV3TestCaseResult struct { // the draft environment. Environment string `json:"environment,omitempty"` // Name: The resource name for the test case result. Format: - // `projects//locations//agents//testCases/ /results/`. + // `projects//locations//agents//testCases//results/`. Name string `json:"name,omitempty"` // TestResult: Whether the test case passed in the agent environment. // @@ -4391,7 +4391,7 @@ type GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings struct { EnableConsentBasedRedaction bool `json:"enableConsentBasedRedaction,omitempty"` // EnableInteractionLogging: Enables DF Interaction logging. EnableInteractionLogging bool `json:"enableInteractionLogging,omitempty"` - // EnableStackdriverLogging: Enables StackDriver logging. + // EnableStackdriverLogging: Enables Google Cloud Logging. EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"` // ForceSendFields is a list of field names (e.g. // "EnableConsentBasedRedaction") to unconditionally include in API requests. @@ -4860,7 +4860,7 @@ func (s GoogleCloudDialogflowCxV3beta1DeployFlowMetadata) MarshalJSON() ([]byte, // Environments.DeployFlow. type GoogleCloudDialogflowCxV3beta1DeployFlowResponse struct { // Deployment: The name of the flow version deployment. Format: - // `projects//locations//agents// environments//deployments/`. + // `projects//locations//agents//environments//deployments/`. Deployment string `json:"deployment,omitempty"` // Environment: The updated environment where the flow is deployed. Environment *GoogleCloudDialogflowCxV3beta1Environment `json:"environment,omitempty"` @@ -4965,8 +4965,8 @@ type GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig struct { // environment. Default false. EnablePredeploymentRun bool `json:"enablePredeploymentRun,omitempty"` // TestCases: A list of test case names to run. They should be under the same - // agent. Format of each test case name: `projects//locations/ - // /agents//testCases/` + // agent. Format of each test case name: + // `projects//locations//agents//testCases/` TestCases []string `json:"testCases,omitempty"` // ForceSendFields is a list of field names (e.g. "EnableContinuousRun") to // unconditionally include in API requests. By default, fields with empty or @@ -6912,7 +6912,7 @@ type GoogleCloudDialogflowCxV3beta1TestCase struct { LastTestResult *GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"lastTestResult,omitempty"` // Name: The unique identifier of the test case. TestCases.CreateTestCase will // populate the name automatically. Otherwise use format: - // `projects//locations//agents/ /testCases/`. + // `projects//locations//agents//testCases/`. Name string `json:"name,omitempty"` // Notes: Additional freeform notes about the test case. Limit of 400 // characters. @@ -6980,7 +6980,7 @@ type GoogleCloudDialogflowCxV3beta1TestCaseResult struct { // the draft environment. Environment string `json:"environment,omitempty"` // Name: The resource name for the test case result. Format: - // `projects//locations//agents//testCases/ /results/`. + // `projects//locations//agents//testCases//results/`. Name string `json:"name,omitempty"` // TestResult: Whether the test case passed in the agent environment. // @@ -18464,13 +18464,6 @@ func (s *GoogleCloudDialogflowV2beta1SpeechContext) UnmarshalJSON(data []byte) e // GoogleCloudDialogflowV2beta1SpeechToTextConfig: Configures speech // transcription for ConversationProfile. type GoogleCloudDialogflowV2beta1SpeechToTextConfig struct { - // AlternativeLanguageCodes: Defines the list of other language codes in - // addition to the one provided by the conversation profile that may be - // detected as the language code for the utterances over the conversation. See - // Language Support - // (https://cloud.google.com/dialogflow/docs/reference/language) for a list of - // the currently supported language codes. - AlternativeLanguageCodes []string `json:"alternativeLanguageCodes,omitempty"` // AudioEncoding: Audio encoding of the audio content to process. // // Possible values: @@ -18565,15 +18558,15 @@ type GoogleCloudDialogflowV2beta1SpeechToTextConfig struct { // UseTimeoutBasedEndpointing: Use timeout based endpointing, interpreting // endpointer sensitivy as seconds of timeout value. UseTimeoutBasedEndpointing bool `json:"useTimeoutBasedEndpointing,omitempty"` - // ForceSendFields is a list of field names (e.g. "AlternativeLanguageCodes") - // to unconditionally include in API requests. By default, fields with empty or + // ForceSendFields is a list of field names (e.g. "AudioEncoding") 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. "AlternativeLanguageCodes") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "AudioEncoding") 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:"-"` } diff --git a/docs/v1/docs-api.json b/docs/v1/docs-api.json index 1f4225c4378..55a86a4f913 100644 --- a/docs/v1/docs-api.json +++ b/docs/v1/docs-api.json @@ -184,7 +184,7 @@ "type": "string" }, "includeTabsContent": { - "description": "Whether to populate the Document.tabs field instead of the text content fields like body and documentStyle on Document. - When `True`: Document content populates in the Document.tabs field instead of the text content fields in Document. - When `False`: The content of the document's first tab populates the content fields in Document excluding Document.tabs. If a document has only one tab, then that tab is used to populate the document content. Document.tabs will be empty.", + "description": "Whether to populate the Document.tabs field instead of the text content fields like `body` and `documentStyle` on Document. - When `True`: Document content populates in the Document.tabs field instead of the text content fields in Document. - When `False`: The content of the document's first tab populates the content fields in Document excluding Document.tabs. If a document has only one tab, then that tab is used to populate the document content. Document.tabs will be empty.", "location": "query", "type": "boolean" }, @@ -221,7 +221,7 @@ } } }, - "revision": "20240722", + "revision": "20240726", "rootUrl": "https://docs.googleapis.com/", "schemas": { "AutoText": { diff --git a/docs/v1/docs-gen.go b/docs/v1/docs-gen.go index a2f42a32e4b..fde6e26b721 100644 --- a/docs/v1/docs-gen.go +++ b/docs/v1/docs-gen.go @@ -6137,7 +6137,7 @@ func (r *DocumentsService) Get(documentId string) *DocumentsGetCall { // IncludeTabsContent sets the optional parameter "includeTabsContent": Whether // to populate the Document.tabs field instead of the text content fields like -// body and documentStyle on Document. - When `True`: Document content +// `body` and `documentStyle` on Document. - When `True`: Document content // populates in the Document.tabs field instead of the text content fields in // Document. - When `False`: The content of the document's first tab populates // the content fields in Document excluding Document.tabs. If a document has diff --git a/go.work.sum b/go.work.sum index 12b89aa4482..0f00cb4aa68 100644 --- a/go.work.sum +++ b/go.work.sum @@ -35,6 +35,7 @@ cloud.google.com/go/compute v1.25.1 h1:ZRpHJedLtTpKgr3RV1Fx23NuaAEN1Zfx9hw1u4aJd cloud.google.com/go/compute v1.27.0 h1:EGawh2RUnfHT5g8f/FX3Ds6KZuIBC77hZoDrBvEZw94= cloud.google.com/go/compute v1.27.1 h1:0WbBLIPNANheCRZ4h8QhgzjN53KMutbiVBOLtPiVzBU= cloud.google.com/go/compute v1.27.2 h1:5cE5hdrwJV/92ravlwIFRGnyH9CpLGhh4N0ZDVTU+BA= +cloud.google.com/go/compute v1.27.4 h1:XM8ulx6crjdl09XBfji7viFgZOEQuIxBwKmjRH9Rtmc= cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/contactcenterinsights v1.13.0/go.mod h1:ieq5d5EtHsu8vhe2y3amtZ+BE+AQwX5qAy7cpo0POsI= cloud.google.com/go/container v1.31.0/go.mod h1:7yABn5s3Iv3lmw7oMmyGbeV6tQj86njcTijkkGuvdZA= diff --git a/merchantapi/accounts_v1beta/merchantapi-api.json b/merchantapi/accounts_v1beta/merchantapi-api.json index e0456993bb7..610b0bdfca1 100644 --- a/merchantapi/accounts_v1beta/merchantapi-api.json +++ b/merchantapi/accounts_v1beta/merchantapi-api.json @@ -279,69 +279,6 @@ } }, "resources": { - "accounttax": { - "methods": { - "get": { - "description": "Returns the tax rules that match the conditions of GetAccountTaxRequest", - "flatPath": "accounts/v1beta/accounts/{accountsId}/accounttax/{accounttaxId}", - "httpMethod": "GET", - "id": "merchantapi.accounts.accounttax.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name from which tax settings will be retrieved", - "location": "path", - "pattern": "^accounts/[^/]+/accounttax/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "accounts/v1beta/{+name}", - "response": { - "$ref": "AccountTax" - }, - "scopes": [ - "https://www.googleapis.com/auth/content" - ] - }, - "patch": { - "description": "Updates the tax settings of the account.", - "flatPath": "accounts/v1beta/accounts/{accountsId}/accounttax/{accounttaxId}", - "httpMethod": "PATCH", - "id": "merchantapi.accounts.accounttax.patch", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Identifier. The name of the tax setting. Format: \"{account_tax.name=accounts/{account}}\"", - "location": "path", - "pattern": "^accounts/[^/]+/accounttax/[^/]+$", - "required": true, - "type": "string" - }, - "updateMask": { - "description": "The list of fields to be updated", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "accounts/v1beta/{+name}", - "request": { - "$ref": "AccountTax" - }, - "response": { - "$ref": "AccountTax" - }, - "scopes": [ - "https://www.googleapis.com/auth/content" - ] - } - } - }, "businessIdentity": { "methods": { "getBusinessIdentity": { @@ -1417,7 +1354,7 @@ } } }, - "revision": "20240728", + "revision": "20240729", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "AcceptTermsOfService": { @@ -1538,30 +1475,6 @@ }, "type": "object" }, - "AccountTax": { - "description": "The tax settings of a merchant account. All methods require the admin role.", - "id": "AccountTax", - "properties": { - "account": { - "description": "Output only. The ID of the account to which these account tax settings belong.", - "format": "int64", - "readOnly": true, - "type": "string" - }, - "name": { - "description": "Identifier. The name of the tax setting. Format: \"{account_tax.name=accounts/{account}}\"", - "type": "string" - }, - "taxRules": { - "description": "Tax rules. \"Define the tax rules in each region. No tax will be presented if a region has no rule.\"", - "items": { - "$ref": "TaxRule" - }, - "type": "array" - } - }, - "type": "object" - }, "AddAccountService": { "description": "Additional instructions to add account services during creation of the account.", "id": "AddAccountService", @@ -2204,23 +2117,6 @@ }, "type": "object" }, - "Interval": { - "description": "Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.", - "id": "Interval", - "properties": { - "endTime": { - "description": "Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.", - "format": "google-datetime", - "type": "string" - }, - "startTime": { - "description": "Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.", - "format": "google-datetime", - "type": "string" - } - }, - "type": "object" - }, "ListAccountIssuesResponse": { "description": "Response message for the `ListAccountIssues` method.", "id": "ListAccountIssuesResponse", @@ -3208,58 +3104,6 @@ }, "type": "object" }, - "TaxPostalCodeRange": { - "description": "A range of postal codes that defines the area.", - "id": "TaxPostalCodeRange", - "properties": { - "end": { - "description": "The end of the postal code range. Will be the same as start if not specified.", - "type": "string" - }, - "start": { - "description": "Required. The start of the postal code range, which is also the smallest in the range.", - "type": "string" - } - }, - "type": "object" - }, - "TaxRule": { - "description": "Primary type convension percent micro : 100% = 1 000 000 and 1% = 10 000 cannot be negative. Information about tax nexus and related parameters applicable to orders delivered to the area covered by a single tax admin. Nexus is created when a merchant is doing business in an area administered by tax admin (only US states are supported for nexus configuration). If merchant has nexus in a US state, merchant needs to pay tax to all tax authorities associated with the shipping destination. Next Id : 8", - "id": "TaxRule", - "properties": { - "effectiveTimePeriod": { - "$ref": "Interval", - "description": "Required. Time period when this rule is effective. If the duration is missing from effective_time listed, then it is open ended to the future. The start of this time period is inclusive, and the end is exclusive." - }, - "locationId": { - "description": "The admin_id or criteria_id of the region in which this rule is applicable.", - "format": "int64", - "type": "string" - }, - "postCodeRange": { - "$ref": "TaxPostalCodeRange", - "description": "The range of postal codes in which this rule is applicable." - }, - "regionCode": { - "description": "Region code in which this rule is applicable", - "type": "string" - }, - "selfSpecifiedRateMicros": { - "description": "A fixed rate specified in micros, where 100% = 1_000_000. Suitable for origin-based states.", - "format": "int64", - "type": "string" - }, - "shippingTaxed": { - "description": "If set, shipping charge is taxed (at the same rate as product) when delivering to this admin's area. Can only be set on US states without category.", - "type": "boolean" - }, - "useGoogleRate": { - "description": "Rate that depends on delivery location: if merchant has a nexus in corresponding US state, rates from authorities with jurisdiction over delivery area are added up.", - "type": "boolean" - } - }, - "type": "object" - }, "TermsOfService": { "description": "A `TermsOfService`.", "id": "TermsOfService", diff --git a/merchantapi/accounts_v1beta/merchantapi-gen.go b/merchantapi/accounts_v1beta/merchantapi-gen.go index b78f365a20a..40ec5665b6e 100644 --- a/merchantapi/accounts_v1beta/merchantapi-gen.go +++ b/merchantapi/accounts_v1beta/merchantapi-gen.go @@ -158,7 +158,6 @@ func (s *APIService) userAgent() string { func NewAccountsService(s *APIService) *AccountsService { rs := &AccountsService{s: s} - rs.Accounttax = NewAccountsAccounttaxService(s) rs.BusinessIdentity = NewAccountsBusinessIdentityService(s) rs.BusinessInfo = NewAccountsBusinessInfoService(s) rs.Emailpreferences = NewAccountsEmailpreferencesService(s) @@ -176,8 +175,6 @@ func NewAccountsService(s *APIService) *AccountsService { type AccountsService struct { s *APIService - Accounttax *AccountsAccounttaxService - BusinessIdentity *AccountsBusinessIdentityService BusinessInfo *AccountsBusinessInfoService @@ -201,15 +198,6 @@ type AccountsService struct { Users *AccountsUsersService } -func NewAccountsAccounttaxService(s *APIService) *AccountsAccounttaxService { - rs := &AccountsAccounttaxService{s: s} - return rs -} - -type AccountsAccounttaxService struct { - s *APIService -} - func NewAccountsBusinessIdentityService(s *APIService) *AccountsBusinessIdentityService { rs := &AccountsBusinessIdentityService{s: s} return rs @@ -463,39 +451,6 @@ func (s AccountIssue) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AccountTax: The tax settings of a merchant account. All methods require the -// admin role. -type AccountTax struct { - // Account: Output only. The ID of the account to which these account tax - // settings belong. - Account int64 `json:"account,omitempty,string"` - // Name: Identifier. The name of the tax setting. Format: - // "{account_tax.name=accounts/{account}}" - Name string `json:"name,omitempty"` - // TaxRules: Tax rules. "Define the tax rules in each region. No tax will be - // presented if a region has no rule." - TaxRules []*TaxRule `json:"taxRules,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Account") 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. "Account") 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 AccountTax) MarshalJSON() ([]byte, error) { - type NoMethod AccountTax - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // AddAccountService: Additional instructions to add account services during // creation of the account. type AddAccountService struct { @@ -1290,37 +1245,6 @@ func (s ImpactedDestination) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// Interval: Represents a time interval, encoded as a Timestamp start -// (inclusive) and a Timestamp end (exclusive). The start must be less than or -// equal to the end. When the start equals the end, the interval is empty -// (matches no time). When both start and end are unspecified, the interval -// matches any time. -type Interval struct { - // EndTime: Optional. Exclusive end of the interval. If specified, a Timestamp - // matching this interval will have to be before the end. - EndTime string `json:"endTime,omitempty"` - // StartTime: Optional. Inclusive start of the interval. If specified, a - // Timestamp matching this interval will have to be the same or after the - // start. - StartTime string `json:"startTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "EndTime") 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. "EndTime") 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 Interval) MarshalJSON() ([]byte, error) { - type NoMethod Interval - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // ListAccountIssuesResponse: Response message for the `ListAccountIssues` // method. type ListAccountIssuesResponse struct { @@ -2639,82 +2563,6 @@ func (s Table) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// TaxPostalCodeRange: A range of postal codes that defines the area. -type TaxPostalCodeRange struct { - // End: The end of the postal code range. Will be the same as start if not - // specified. - End string `json:"end,omitempty"` - // Start: Required. The start of the postal code range, which is also the - // smallest in the range. - Start string `json:"start,omitempty"` - // ForceSendFields is a list of field names (e.g. "End") 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. "End") 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 TaxPostalCodeRange) MarshalJSON() ([]byte, error) { - type NoMethod TaxPostalCodeRange - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// TaxRule: Primary type convension percent micro : 100% = 1 000 000 and 1% = -// 10 000 cannot be negative. Information about tax nexus and related -// parameters applicable to orders delivered to the area covered by a single -// tax admin. Nexus is created when a merchant is doing business in an area -// administered by tax admin (only US states are supported for nexus -// configuration). If merchant has nexus in a US state, merchant needs to pay -// tax to all tax authorities associated with the shipping destination. Next Id -// : 8 -type TaxRule struct { - // EffectiveTimePeriod: Required. Time period when this rule is effective. If - // the duration is missing from effective_time listed, then it is open ended to - // the future. The start of this time period is inclusive, and the end is - // exclusive. - EffectiveTimePeriod *Interval `json:"effectiveTimePeriod,omitempty"` - // LocationId: The admin_id or criteria_id of the region in which this rule is - // applicable. - LocationId int64 `json:"locationId,omitempty,string"` - // PostCodeRange: The range of postal codes in which this rule is applicable. - PostCodeRange *TaxPostalCodeRange `json:"postCodeRange,omitempty"` - // RegionCode: Region code in which this rule is applicable - RegionCode string `json:"regionCode,omitempty"` - // SelfSpecifiedRateMicros: A fixed rate specified in micros, where 100% = - // 1_000_000. Suitable for origin-based states. - SelfSpecifiedRateMicros int64 `json:"selfSpecifiedRateMicros,omitempty,string"` - // ShippingTaxed: If set, shipping charge is taxed (at the same rate as - // product) when delivering to this admin's area. Can only be set on US states - // without category. - ShippingTaxed bool `json:"shippingTaxed,omitempty"` - // UseGoogleRate: Rate that depends on delivery location: if merchant has a - // nexus in corresponding US state, rates from authorities with jurisdiction - // over delivery area are added up. - UseGoogleRate bool `json:"useGoogleRate,omitempty"` - // ForceSendFields is a list of field names (e.g. "EffectiveTimePeriod") 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. "EffectiveTimePeriod") 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 TaxRule) MarshalJSON() ([]byte, error) { - type NoMethod TaxRule - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // TermsOfService: A `TermsOfService`. type TermsOfService struct { // External: Whether this terms of service version is external. External terms @@ -3864,222 +3712,6 @@ func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error) { return ret, nil } -type AccountsAccounttaxGetCall struct { - s *APIService - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Returns the tax rules that match the conditions of GetAccountTaxRequest -// -// - name: The name from which tax settings will be retrieved. -func (r *AccountsAccounttaxService) Get(name string) *AccountsAccounttaxGetCall { - c := &AccountsAccounttaxGetCall{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 *AccountsAccounttaxGetCall) Fields(s ...googleapi.Field) *AccountsAccounttaxGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets an optional parameter which makes the operation fail if the -// object's ETag matches the given value. This is useful for getting updates -// only after the object has changed since the last request. -func (c *AccountsAccounttaxGetCall) IfNoneMatch(entityTag string) *AccountsAccounttaxGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *AccountsAccounttaxGetCall) Context(ctx context.Context) *AccountsAccounttaxGetCall { - 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 *AccountsAccounttaxGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountsAccounttaxGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "merchantapi.accounts.accounttax.get" call. -// Any non-2xx status code is an error. Response headers are in either -// *AccountTax.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 *AccountsAccounttaxGetCall) Do(opts ...googleapi.CallOption) (*AccountTax, 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 := &AccountTax{ - 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 AccountsAccounttaxPatchCall struct { - s *APIService - name string - accounttax *AccountTax - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Patch: Updates the tax settings of the account. -// -// - name: Identifier. The name of the tax setting. Format: -// "{account_tax.name=accounts/{account}}". -func (r *AccountsAccounttaxService) Patch(name string, accounttax *AccountTax) *AccountsAccounttaxPatchCall { - c := &AccountsAccounttaxPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - c.accounttax = accounttax - return c -} - -// UpdateMask sets the optional parameter "updateMask": The list of fields to -// be updated -func (c *AccountsAccounttaxPatchCall) UpdateMask(updateMask string) *AccountsAccounttaxPatchCall { - c.urlParams_.Set("updateMask", updateMask) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *AccountsAccounttaxPatchCall) Fields(s ...googleapi.Field) *AccountsAccounttaxPatchCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *AccountsAccounttaxPatchCall) Context(ctx context.Context) *AccountsAccounttaxPatchCall { - 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 *AccountsAccounttaxPatchCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *AccountsAccounttaxPatchCall) 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.accounttax) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/v1beta/{+name}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "name": c.name, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "merchantapi.accounts.accounttax.patch" call. -// Any non-2xx status code is an error. Response headers are in either -// *AccountTax.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 *AccountsAccounttaxPatchCall) Do(opts ...googleapi.CallOption) (*AccountTax, 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 := &AccountTax{ - 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 AccountsBusinessIdentityGetBusinessIdentityCall struct { s *APIService name string diff --git a/networkservices/v1/networkservices-api.json b/networkservices/v1/networkservices-api.json index fcec8c8efa2..6280adc0dbe 100644 --- a/networkservices/v1/networkservices-api.json +++ b/networkservices/v1/networkservices-api.json @@ -581,7 +581,7 @@ ], "parameters": { "name": { - "description": "Required. Name of the EndpointPolicy resource. It matches pattern `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.", + "description": "Identifier. Name of the EndpointPolicy resource. It matches pattern `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/endpointPolicies/[^/]+$", "required": true, @@ -738,7 +738,7 @@ ], "parameters": { "name": { - "description": "Required. Name of the Gateway resource. It matches pattern `projects/*/locations/*/gateways/`.", + "description": "Identifier. Name of the Gateway resource. It matches pattern `projects/*/locations/*/gateways/`.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/gateways/[^/]+$", "required": true, @@ -895,7 +895,7 @@ ], "parameters": { "name": { - "description": "Required. Name of the GrpcRoute resource. It matches pattern `projects/*/locations/global/grpcRoutes/`", + "description": "Identifier. Name of the GrpcRoute resource. It matches pattern `projects/*/locations/global/grpcRoutes/`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/grpcRoutes/[^/]+$", "required": true, @@ -1052,7 +1052,7 @@ ], "parameters": { "name": { - "description": "Required. Name of the HttpRoute resource. It matches pattern `projects/*/locations/global/httpRoutes/http_route_name\u003e`.", + "description": "Identifier. Name of the HttpRoute resource. It matches pattern `projects/*/locations/global/httpRoutes/http_route_name\u003e`.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/httpRoutes/[^/]+$", "required": true, @@ -1573,7 +1573,7 @@ ], "parameters": { "name": { - "description": "Required. Name of the Mesh resource. It matches pattern `projects/*/locations/global/meshes/`.", + "description": "Identifier. Name of the Mesh resource. It matches pattern `projects/*/locations/global/meshes/`.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/meshes/[^/]+$", "required": true, @@ -2220,7 +2220,7 @@ ], "parameters": { "name": { - "description": "Required. Name of the TcpRoute resource. It matches pattern `projects/*/locations/global/tcpRoutes/tcp_route_name\u003e`.", + "description": "Identifier. Name of the TcpRoute resource. It matches pattern `projects/*/locations/global/tcpRoutes/tcp_route_name\u003e`.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/tcpRoutes/[^/]+$", "required": true, @@ -2408,7 +2408,7 @@ } } }, - "revision": "20240707", + "revision": "20240721", "rootUrl": "https://networkservices.googleapis.com/", "schemas": { "AuditConfig": { @@ -2581,7 +2581,7 @@ "type": "object" }, "name": { - "description": "Required. Name of the EndpointPolicy resource. It matches pattern `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.", + "description": "Identifier. Name of the EndpointPolicy resource. It matches pattern `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.", "type": "string" }, "serverTlsPolicy": { @@ -2799,7 +2799,7 @@ "type": "object" }, "name": { - "description": "Required. Name of the Gateway resource. It matches pattern `projects/*/locations/*/gateways/`.", + "description": "Identifier. Name of the Gateway resource. It matches pattern `projects/*/locations/*/gateways/`.", "type": "string" }, "network": { @@ -2897,7 +2897,7 @@ "type": "array" }, "name": { - "description": "Required. Name of the GrpcRoute resource. It matches pattern `projects/*/locations/global/grpcRoutes/`", + "description": "Identifier. Name of the GrpcRoute resource. It matches pattern `projects/*/locations/global/grpcRoutes/`", "type": "string" }, "rules": { @@ -3194,7 +3194,7 @@ "type": "array" }, "name": { - "description": "Required. Name of the HttpRoute resource. It matches pattern `projects/*/locations/global/httpRoutes/http_route_name\u003e`.", + "description": "Identifier. Name of the HttpRoute resource. It matches pattern `projects/*/locations/global/httpRoutes/http_route_name\u003e`.", "type": "string" }, "rules": { @@ -4181,7 +4181,7 @@ "type": "object" }, "name": { - "description": "Required. Name of the Mesh resource. It matches pattern `projects/*/locations/global/meshes/`.", + "description": "Identifier. Name of the Mesh resource. It matches pattern `projects/*/locations/global/meshes/`.", "type": "string" }, "selfLink": { @@ -4330,7 +4330,7 @@ "type": "object" }, "name": { - "description": "Required. Name of the ServiceBinding resource. It matches pattern `projects/*/locations/global/serviceBindings/service_binding_name`.", + "description": "Identifier. Name of the ServiceBinding resource. It matches pattern `projects/*/locations/global/serviceBindings/service_binding_name`.", "type": "string" }, "service": { @@ -4513,7 +4513,7 @@ "type": "array" }, "name": { - "description": "Required. Name of the TcpRoute resource. It matches pattern `projects/*/locations/global/tcpRoutes/tcp_route_name\u003e`.", + "description": "Identifier. Name of the TcpRoute resource. It matches pattern `projects/*/locations/global/tcpRoutes/tcp_route_name\u003e`.", "type": "string" }, "rules": { diff --git a/networkservices/v1/networkservices-gen.go b/networkservices/v1/networkservices-gen.go index 03d634dda29..b3355652ab6 100644 --- a/networkservices/v1/networkservices-gen.go +++ b/networkservices/v1/networkservices-gen.go @@ -671,7 +671,7 @@ type EndpointPolicy struct { // Labels: Optional. Set of label tags associated with the EndpointPolicy // resource. Labels map[string]string `json:"labels,omitempty"` - // Name: Required. Name of the EndpointPolicy resource. It matches pattern + // Name: Identifier. Name of the EndpointPolicy resource. It matches pattern // `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`. Name string `json:"name,omitempty"` // ServerTlsPolicy: Optional. A URL referring to ServerTlsPolicy resource. @@ -953,7 +953,7 @@ type Gateway struct { IpVersion string `json:"ipVersion,omitempty"` // Labels: Optional. Set of label tags associated with the Gateway resource. Labels map[string]string `json:"labels,omitempty"` - // Name: Required. Name of the Gateway resource. It matches pattern + // Name: Identifier. Name of the Gateway resource. It matches pattern // `projects/*/locations/*/gateways/`. Name string `json:"name,omitempty"` // Network: Optional. The relative resource name identifying the VPC network @@ -1058,7 +1058,7 @@ type GrpcRoute struct { // Each mesh reference should match the pattern: // `projects/*/locations/global/meshes/` Meshes []string `json:"meshes,omitempty"` - // Name: Required. Name of the GrpcRoute resource. It matches pattern + // Name: Identifier. Name of the GrpcRoute resource. It matches pattern // `projects/*/locations/global/grpcRoutes/` Name string `json:"name,omitempty"` // Rules: Required. A list of detailed rules defining how to route traffic. @@ -1486,7 +1486,7 @@ type HttpRoute struct { // `projects/*/locations/global/meshes/` The attached Mesh should be of a type // SIDECAR Meshes []string `json:"meshes,omitempty"` - // Name: Required. Name of the HttpRoute resource. It matches pattern + // Name: Identifier. Name of the HttpRoute resource. It matches pattern // `projects/*/locations/global/httpRoutes/http_route_name>`. Name string `json:"name,omitempty"` // Rules: Required. Rules that define how traffic is routed and handled. Rules @@ -2804,7 +2804,7 @@ type Mesh struct { InterceptionPort int64 `json:"interceptionPort,omitempty"` // Labels: Optional. Set of label tags associated with the Mesh resource. Labels map[string]string `json:"labels,omitempty"` - // Name: Required. Name of the Mesh resource. It matches pattern + // Name: Identifier. Name of the Mesh resource. It matches pattern // `projects/*/locations/global/meshes/`. Name string `json:"name,omitempty"` // SelfLink: Output only. Server-defined URL of this resource @@ -3020,7 +3020,7 @@ type ServiceBinding struct { // Labels: Optional. Set of label tags associated with the ServiceBinding // resource. Labels map[string]string `json:"labels,omitempty"` - // Name: Required. Name of the ServiceBinding resource. It matches pattern + // Name: Identifier. Name of the ServiceBinding resource. It matches pattern // `projects/*/locations/global/serviceBindings/service_binding_name`. Name string `json:"name,omitempty"` // Service: Required. The full Service Directory Service name of the format @@ -3254,7 +3254,7 @@ type TcpRoute struct { // `projects/*/locations/global/meshes/` The attached Mesh should be of a type // SIDECAR Meshes []string `json:"meshes,omitempty"` - // Name: Required. Name of the TcpRoute resource. It matches pattern + // Name: Identifier. Name of the TcpRoute resource. It matches pattern // `projects/*/locations/global/tcpRoutes/tcp_route_name>`. Name string `json:"name,omitempty"` // Rules: Required. Rules that define how traffic is routed and handled. At @@ -5413,7 +5413,7 @@ type ProjectsLocationsEndpointPoliciesPatchCall struct { // Patch: Updates the parameters of a single EndpointPolicy. // -// - name: Name of the EndpointPolicy resource. It matches pattern +// - name: Identifier. Name of the EndpointPolicy resource. It matches pattern // `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`. func (r *ProjectsLocationsEndpointPoliciesService) Patch(name string, endpointpolicy *EndpointPolicy) *ProjectsLocationsEndpointPoliciesPatchCall { c := &ProjectsLocationsEndpointPoliciesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -5985,7 +5985,7 @@ type ProjectsLocationsGatewaysPatchCall struct { // Patch: Updates the parameters of a single Gateway. // -// - name: Name of the Gateway resource. It matches pattern +// - name: Identifier. Name of the Gateway resource. It matches pattern // `projects/*/locations/*/gateways/`. func (r *ProjectsLocationsGatewaysService) Patch(name string, gateway *Gateway) *ProjectsLocationsGatewaysPatchCall { c := &ProjectsLocationsGatewaysPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -6556,7 +6556,7 @@ type ProjectsLocationsGrpcRoutesPatchCall struct { // Patch: Updates the parameters of a single GrpcRoute. // -// - name: Name of the GrpcRoute resource. It matches pattern +// - name: Identifier. Name of the GrpcRoute resource. It matches pattern // `projects/*/locations/global/grpcRoutes/`. func (r *ProjectsLocationsGrpcRoutesService) Patch(name string, grpcroute *GrpcRoute) *ProjectsLocationsGrpcRoutesPatchCall { c := &ProjectsLocationsGrpcRoutesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -7128,7 +7128,7 @@ type ProjectsLocationsHttpRoutesPatchCall struct { // Patch: Updates the parameters of a single HttpRoute. // -// - name: Name of the HttpRoute resource. It matches pattern +// - name: Identifier. Name of the HttpRoute resource. It matches pattern // `projects/*/locations/global/httpRoutes/http_route_name>`. func (r *ProjectsLocationsHttpRoutesService) Patch(name string, httproute *HttpRoute) *ProjectsLocationsHttpRoutesPatchCall { c := &ProjectsLocationsHttpRoutesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -8981,7 +8981,7 @@ type ProjectsLocationsMeshesPatchCall struct { // Patch: Updates the parameters of a single Mesh. // -// - name: Name of the Mesh resource. It matches pattern +// - name: Identifier. Name of the Mesh resource. It matches pattern // `projects/*/locations/global/meshes/`. func (r *ProjectsLocationsMeshesService) Patch(name string, mesh *Mesh) *ProjectsLocationsMeshesPatchCall { c := &ProjectsLocationsMeshesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -11396,7 +11396,7 @@ type ProjectsLocationsTcpRoutesPatchCall struct { // Patch: Updates the parameters of a single TcpRoute. // -// - name: Name of the TcpRoute resource. It matches pattern +// - name: Identifier. Name of the TcpRoute resource. It matches pattern // `projects/*/locations/global/tcpRoutes/tcp_route_name>`. func (r *ProjectsLocationsTcpRoutesService) Patch(name string, tcproute *TcpRoute) *ProjectsLocationsTcpRoutesPatchCall { c := &ProjectsLocationsTcpRoutesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} diff --git a/networkservices/v1beta1/networkservices-api.json b/networkservices/v1beta1/networkservices-api.json index 72c250dec68..20609daf9c0 100644 --- a/networkservices/v1beta1/networkservices-api.json +++ b/networkservices/v1beta1/networkservices-api.json @@ -177,6 +177,188 @@ } }, "resources": { + "authzExtensions": { + "methods": { + "create": { + "description": "Creates a new `AuthzExtension` resource in a given project and location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/authzExtensions", + "httpMethod": "POST", + "id": "networkservices.projects.locations.authzExtensions.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "authzExtensionId": { + "description": "Required. User-provided ID of the `AuthzExtension` resource to be created.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent resource of the `AuthzExtension` resource. Must be in the format `projects/{project}/locations/{location}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+parent}/authzExtensions", + "request": { + "$ref": "AuthzExtension" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes the specified `AuthzExtension` resource.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/authzExtensions/{authzExtensionsId}", + "httpMethod": "DELETE", + "id": "networkservices.projects.locations.authzExtensions.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the `AuthzExtension` resource to delete. Must be in the format `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authzExtensions/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of the specified `AuthzExtension` resource.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/authzExtensions/{authzExtensionsId}", + "httpMethod": "GET", + "id": "networkservices.projects.locations.authzExtensions.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. A name of the `AuthzExtension` resource to get. Must be in the format `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authzExtensions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "response": { + "$ref": "AuthzExtension" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists `AuthzExtension` resources in a given project and location.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/authzExtensions", + "httpMethod": "GET", + "id": "networkservices.projects.locations.authzExtensions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filtering results.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Hint for how to order the results.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Requested page size. The server might return fewer items than requested. If unspecified, the server picks an appropriate default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results that the server returns.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The project and location from which the `AuthzExtension` resources are listed, specified in the following format: `projects/{project}/locations/{location}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+parent}/authzExtensions", + "response": { + "$ref": "ListAuthzExtensionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the parameters of the specified `AuthzExtension` resource.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/authzExtensions/{authzExtensionsId}", + "httpMethod": "PATCH", + "id": "networkservices.projects.locations.authzExtensions.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Identifier. Name of the `AuthzExtension` resource in the following format: `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/authzExtensions/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server can ignore the request if it has already been completed. The server guarantees that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Required. Used to specify the fields to be overwritten in the `AuthzExtension` resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "request": { + "$ref": "AuthzExtension" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "endpointPolicies": { "methods": { "create": { @@ -308,7 +490,7 @@ ], "parameters": { "name": { - "description": "Required. Name of the EndpointPolicy resource. It matches pattern `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.", + "description": "Identifier. Name of the EndpointPolicy resource. It matches pattern `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/endpointPolicies/[^/]+$", "required": true, @@ -465,7 +647,7 @@ ], "parameters": { "name": { - "description": "Required. Name of the Gateway resource. It matches pattern `projects/*/locations/*/gateways/`.", + "description": "Identifier. Name of the Gateway resource. It matches pattern `projects/*/locations/*/gateways/`.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/gateways/[^/]+$", "required": true, @@ -622,7 +804,7 @@ ], "parameters": { "name": { - "description": "Required. Name of the GrpcRoute resource. It matches pattern `projects/*/locations/global/grpcRoutes/`", + "description": "Identifier. Name of the GrpcRoute resource. It matches pattern `projects/*/locations/global/grpcRoutes/`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/grpcRoutes/[^/]+$", "required": true, @@ -779,7 +961,7 @@ ], "parameters": { "name": { - "description": "Required. Name of the HttpRoute resource. It matches pattern `projects/*/locations/global/httpRoutes/http_route_name\u003e`.", + "description": "Identifier. Name of the HttpRoute resource. It matches pattern `projects/*/locations/global/httpRoutes/http_route_name\u003e`.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/httpRoutes/[^/]+$", "required": true, @@ -1300,7 +1482,7 @@ ], "parameters": { "name": { - "description": "Required. Name of the Mesh resource. It matches pattern `projects/*/locations/global/meshes/`.", + "description": "Identifier. Name of the Mesh resource. It matches pattern `projects/*/locations/global/meshes/`.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/meshes/[^/]+$", "required": true, @@ -1947,7 +2129,7 @@ ], "parameters": { "name": { - "description": "Required. Name of the TcpRoute resource. It matches pattern `projects/*/locations/global/tcpRoutes/tcp_route_name\u003e`.", + "description": "Identifier. Name of the TcpRoute resource. It matches pattern `projects/*/locations/global/tcpRoutes/tcp_route_name\u003e`.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/tcpRoutes/[^/]+$", "required": true, @@ -2135,7 +2317,7 @@ } } }, - "revision": "20240707", + "revision": "20240721", "rootUrl": "https://networkservices.googleapis.com/", "schemas": { "AuditConfig": { @@ -2186,6 +2368,98 @@ }, "type": "object" }, + "AuthzExtension": { + "description": "`AuthzExtension` is a resource that allows traffic forwarding to a callout backend to make an authorization decision.", + "id": "AuthzExtension", + "properties": { + "authority": { + "description": "Required. The `:authority` header in the gRPC request sent from Envoy to the extension service.", + "type": "string" + }, + "createTime": { + "description": "Output only. The timestamp when the resource was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Optional. A human-readable description of the resource.", + "type": "string" + }, + "failOpen": { + "description": "Optional. Determines how the proxy behaves if the call to the extension fails or times out. When set to `TRUE`, request or response processing continues without error. Any subsequent extensions in the extension chain are also executed. When set to `FALSE` or the default setting of `FALSE` is used, one of the following happens: * If response headers have not been delivered to the downstream client, a generic 500 error is returned to the client. The error response can be tailored by configuring a custom error response in the load balancer. * If response headers have been delivered, then the HTTP stream to the downstream client is reset.", + "type": "boolean" + }, + "forwardHeaders": { + "description": "Optional. List of the HTTP headers to forward to the extension (from the client). If omitted, all headers are sent. Each element is a string indicating the header name.", + "items": { + "type": "string" + }, + "type": "array" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Set of labels associated with the `AuthzExtension` resource. The format must comply with [the requirements for labels](/compute/docs/labeling-resources#requirements) for Google Cloud resources.", + "type": "object" + }, + "loadBalancingScheme": { + "description": "Required. All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. Supported values: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to [Choosing a load balancer](https://cloud.google.com/load-balancing/docs/backend-service).", + "enum": [ + "LOAD_BALANCING_SCHEME_UNSPECIFIED", + "INTERNAL_MANAGED", + "EXTERNAL_MANAGED" + ], + "enumDescriptions": [ + "Default value. Do not use.", + "Signifies that this is used for Internal HTTP(S) Load Balancing.", + "Signifies that this is used for External Managed HTTP(S) Load Balancing." + ], + "type": "string" + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. The metadata provided here is included as part of the `metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The metadata is available under the namespace `com.google.authz_extension.`. The following variables are supported in the metadata Struct: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name.", + "type": "object" + }, + "name": { + "description": "Required. Identifier. Name of the `AuthzExtension` resource in the following format: `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`.", + "type": "string" + }, + "service": { + "description": "Required. The reference to the service that runs the extension. Currently only callout extensions are supported here. To configure a callout extension, `service` must be a fully-qualified reference to a [backend service](https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) in the format: `https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}` or `https://www.googleapis.com/compute/v1/projects/{project}/global/backendServices/{backendService}`.", + "type": "string" + }, + "timeout": { + "description": "Required. Specifies the timeout for each individual message on the stream. The timeout must be between 10-10000 milliseconds.", + "format": "google-duration", + "type": "string" + }, + "updateTime": { + "description": "Output only. The timestamp when the resource was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "wireFormat": { + "description": "Optional. The format of communication supported by the callout extension. If not specified, the default is `EXT_PROC_GRPC`.", + "enum": [ + "WIRE_FORMAT_UNSPECIFIED", + "EXT_PROC_GRPC" + ], + "enumDescriptions": [ + "Not specified.", + "The extension service uses ExtProc GRPC API." + ], + "type": "string" + } + }, + "type": "object" + }, "Binding": { "description": "Associates `members`, or principals, with a `role`.", "id": "Binding", @@ -2265,7 +2539,7 @@ "type": "object" }, "name": { - "description": "Required. Name of the EndpointPolicy resource. It matches pattern `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.", + "description": "Identifier. Name of the EndpointPolicy resource. It matches pattern `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.", "type": "string" }, "serverTlsPolicy": { @@ -2483,7 +2757,7 @@ "type": "object" }, "name": { - "description": "Required. Name of the Gateway resource. It matches pattern `projects/*/locations/*/gateways/`.", + "description": "Identifier. Name of the Gateway resource. It matches pattern `projects/*/locations/*/gateways/`.", "type": "string" }, "network": { @@ -2581,7 +2855,7 @@ "type": "array" }, "name": { - "description": "Required. Name of the GrpcRoute resource. It matches pattern `projects/*/locations/global/grpcRoutes/`", + "description": "Identifier. Name of the GrpcRoute resource. It matches pattern `projects/*/locations/global/grpcRoutes/`", "type": "string" }, "rules": { @@ -2878,7 +3152,7 @@ "type": "array" }, "name": { - "description": "Required. Name of the HttpRoute resource. It matches pattern `projects/*/locations/global/httpRoutes/http_route_name\u003e`.", + "description": "Identifier. Name of the HttpRoute resource. It matches pattern `projects/*/locations/global/httpRoutes/http_route_name\u003e`.", "type": "string" }, "rules": { @@ -3535,6 +3809,31 @@ }, "type": "object" }, + "ListAuthzExtensionsResponse": { + "description": "Message for response to listing `AuthzExtension` resources.", + "id": "ListAuthzExtensionsResponse", + "properties": { + "authzExtensions": { + "description": "The list of `AuthzExtension` resources.", + "items": { + "$ref": "AuthzExtension" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results that the server returns.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "ListEndpointPoliciesResponse": { "description": "Response returned by the ListEndpointPolicies method.", "id": "ListEndpointPoliciesResponse", @@ -3865,7 +4164,7 @@ "type": "object" }, "name": { - "description": "Required. Name of the Mesh resource. It matches pattern `projects/*/locations/global/meshes/`.", + "description": "Identifier. Name of the Mesh resource. It matches pattern `projects/*/locations/global/meshes/`.", "type": "string" }, "selfLink": { @@ -4057,7 +4356,7 @@ "type": "object" }, "name": { - "description": "Required. Name of the ServiceBinding resource. It matches pattern `projects/*/locations/global/serviceBindings/service_binding_name`.", + "description": "Identifier. Name of the ServiceBinding resource. It matches pattern `projects/*/locations/global/serviceBindings/service_binding_name`.", "type": "string" }, "service": { @@ -4240,7 +4539,7 @@ "type": "array" }, "name": { - "description": "Required. Name of the TcpRoute resource. It matches pattern `projects/*/locations/global/tcpRoutes/tcp_route_name\u003e`.", + "description": "Identifier. Name of the TcpRoute resource. It matches pattern `projects/*/locations/global/tcpRoutes/tcp_route_name\u003e`.", "type": "string" }, "rules": { diff --git a/networkservices/v1beta1/networkservices-gen.go b/networkservices/v1beta1/networkservices-gen.go index 63e8d7665d1..f5c2b1fba7d 100644 --- a/networkservices/v1beta1/networkservices-gen.go +++ b/networkservices/v1beta1/networkservices-gen.go @@ -168,6 +168,7 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} + rs.AuthzExtensions = NewProjectsLocationsAuthzExtensionsService(s) rs.EndpointPolicies = NewProjectsLocationsEndpointPoliciesService(s) rs.Gateways = NewProjectsLocationsGatewaysService(s) rs.GrpcRoutes = NewProjectsLocationsGrpcRoutesService(s) @@ -186,6 +187,8 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { type ProjectsLocationsService struct { s *Service + AuthzExtensions *ProjectsLocationsAuthzExtensionsService + EndpointPolicies *ProjectsLocationsEndpointPoliciesService Gateways *ProjectsLocationsGatewaysService @@ -211,6 +214,15 @@ type ProjectsLocationsService struct { TlsRoutes *ProjectsLocationsTlsRoutesService } +func NewProjectsLocationsAuthzExtensionsService(s *Service) *ProjectsLocationsAuthzExtensionsService { + rs := &ProjectsLocationsAuthzExtensionsService{s: s} + return rs +} + +type ProjectsLocationsAuthzExtensionsService struct { + s *Service +} + func NewProjectsLocationsEndpointPoliciesService(s *Service) *ProjectsLocationsEndpointPoliciesService { rs := &ProjectsLocationsEndpointPoliciesService{s: s} return rs @@ -395,6 +407,103 @@ func (s AuditLogConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// AuthzExtension: `AuthzExtension` is a resource that allows traffic +// forwarding to a callout backend to make an authorization decision. +type AuthzExtension struct { + // Authority: Required. The `:authority` header in the gRPC request sent from + // Envoy to the extension service. + Authority string `json:"authority,omitempty"` + // CreateTime: Output only. The timestamp when the resource was created. + CreateTime string `json:"createTime,omitempty"` + // Description: Optional. A human-readable description of the resource. + Description string `json:"description,omitempty"` + // FailOpen: Optional. Determines how the proxy behaves if the call to the + // extension fails or times out. When set to `TRUE`, request or response + // processing continues without error. Any subsequent extensions in the + // extension chain are also executed. When set to `FALSE` or the default + // setting of `FALSE` is used, one of the following happens: * If response + // headers have not been delivered to the downstream client, a generic 500 + // error is returned to the client. The error response can be tailored by + // configuring a custom error response in the load balancer. * If response + // headers have been delivered, then the HTTP stream to the downstream client + // is reset. + FailOpen bool `json:"failOpen,omitempty"` + // ForwardHeaders: Optional. List of the HTTP headers to forward to the + // extension (from the client). If omitted, all headers are sent. Each element + // is a string indicating the header name. + ForwardHeaders []string `json:"forwardHeaders,omitempty"` + // Labels: Optional. Set of labels associated with the `AuthzExtension` + // resource. The format must comply with the requirements for labels + // (/compute/docs/labeling-resources#requirements) for Google Cloud resources. + Labels map[string]string `json:"labels,omitempty"` + // LoadBalancingScheme: Required. All backend services and forwarding rules + // referenced by this extension must share the same load balancing scheme. + // Supported values: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more + // information, refer to Choosing a load balancer + // (https://cloud.google.com/load-balancing/docs/backend-service). + // + // Possible values: + // "LOAD_BALANCING_SCHEME_UNSPECIFIED" - Default value. Do not use. + // "INTERNAL_MANAGED" - Signifies that this is used for Internal HTTP(S) Load + // Balancing. + // "EXTERNAL_MANAGED" - Signifies that this is used for External Managed + // HTTP(S) Load Balancing. + LoadBalancingScheme string `json:"loadBalancingScheme,omitempty"` + // Metadata: Optional. The metadata provided here is included as part of the + // `metadata_context` (of type `google.protobuf.Struct`) in the + // `ProcessingRequest` message sent to the extension server. The metadata is + // available under the namespace `com.google.authz_extension.`. The following + // variables are supported in the metadata Struct: `{forwarding_rule_id}` - + // substituted with the forwarding rule's fully qualified resource name. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + // Name: Required. Identifier. Name of the `AuthzExtension` resource in the + // following format: + // `projects/{project}/locations/{location}/authzExtensions/{authz_extension}`. + Name string `json:"name,omitempty"` + // Service: Required. The reference to the service that runs the extension. + // Currently only callout extensions are supported here. To configure a callout + // extension, `service` must be a fully-qualified reference to a backend + // service + // (https://cloud.google.com/compute/docs/reference/rest/v1/backendServices) in + // the format: + // `https://www.googleapis.com/compute/v1/projects/{project}/regions/{region}/ba + // ckendServices/{backendService}` or + // `https://www.googleapis.com/compute/v1/projects/{project}/global/backendServi + // ces/{backendService}`. + Service string `json:"service,omitempty"` + // Timeout: Required. Specifies the timeout for each individual message on the + // stream. The timeout must be between 10-10000 milliseconds. + Timeout string `json:"timeout,omitempty"` + // UpdateTime: Output only. The timestamp when the resource was updated. + UpdateTime string `json:"updateTime,omitempty"` + // WireFormat: Optional. The format of communication supported by the callout + // extension. If not specified, the default is `EXT_PROC_GRPC`. + // + // Possible values: + // "WIRE_FORMAT_UNSPECIFIED" - Not specified. + // "EXT_PROC_GRPC" - The extension service uses ExtProc GRPC API. + WireFormat string `json:"wireFormat,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Authority") 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. "Authority") 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 AuthzExtension) MarshalJSON() ([]byte, error) { + type NoMethod AuthzExtension + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Binding: Associates `members`, or principals, with a `role`. type Binding struct { // Condition: The condition that is associated with this binding. If the @@ -562,7 +671,7 @@ type EndpointPolicy struct { // Labels: Optional. Set of label tags associated with the EndpointPolicy // resource. Labels map[string]string `json:"labels,omitempty"` - // Name: Required. Name of the EndpointPolicy resource. It matches pattern + // Name: Identifier. Name of the EndpointPolicy resource. It matches pattern // `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`. Name string `json:"name,omitempty"` // ServerTlsPolicy: Optional. A URL referring to ServerTlsPolicy resource. @@ -844,7 +953,7 @@ type Gateway struct { IpVersion string `json:"ipVersion,omitempty"` // Labels: Optional. Set of label tags associated with the Gateway resource. Labels map[string]string `json:"labels,omitempty"` - // Name: Required. Name of the Gateway resource. It matches pattern + // Name: Identifier. Name of the Gateway resource. It matches pattern // `projects/*/locations/*/gateways/`. Name string `json:"name,omitempty"` // Network: Optional. The relative resource name identifying the VPC network @@ -949,7 +1058,7 @@ type GrpcRoute struct { // Each mesh reference should match the pattern: // `projects/*/locations/global/meshes/` Meshes []string `json:"meshes,omitempty"` - // Name: Required. Name of the GrpcRoute resource. It matches pattern + // Name: Identifier. Name of the GrpcRoute resource. It matches pattern // `projects/*/locations/global/grpcRoutes/` Name string `json:"name,omitempty"` // Rules: Required. A list of detailed rules defining how to route traffic. @@ -1377,7 +1486,7 @@ type HttpRoute struct { // `projects/*/locations/global/meshes/` The attached Mesh should be of a type // SIDECAR Meshes []string `json:"meshes,omitempty"` - // Name: Required. Name of the HttpRoute resource. It matches pattern + // Name: Identifier. Name of the HttpRoute resource. It matches pattern // `projects/*/locations/global/httpRoutes/http_route_name>`. Name string `json:"name,omitempty"` // Rules: Required. Rules that define how traffic is routed and handled. Rules @@ -2234,6 +2343,37 @@ func (s LbTrafficExtension) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ListAuthzExtensionsResponse: Message for response to listing +// `AuthzExtension` resources. +type ListAuthzExtensionsResponse struct { + // AuthzExtensions: The list of `AuthzExtension` resources. + AuthzExtensions []*AuthzExtension `json:"authzExtensions,omitempty"` + // NextPageToken: A token identifying a page of results that the server + // returns. + NextPageToken string `json:"nextPageToken,omitempty"` + // Unreachable: Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "AuthzExtensions") 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. "AuthzExtensions") 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 ListAuthzExtensionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListAuthzExtensionsResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ListEndpointPoliciesResponse: Response returned by the ListEndpointPolicies // method. type ListEndpointPoliciesResponse struct { @@ -2695,7 +2835,7 @@ type Mesh struct { InterceptionPort int64 `json:"interceptionPort,omitempty"` // Labels: Optional. Set of label tags associated with the Mesh resource. Labels map[string]string `json:"labels,omitempty"` - // Name: Required. Name of the Mesh resource. It matches pattern + // Name: Identifier. Name of the Mesh resource. It matches pattern // `projects/*/locations/global/meshes/`. Name string `json:"name,omitempty"` // SelfLink: Output only. Server-defined URL of this resource @@ -2983,7 +3123,7 @@ type ServiceBinding struct { // Labels: Optional. Set of label tags associated with the ServiceBinding // resource. Labels map[string]string `json:"labels,omitempty"` - // Name: Required. Name of the ServiceBinding resource. It matches pattern + // Name: Identifier. Name of the ServiceBinding resource. It matches pattern // `projects/*/locations/global/serviceBindings/service_binding_name`. Name string `json:"name,omitempty"` // Service: Required. The full Service Directory Service name of the format @@ -3217,7 +3357,7 @@ type TcpRoute struct { // `projects/*/locations/global/meshes/` The attached Mesh should be of a type // SIDECAR Meshes []string `json:"meshes,omitempty"` - // Name: Required. Name of the TcpRoute resource. It matches pattern + // Name: Identifier. Name of the TcpRoute resource. It matches pattern // `projects/*/locations/global/tcpRoutes/tcp_route_name>`. Name string `json:"name,omitempty"` // Rules: Required. Rules that define how traffic is routed and handled. At @@ -3883,6 +4023,645 @@ func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocat } } +type ProjectsLocationsAuthzExtensionsCreateCall struct { + s *Service + parent string + authzextension *AuthzExtension + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new `AuthzExtension` resource in a given project and +// location. +// +// - parent: The parent resource of the `AuthzExtension` resource. Must be in +// the format `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsAuthzExtensionsService) Create(parent string, authzextension *AuthzExtension) *ProjectsLocationsAuthzExtensionsCreateCall { + c := &ProjectsLocationsAuthzExtensionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.authzextension = authzextension + return c +} + +// AuthzExtensionId sets the optional parameter "authzExtensionId": Required. +// User-provided ID of the `AuthzExtension` resource to be created. +func (c *ProjectsLocationsAuthzExtensionsCreateCall) AuthzExtensionId(authzExtensionId string) *ProjectsLocationsAuthzExtensionsCreateCall { + c.urlParams_.Set("authzExtensionId", authzExtensionId) + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server can ignore the request if it has already been +// completed. The server guarantees that for at least 60 minutes since the +// first request. For example, consider a situation where you make an initial +// request and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the same +// request ID was received, and if so, ignores the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsAuthzExtensionsCreateCall) RequestId(requestId string) *ProjectsLocationsAuthzExtensionsCreateCall { + c.urlParams_.Set("requestId", requestId) + 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 *ProjectsLocationsAuthzExtensionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzExtensionsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthzExtensionsCreateCall) Context(ctx context.Context) *ProjectsLocationsAuthzExtensionsCreateCall { + 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 *ProjectsLocationsAuthzExtensionsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthzExtensionsCreateCall) 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.authzextension) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/authzExtensions") + 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 "networkservices.projects.locations.authzExtensions.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.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 *ProjectsLocationsAuthzExtensionsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, 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 := &Operation{ + 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 ProjectsLocationsAuthzExtensionsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the specified `AuthzExtension` resource. +// +// - name: The name of the `AuthzExtension` resource to delete. Must be in the +// format +// `projects/{project}/locations/{location}/authzExtensions/{authz_extension}` +// . +func (r *ProjectsLocationsAuthzExtensionsService) Delete(name string) *ProjectsLocationsAuthzExtensionsDeleteCall { + c := &ProjectsLocationsAuthzExtensionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server can ignore the request if it has already been +// completed. The server guarantees that for at least 60 minutes after the +// first request. For example, consider a situation where you make an initial +// request and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the same +// request ID was received, and if so, ignores the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsAuthzExtensionsDeleteCall) RequestId(requestId string) *ProjectsLocationsAuthzExtensionsDeleteCall { + c.urlParams_.Set("requestId", requestId) + 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 *ProjectsLocationsAuthzExtensionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzExtensionsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthzExtensionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAuthzExtensionsDeleteCall { + 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 *ProjectsLocationsAuthzExtensionsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthzExtensionsDeleteCall) 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 "networkservices.projects.locations.authzExtensions.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.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 *ProjectsLocationsAuthzExtensionsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, 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 := &Operation{ + 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 ProjectsLocationsAuthzExtensionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of the specified `AuthzExtension` resource. +// +// - name: A name of the `AuthzExtension` resource to get. Must be in the +// format +// `projects/{project}/locations/{location}/authzExtensions/{authz_extension}` +// . +func (r *ProjectsLocationsAuthzExtensionsService) Get(name string) *ProjectsLocationsAuthzExtensionsGetCall { + c := &ProjectsLocationsAuthzExtensionsGetCall{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 *ProjectsLocationsAuthzExtensionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzExtensionsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsAuthzExtensionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthzExtensionsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthzExtensionsGetCall) Context(ctx context.Context) *ProjectsLocationsAuthzExtensionsGetCall { + 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 *ProjectsLocationsAuthzExtensionsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthzExtensionsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkservices.projects.locations.authzExtensions.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *AuthzExtension.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 *ProjectsLocationsAuthzExtensionsGetCall) Do(opts ...googleapi.CallOption) (*AuthzExtension, 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 := &AuthzExtension{ + 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 ProjectsLocationsAuthzExtensionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists `AuthzExtension` resources in a given project and location. +// +// - parent: The project and location from which the `AuthzExtension` resources +// are listed, specified in the following format: +// `projects/{project}/locations/{location}`. +func (r *ProjectsLocationsAuthzExtensionsService) List(parent string) *ProjectsLocationsAuthzExtensionsListCall { + c := &ProjectsLocationsAuthzExtensionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filtering results. +func (c *ProjectsLocationsAuthzExtensionsListCall) Filter(filter string) *ProjectsLocationsAuthzExtensionsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Hint for how to order the +// results. +func (c *ProjectsLocationsAuthzExtensionsListCall) OrderBy(orderBy string) *ProjectsLocationsAuthzExtensionsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": Requested page size. The +// server might return fewer items than requested. If unspecified, the server +// picks an appropriate default. +func (c *ProjectsLocationsAuthzExtensionsListCall) PageSize(pageSize int64) *ProjectsLocationsAuthzExtensionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A token identifying a +// page of results that the server returns. +func (c *ProjectsLocationsAuthzExtensionsListCall) PageToken(pageToken string) *ProjectsLocationsAuthzExtensionsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAuthzExtensionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzExtensionsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsLocationsAuthzExtensionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAuthzExtensionsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthzExtensionsListCall) Context(ctx context.Context) *ProjectsLocationsAuthzExtensionsListCall { + 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 *ProjectsLocationsAuthzExtensionsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthzExtensionsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/authzExtensions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkservices.projects.locations.authzExtensions.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListAuthzExtensionsResponse.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 *ProjectsLocationsAuthzExtensionsListCall) Do(opts ...googleapi.CallOption) (*ListAuthzExtensionsResponse, 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 := &ListAuthzExtensionsResponse{ + 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 +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsAuthzExtensionsListCall) Pages(ctx context.Context, f func(*ListAuthzExtensionsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +type ProjectsLocationsAuthzExtensionsPatchCall struct { + s *Service + name string + authzextension *AuthzExtension + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the parameters of the specified `AuthzExtension` resource. +// +// - name: Identifier. Name of the `AuthzExtension` resource in the following +// format: +// `projects/{project}/locations/{location}/authzExtensions/{authz_extension}` +// . +func (r *ProjectsLocationsAuthzExtensionsService) Patch(name string, authzextension *AuthzExtension) *ProjectsLocationsAuthzExtensionsPatchCall { + c := &ProjectsLocationsAuthzExtensionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.authzextension = authzextension + return c +} + +// RequestId sets the optional parameter "requestId": An optional request ID to +// identify requests. Specify a unique request ID so that if you must retry +// your request, the server can ignore the request if it has already been +// completed. The server guarantees that for at least 60 minutes since the +// first request. For example, consider a situation where you make an initial +// request and the request times out. If you make the request again with the +// same request ID, the server can check if original operation with the same +// request ID was received, and if so, ignores the second request. This +// prevents clients from accidentally creating duplicate commitments. The +// request ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsAuthzExtensionsPatchCall) RequestId(requestId string) *ProjectsLocationsAuthzExtensionsPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Used to +// specify the fields to be overwritten in the `AuthzExtension` resource by the +// update. The fields specified in the update_mask are relative to the +// resource, not the full request. A field is overwritten if it is in the mask. +// If the user does not specify a mask, then all fields are overwritten. +func (c *ProjectsLocationsAuthzExtensionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAuthzExtensionsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsAuthzExtensionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAuthzExtensionsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsAuthzExtensionsPatchCall) Context(ctx context.Context) *ProjectsLocationsAuthzExtensionsPatchCall { + 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 *ProjectsLocationsAuthzExtensionsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsAuthzExtensionsPatchCall) 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.authzextension) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "networkservices.projects.locations.authzExtensions.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.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 *ProjectsLocationsAuthzExtensionsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, 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 := &Operation{ + 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 ProjectsLocationsEndpointPoliciesCreateCall struct { s *Service parent string @@ -4353,7 +5132,7 @@ type ProjectsLocationsEndpointPoliciesPatchCall struct { // Patch: Updates the parameters of a single EndpointPolicy. // -// - name: Name of the EndpointPolicy resource. It matches pattern +// - name: Identifier. Name of the EndpointPolicy resource. It matches pattern // `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`. func (r *ProjectsLocationsEndpointPoliciesService) Patch(name string, endpointpolicy *EndpointPolicy) *ProjectsLocationsEndpointPoliciesPatchCall { c := &ProjectsLocationsEndpointPoliciesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -4925,7 +5704,7 @@ type ProjectsLocationsGatewaysPatchCall struct { // Patch: Updates the parameters of a single Gateway. // -// - name: Name of the Gateway resource. It matches pattern +// - name: Identifier. Name of the Gateway resource. It matches pattern // `projects/*/locations/*/gateways/`. func (r *ProjectsLocationsGatewaysService) Patch(name string, gateway *Gateway) *ProjectsLocationsGatewaysPatchCall { c := &ProjectsLocationsGatewaysPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -5496,7 +6275,7 @@ type ProjectsLocationsGrpcRoutesPatchCall struct { // Patch: Updates the parameters of a single GrpcRoute. // -// - name: Name of the GrpcRoute resource. It matches pattern +// - name: Identifier. Name of the GrpcRoute resource. It matches pattern // `projects/*/locations/global/grpcRoutes/`. func (r *ProjectsLocationsGrpcRoutesService) Patch(name string, grpcroute *GrpcRoute) *ProjectsLocationsGrpcRoutesPatchCall { c := &ProjectsLocationsGrpcRoutesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -6068,7 +6847,7 @@ type ProjectsLocationsHttpRoutesPatchCall struct { // Patch: Updates the parameters of a single HttpRoute. // -// - name: Name of the HttpRoute resource. It matches pattern +// - name: Identifier. Name of the HttpRoute resource. It matches pattern // `projects/*/locations/global/httpRoutes/http_route_name>`. func (r *ProjectsLocationsHttpRoutesService) Patch(name string, httproute *HttpRoute) *ProjectsLocationsHttpRoutesPatchCall { c := &ProjectsLocationsHttpRoutesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -7921,7 +8700,7 @@ type ProjectsLocationsMeshesPatchCall struct { // Patch: Updates the parameters of a single Mesh. // -// - name: Name of the Mesh resource. It matches pattern +// - name: Identifier. Name of the Mesh resource. It matches pattern // `projects/*/locations/global/meshes/`. func (r *ProjectsLocationsMeshesService) Patch(name string, mesh *Mesh) *ProjectsLocationsMeshesPatchCall { c := &ProjectsLocationsMeshesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -10336,7 +11115,7 @@ type ProjectsLocationsTcpRoutesPatchCall struct { // Patch: Updates the parameters of a single TcpRoute. // -// - name: Name of the TcpRoute resource. It matches pattern +// - name: Identifier. Name of the TcpRoute resource. It matches pattern // `projects/*/locations/global/tcpRoutes/tcp_route_name>`. func (r *ProjectsLocationsTcpRoutesService) Patch(name string, tcproute *TcpRoute) *ProjectsLocationsTcpRoutesPatchCall { c := &ProjectsLocationsTcpRoutesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} diff --git a/recaptchaenterprise/v1/recaptchaenterprise-api.json b/recaptchaenterprise/v1/recaptchaenterprise-api.json index 845300f0f40..13c397530dd 100644 --- a/recaptchaenterprise/v1/recaptchaenterprise-api.json +++ b/recaptchaenterprise/v1/recaptchaenterprise-api.json @@ -722,7 +722,7 @@ } } }, - "revision": "20240721", + "revision": "20240728", "rootUrl": "https://recaptchaenterprise.googleapis.com/", "schemas": { "GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment": { @@ -969,6 +969,10 @@ "$ref": "GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo", "description": "Optional. Account verification information for identity verification. The assessment event must include a token and site key to use this feature." }, + "assessmentEnvironment": { + "$ref": "GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment", + "description": "Optional. The environment creating the assessment. This describes your environment (the system invoking CreateAssessment), NOT the environment of your user." + }, "event": { "$ref": "GoogleCloudRecaptchaenterpriseV1Event", "description": "Optional. The event being assessed." @@ -1015,6 +1019,21 @@ }, "type": "object" }, + "GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment": { + "description": "The environment creating the assessment. This describes your environment (the system invoking CreateAssessment), NOT the environment of your user.", + "id": "GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment", + "properties": { + "client": { + "description": "Optional. Identifies the client module initiating the CreateAssessment request. This can be the link to the client module's project. Examples include: - \"github.com/GoogleCloudPlatform/recaptcha-enterprise-google-tag-manager\" - \"cloud.google.com/recaptcha/docs/implement-waf-akamai\" - \"cloud.google.com/recaptcha/docs/implement-waf-cloudflare\" - \"wordpress.org/plugins/recaptcha-something\"", + "type": "string" + }, + "version": { + "description": "Optional. The version of the client module. For example, \"1.0.0\".", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRecaptchaenterpriseV1ChallengeMetrics": { "description": "Metrics related to challenges.", "id": "GoogleCloudRecaptchaenterpriseV1ChallengeMetrics", diff --git a/recaptchaenterprise/v1/recaptchaenterprise-gen.go b/recaptchaenterprise/v1/recaptchaenterprise-gen.go index 5cd4fb75733..485c8f2b2b6 100644 --- a/recaptchaenterprise/v1/recaptchaenterprise-gen.go +++ b/recaptchaenterprise/v1/recaptchaenterprise-gen.go @@ -525,6 +525,10 @@ type GoogleCloudRecaptchaenterpriseV1Assessment struct { // verification. The assessment event must include a token and site key to use // this feature. AccountVerification *GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo `json:"accountVerification,omitempty"` + // AssessmentEnvironment: Optional. The environment creating the assessment. + // This describes your environment (the system invoking CreateAssessment), NOT + // the environment of your user. + AssessmentEnvironment *GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment `json:"assessmentEnvironment,omitempty"` // Event: Optional. The event being assessed. Event *GoogleCloudRecaptchaenterpriseV1Event `json:"event,omitempty"` // FirewallPolicyAssessment: Output only. Assessment returned when firewall @@ -574,6 +578,38 @@ func (s GoogleCloudRecaptchaenterpriseV1Assessment) MarshalJSON() ([]byte, error return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment: The environment +// creating the assessment. This describes your environment (the system +// invoking CreateAssessment), NOT the environment of your user. +type GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment struct { + // Client: Optional. Identifies the client module initiating the + // CreateAssessment request. This can be the link to the client module's + // project. Examples include: - + // "github.com/GoogleCloudPlatform/recaptcha-enterprise-google-tag-manager" - + // "cloud.google.com/recaptcha/docs/implement-waf-akamai" - + // "cloud.google.com/recaptcha/docs/implement-waf-cloudflare" - + // "wordpress.org/plugins/recaptcha-something" + Client string `json:"client,omitempty"` + // Version: Optional. The version of the client module. For example, "1.0.0". + Version string `json:"version,omitempty"` + // ForceSendFields is a list of field names (e.g. "Client") 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. "Client") 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 GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRecaptchaenterpriseV1ChallengeMetrics: Metrics related to // challenges. type GoogleCloudRecaptchaenterpriseV1ChallengeMetrics struct { diff --git a/sqladmin/v1/sqladmin-api.json b/sqladmin/v1/sqladmin-api.json index 62e604e2ce1..e0205577440 100644 --- a/sqladmin/v1/sqladmin-api.json +++ b/sqladmin/v1/sqladmin-api.json @@ -2267,7 +2267,7 @@ } } }, - "revision": "20240711", + "revision": "20240724", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -2572,6 +2572,12 @@ "description": "Location of the backups.", "type": "string" }, + "maxChargeableBytes": { + "description": "Output only. The maximum chargeable bytes for the backup.", + "format": "int64", + "readOnly": true, + "type": "string" + }, "selfLink": { "description": "The URI of this resource.", "type": "string" @@ -3333,6 +3339,11 @@ "description": "Initial root password. Use only on creation. You must set root passwords before you can connect to PostgreSQL instances.", "type": "string" }, + "satisfiesPzi": { + "description": "Output only. This status indicates whether the instance satisfies PZI. The status is reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "satisfiesPzs": { "description": "This status indicates whether the instance satisfies PZS. The status is reserved for future use.", "type": "boolean" diff --git a/sqladmin/v1/sqladmin-gen.go b/sqladmin/v1/sqladmin-gen.go index 2129832d7d1..634534f0894 100644 --- a/sqladmin/v1/sqladmin-gen.go +++ b/sqladmin/v1/sqladmin-gen.go @@ -623,6 +623,9 @@ type BackupRun struct { Kind string `json:"kind,omitempty"` // Location: Location of the backups. Location string `json:"location,omitempty"` + // MaxChargeableBytes: Output only. The maximum chargeable bytes for the + // backup. + MaxChargeableBytes int64 `json:"maxChargeableBytes,omitempty,string"` // SelfLink: The URI of this resource. SelfLink string `json:"selfLink,omitempty"` // StartTime: The time the backup operation actually started in UTC timezone in @@ -1211,6 +1214,9 @@ type DatabaseInstance struct { // RootPassword: Initial root password. Use only on creation. You must set root // passwords before you can connect to PostgreSQL instances. RootPassword string `json:"rootPassword,omitempty"` + // SatisfiesPzi: Output only. This status indicates whether the instance + // satisfies PZI. The status is reserved for future use. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` // SatisfiesPzs: This status indicates whether the instance satisfies PZS. The // status is reserved for future use. SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` diff --git a/sqladmin/v1beta4/sqladmin-api.json b/sqladmin/v1beta4/sqladmin-api.json index 800300912a1..103d8f79fae 100644 --- a/sqladmin/v1beta4/sqladmin-api.json +++ b/sqladmin/v1beta4/sqladmin-api.json @@ -2267,7 +2267,7 @@ } } }, - "revision": "20240711", + "revision": "20240724", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -2572,6 +2572,12 @@ "description": "Location of the backups.", "type": "string" }, + "maxChargeableBytes": { + "description": "Output only. The maximum chargeable bytes for the backup.", + "format": "int64", + "readOnly": true, + "type": "string" + }, "selfLink": { "description": "The URI of this resource.", "type": "string" @@ -3333,6 +3339,11 @@ "description": "Initial root password. Use only on creation. You must set root passwords before you can connect to PostgreSQL instances.", "type": "string" }, + "satisfiesPzi": { + "description": "Output only. This status indicates whether the instance satisfies PZI. The status is reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "satisfiesPzs": { "description": "This status indicates whether the instance satisfies PZS. The status is reserved for future use.", "type": "boolean" diff --git a/sqladmin/v1beta4/sqladmin-gen.go b/sqladmin/v1beta4/sqladmin-gen.go index 4d5e35dd3b1..dcce80c9abb 100644 --- a/sqladmin/v1beta4/sqladmin-gen.go +++ b/sqladmin/v1beta4/sqladmin-gen.go @@ -622,6 +622,9 @@ type BackupRun struct { Kind string `json:"kind,omitempty"` // Location: Location of the backups. Location string `json:"location,omitempty"` + // MaxChargeableBytes: Output only. The maximum chargeable bytes for the + // backup. + MaxChargeableBytes int64 `json:"maxChargeableBytes,omitempty,string"` // SelfLink: The URI of this resource. SelfLink string `json:"selfLink,omitempty"` // StartTime: The time the backup operation actually started in UTC timezone in @@ -1210,6 +1213,9 @@ type DatabaseInstance struct { // RootPassword: Initial root password. Use only on creation. You must set root // passwords before you can connect to PostgreSQL instances. RootPassword string `json:"rootPassword,omitempty"` + // SatisfiesPzi: Output only. This status indicates whether the instance + // satisfies PZI. The status is reserved for future use. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` // SatisfiesPzs: This status indicates whether the instance satisfies PZS. The // status is reserved for future use. SatisfiesPzs bool `json:"satisfiesPzs,omitempty"`