From 4118ec2221db4788e545eb530f2ae777b18228d3 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 14 Aug 2024 00:22:20 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2733) --- aiplatform/v1/aiplatform-api.json | 253 ++++++++- aiplatform/v1/aiplatform-gen.go | 321 +++++++++++- aiplatform/v1beta1/aiplatform-api.json | 272 +++++++++- aiplatform/v1beta1/aiplatform-gen.go | 351 ++++++++++++- apikeys/v2/apikeys-api.json | 4 +- apikeys/v2/apikeys-gen.go | 4 +- chat/v1/chat-api.json | 6 +- chat/v1/chat-gen.go | 10 +- compute/v0.alpha/compute-api.json | 491 +----------------- compute/v0.alpha/compute-gen.go | 351 +------------ compute/v0.alpha/compute3-gen.go | 563 --------------------- compute/v0.beta/compute-api.json | 63 ++- compute/v0.beta/compute-gen.go | 102 +++- firebaseml/v2beta/firebaseml-api.json | 4 +- firebaseml/v2beta/firebaseml-gen.go | 4 +- manufacturers/v1/manufacturers-api.json | 37 +- manufacturers/v1/manufacturers-gen.go | 25 +- serviceusage/v1/serviceusage-api.json | 104 +++- serviceusage/v1/serviceusage-gen.go | 125 +++++ serviceusage/v1beta1/serviceusage-api.json | 104 +++- serviceusage/v1beta1/serviceusage-gen.go | 125 +++++ 21 files changed, 1886 insertions(+), 1433 deletions(-) diff --git a/aiplatform/v1/aiplatform-api.json b/aiplatform/v1/aiplatform-api.json index 9842240bbdc..be8c217dc61 100644 --- a/aiplatform/v1/aiplatform-api.json +++ b/aiplatform/v1/aiplatform-api.json @@ -16928,6 +16928,11 @@ "name" ], "parameters": { + "huggingFaceToken": { + "description": "Optional. Token used to access Hugging Face gated models.", + "location": "query", + "type": "string" + }, "isHuggingFaceModel": { "description": "Optional. Boolean indicates whether the requested model is a Hugging Face model.", "location": "query", @@ -16976,7 +16981,7 @@ } } }, - "revision": "20240727", + "revision": "20240809", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoResponse": { @@ -18559,6 +18564,12 @@ "description": "A response candidate generated from the model.", "id": "GoogleCloudAiplatformV1Candidate", "properties": { + "avgLogprobs": { + "description": "Output only. Average log probability score of the candidate.", + "format": "double", + "readOnly": true, + "type": "number" + }, "citationMetadata": { "$ref": "GoogleCloudAiplatformV1CitationMetadata", "description": "Output only. Source attribution of the generated content.", @@ -20717,6 +20728,16 @@ "format": "int32", "type": "integer" }, + "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 EntityType was most recently updated.", "format": "google-datetime", @@ -20825,6 +20846,10 @@ "$ref": "GoogleCloudAiplatformV1GroundednessInput", "description": "Input for groundedness metric." }, + "pairwiseMetricInput": { + "$ref": "GoogleCloudAiplatformV1PairwiseMetricInput", + "description": "Input for pairwise metric." + }, "pairwiseQuestionAnsweringQualityInput": { "$ref": "GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput", "description": "Input for pairwise question answering quality metric." @@ -20833,6 +20858,10 @@ "$ref": "GoogleCloudAiplatformV1PairwiseSummarizationQualityInput", "description": "Input for pairwise summarization quality metric." }, + "pointwiseMetricInput": { + "$ref": "GoogleCloudAiplatformV1PointwiseMetricInput", + "description": "Input for pointwise metric." + }, "questionAnsweringCorrectnessInput": { "$ref": "GoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput", "description": "Input for question answering correctness metric." @@ -20916,6 +20945,10 @@ "$ref": "GoogleCloudAiplatformV1GroundednessResult", "description": "Result for groundedness metric." }, + "pairwiseMetricResult": { + "$ref": "GoogleCloudAiplatformV1PairwiseMetricResult", + "description": "Result for pairwise metric." + }, "pairwiseQuestionAnsweringQualityResult": { "$ref": "GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult", "description": "Result for pairwise question answering quality metric." @@ -20924,6 +20957,10 @@ "$ref": "GoogleCloudAiplatformV1PairwiseSummarizationQualityResult", "description": "Result for pairwise summarization quality metric." }, + "pointwiseMetricResult": { + "$ref": "GoogleCloudAiplatformV1PointwiseMetricResult", + "description": "Generic metrics. Result for pointwise metric." + }, "questionAnsweringCorrectnessResult": { "$ref": "GoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult", "description": "Result for question answering correctness metric." @@ -22242,6 +22279,20 @@ "type": "string" }, "type": "array" + }, + "timeSeries": { + "$ref": "GoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries", + "description": "Optional. If the source is a time-series source, this can be set to control how downstream sources (ex: FeatureOnlineStore.FeatureView) will treat time series sources. If not set, will treat the source as a time-series source with feature_timestamp as timestamp column and no scan boundary." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries": { + "id": "GoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries", + "properties": { + "timestampColumn": { + "description": "Optional. Column hosting timestamp values for a time-series source. Will be used to determine the latest featureValues for each entity. Optional. If not provided, a feature_timestamp column of type TIMESTAMP will be used.", + "type": "string" } }, "type": "object" @@ -22344,6 +22395,16 @@ "$ref": "GoogleCloudAiplatformV1FeatureOnlineStoreOptimized", "description": "Contains settings for the Optimized store that will be created to serve featureValues for all FeatureViews under this FeatureOnlineStore. When choose Optimized storage type, need to set PrivateServiceConnectConfig.enable_private_service_connect to use private endpoint. Otherwise will use public endpoint by default." }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "state": { "description": "Output only. State of the featureOnlineStore.", "enum": [ @@ -22613,6 +22674,16 @@ "description": "Identifier. Name of the FeatureView. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", "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" + }, "syncConfig": { "$ref": "GoogleCloudAiplatformV1FeatureViewSyncConfig", "description": "Configures when data is to be synced/updated for this FeatureView. At the end of the sync the latest featureValues for each entityId of this FeatureView are made ready for online serving." @@ -22802,6 +22873,16 @@ "description": "Output only. Time when this FeatureViewSync is finished.", "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" + }, "syncSummary": { "$ref": "GoogleCloudAiplatformV1FeatureViewSyncSyncSummary", "description": "Output only. Summary of the sync job.", @@ -22879,6 +22960,16 @@ "format": "int32", "type": "integer" }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "state": { "description": "Output only. State of the featurestore.", "enum": [ @@ -23459,7 +23550,7 @@ ], "enumDescriptions": [ "Unspecified function calling mode. This value should not be used.", - "Default model behavior, model decides to predict either a function call or a natural language repspose.", + "Default model behavior, model decides to predict either a function call or a natural language response.", "Model is constrained to always predicting a function call only. If \"allowed_function_names\" are set, the predicted function call will be limited to any one of \"allowed_function_names\", else the predicted function call will be any one of the provided \"function_declarations\".", "Model will not predict any function call. Model behavior is same as when not passing any function declarations." ], @@ -23644,7 +23735,7 @@ "type": "integer" }, "promptTokenCount": { - "description": "Number of tokens in the request.", + "description": "Number of tokens in the request. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content.", "format": "int32", "type": "integer" }, @@ -23691,6 +23782,11 @@ "$ref": "GoogleCloudAiplatformV1GenerationConfigRoutingConfig", "description": "Optional. Routing configuration." }, + "seed": { + "description": "Optional. Seed.", + "format": "int32", + "type": "integer" + }, "stopSequences": { "description": "Optional. Stop sequences.", "items": { @@ -24404,6 +24500,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 Index was most recently updated. This also includes any update to the contents of the Index. Note that Operations working on this Index may have their Operations.metadata.generic_metadata.update_time a little after the value of this timestamp, yet that does not mean their results are not already reflected in the Index. Result of any successfully completed Operation on the Index is reflected in it.", "format": "google-datetime", @@ -24629,6 +24735,16 @@ "description": "Optional. If true, the deployed index will be accessible through public endpoint.", "type": "boolean" }, + "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 IndexEndpoint was last updated. This timestamp is not updated when the endpoint's DeployedIndexes are updated, e.g. due to updates of the original Indexes they are the deployments of.", "format": "google-datetime", @@ -26653,6 +26769,16 @@ "description": "Sample Predict instance, same format as PredictRequest.instances, this can be set as a replacement of ModelDeploymentMonitoringJob.predict_instance_schema_uri. If not set, we will generate predict schema from collected predict requests.", "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" + }, "scheduleState": { "description": "Output only. Schedule state when the monitoring job is in Running state.", "enum": [ @@ -28544,6 +28670,72 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1PairwiseMetricInput": { + "description": "Input for pairwise metric.", + "id": "GoogleCloudAiplatformV1PairwiseMetricInput", + "properties": { + "instance": { + "$ref": "GoogleCloudAiplatformV1PairwiseMetricInstance", + "description": "Required. Pairwise metric instance." + }, + "metricSpec": { + "$ref": "GoogleCloudAiplatformV1PairwiseMetricSpec", + "description": "Required. Spec for pairwise metric." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1PairwiseMetricInstance": { + "description": "Pairwise metric instance. Usually one instance corresponds to one row in an evaluation dataset.", + "id": "GoogleCloudAiplatformV1PairwiseMetricInstance", + "properties": { + "jsonInstance": { + "description": "Instance specified as a json string. String key-value pairs are expected in the json_instance to render PairwiseMetricSpec.instance_prompt_template.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1PairwiseMetricResult": { + "description": "Spec for pairwise metric result.", + "id": "GoogleCloudAiplatformV1PairwiseMetricResult", + "properties": { + "explanation": { + "description": "Output only. Explanation for pairwise metric score.", + "readOnly": true, + "type": "string" + }, + "pairwiseChoice": { + "description": "Output only. Pairwise metric choice.", + "enum": [ + "PAIRWISE_CHOICE_UNSPECIFIED", + "BASELINE", + "CANDIDATE", + "TIE" + ], + "enumDescriptions": [ + "Unspecified prediction choice.", + "Baseline prediction wins", + "Candidate prediction wins", + "Winner cannot be determined" + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1PairwiseMetricSpec": { + "description": "Spec for pairwise metric.", + "id": "GoogleCloudAiplatformV1PairwiseMetricSpec", + "properties": { + "metricPromptTemplate": { + "description": "Required. Metric prompt template for pairwise metric.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput": { "description": "Input for pairwise question answering quality metric.", "id": "GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput", @@ -29357,6 +29549,61 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1PointwiseMetricInput": { + "description": "Input for pointwise metric.", + "id": "GoogleCloudAiplatformV1PointwiseMetricInput", + "properties": { + "instance": { + "$ref": "GoogleCloudAiplatformV1PointwiseMetricInstance", + "description": "Required. Pointwise metric instance." + }, + "metricSpec": { + "$ref": "GoogleCloudAiplatformV1PointwiseMetricSpec", + "description": "Required. Spec for pointwise metric." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1PointwiseMetricInstance": { + "description": "Pointwise metric instance. Usually one instance corresponds to one row in an evaluation dataset.", + "id": "GoogleCloudAiplatformV1PointwiseMetricInstance", + "properties": { + "jsonInstance": { + "description": "Instance specified as a json string. String key-value pairs are expected in the json_instance to render PointwiseMetricSpec.instance_prompt_template.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1PointwiseMetricResult": { + "description": "Spec for pointwise metric result.", + "id": "GoogleCloudAiplatformV1PointwiseMetricResult", + "properties": { + "explanation": { + "description": "Output only. Explanation for pointwise metric score.", + "readOnly": true, + "type": "string" + }, + "score": { + "description": "Output only. Pointwise metric score.", + "format": "float", + "readOnly": true, + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1PointwiseMetricSpec": { + "description": "Spec for pointwise metric.", + "id": "GoogleCloudAiplatformV1PointwiseMetricSpec", + "properties": { + "metricPromptTemplate": { + "description": "Required. Metric prompt template for pointwise metric.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1Port": { "description": "Represents a network port in a container.", "id": "GoogleCloudAiplatformV1Port", diff --git a/aiplatform/v1/aiplatform-gen.go b/aiplatform/v1/aiplatform-gen.go index e775748bca7..dae57bb4796 100644 --- a/aiplatform/v1/aiplatform-gen.go +++ b/aiplatform/v1/aiplatform-gen.go @@ -3683,6 +3683,8 @@ type GoogleCloudAiplatformV1CancelTuningJobRequest struct { // GoogleCloudAiplatformV1Candidate: A response candidate generated from the // model. type GoogleCloudAiplatformV1Candidate struct { + // AvgLogprobs: Output only. Average log probability score of the candidate. + AvgLogprobs float64 `json:"avgLogprobs,omitempty"` // CitationMetadata: Output only. Source attribution of the generated content. CitationMetadata *GoogleCloudAiplatformV1CitationMetadata `json:"citationMetadata,omitempty"` // Content: Output only. Content parts of the candidate. @@ -3722,15 +3724,15 @@ 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"` - // ForceSendFields is a list of field names (e.g. "CitationMetadata") to + // ForceSendFields is a list of field names (e.g. "AvgLogprobs") 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. "CitationMetadata") 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. "AvgLogprobs") 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:"-"` } @@ -3740,6 +3742,20 @@ 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 { + AvgLogprobs gensupport.JSONFloat64 `json:"avgLogprobs"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.AvgLogprobs = float64(s1.AvgLogprobs) + return nil +} + // GoogleCloudAiplatformV1CheckTrialEarlyStoppingStateMetatdata: This message // will be placed in the metadata field of a google.longrunning.Operation // associated with a CheckTrialEarlyStoppingState request. @@ -6777,6 +6793,10 @@ type GoogleCloudAiplatformV1EntityType struct { // generation time. If unset (or explicitly set to 0), default to 4000 days // TTL. OfflineStorageTtlDays int64 `json:"offlineStorageTtlDays,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 EntityType was most recently // updated. UpdateTime string `json:"updateTime,omitempty"` @@ -6947,12 +6967,16 @@ type GoogleCloudAiplatformV1EvaluateInstancesRequest struct { FulfillmentInput *GoogleCloudAiplatformV1FulfillmentInput `json:"fulfillmentInput,omitempty"` // GroundednessInput: Input for groundedness metric. GroundednessInput *GoogleCloudAiplatformV1GroundednessInput `json:"groundednessInput,omitempty"` + // PairwiseMetricInput: Input for pairwise metric. + PairwiseMetricInput *GoogleCloudAiplatformV1PairwiseMetricInput `json:"pairwiseMetricInput,omitempty"` // PairwiseQuestionAnsweringQualityInput: Input for pairwise question answering // quality metric. PairwiseQuestionAnsweringQualityInput *GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput `json:"pairwiseQuestionAnsweringQualityInput,omitempty"` // PairwiseSummarizationQualityInput: Input for pairwise summarization quality // metric. PairwiseSummarizationQualityInput *GoogleCloudAiplatformV1PairwiseSummarizationQualityInput `json:"pairwiseSummarizationQualityInput,omitempty"` + // PointwiseMetricInput: Input for pointwise metric. + PointwiseMetricInput *GoogleCloudAiplatformV1PointwiseMetricInput `json:"pointwiseMetricInput,omitempty"` // QuestionAnsweringCorrectnessInput: Input for question answering correctness // metric. QuestionAnsweringCorrectnessInput *GoogleCloudAiplatformV1QuestionAnsweringCorrectnessInput `json:"questionAnsweringCorrectnessInput,omitempty"` @@ -7018,12 +7042,16 @@ type GoogleCloudAiplatformV1EvaluateInstancesResponse struct { FulfillmentResult *GoogleCloudAiplatformV1FulfillmentResult `json:"fulfillmentResult,omitempty"` // GroundednessResult: Result for groundedness metric. GroundednessResult *GoogleCloudAiplatformV1GroundednessResult `json:"groundednessResult,omitempty"` + // PairwiseMetricResult: Result for pairwise metric. + PairwiseMetricResult *GoogleCloudAiplatformV1PairwiseMetricResult `json:"pairwiseMetricResult,omitempty"` // PairwiseQuestionAnsweringQualityResult: Result for pairwise question // answering quality metric. PairwiseQuestionAnsweringQualityResult *GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityResult `json:"pairwiseQuestionAnsweringQualityResult,omitempty"` // PairwiseSummarizationQualityResult: Result for pairwise summarization // quality metric. PairwiseSummarizationQualityResult *GoogleCloudAiplatformV1PairwiseSummarizationQualityResult `json:"pairwiseSummarizationQualityResult,omitempty"` + // PointwiseMetricResult: Generic metrics. Result for pointwise metric. + PointwiseMetricResult *GoogleCloudAiplatformV1PointwiseMetricResult `json:"pointwiseMetricResult,omitempty"` // QuestionAnsweringCorrectnessResult: Result for question answering // correctness metric. QuestionAnsweringCorrectnessResult *GoogleCloudAiplatformV1QuestionAnsweringCorrectnessResult `json:"questionAnsweringCorrectnessResult,omitempty"` @@ -8865,6 +8893,12 @@ type GoogleCloudAiplatformV1FeatureGroupBigQuery struct { // EntityIdColumns: Optional. Columns to construct entity_id / row keys. If not // provided defaults to `entity_id`. EntityIdColumns []string `json:"entityIdColumns,omitempty"` + // TimeSeries: Optional. If the source is a time-series source, this can be set + // to control how downstream sources (ex: FeatureOnlineStore.FeatureView) will + // treat time series sources. If not set, will treat the source as a + // time-series source with feature_timestamp as timestamp column and no scan + // boundary. + TimeSeries *GoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries `json:"timeSeries,omitempty"` // ForceSendFields is a list of field names (e.g. "BigQuerySource") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -8883,6 +8917,30 @@ func (s GoogleCloudAiplatformV1FeatureGroupBigQuery) MarshalJSON() ([]byte, erro return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type GoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries struct { + // TimestampColumn: Optional. Column hosting timestamp values for a time-series + // source. Will be used to determine the latest featureValues for each entity. + // Optional. If not provided, a feature_timestamp column of type TIMESTAMP will + // be used. + TimestampColumn string `json:"timestampColumn,omitempty"` + // ForceSendFields is a list of field names (e.g. "TimestampColumn") 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. "TimestampColumn") 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 GoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1FeatureGroupBigQueryTimeSeries + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1FeatureMonitoringStatsAnomaly: A list of historical // SnapshotAnalysis or ImportFeaturesAnalysis stats requested by user, sorted // by FeatureStatsAnomaly.start_time descending. @@ -9023,6 +9081,10 @@ type GoogleCloudAiplatformV1FeatureOnlineStore struct { // PrivateServiceConnectConfig.enable_private_service_connect to use private // endpoint. Otherwise will use public endpoint by default. Optimized *GoogleCloudAiplatformV1FeatureOnlineStoreOptimized `json:"optimized,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"` // State: Output only. State of the featureOnlineStore. // // Possible values: @@ -9431,6 +9493,10 @@ type GoogleCloudAiplatformV1FeatureView struct { // `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_ // store}/featureViews/{feature_view}` 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"` // SyncConfig: Configures when data is to be synced/updated for this // FeatureView. At the end of the sync the latest featureValues for each // entityId of this FeatureView are made ready for online serving. @@ -9690,6 +9756,10 @@ type GoogleCloudAiplatformV1FeatureViewSync struct { Name string `json:"name,omitempty"` // RunTime: Output only. Time when this FeatureViewSync is finished. RunTime *GoogleTypeInterval `json:"runTime,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"` // SyncSummary: Output only. Summary of the sync job. SyncSummary *GoogleCloudAiplatformV1FeatureViewSyncSyncSummary `json:"syncSummary,omitempty"` @@ -9806,6 +9876,10 @@ type GoogleCloudAiplatformV1Featurestore struct { // `offline_storage_ttl_days` for each EntityType under a featurestore. If not // set, default to 4000 days OnlineStorageTtlDays int64 `json:"onlineStorageTtlDays,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"` // State: Output only. State of the featurestore. // // Possible values: @@ -10818,7 +10892,7 @@ type GoogleCloudAiplatformV1FunctionCallingConfig struct { // "MODE_UNSPECIFIED" - Unspecified function calling mode. This value should // not be used. // "AUTO" - Default model behavior, model decides to predict either a - // function call or a natural language repspose. + // function call or a natural language response. // "ANY" - Model is constrained to always predicting a function call only. If // "allowed_function_names" are set, the predicted function call will be // limited to any one of "allowed_function_names", else the predicted function @@ -11080,7 +11154,9 @@ func (s GoogleCloudAiplatformV1GenerateContentResponsePromptFeedback) MarshalJSO type GoogleCloudAiplatformV1GenerateContentResponseUsageMetadata struct { // CandidatesTokenCount: Number of tokens in the response(s). CandidatesTokenCount int64 `json:"candidatesTokenCount,omitempty"` - // PromptTokenCount: Number of tokens in the request. + // PromptTokenCount: Number of tokens in the request. When `cached_content` is + // set, this is still the total effective prompt size meaning this includes the + // number of tokens in the cached content. PromptTokenCount int64 `json:"promptTokenCount,omitempty"` TotalTokenCount int64 `json:"totalTokenCount,omitempty"` // ForceSendFields is a list of field names (e.g. "CandidatesTokenCount") to @@ -11127,6 +11203,8 @@ type GoogleCloudAiplatformV1GenerationConfig struct { ResponseSchema *GoogleCloudAiplatformV1Schema `json:"responseSchema,omitempty"` // RoutingConfig: Optional. Routing configuration. RoutingConfig *GoogleCloudAiplatformV1GenerationConfigRoutingConfig `json:"routingConfig,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. @@ -12034,6 +12112,10 @@ type GoogleCloudAiplatformV1Index struct { MetadataSchemaUri string `json:"metadataSchemaUri,omitempty"` // Name: Output only. The resource name of the Index. 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 Index was most recently // updated. This also includes any update to the contents of the Index. Note // that Operations working on this Index may have their @@ -12329,6 +12411,10 @@ type GoogleCloudAiplatformV1IndexEndpoint struct { // PublicEndpointEnabled: Optional. If true, the deployed index will be // accessible through public endpoint. PublicEndpointEnabled bool `json:"publicEndpointEnabled,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 IndexEndpoint was last updated. // This timestamp is not updated when the endpoint's DeployedIndexes are // updated, e.g. due to updates of the original Indexes they are the @@ -15354,6 +15440,10 @@ type GoogleCloudAiplatformV1ModelDeploymentMonitoringJob struct { // ModelDeploymentMonitoringJob.predict_instance_schema_uri. If not set, we // will generate predict schema from collected predict requests. SamplePredictInstance interface{} `json:"samplePredictInstance,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"` // ScheduleState: Output only. Schedule state when the monitoring job is in // Running state. // @@ -17810,6 +17900,108 @@ func (s GoogleCloudAiplatformV1NotebookRuntimeTemplateRef) MarshalJSON() ([]byte return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1PairwiseMetricInput: Input for pairwise metric. +type GoogleCloudAiplatformV1PairwiseMetricInput struct { + // Instance: Required. Pairwise metric instance. + Instance *GoogleCloudAiplatformV1PairwiseMetricInstance `json:"instance,omitempty"` + // MetricSpec: Required. Spec for pairwise metric. + MetricSpec *GoogleCloudAiplatformV1PairwiseMetricSpec `json:"metricSpec,omitempty"` + // ForceSendFields is a list of field names (e.g. "Instance") 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. "Instance") 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 GoogleCloudAiplatformV1PairwiseMetricInput) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1PairwiseMetricInput + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1PairwiseMetricInstance: Pairwise metric instance. +// Usually one instance corresponds to one row in an evaluation dataset. +type GoogleCloudAiplatformV1PairwiseMetricInstance struct { + // JsonInstance: Instance specified as a json string. String key-value pairs + // are expected in the json_instance to render + // PairwiseMetricSpec.instance_prompt_template. + JsonInstance string `json:"jsonInstance,omitempty"` + // ForceSendFields is a list of field names (e.g. "JsonInstance") 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. "JsonInstance") 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 GoogleCloudAiplatformV1PairwiseMetricInstance) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1PairwiseMetricInstance + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1PairwiseMetricResult: Spec for pairwise metric +// result. +type GoogleCloudAiplatformV1PairwiseMetricResult struct { + // Explanation: Output only. Explanation for pairwise metric score. + Explanation string `json:"explanation,omitempty"` + // PairwiseChoice: Output only. Pairwise metric choice. + // + // Possible values: + // "PAIRWISE_CHOICE_UNSPECIFIED" - Unspecified prediction choice. + // "BASELINE" - Baseline prediction wins + // "CANDIDATE" - Candidate prediction wins + // "TIE" - Winner cannot be determined + PairwiseChoice string `json:"pairwiseChoice,omitempty"` + // ForceSendFields is a list of field names (e.g. "Explanation") 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. "Explanation") 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 GoogleCloudAiplatformV1PairwiseMetricResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1PairwiseMetricResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1PairwiseMetricSpec: Spec for pairwise metric. +type GoogleCloudAiplatformV1PairwiseMetricSpec struct { + // MetricPromptTemplate: Required. Metric prompt template for pairwise metric. + MetricPromptTemplate string `json:"metricPromptTemplate,omitempty"` + // ForceSendFields is a list of field names (e.g. "MetricPromptTemplate") 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. "MetricPromptTemplate") 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 GoogleCloudAiplatformV1PairwiseMetricSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1PairwiseMetricSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput: Input for // pairwise question answering quality metric. type GoogleCloudAiplatformV1PairwiseQuestionAnsweringQualityInput struct { @@ -18725,6 +18917,116 @@ func (s GoogleCloudAiplatformV1PipelineTemplateMetadata) MarshalJSON() ([]byte, return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1PointwiseMetricInput: Input for pointwise metric. +type GoogleCloudAiplatformV1PointwiseMetricInput struct { + // Instance: Required. Pointwise metric instance. + Instance *GoogleCloudAiplatformV1PointwiseMetricInstance `json:"instance,omitempty"` + // MetricSpec: Required. Spec for pointwise metric. + MetricSpec *GoogleCloudAiplatformV1PointwiseMetricSpec `json:"metricSpec,omitempty"` + // ForceSendFields is a list of field names (e.g. "Instance") 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. "Instance") 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 GoogleCloudAiplatformV1PointwiseMetricInput) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1PointwiseMetricInput + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1PointwiseMetricInstance: Pointwise metric instance. +// Usually one instance corresponds to one row in an evaluation dataset. +type GoogleCloudAiplatformV1PointwiseMetricInstance struct { + // JsonInstance: Instance specified as a json string. String key-value pairs + // are expected in the json_instance to render + // PointwiseMetricSpec.instance_prompt_template. + JsonInstance string `json:"jsonInstance,omitempty"` + // ForceSendFields is a list of field names (e.g. "JsonInstance") 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. "JsonInstance") 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 GoogleCloudAiplatformV1PointwiseMetricInstance) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1PointwiseMetricInstance + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1PointwiseMetricResult: Spec for pointwise metric +// result. +type GoogleCloudAiplatformV1PointwiseMetricResult struct { + // Explanation: Output only. Explanation for pointwise metric score. + Explanation string `json:"explanation,omitempty"` + // Score: Output only. Pointwise metric score. + Score float64 `json:"score,omitempty"` + // ForceSendFields is a list of field names (e.g. "Explanation") 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. "Explanation") 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 GoogleCloudAiplatformV1PointwiseMetricResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1PointwiseMetricResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1PointwiseMetricResult) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1PointwiseMetricResult + 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 +} + +// GoogleCloudAiplatformV1PointwiseMetricSpec: Spec for pointwise metric. +type GoogleCloudAiplatformV1PointwiseMetricSpec struct { + // MetricPromptTemplate: Required. Metric prompt template for pointwise metric. + MetricPromptTemplate string `json:"metricPromptTemplate,omitempty"` + // ForceSendFields is a list of field names (e.g. "MetricPromptTemplate") 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. "MetricPromptTemplate") 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 GoogleCloudAiplatformV1PointwiseMetricSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1PointwiseMetricSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1Port: Represents a network port in a container. type GoogleCloudAiplatformV1Port struct { // ContainerPort: The number of the port to expose on the pod's IP address. @@ -95131,6 +95433,13 @@ func (r *PublishersModelsService) Get(name string) *PublishersModelsGetCall { return c } +// HuggingFaceToken sets the optional parameter "huggingFaceToken": Token used +// to access Hugging Face gated models. +func (c *PublishersModelsGetCall) HuggingFaceToken(huggingFaceToken string) *PublishersModelsGetCall { + c.urlParams_.Set("huggingFaceToken", huggingFaceToken) + return c +} + // IsHuggingFaceModel sets the optional parameter "isHuggingFaceModel": Boolean // indicates whether the requested model is a Hugging Face model. func (c *PublishersModelsGetCall) IsHuggingFaceModel(isHuggingFaceModel bool) *PublishersModelsGetCall { diff --git a/aiplatform/v1beta1/aiplatform-api.json b/aiplatform/v1beta1/aiplatform-api.json index 429f83057ce..e4d53a0c0b7 100644 --- a/aiplatform/v1beta1/aiplatform-api.json +++ b/aiplatform/v1beta1/aiplatform-api.json @@ -20336,6 +20336,11 @@ "name" ], "parameters": { + "huggingFaceToken": { + "description": "Optional. Token used to access Hugging Face gated models.", + "location": "query", + "type": "string" + }, "isHuggingFaceModel": { "description": "Optional. Boolean indicates whether the requested model is a Hugging Face model.", "location": "query", @@ -20452,7 +20457,7 @@ } } }, - "revision": "20240727", + "revision": "20240809", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoResponse": { @@ -22304,6 +22309,12 @@ "description": "A response candidate generated from the model.", "id": "GoogleCloudAiplatformV1beta1Candidate", "properties": { + "avgLogprobs": { + "description": "Output only. Average log probability score of the candidate.", + "format": "double", + "readOnly": true, + "type": "number" + }, "citationMetadata": { "$ref": "GoogleCloudAiplatformV1beta1CitationMetadata", "description": "Output only. Source attribution of the generated content.", @@ -24770,6 +24781,16 @@ "format": "int32", "type": "integer" }, + "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 EntityType was most recently updated.", "format": "google-datetime", @@ -24878,6 +24899,10 @@ "$ref": "GoogleCloudAiplatformV1beta1GroundednessInput", "description": "Input for groundedness metric." }, + "pairwiseMetricInput": { + "$ref": "GoogleCloudAiplatformV1beta1PairwiseMetricInput", + "description": "Input for pairwise metric." + }, "pairwiseQuestionAnsweringQualityInput": { "$ref": "GoogleCloudAiplatformV1beta1PairwiseQuestionAnsweringQualityInput", "description": "Input for pairwise question answering quality metric." @@ -24886,6 +24911,10 @@ "$ref": "GoogleCloudAiplatformV1beta1PairwiseSummarizationQualityInput", "description": "Input for pairwise summarization quality metric." }, + "pointwiseMetricInput": { + "$ref": "GoogleCloudAiplatformV1beta1PointwiseMetricInput", + "description": "Input for pointwise metric." + }, "questionAnsweringCorrectnessInput": { "$ref": "GoogleCloudAiplatformV1beta1QuestionAnsweringCorrectnessInput", "description": "Input for question answering correctness metric." @@ -24969,6 +24998,10 @@ "$ref": "GoogleCloudAiplatformV1beta1GroundednessResult", "description": "Result for groundedness metric." }, + "pairwiseMetricResult": { + "$ref": "GoogleCloudAiplatformV1beta1PairwiseMetricResult", + "description": "Result for pairwise metric." + }, "pairwiseQuestionAnsweringQualityResult": { "$ref": "GoogleCloudAiplatformV1beta1PairwiseQuestionAnsweringQualityResult", "description": "Result for pairwise question answering quality metric." @@ -24977,6 +25010,10 @@ "$ref": "GoogleCloudAiplatformV1beta1PairwiseSummarizationQualityResult", "description": "Result for pairwise summarization quality metric." }, + "pointwiseMetricResult": { + "$ref": "GoogleCloudAiplatformV1beta1PointwiseMetricResult", + "description": "Generic metrics. Result for pointwise metric." + }, "questionAnsweringCorrectnessResult": { "$ref": "GoogleCloudAiplatformV1beta1QuestionAnsweringCorrectnessResult", "description": "Result for question answering correctness metric." @@ -26454,6 +26491,20 @@ "type": "string" }, "type": "array" + }, + "timeSeries": { + "$ref": "GoogleCloudAiplatformV1beta1FeatureGroupBigQueryTimeSeries", + "description": "Optional. If the source is a time-series source, this can be set to control how downstream sources (ex: FeatureOnlineStore.FeatureView) will treat time series sources. If not set, will treat the source as a time-series source with feature_timestamp as timestamp column and no scan boundary." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1FeatureGroupBigQueryTimeSeries": { + "id": "GoogleCloudAiplatformV1beta1FeatureGroupBigQueryTimeSeries", + "properties": { + "timestampColumn": { + "description": "Optional. Column hosting timestamp values for a time-series source. Will be used to determine the latest featureValues for each entity. Optional. If not provided, a feature_timestamp column of type TIMESTAMP will be used.", + "type": "string" } }, "type": "object" @@ -26561,6 +26612,16 @@ "$ref": "GoogleCloudAiplatformV1beta1FeatureOnlineStoreOptimized", "description": "Contains settings for the Optimized store that will be created to serve featureValues for all FeatureViews under this FeatureOnlineStore. When choose Optimized storage type, need to set PrivateServiceConnectConfig.enable_private_service_connect to use private endpoint. Otherwise will use public endpoint by default." }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "state": { "description": "Output only. State of the featureOnlineStore.", "enum": [ @@ -26842,6 +26903,16 @@ "description": "Identifier. Name of the FeatureView. Format: `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_store}/featureViews/{feature_view}`", "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" + }, "serviceAccountEmail": { "description": "Output only. A Service Account unique to this FeatureView. The role bigquery.dataViewer should be granted to this service account to allow Vertex AI Feature Store to sync data to the online store.", "readOnly": true, @@ -27055,6 +27126,16 @@ "description": "Output only. Time when this FeatureViewSync is finished.", "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" + }, "syncSummary": { "$ref": "GoogleCloudAiplatformV1beta1FeatureViewSyncSyncSummary", "description": "Output only. Summary of the sync job.", @@ -27200,6 +27281,16 @@ "format": "int32", "type": "integer" }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "state": { "description": "Output only. State of the featurestore.", "enum": [ @@ -27806,7 +27897,7 @@ ], "enumDescriptions": [ "Unspecified function calling mode. This value should not be used.", - "Default model behavior, model decides to predict either a function call or a natural language repspose.", + "Default model behavior, model decides to predict either a function call or a natural language response.", "Model is constrained to always predicting a function call only. If \"allowed_function_names\" are set, the predicted function call will be limited to any one of \"allowed_function_names\", else the predicted function call will be any one of the provided \"function_declarations\".", "Model will not predict any function call. Model behavior is same as when not passing any function declarations." ], @@ -28034,7 +28125,7 @@ "type": "integer" }, "promptTokenCount": { - "description": "Number of tokens in the request.", + "description": "Number of tokens in the request. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content.", "format": "int32", "type": "integer" }, @@ -28107,6 +28198,11 @@ "$ref": "GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig", "description": "Optional. Routing configuration." }, + "seed": { + "description": "Optional. Seed.", + "format": "int32", + "type": "integer" + }, "stopSequences": { "description": "Optional. Stop sequences.", "items": { @@ -28829,6 +28925,10 @@ "$ref": "GoogleCloudAiplatformV1beta1RagFileChunkingConfig", "description": "Specifies the size and overlap of chunks after importing RagFiles." }, + "ragFileParsingConfig": { + "$ref": "GoogleCloudAiplatformV1beta1RagFileParsingConfig", + "description": "Specifies the parsing config for RagFiles." + }, "slackSource": { "$ref": "GoogleCloudAiplatformV1beta1SlackSource", "description": "Slack channels with their corresponding access tokens." @@ -28920,6 +29020,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 Index was most recently updated. This also includes any update to the contents of the Index. Note that Operations working on this Index may have their Operations.metadata.generic_metadata.update_time a little after the value of this timestamp, yet that does not mean their results are not already reflected in the Index. Result of any successfully completed Operation on the Index is reflected in it.", "format": "google-datetime", @@ -29145,6 +29255,16 @@ "description": "Optional. If true, the deployed index will be accessible through public endpoint.", "type": "boolean" }, + "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 IndexEndpoint was last updated. This timestamp is not updated when the endpoint's DeployedIndexes are updated, e.g. due to updates of the original Indexes they are the deployments of.", "format": "google-datetime", @@ -31366,6 +31486,16 @@ "description": "Sample Predict instance, same format as PredictRequest.instances, this can be set as a replacement of ModelDeploymentMonitoringJob.predict_instance_schema_uri. If not set, we will generate predict schema from collected predict requests.", "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" + }, "scheduleState": { "description": "Output only. Schedule state when the monitoring job is in Running state.", "enum": [ @@ -34069,6 +34199,72 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1PairwiseMetricInput": { + "description": "Input for pairwise metric.", + "id": "GoogleCloudAiplatformV1beta1PairwiseMetricInput", + "properties": { + "instance": { + "$ref": "GoogleCloudAiplatformV1beta1PairwiseMetricInstance", + "description": "Required. Pairwise metric instance." + }, + "metricSpec": { + "$ref": "GoogleCloudAiplatformV1beta1PairwiseMetricSpec", + "description": "Required. Spec for pairwise metric." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1PairwiseMetricInstance": { + "description": "Pairwise metric instance. Usually one instance corresponds to one row in an evaluation dataset.", + "id": "GoogleCloudAiplatformV1beta1PairwiseMetricInstance", + "properties": { + "jsonInstance": { + "description": "Instance specified as a json string. String key-value pairs are expected in the json_instance to render PairwiseMetricSpec.instance_prompt_template.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1PairwiseMetricResult": { + "description": "Spec for pairwise metric result.", + "id": "GoogleCloudAiplatformV1beta1PairwiseMetricResult", + "properties": { + "explanation": { + "description": "Output only. Explanation for pairwise metric score.", + "readOnly": true, + "type": "string" + }, + "pairwiseChoice": { + "description": "Output only. Pairwise metric choice.", + "enum": [ + "PAIRWISE_CHOICE_UNSPECIFIED", + "BASELINE", + "CANDIDATE", + "TIE" + ], + "enumDescriptions": [ + "Unspecified prediction choice.", + "Baseline prediction wins", + "Candidate prediction wins", + "Winner cannot be determined" + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1PairwiseMetricSpec": { + "description": "Spec for pairwise metric.", + "id": "GoogleCloudAiplatformV1beta1PairwiseMetricSpec", + "properties": { + "metricPromptTemplate": { + "description": "Required. Metric prompt template for pairwise metric.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1PairwiseQuestionAnsweringQualityInput": { "description": "Input for pairwise question answering quality metric.", "id": "GoogleCloudAiplatformV1beta1PairwiseQuestionAnsweringQualityInput", @@ -34896,6 +35092,61 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1PointwiseMetricInput": { + "description": "Input for pointwise metric.", + "id": "GoogleCloudAiplatformV1beta1PointwiseMetricInput", + "properties": { + "instance": { + "$ref": "GoogleCloudAiplatformV1beta1PointwiseMetricInstance", + "description": "Required. Pointwise metric instance." + }, + "metricSpec": { + "$ref": "GoogleCloudAiplatformV1beta1PointwiseMetricSpec", + "description": "Required. Spec for pointwise metric." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1PointwiseMetricInstance": { + "description": "Pointwise metric instance. Usually one instance corresponds to one row in an evaluation dataset.", + "id": "GoogleCloudAiplatformV1beta1PointwiseMetricInstance", + "properties": { + "jsonInstance": { + "description": "Instance specified as a json string. String key-value pairs are expected in the json_instance to render PointwiseMetricSpec.instance_prompt_template.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1PointwiseMetricResult": { + "description": "Spec for pointwise metric result.", + "id": "GoogleCloudAiplatformV1beta1PointwiseMetricResult", + "properties": { + "explanation": { + "description": "Output only. Explanation for pointwise metric score.", + "readOnly": true, + "type": "string" + }, + "score": { + "description": "Output only. Pointwise metric score.", + "format": "float", + "readOnly": true, + "type": "number" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1beta1PointwiseMetricSpec": { + "description": "Spec for pointwise metric.", + "id": "GoogleCloudAiplatformV1beta1PointwiseMetricSpec", + "properties": { + "metricPromptTemplate": { + "description": "Required. Metric prompt template for pointwise metric.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1Port": { "description": "Represents a network port in a container.", "id": "GoogleCloudAiplatformV1beta1Port", @@ -36375,6 +36626,21 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1RagFileParsingConfig": { + "description": "Specifies the parsing config for RagFiles.", + "id": "GoogleCloudAiplatformV1beta1RagFileParsingConfig", + "properties": { + "parsePdfsUsingOcr": { + "description": "Whether to use OCR for PDFs.", + "type": "boolean" + }, + "useAdvancedPdfParsing": { + "description": "Whether to use advanced PDF parsing.", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1RagQuery": { "description": "A query to retrieve relevant contexts.", "id": "GoogleCloudAiplatformV1beta1RagQuery", diff --git a/aiplatform/v1beta1/aiplatform-gen.go b/aiplatform/v1beta1/aiplatform-gen.go index 8c972b68413..d63a29924a3 100644 --- a/aiplatform/v1beta1/aiplatform-gen.go +++ b/aiplatform/v1beta1/aiplatform-gen.go @@ -4383,6 +4383,8 @@ type GoogleCloudAiplatformV1beta1CancelTuningJobRequest struct { // GoogleCloudAiplatformV1beta1Candidate: A response candidate generated from // the model. type GoogleCloudAiplatformV1beta1Candidate struct { + // AvgLogprobs: Output only. Average log probability score of the candidate. + AvgLogprobs float64 `json:"avgLogprobs,omitempty"` // CitationMetadata: Output only. Source attribution of the generated content. CitationMetadata *GoogleCloudAiplatformV1beta1CitationMetadata `json:"citationMetadata,omitempty"` // Content: Output only. Content parts of the candidate. @@ -4422,15 +4424,15 @@ 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"` - // ForceSendFields is a list of field names (e.g. "CitationMetadata") to + // ForceSendFields is a list of field names (e.g. "AvgLogprobs") 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. "CitationMetadata") 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. "AvgLogprobs") 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:"-"` } @@ -4440,6 +4442,20 @@ 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 { + AvgLogprobs gensupport.JSONFloat64 `json:"avgLogprobs"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.AvgLogprobs = float64(s1.AvgLogprobs) + return nil +} + // GoogleCloudAiplatformV1beta1CheckTrialEarlyStoppingStateMetatdata: This // message will be placed in the metadata field of a // google.longrunning.Operation associated with a CheckTrialEarlyStoppingState @@ -7904,6 +7920,10 @@ type GoogleCloudAiplatformV1beta1EntityType struct { // generation time. If unset (or explicitly set to 0), default to 4000 days // TTL. OfflineStorageTtlDays int64 `json:"offlineStorageTtlDays,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 EntityType was most recently // updated. UpdateTime string `json:"updateTime,omitempty"` @@ -8074,12 +8094,16 @@ type GoogleCloudAiplatformV1beta1EvaluateInstancesRequest struct { FulfillmentInput *GoogleCloudAiplatformV1beta1FulfillmentInput `json:"fulfillmentInput,omitempty"` // GroundednessInput: Input for groundedness metric. GroundednessInput *GoogleCloudAiplatformV1beta1GroundednessInput `json:"groundednessInput,omitempty"` + // PairwiseMetricInput: Input for pairwise metric. + PairwiseMetricInput *GoogleCloudAiplatformV1beta1PairwiseMetricInput `json:"pairwiseMetricInput,omitempty"` // PairwiseQuestionAnsweringQualityInput: Input for pairwise question answering // quality metric. PairwiseQuestionAnsweringQualityInput *GoogleCloudAiplatformV1beta1PairwiseQuestionAnsweringQualityInput `json:"pairwiseQuestionAnsweringQualityInput,omitempty"` // PairwiseSummarizationQualityInput: Input for pairwise summarization quality // metric. PairwiseSummarizationQualityInput *GoogleCloudAiplatformV1beta1PairwiseSummarizationQualityInput `json:"pairwiseSummarizationQualityInput,omitempty"` + // PointwiseMetricInput: Input for pointwise metric. + PointwiseMetricInput *GoogleCloudAiplatformV1beta1PointwiseMetricInput `json:"pointwiseMetricInput,omitempty"` // QuestionAnsweringCorrectnessInput: Input for question answering correctness // metric. QuestionAnsweringCorrectnessInput *GoogleCloudAiplatformV1beta1QuestionAnsweringCorrectnessInput `json:"questionAnsweringCorrectnessInput,omitempty"` @@ -8145,12 +8169,16 @@ type GoogleCloudAiplatformV1beta1EvaluateInstancesResponse struct { FulfillmentResult *GoogleCloudAiplatformV1beta1FulfillmentResult `json:"fulfillmentResult,omitempty"` // GroundednessResult: Result for groundedness metric. GroundednessResult *GoogleCloudAiplatformV1beta1GroundednessResult `json:"groundednessResult,omitempty"` + // PairwiseMetricResult: Result for pairwise metric. + PairwiseMetricResult *GoogleCloudAiplatformV1beta1PairwiseMetricResult `json:"pairwiseMetricResult,omitempty"` // PairwiseQuestionAnsweringQualityResult: Result for pairwise question // answering quality metric. PairwiseQuestionAnsweringQualityResult *GoogleCloudAiplatformV1beta1PairwiseQuestionAnsweringQualityResult `json:"pairwiseQuestionAnsweringQualityResult,omitempty"` // PairwiseSummarizationQualityResult: Result for pairwise summarization // quality metric. PairwiseSummarizationQualityResult *GoogleCloudAiplatformV1beta1PairwiseSummarizationQualityResult `json:"pairwiseSummarizationQualityResult,omitempty"` + // PointwiseMetricResult: Generic metrics. Result for pointwise metric. + PointwiseMetricResult *GoogleCloudAiplatformV1beta1PointwiseMetricResult `json:"pointwiseMetricResult,omitempty"` // QuestionAnsweringCorrectnessResult: Result for question answering // correctness metric. QuestionAnsweringCorrectnessResult *GoogleCloudAiplatformV1beta1QuestionAnsweringCorrectnessResult `json:"questionAnsweringCorrectnessResult,omitempty"` @@ -10202,6 +10230,12 @@ type GoogleCloudAiplatformV1beta1FeatureGroupBigQuery struct { // EntityIdColumns: Optional. Columns to construct entity_id / row keys. If not // provided defaults to `entity_id`. EntityIdColumns []string `json:"entityIdColumns,omitempty"` + // TimeSeries: Optional. If the source is a time-series source, this can be set + // to control how downstream sources (ex: FeatureOnlineStore.FeatureView) will + // treat time series sources. If not set, will treat the source as a + // time-series source with feature_timestamp as timestamp column and no scan + // boundary. + TimeSeries *GoogleCloudAiplatformV1beta1FeatureGroupBigQueryTimeSeries `json:"timeSeries,omitempty"` // ForceSendFields is a list of field names (e.g. "BigQuerySource") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -10220,6 +10254,30 @@ func (s GoogleCloudAiplatformV1beta1FeatureGroupBigQuery) MarshalJSON() ([]byte, return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type GoogleCloudAiplatformV1beta1FeatureGroupBigQueryTimeSeries struct { + // TimestampColumn: Optional. Column hosting timestamp values for a time-series + // source. Will be used to determine the latest featureValues for each entity. + // Optional. If not provided, a feature_timestamp column of type TIMESTAMP will + // be used. + TimestampColumn string `json:"timestampColumn,omitempty"` + // ForceSendFields is a list of field names (e.g. "TimestampColumn") 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. "TimestampColumn") 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 GoogleCloudAiplatformV1beta1FeatureGroupBigQueryTimeSeries) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1FeatureGroupBigQueryTimeSeries + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1FeatureMonitoringStatsAnomaly: A list of // historical SnapshotAnalysis or ImportFeaturesAnalysis stats requested by // user, sorted by FeatureStatsAnomaly.start_time descending. @@ -10366,6 +10424,10 @@ type GoogleCloudAiplatformV1beta1FeatureOnlineStore struct { // PrivateServiceConnectConfig.enable_private_service_connect to use private // endpoint. Otherwise will use public endpoint by default. Optimized *GoogleCloudAiplatformV1beta1FeatureOnlineStoreOptimized `json:"optimized,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"` // State: Output only. State of the featureOnlineStore. // // Possible values: @@ -10802,6 +10864,10 @@ type GoogleCloudAiplatformV1beta1FeatureView struct { // `projects/{project}/locations/{location}/featureOnlineStores/{feature_online_ // store}/featureViews/{feature_view}` 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"` // ServiceAccountEmail: Output only. A Service Account unique to this // FeatureView. The role bigquery.dataViewer should be granted to this service // account to allow Vertex AI Feature Store to sync data to the online store. @@ -11088,6 +11154,10 @@ type GoogleCloudAiplatformV1beta1FeatureViewSync struct { Name string `json:"name,omitempty"` // RunTime: Output only. Time when this FeatureViewSync is finished. RunTime *GoogleTypeInterval `json:"runTime,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"` // SyncSummary: Output only. Summary of the sync job. SyncSummary *GoogleCloudAiplatformV1beta1FeatureViewSyncSyncSummary `json:"syncSummary,omitempty"` @@ -11290,6 +11360,10 @@ type GoogleCloudAiplatformV1beta1Featurestore struct { // `offline_storage_ttl_days` for each EntityType under a featurestore. If not // set, default to 4000 days OnlineStorageTtlDays int64 `json:"onlineStorageTtlDays,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"` // State: Output only. State of the featurestore. // // Possible values: @@ -12321,7 +12395,7 @@ type GoogleCloudAiplatformV1beta1FunctionCallingConfig struct { // "MODE_UNSPECIFIED" - Unspecified function calling mode. This value should // not be used. // "AUTO" - Default model behavior, model decides to predict either a - // function call or a natural language repspose. + // function call or a natural language response. // "ANY" - Model is constrained to always predicting a function call only. If // "allowed_function_names" are set, the predicted function call will be // limited to any one of "allowed_function_names", else the predicted function @@ -12654,7 +12728,9 @@ func (s GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback) Marsh type GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata struct { // CandidatesTokenCount: Number of tokens in the response(s). CandidatesTokenCount int64 `json:"candidatesTokenCount,omitempty"` - // PromptTokenCount: Number of tokens in the request. + // PromptTokenCount: Number of tokens in the request. When `cached_content` is + // set, this is still the total effective prompt size meaning this includes the + // number of tokens in the cached content. PromptTokenCount int64 `json:"promptTokenCount,omitempty"` TotalTokenCount int64 `json:"totalTokenCount,omitempty"` // ForceSendFields is a list of field names (e.g. "CandidatesTokenCount") to @@ -12728,6 +12804,8 @@ type GoogleCloudAiplatformV1beta1GenerationConfig struct { ResponseSchema *GoogleCloudAiplatformV1beta1Schema `json:"responseSchema,omitempty"` // RoutingConfig: Optional. Routing configuration. RoutingConfig *GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfig `json:"routingConfig,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. @@ -13683,6 +13761,8 @@ type GoogleCloudAiplatformV1beta1ImportRagFilesConfig struct { // RagFileChunkingConfig: Specifies the size and overlap of chunks after // importing RagFiles. RagFileChunkingConfig *GoogleCloudAiplatformV1beta1RagFileChunkingConfig `json:"ragFileChunkingConfig,omitempty"` + // RagFileParsingConfig: Specifies the parsing config for RagFiles. + RagFileParsingConfig *GoogleCloudAiplatformV1beta1RagFileParsingConfig `json:"ragFileParsingConfig,omitempty"` // SlackSource: Slack channels with their corresponding access tokens. SlackSource *GoogleCloudAiplatformV1beta1SlackSource `json:"slackSource,omitempty"` // ForceSendFields is a list of field names (e.g. "GcsSource") to @@ -13782,6 +13862,10 @@ type GoogleCloudAiplatformV1beta1Index struct { MetadataSchemaUri string `json:"metadataSchemaUri,omitempty"` // Name: Output only. The resource name of the Index. 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 Index was most recently // updated. This also includes any update to the contents of the Index. Note // that Operations working on this Index may have their @@ -14078,6 +14162,10 @@ type GoogleCloudAiplatformV1beta1IndexEndpoint struct { // PublicEndpointEnabled: Optional. If true, the deployed index will be // accessible through public endpoint. PublicEndpointEnabled bool `json:"publicEndpointEnabled,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 IndexEndpoint was last updated. // This timestamp is not updated when the endpoint's DeployedIndexes are // updated, e.g. due to updates of the original Indexes they are the @@ -17397,6 +17485,10 @@ type GoogleCloudAiplatformV1beta1ModelDeploymentMonitoringJob struct { // ModelDeploymentMonitoringJob.predict_instance_schema_uri. If not set, we // will generate predict schema from collected predict requests. SamplePredictInstance interface{} `json:"samplePredictInstance,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"` // ScheduleState: Output only. Schedule state when the monitoring job is in // Running state. // @@ -21036,6 +21128,109 @@ func (s GoogleCloudAiplatformV1beta1NotebookRuntimeTemplateRef) MarshalJSON() ([ return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1PairwiseMetricInput: Input for pairwise metric. +type GoogleCloudAiplatformV1beta1PairwiseMetricInput struct { + // Instance: Required. Pairwise metric instance. + Instance *GoogleCloudAiplatformV1beta1PairwiseMetricInstance `json:"instance,omitempty"` + // MetricSpec: Required. Spec for pairwise metric. + MetricSpec *GoogleCloudAiplatformV1beta1PairwiseMetricSpec `json:"metricSpec,omitempty"` + // ForceSendFields is a list of field names (e.g. "Instance") 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. "Instance") 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 GoogleCloudAiplatformV1beta1PairwiseMetricInput) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1PairwiseMetricInput + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1PairwiseMetricInstance: Pairwise metric +// instance. Usually one instance corresponds to one row in an evaluation +// dataset. +type GoogleCloudAiplatformV1beta1PairwiseMetricInstance struct { + // JsonInstance: Instance specified as a json string. String key-value pairs + // are expected in the json_instance to render + // PairwiseMetricSpec.instance_prompt_template. + JsonInstance string `json:"jsonInstance,omitempty"` + // ForceSendFields is a list of field names (e.g. "JsonInstance") 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. "JsonInstance") 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 GoogleCloudAiplatformV1beta1PairwiseMetricInstance) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1PairwiseMetricInstance + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1PairwiseMetricResult: Spec for pairwise metric +// result. +type GoogleCloudAiplatformV1beta1PairwiseMetricResult struct { + // Explanation: Output only. Explanation for pairwise metric score. + Explanation string `json:"explanation,omitempty"` + // PairwiseChoice: Output only. Pairwise metric choice. + // + // Possible values: + // "PAIRWISE_CHOICE_UNSPECIFIED" - Unspecified prediction choice. + // "BASELINE" - Baseline prediction wins + // "CANDIDATE" - Candidate prediction wins + // "TIE" - Winner cannot be determined + PairwiseChoice string `json:"pairwiseChoice,omitempty"` + // ForceSendFields is a list of field names (e.g. "Explanation") 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. "Explanation") 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 GoogleCloudAiplatformV1beta1PairwiseMetricResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1PairwiseMetricResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1PairwiseMetricSpec: Spec for pairwise metric. +type GoogleCloudAiplatformV1beta1PairwiseMetricSpec struct { + // MetricPromptTemplate: Required. Metric prompt template for pairwise metric. + MetricPromptTemplate string `json:"metricPromptTemplate,omitempty"` + // ForceSendFields is a list of field names (e.g. "MetricPromptTemplate") 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. "MetricPromptTemplate") 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 GoogleCloudAiplatformV1beta1PairwiseMetricSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1PairwiseMetricSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1PairwiseQuestionAnsweringQualityInput: Input for // pairwise question answering quality metric. type GoogleCloudAiplatformV1beta1PairwiseQuestionAnsweringQualityInput struct { @@ -21959,6 +22154,118 @@ func (s GoogleCloudAiplatformV1beta1PipelineTemplateMetadata) MarshalJSON() ([]b return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1PointwiseMetricInput: Input for pointwise +// metric. +type GoogleCloudAiplatformV1beta1PointwiseMetricInput struct { + // Instance: Required. Pointwise metric instance. + Instance *GoogleCloudAiplatformV1beta1PointwiseMetricInstance `json:"instance,omitempty"` + // MetricSpec: Required. Spec for pointwise metric. + MetricSpec *GoogleCloudAiplatformV1beta1PointwiseMetricSpec `json:"metricSpec,omitempty"` + // ForceSendFields is a list of field names (e.g. "Instance") 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. "Instance") 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 GoogleCloudAiplatformV1beta1PointwiseMetricInput) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1PointwiseMetricInput + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1PointwiseMetricInstance: Pointwise metric +// instance. Usually one instance corresponds to one row in an evaluation +// dataset. +type GoogleCloudAiplatformV1beta1PointwiseMetricInstance struct { + // JsonInstance: Instance specified as a json string. String key-value pairs + // are expected in the json_instance to render + // PointwiseMetricSpec.instance_prompt_template. + JsonInstance string `json:"jsonInstance,omitempty"` + // ForceSendFields is a list of field names (e.g. "JsonInstance") 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. "JsonInstance") 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 GoogleCloudAiplatformV1beta1PointwiseMetricInstance) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1PointwiseMetricInstance + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudAiplatformV1beta1PointwiseMetricResult: Spec for pointwise metric +// result. +type GoogleCloudAiplatformV1beta1PointwiseMetricResult struct { + // Explanation: Output only. Explanation for pointwise metric score. + Explanation string `json:"explanation,omitempty"` + // Score: Output only. Pointwise metric score. + Score float64 `json:"score,omitempty"` + // ForceSendFields is a list of field names (e.g. "Explanation") 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. "Explanation") 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 GoogleCloudAiplatformV1beta1PointwiseMetricResult) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1PointwiseMetricResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1beta1PointwiseMetricResult) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1beta1PointwiseMetricResult + 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 +} + +// GoogleCloudAiplatformV1beta1PointwiseMetricSpec: Spec for pointwise metric. +type GoogleCloudAiplatformV1beta1PointwiseMetricSpec struct { + // MetricPromptTemplate: Required. Metric prompt template for pointwise metric. + MetricPromptTemplate string `json:"metricPromptTemplate,omitempty"` + // ForceSendFields is a list of field names (e.g. "MetricPromptTemplate") 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. "MetricPromptTemplate") 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 GoogleCloudAiplatformV1beta1PointwiseMetricSpec) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1PointwiseMetricSpec + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1Port: Represents a network port in a container. type GoogleCloudAiplatformV1beta1Port struct { // ContainerPort: The number of the port to expose on the pod's IP address. @@ -24137,6 +24444,31 @@ func (s GoogleCloudAiplatformV1beta1RagFileChunkingConfig) MarshalJSON() ([]byte return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1RagFileParsingConfig: Specifies the parsing +// config for RagFiles. +type GoogleCloudAiplatformV1beta1RagFileParsingConfig struct { + // ParsePdfsUsingOcr: Whether to use OCR for PDFs. + ParsePdfsUsingOcr bool `json:"parsePdfsUsingOcr,omitempty"` + // UseAdvancedPdfParsing: Whether to use advanced PDF parsing. + UseAdvancedPdfParsing bool `json:"useAdvancedPdfParsing,omitempty"` + // ForceSendFields is a list of field names (e.g. "ParsePdfsUsingOcr") 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. "ParsePdfsUsingOcr") 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 GoogleCloudAiplatformV1beta1RagFileParsingConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1RagFileParsingConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1RagQuery: A query to retrieve relevant contexts. type GoogleCloudAiplatformV1beta1RagQuery struct { // SimilarityTopK: Optional. The number of contexts to retrieve. @@ -112772,6 +113104,13 @@ func (r *PublishersModelsService) Get(name string) *PublishersModelsGetCall { return c } +// HuggingFaceToken sets the optional parameter "huggingFaceToken": Token used +// to access Hugging Face gated models. +func (c *PublishersModelsGetCall) HuggingFaceToken(huggingFaceToken string) *PublishersModelsGetCall { + c.urlParams_.Set("huggingFaceToken", huggingFaceToken) + return c +} + // IsHuggingFaceModel sets the optional parameter "isHuggingFaceModel": Boolean // indicates whether the requested model is a Hugging Face model. func (c *PublishersModelsGetCall) IsHuggingFaceModel(isHuggingFaceModel bool) *PublishersModelsGetCall { diff --git a/apikeys/v2/apikeys-api.json b/apikeys/v2/apikeys-api.json index 15b2ec052dd..5de86b47d30 100644 --- a/apikeys/v2/apikeys-api.json +++ b/apikeys/v2/apikeys-api.json @@ -396,7 +396,7 @@ } } }, - "revision": "20230806", + "revision": "20240811", "rootUrl": "https://apikeys.googleapis.com/", "schemas": { "Operation": { @@ -502,7 +502,7 @@ "type": "array" }, "service": { - "description": "The service for this restriction. It should be the canonical service name, for example: `translate.googleapis.com`. You can use [`gcloud services list`](/sdk/gcloud/reference/services/list) to get a list of services that are enabled in the project.", + "description": "The service for this restriction. It should be the canonical service name, for example: `translate.googleapis.com`. You can use [`gcloud services list`](https://cloud.google.com/sdk/gcloud/reference/services/list) to get a list of services that are enabled in the project.", "type": "string" } }, diff --git a/apikeys/v2/apikeys-gen.go b/apikeys/v2/apikeys-gen.go index a81df1dc0e4..3ce249ebc2f 100644 --- a/apikeys/v2/apikeys-gen.go +++ b/apikeys/v2/apikeys-gen.go @@ -363,8 +363,8 @@ type V2ApiTarget struct { Methods []string `json:"methods,omitempty"` // Service: The service for this restriction. It should be the canonical // service name, for example: `translate.googleapis.com`. You can use `gcloud - // services list` (/sdk/gcloud/reference/services/list) to get a list of - // services that are enabled in the project. + // services list` (https://cloud.google.com/sdk/gcloud/reference/services/list) + // to get a list of services that are enabled in the project. Service string `json:"service,omitempty"` // ForceSendFields is a list of field names (e.g. "Methods") to unconditionally // include in API requests. By default, fields with empty or default values are diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index d566681f254..2921f9925e1 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -1241,7 +1241,7 @@ } } }, - "revision": "20240804", + "revision": "20240808", "rootUrl": "https://chat.googleapis.com/", "schemas": { "AccessSettings": { @@ -1862,7 +1862,7 @@ "description": "Represents information about the user's client, such as locale, host app, and platform. For Chat apps, `CommonEventObject` includes information submitted by users interacting with [dialogs](https://developers.google.com/workspace/chat/dialogs), like data entered on a card." }, "configCompleteRedirectUrl": { - "description": "The URL the Chat app should redirect the user to after they have completed an authorization or configuration flow outside of Google Chat. For more information, see [Connect a Chat app with other services \u0026 tools](https://developers.google.com/workspace/chat/connect-web-services-tools).", + "description": "For `MESSAGE` interaction events, the URL that users must be redirected to after they complete an authorization or configuration flow outside of Google Chat. For more information, see [Connect a Chat app with other services and tools](https://developers.google.com/workspace/chat/connect-web-services-tools).", "type": "string" }, "dialogEventType": { @@ -4422,7 +4422,7 @@ "id": "Thread", "properties": { "name": { - "description": "Output only. Resource name of the thread. Example: `spaces/{space}/threads/{thread}`", + "description": "Resource name of the thread. Example: `spaces/{space}/threads/{thread}`", "type": "string" }, "threadKey": { diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 0f9c0590608..6af51798be7 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -1296,10 +1296,10 @@ type DeprecatedEvent struct { // (https://developers.google.com/workspace/chat/dialogs), like data entered on // a card. Common *CommonEventObject `json:"common,omitempty"` - // ConfigCompleteRedirectUrl: The URL the Chat app should redirect the user to - // after they have completed an authorization or configuration flow outside of - // Google Chat. For more information, see Connect a Chat app with other - // services & tools + // ConfigCompleteRedirectUrl: For `MESSAGE` interaction events, the URL that + // users must be redirected to after they complete an authorization or + // configuration flow outside of Google Chat. For more information, see Connect + // a Chat app with other services and tools // (https://developers.google.com/workspace/chat/connect-web-services-tools). ConfigCompleteRedirectUrl string `json:"configCompleteRedirectUrl,omitempty"` // DialogEventType: The type of dialog @@ -5084,7 +5084,7 @@ func (s TextParagraph) MarshalJSON() ([]byte, error) { // (https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages/create#messagereplyoption) // field to determine what happens if no matching thread is found. type Thread struct { - // Name: Output only. Resource name of the thread. Example: + // Name: Resource name of the thread. Example: // `spaces/{space}/threads/{thread}` Name string `json:"name,omitempty"` // ThreadKey: Optional. Input for creating or updating a thread. Otherwise, diff --git a/compute/v0.alpha/compute-api.json b/compute/v0.alpha/compute-api.json index 11980894ed0..17560ac82d8 100644 --- a/compute/v0.alpha/compute-api.json +++ b/compute/v0.alpha/compute-api.json @@ -29159,204 +29159,6 @@ } } }, - "regionMultiMigs": { - "methods": { - "delete": { - "description": "Deletes a regional multiMIG in the specified project.", - "flatPath": "projects/{project}/regions/{region}/multiMigs/{multiMig}", - "httpMethod": "DELETE", - "id": "compute.regionMultiMigs.delete", - "parameterOrder": [ - "project", - "region", - "multiMig" - ], - "parameters": { - "multiMig": { - "description": "Name of the multiMIG to delete.", - "location": "path", - "required": true, - "type": "string" - }, - "project": { - "description": "Project ID for this request.", - "location": "path", - "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "required": true, - "type": "string" - }, - "region": { - "description": "Name of the region for this request.", - "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "required": true, - "type": "string" - }, - "requestId": { - "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. 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, will ignore 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": "projects/{project}/regions/{region}/multiMigs/{multiMig}", - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "get": { - "description": "Returns the specified MultiMIG resource.", - "flatPath": "projects/{project}/regions/{region}/multiMigs/{multiMig}", - "httpMethod": "GET", - "id": "compute.regionMultiMigs.get", - "parameterOrder": [ - "project", - "region", - "multiMig" - ], - "parameters": { - "multiMig": { - "description": "Name of the MultiMig resource to return.", - "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", - "required": true, - "type": "string" - }, - "project": { - "description": "Project ID for this request.", - "location": "path", - "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "required": true, - "type": "string" - }, - "region": { - "description": "Name of the region for this request.", - "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "required": true, - "type": "string" - } - }, - "path": "projects/{project}/regions/{region}/multiMigs/{multiMig}", - "response": { - "$ref": "MultiMig" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - }, - "insert": { - "description": "Creates a regional multiMIG in the specified project.", - "flatPath": "projects/{project}/regions/{region}/multiMigs", - "httpMethod": "POST", - "id": "compute.regionMultiMigs.insert", - "parameterOrder": [ - "project", - "region" - ], - "parameters": { - "project": { - "description": "Project ID for this request.", - "location": "path", - "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "required": true, - "type": "string" - }, - "region": { - "description": "Name of the region for this request.", - "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "required": true, - "type": "string" - }, - "requestId": { - "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. 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, will ignore 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": "projects/{project}/regions/{region}/multiMigs", - "request": { - "$ref": "MultiMig" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute" - ] - }, - "list": { - "description": "Retrieves a list of MultiMIGs in a project and region.", - "flatPath": "projects/{project}/regions/{region}/multiMigs", - "httpMethod": "GET", - "id": "compute.regionMultiMigs.list", - "parameterOrder": [ - "project", - "region" - ], - "parameters": { - "filter": { - "description": "A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `\u003e`, `\u003c`, `\u003c=`, `\u003e=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq \"double quoted literal\"` `(fieldname1 eq literal) (fieldname2 ne \"literal\")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name \"instance\", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.", - "location": "query", - "type": "string" - }, - "maxResults": { - "default": "500", - "description": "The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)", - "format": "uint32", - "location": "query", - "minimum": "0", - "type": "integer" - }, - "orderBy": { - "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.", - "location": "query", - "type": "string" - }, - "pageToken": { - "description": "Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.", - "location": "query", - "type": "string" - }, - "project": { - "description": "Project ID for this request.", - "location": "path", - "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", - "required": true, - "type": "string" - }, - "region": { - "description": "Name of the region for this request.", - "location": "path", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "required": true, - "type": "string" - }, - "returnPartialSuccess": { - "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.", - "location": "query", - "type": "boolean" - } - }, - "path": "projects/{project}/regions/{region}/multiMigs", - "response": { - "$ref": "MultiMigsList" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/compute", - "https://www.googleapis.com/auth/compute.readonly" - ] - } - } - }, "regionNetworkEndpointGroups": { "methods": { "attachNetworkEndpoints": { @@ -45278,7 +45080,7 @@ } } }, - "revision": "20240730", + "revision": "20240805", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -48691,7 +48493,7 @@ "type": "number" }, "name": { - "description": "Name of a custom utilization signal. The name must be 1-24 characters long, and comply with RFC1035. Specifically, the name must be 1-24 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. For usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global or regional backend service with the loadBalancingScheme set to EXTERNAL_MANAGED, INTERNAL_MANAGED INTERNAL_SELF_MANAGED.", + "description": "Name of a custom utilization signal. The name must be 1-64 characters long, and comply with relaxed RFC1035. Specifically, the name must be 1-64 characters long and match the regular expression [a-z]([-_.a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, period, underscore, lowercase letter, or digit, except the last character, which cannot be a dash, period, or underscore. For usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global or regional backend service with the loadBalancingScheme set to EXTERNAL_MANAGED, INTERNAL_MANAGED INTERNAL_SELF_MANAGED.", "type": "string" } }, @@ -55868,7 +55670,6 @@ }, "timestamp": { "description": "Timestamp when the matching usage was calculated", - "format": "google-datetime", "type": "string" } }, @@ -69832,286 +69633,6 @@ }, "type": "object" }, - "MultiMig": { - "description": "MultiMIG represents a group of Managed Instance Groups.", - "id": "MultiMig", - "properties": { - "creationTimestamp": { - "description": "[Output Only] Creation timestamp in RFC3339 text format.", - "type": "string" - }, - "description": { - "description": "An optional description of this resource. Provide this property when you create the resource.", - "type": "string" - }, - "id": { - "description": "[Output Only] The unique identifier for the resource. This identifier is defined by the server.", - "format": "uint64", - "type": "string" - }, - "kind": { - "default": "compute#multiMig", - "description": "[Output Only] Type of the resource. Always compute#multiMig for MultiMIGs.", - "type": "string" - }, - "locationPolicy": { - "$ref": "MultiMigLocationPolicy" - }, - "name": { - "description": "Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.", - "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", - "type": "string" - }, - "parts": { - "additionalProperties": { - "$ref": "MultiMigPart" - }, - "description": "User-provided names for Parts of MultiMIG and the Parts themselves.", - "type": "object" - }, - "region": { - "description": "[Output Only] URL of the region where the resource resides. Only applicable for regional resources. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.", - "type": "string" - }, - "schedulingPolicy": { - "$ref": "MultiMigSchedulingPolicy", - "description": "Policy for handling provisioning and other scheduling-related events." - }, - "selfLink": { - "description": "[Output only] Server-defined URL for the resource.", - "type": "string" - }, - "selfLinkWithId": { - "description": "[Output Only] Server-defined URL for this resource with the resource id.", - "type": "string" - }, - "status": { - "$ref": "MultiMigStatus" - } - }, - "type": "object" - }, - "MultiMigLocationPolicy": { - "description": "Policy regarding where to create MIGs Initially only zonal MIGs in the same zone are supported.", - "id": "MultiMigLocationPolicy", - "properties": { - "provisioningZones": { - "description": "List of zones where MIGs will be provisioned. Should be valid RFC1035 name", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "MultiMigPart": { - "description": "Config for an MMIG part.", - "id": "MultiMigPart", - "properties": { - "instanceGroupManager": { - "description": "Link to an existing InstanceGroupManager that will be adopted by a MultiMIG.", - "type": "string" - }, - "instanceGroupManagerProperties": { - "$ref": "InstanceGroupManager", - "description": "InstanceGroupManager to be created by the multiMig" - } - }, - "type": "object" - }, - "MultiMigSchedulingPolicy": { - "description": "Policy for handling provisioning and other scheduling-related events.", - "id": "MultiMigSchedulingPolicy", - "properties": { - "provisioning": { - "description": "How provisioning of MIGs should be scheduled (coordinated or not)", - "enum": [ - "ANY", - "COOORDINATED" - ], - "enumDescriptions": [ - "Allows idependent lifecycles of parts.", - "Requires all parts at the same time." - ], - "type": "string" - } - }, - "type": "object" - }, - "MultiMigStatus": { - "id": "MultiMigStatus", - "properties": { - "memberInstanceGroupManagers": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "MultiMigsList": { - "id": "MultiMigsList", - "properties": { - "etag": { - "type": "string" - }, - "id": { - "description": "Unique identifier for the resource; defined by the server.", - "type": "string" - }, - "items": { - "description": "A list of MultiMig resources.", - "items": { - "$ref": "MultiMig" - }, - "type": "array" - }, - "kind": { - "default": "compute#multiMigList", - "description": "Type of resource.", - "type": "string" - }, - "nextPageToken": { - "description": "This token allows you to get the next page of results for maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.", - "type": "string" - }, - "selfLink": { - "description": "[Output only] Server-defined URL for this resource.", - "type": "string" - }, - "unreachables": { - "description": "[Output only] Unreachable resources.", - "items": { - "type": "string" - }, - "type": "array" - }, - "warning": { - "description": "Informational warning message.", - "properties": { - "code": { - "description": "[Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.", - "enum": [ - "CLEANUP_FAILED", - "DEPRECATED_RESOURCE_USED", - "DEPRECATED_TYPE_USED", - "DISK_SIZE_LARGER_THAN_IMAGE_SIZE", - "EXPERIMENTAL_TYPE_USED", - "EXTERNAL_API_WARNING", - "FIELD_VALUE_OVERRIDEN", - "INJECTED_KERNELS_DEPRECATED", - "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB", - "LARGE_DEPLOYMENT_WARNING", - "LIST_OVERHEAD_QUOTA_EXCEED", - "MISSING_TYPE_DEPENDENCY", - "NEXT_HOP_ADDRESS_NOT_ASSIGNED", - "NEXT_HOP_CANNOT_IP_FORWARD", - "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE", - "NEXT_HOP_INSTANCE_NOT_FOUND", - "NEXT_HOP_INSTANCE_NOT_ON_NETWORK", - "NEXT_HOP_NOT_RUNNING", - "NOT_CRITICAL_ERROR", - "NO_RESULTS_ON_PAGE", - "PARTIAL_SUCCESS", - "REQUIRED_TOS_AGREEMENT", - "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING", - "RESOURCE_NOT_DELETED", - "SCHEMA_VALIDATION_IGNORED", - "SINGLE_INSTANCE_PROPERTY_TEMPLATE", - "UNDECLARED_PROPERTIES", - "UNREACHABLE" - ], - "enumDeprecated": [ - false, - false, - false, - false, - false, - false, - true, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false - ], - "enumDescriptions": [ - "Warning about failed cleanup of transient changes made by a failed operation.", - "A link to a deprecated resource was created.", - "When deploying and at least one of the resources has a type marked as deprecated", - "The user created a boot disk that is larger than image size.", - "When deploying and at least one of the resources has a type marked as experimental", - "Warning that is present in an external api call", - "Warning that value of a field has been overridden. Deprecated unused field.", - "The operation involved use of an injected kernel, which is deprecated.", - "A WEIGHTED_MAGLEV backend service is associated with a health check that is not of type HTTP/HTTPS/HTTP2.", - "When deploying a deployment with a exceedingly large number of resources", - "Resource can't be retrieved due to list overhead quota exceed which captures the amount of resources filtered out by user-defined list filter.", - "A resource depends on a missing type", - "The route's nextHopIp address is not assigned to an instance on the network.", - "The route's next hop instance cannot ip forward.", - "The route's nextHopInstance URL refers to an instance that does not have an ipv6 interface on the same network as the route.", - "The route's nextHopInstance URL refers to an instance that does not exist.", - "The route's nextHopInstance URL refers to an instance that is not on the same network as the route.", - "The route's next hop instance does not have a status of RUNNING.", - "Error which is not critical. We decided to continue the process despite the mentioned error.", - "No results are present on a particular list page.", - "Success is reported, but some results may be missing due to errors", - "The user attempted to use a resource that requires a TOS they have not accepted.", - "Warning that a resource is in use.", - "One or more of the resources set to auto-delete could not be deleted because they were in use.", - "When a resource schema validation is ignored.", - "Instance template used in instance group manager is valid as such, but its application does not make a lot of sense, because it allows only single instance in instance group.", - "When undeclared properties in the schema are present", - "A given scope cannot be reached." - ], - "type": "string" - }, - "data": { - "description": "[Output Only] Metadata about this warning in key: value format. For example: \"data\": [ { \"key\": \"scope\", \"value\": \"zones/us-east1-d\" } ", - "items": { - "properties": { - "key": { - "description": "[Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).", - "type": "string" - }, - "value": { - "description": "[Output Only] A warning data value corresponding to the key.", - "type": "string" - } - }, - "type": "object" - }, - "type": "array" - }, - "message": { - "description": "[Output Only] A human-readable description of the warning code.", - "type": "string" - } - }, - "type": "object" - } - }, - "type": "object" - }, "MutualTls": { "description": "[Deprecated] Configuration for the mutual Tls mode for peer authentication. Configuration for the mutual Tls mode for peer authentication.", "id": "MutualTls", @@ -100807,7 +100328,7 @@ "type": "object" }, "localTrafficSelector": { - "description": "Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 is supported.", + "description": "Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN tunnels.", "items": { "type": "string" }, @@ -100837,7 +100358,7 @@ "type": "string" }, "peerIp": { - "description": "IP address of the peer VPN gateway. Only IPv4 is supported.", + "description": "IP address of the peer VPN gateway. Only IPv4 is supported. This field can be set only for Classic VPN tunnels.", "type": "string" }, "region": { @@ -100845,7 +100366,7 @@ "type": "string" }, "remoteTrafficSelector": { - "description": "Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.", + "description": "Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN tunnels.", "items": { "type": "string" }, @@ -100902,7 +100423,7 @@ "type": "string" }, "targetVpnGateway": { - "description": "URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created.", + "description": "URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. This field can be set only for Classic VPN tunnels.", "type": "string" }, "vpnGateway": { diff --git a/compute/v0.alpha/compute-gen.go b/compute/v0.alpha/compute-gen.go index c880afa9b26..88bed026ce1 100644 --- a/compute/v0.alpha/compute-gen.go +++ b/compute/v0.alpha/compute-gen.go @@ -232,7 +232,6 @@ func New(client *http.Client) (*Service, error) { s.RegionInstances = NewRegionInstancesService(s) s.RegionInstantSnapshotGroups = NewRegionInstantSnapshotGroupsService(s) s.RegionInstantSnapshots = NewRegionInstantSnapshotsService(s) - s.RegionMultiMigs = NewRegionMultiMigsService(s) s.RegionNetworkEndpointGroups = NewRegionNetworkEndpointGroupsService(s) s.RegionNetworkFirewallPolicies = NewRegionNetworkFirewallPoliciesService(s) s.RegionNotificationEndpoints = NewRegionNotificationEndpointsService(s) @@ -423,8 +422,6 @@ type Service struct { RegionInstantSnapshots *RegionInstantSnapshotsService - RegionMultiMigs *RegionMultiMigsService - RegionNetworkEndpointGroups *RegionNetworkEndpointGroupsService RegionNetworkFirewallPolicies *RegionNetworkFirewallPoliciesService @@ -1147,15 +1144,6 @@ type RegionInstantSnapshotsService struct { s *Service } -func NewRegionMultiMigsService(s *Service) *RegionMultiMigsService { - rs := &RegionMultiMigsService{s: s} - return rs -} - -type RegionMultiMigsService struct { - s *Service -} - func NewRegionNetworkEndpointGroupsService(s *Service) *RegionNetworkEndpointGroupsService { rs := &RegionNetworkEndpointGroupsService{s: s} return rs @@ -5461,15 +5449,16 @@ type BackendCustomMetric struct { // MaxUtilization: Optional parameter to define a target utilization for the // Custom Metrics balancing mode. The valid range is [0.0, 1.0]. MaxUtilization float64 `json:"maxUtilization,omitempty"` - // Name: Name of a custom utilization signal. The name must be 1-24 characters - // long, and comply with RFC1035. Specifically, the name must be 1-24 - // characters long and match the regular expression a-z ([-a-z0-9]*[a-z0-9])? + // Name: Name of a custom utilization signal. The name must be 1-64 characters + // long, and comply with relaxed RFC1035. Specifically, the name must be 1-64 + // characters long and match the regular expression a-z ([-_.a-z0-9]*[a-z0-9])? // which means the first character must be a lowercase letter, and all - // following characters must be a dash, lowercase letter, or digit, except the - // last character, which cannot be a dash. For usage guidelines, see Custom - // Metrics balancing mode. This field can only be used for a global or regional - // backend service with the loadBalancingScheme set to EXTERNAL_MANAGED, - // INTERNAL_MANAGED INTERNAL_SELF_MANAGED. + // following characters must be a dash, period, underscore, lowercase letter, + // or digit, except the last character, which cannot be a dash, period, or + // underscore. For usage guidelines, see Custom Metrics balancing mode. This + // field can only be used for a global or regional backend service with the + // loadBalancingScheme set to EXTERNAL_MANAGED, INTERNAL_MANAGED + // INTERNAL_SELF_MANAGED. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "DryRun") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -30013,316 +30002,6 @@ func (s Money) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// MultiMig: MultiMIG represents a group of Managed Instance Groups. -type MultiMig struct { - // CreationTimestamp: [Output Only] Creation timestamp in RFC3339 text format. - CreationTimestamp string `json:"creationTimestamp,omitempty"` - // Description: An optional description of this resource. Provide this property - // when you create the resource. - Description string `json:"description,omitempty"` - // Id: [Output Only] The unique identifier for the resource. This identifier is - // defined by the server. - Id uint64 `json:"id,omitempty,string"` - // Kind: [Output Only] Type of the resource. Always compute#multiMig for - // MultiMIGs. - Kind string `json:"kind,omitempty"` - LocationPolicy *MultiMigLocationPolicy `json:"locationPolicy,omitempty"` - // Name: Name of the resource. Provided by the client when the resource is - // created. The name must be 1-63 characters long, and comply with RFC1035. - // Specifically, the name must be 1-63 characters long and match the regular - // expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must - // be a lowercase letter, and all following characters must be a dash, - // lowercase letter, or digit, except the last character, which cannot be a - // dash. - Name string `json:"name,omitempty"` - // Parts: User-provided names for Parts of MultiMIG and the Parts themselves. - Parts map[string]MultiMigPart `json:"parts,omitempty"` - // Region: [Output Only] URL of the region where the resource resides. Only - // applicable for regional resources. You must specify this field as part of - // the HTTP request URL. It is not settable as a field in the request body. - Region string `json:"region,omitempty"` - // SchedulingPolicy: Policy for handling provisioning and other - // scheduling-related events. - SchedulingPolicy *MultiMigSchedulingPolicy `json:"schedulingPolicy,omitempty"` - // SelfLink: [Output only] Server-defined URL for the resource. - SelfLink string `json:"selfLink,omitempty"` - // SelfLinkWithId: [Output Only] Server-defined URL for this resource with the - // resource id. - SelfLinkWithId string `json:"selfLinkWithId,omitempty"` - Status *MultiMigStatus `json:"status,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreationTimestamp") 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. "CreationTimestamp") 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 MultiMig) MarshalJSON() ([]byte, error) { - type NoMethod MultiMig - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// MultiMigLocationPolicy: Policy regarding where to create MIGs Initially only -// zonal MIGs in the same zone are supported. -type MultiMigLocationPolicy struct { - // ProvisioningZones: List of zones where MIGs will be provisioned. Should be - // valid RFC1035 name - ProvisioningZones []string `json:"provisioningZones,omitempty"` - // ForceSendFields is a list of field names (e.g. "ProvisioningZones") 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. "ProvisioningZones") 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 MultiMigLocationPolicy) MarshalJSON() ([]byte, error) { - type NoMethod MultiMigLocationPolicy - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// MultiMigPart: Config for an MMIG part. -type MultiMigPart struct { - // InstanceGroupManager: Link to an existing InstanceGroupManager that will be - // adopted by a MultiMIG. - InstanceGroupManager string `json:"instanceGroupManager,omitempty"` - // InstanceGroupManagerProperties: InstanceGroupManager to be created by the - // multiMig - InstanceGroupManagerProperties *InstanceGroupManager `json:"instanceGroupManagerProperties,omitempty"` - // ForceSendFields is a list of field names (e.g. "InstanceGroupManager") 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. "InstanceGroupManager") 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 MultiMigPart) MarshalJSON() ([]byte, error) { - type NoMethod MultiMigPart - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// MultiMigSchedulingPolicy: Policy for handling provisioning and other -// scheduling-related events. -type MultiMigSchedulingPolicy struct { - // Provisioning: How provisioning of MIGs should be scheduled (coordinated or - // not) - // - // Possible values: - // "ANY" - Allows idependent lifecycles of parts. - // "COOORDINATED" - Requires all parts at the same time. - Provisioning string `json:"provisioning,omitempty"` - // ForceSendFields is a list of field names (e.g. "Provisioning") 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. "Provisioning") 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 MultiMigSchedulingPolicy) MarshalJSON() ([]byte, error) { - type NoMethod MultiMigSchedulingPolicy - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type MultiMigStatus struct { - MemberInstanceGroupManagers []string `json:"memberInstanceGroupManagers,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "MemberInstanceGroupManagers") 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. "MemberInstanceGroupManagers") 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 MultiMigStatus) MarshalJSON() ([]byte, error) { - type NoMethod MultiMigStatus - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type MultiMigsList struct { - Etag string `json:"etag,omitempty"` - // Id: Unique identifier for the resource; defined by the server. - Id string `json:"id,omitempty"` - // Items: A list of MultiMig resources. - Items []*MultiMig `json:"items,omitempty"` - // Kind: Type of resource. - Kind string `json:"kind,omitempty"` - // NextPageToken: This token allows you to get the next page of results for - // maxResults, use the nextPageToken as a value for the query parameter - // pageToken in the next list request. Subsequent list requests will have their - // own nextPageToken to continue paging through the results. - NextPageToken string `json:"nextPageToken,omitempty"` - // SelfLink: [Output only] Server-defined URL for this resource. - SelfLink string `json:"selfLink,omitempty"` - // Unreachables: [Output only] Unreachable resources. - Unreachables []string `json:"unreachables,omitempty"` - // Warning: Informational warning message. - Warning *MultiMigsListWarning `json:"warning,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the server. - googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally - // include in API requests. By default, fields with empty or default values are - // 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. "Etag") 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 MultiMigsList) MarshalJSON() ([]byte, error) { - type NoMethod MultiMigsList - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// MultiMigsListWarning: Informational warning message. -type MultiMigsListWarning struct { - // Code: [Output Only] A warning code, if applicable. For example, Compute - // Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. - // - // Possible values: - // "CLEANUP_FAILED" - Warning about failed cleanup of transient changes made - // by a failed operation. - // "DEPRECATED_RESOURCE_USED" - A link to a deprecated resource was created. - // "DEPRECATED_TYPE_USED" - When deploying and at least one of the resources - // has a type marked as deprecated - // "DISK_SIZE_LARGER_THAN_IMAGE_SIZE" - The user created a boot disk that is - // larger than image size. - // "EXPERIMENTAL_TYPE_USED" - When deploying and at least one of the - // resources has a type marked as experimental - // "EXTERNAL_API_WARNING" - Warning that is present in an external api call - // "FIELD_VALUE_OVERRIDEN" - Warning that value of a field has been - // overridden. Deprecated unused field. - // "INJECTED_KERNELS_DEPRECATED" - The operation involved use of an injected - // kernel, which is deprecated. - // "INVALID_HEALTH_CHECK_FOR_DYNAMIC_WIEGHTED_LB" - A WEIGHTED_MAGLEV backend - // service is associated with a health check that is not of type - // HTTP/HTTPS/HTTP2. - // "LARGE_DEPLOYMENT_WARNING" - When deploying a deployment with a - // exceedingly large number of resources - // "LIST_OVERHEAD_QUOTA_EXCEED" - Resource can't be retrieved due to list - // overhead quota exceed which captures the amount of resources filtered out by - // user-defined list filter. - // "MISSING_TYPE_DEPENDENCY" - A resource depends on a missing type - // "NEXT_HOP_ADDRESS_NOT_ASSIGNED" - The route's nextHopIp address is not - // assigned to an instance on the network. - // "NEXT_HOP_CANNOT_IP_FORWARD" - The route's next hop instance cannot ip - // forward. - // "NEXT_HOP_INSTANCE_HAS_NO_IPV6_INTERFACE" - The route's nextHopInstance - // URL refers to an instance that does not have an ipv6 interface on the same - // network as the route. - // "NEXT_HOP_INSTANCE_NOT_FOUND" - The route's nextHopInstance URL refers to - // an instance that does not exist. - // "NEXT_HOP_INSTANCE_NOT_ON_NETWORK" - The route's nextHopInstance URL - // refers to an instance that is not on the same network as the route. - // "NEXT_HOP_NOT_RUNNING" - The route's next hop instance does not have a - // status of RUNNING. - // "NOT_CRITICAL_ERROR" - Error which is not critical. We decided to continue - // the process despite the mentioned error. - // "NO_RESULTS_ON_PAGE" - No results are present on a particular list page. - // "PARTIAL_SUCCESS" - Success is reported, but some results may be missing - // due to errors - // "REQUIRED_TOS_AGREEMENT" - The user attempted to use a resource that - // requires a TOS they have not accepted. - // "RESOURCE_IN_USE_BY_OTHER_RESOURCE_WARNING" - Warning that a resource is - // in use. - // "RESOURCE_NOT_DELETED" - One or more of the resources set to auto-delete - // could not be deleted because they were in use. - // "SCHEMA_VALIDATION_IGNORED" - When a resource schema validation is - // ignored. - // "SINGLE_INSTANCE_PROPERTY_TEMPLATE" - Instance template used in instance - // group manager is valid as such, but its application does not make a lot of - // sense, because it allows only single instance in instance group. - // "UNDECLARED_PROPERTIES" - When undeclared properties in the schema are - // present - // "UNREACHABLE" - A given scope cannot be reached. - Code string `json:"code,omitempty"` - // Data: [Output Only] Metadata about this warning in key: value format. For - // example: "data": [ { "key": "scope", "value": "zones/us-east1-d" } - Data []*MultiMigsListWarningData `json:"data,omitempty"` - // Message: [Output Only] A human-readable description of the warning code. - Message string `json:"message,omitempty"` - // ForceSendFields is a list of field names (e.g. "Code") 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. "Code") 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 MultiMigsListWarning) MarshalJSON() ([]byte, error) { - type NoMethod MultiMigsListWarning - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type MultiMigsListWarningData struct { - // Key: [Output Only] A key that provides more detail on the warning being - // returned. For example, for warnings where there are no results in a list - // request for a particular zone, this key might be scope and the key value - // might be the zone name. Other examples might be a key indicating a - // deprecated resource and a suggested replacement, or a warning about invalid - // network settings (for example, if an instance attempts to perform IP - // forwarding but is not enabled for IP forwarding). - Key string `json:"key,omitempty"` - // Value: [Output Only] A warning data value corresponding to the key. - Value string `json:"value,omitempty"` - // ForceSendFields is a list of field names (e.g. "Key") 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. "Key") 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 MultiMigsListWarningData) MarshalJSON() ([]byte, error) { - type NoMethod MultiMigsListWarningData - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // MutualTls: [Deprecated] Configuration for the mutual Tls mode for peer // authentication. Configuration for the mutual Tls mode for peer // authentication. @@ -63318,7 +62997,8 @@ type VpnTunnel struct { // LocalTrafficSelector: Local traffic selector to use when establishing the // VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted // string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 - // is supported. + // is supported for Classic VPN tunnels. This field is output only for HA VPN + // tunnels. LocalTrafficSelector []string `json:"localTrafficSelector,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. @@ -63344,7 +63024,8 @@ type VpnTunnel struct { // provided, the VPN tunnel will automatically use the same vpnGatewayInterface // ID in the peer Google Cloud VPN gateway. PeerGcpGateway string `json:"peerGcpGateway,omitempty"` - // PeerIp: IP address of the peer VPN gateway. Only IPv4 is supported. + // PeerIp: IP address of the peer VPN gateway. Only IPv4 is supported. This + // field can be set only for Classic VPN tunnels. PeerIp string `json:"peerIp,omitempty"` // Region: [Output Only] URL of the region where the VPN tunnel resides. You // must specify this field as part of the HTTP request URL. It is not settable @@ -63353,7 +63034,8 @@ type VpnTunnel struct { // RemoteTrafficSelector: Remote traffic selectors to use when establishing the // VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted // string, for example: 192.168.0.0/16. The ranges should be disjoint. Only - // IPv4 is supported. + // IPv4 is supported for Classic VPN tunnels. This field is output only for HA + // VPN tunnels. RemoteTrafficSelector []string `json:"remoteTrafficSelector,omitempty"` // Router: URL of the router resource to be used for dynamic routing. Router string `json:"router,omitempty"` @@ -63405,7 +63087,8 @@ type VpnTunnel struct { // resources are needed to setup VPN tunnel. Status string `json:"status,omitempty"` // TargetVpnGateway: URL of the Target VPN gateway with which this VPN tunnel - // is associated. Provided by the client when the VPN tunnel is created. + // is associated. Provided by the client when the VPN tunnel is created. This + // field can be set only for Classic VPN tunnels. TargetVpnGateway string `json:"targetVpnGateway,omitempty"` // VpnGateway: URL of the VPN gateway with which this VPN tunnel is associated. // Provided by the client when the VPN tunnel is created. This must be used diff --git a/compute/v0.alpha/compute3-gen.go b/compute/v0.alpha/compute3-gen.go index c367a0a63bc..bcdbbfc8a57 100644 --- a/compute/v0.alpha/compute3-gen.go +++ b/compute/v0.alpha/compute3-gen.go @@ -14782,569 +14782,6 @@ func (c *RegionInstantSnapshotsTestIamPermissionsCall) Do(opts ...googleapi.Call return ret, nil } -type RegionMultiMigsDeleteCall struct { - s *Service - project string - region string - multiMig string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Delete: Deletes a regional multiMIG in the specified project. -// -// - multiMig: Name of the multiMIG to delete. -// - project: Project ID for this request. -// - region: Name of the region for this request. -func (r *RegionMultiMigsService) Delete(project string, region string, multiMig string) *RegionMultiMigsDeleteCall { - c := &RegionMultiMigsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.project = project - c.region = region - c.multiMig = multiMig - 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 will know to ignore the request if it has already -// been completed. 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, will ignore 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 *RegionMultiMigsDeleteCall) RequestId(requestId string) *RegionMultiMigsDeleteCall { - 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 *RegionMultiMigsDeleteCall) Fields(s ...googleapi.Field) *RegionMultiMigsDeleteCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *RegionMultiMigsDeleteCall) Context(ctx context.Context) *RegionMultiMigsDeleteCall { - 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 *RegionMultiMigsDeleteCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *RegionMultiMigsDeleteCall) 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, "projects/{project}/regions/{region}/multiMigs/{multiMig}") - 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{ - "project": c.project, - "region": c.region, - "multiMig": c.multiMig, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "compute.regionMultiMigs.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 *RegionMultiMigsDeleteCall) 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 RegionMultiMigsGetCall struct { - s *Service - project string - region string - multiMig string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Returns the specified MultiMIG resource. -// -// - multiMig: Name of the MultiMig resource to return. -// - project: Project ID for this request. -// - region: Name of the region for this request. -func (r *RegionMultiMigsService) Get(project string, region string, multiMig string) *RegionMultiMigsGetCall { - c := &RegionMultiMigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.project = project - c.region = region - c.multiMig = multiMig - 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 *RegionMultiMigsGetCall) Fields(s ...googleapi.Field) *RegionMultiMigsGetCall { - 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 *RegionMultiMigsGetCall) IfNoneMatch(entityTag string) *RegionMultiMigsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *RegionMultiMigsGetCall) Context(ctx context.Context) *RegionMultiMigsGetCall { - 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 *RegionMultiMigsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *RegionMultiMigsGetCall) 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, "projects/{project}/regions/{region}/multiMigs/{multiMig}") - 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{ - "project": c.project, - "region": c.region, - "multiMig": c.multiMig, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "compute.regionMultiMigs.get" call. -// Any non-2xx status code is an error. Response headers are in either -// *MultiMig.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 *RegionMultiMigsGetCall) Do(opts ...googleapi.CallOption) (*MultiMig, 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 := &MultiMig{ - 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 RegionMultiMigsInsertCall struct { - s *Service - project string - region string - multimig *MultiMig - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Insert: Creates a regional multiMIG in the specified project. -// -// - project: Project ID for this request. -// - region: Name of the region for this request. -func (r *RegionMultiMigsService) Insert(project string, region string, multimig *MultiMig) *RegionMultiMigsInsertCall { - c := &RegionMultiMigsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.project = project - c.region = region - c.multimig = multimig - 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 will know to ignore the request if it has already -// been completed. 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, will ignore 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 *RegionMultiMigsInsertCall) RequestId(requestId string) *RegionMultiMigsInsertCall { - 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 *RegionMultiMigsInsertCall) Fields(s ...googleapi.Field) *RegionMultiMigsInsertCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *RegionMultiMigsInsertCall) Context(ctx context.Context) *RegionMultiMigsInsertCall { - 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 *RegionMultiMigsInsertCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *RegionMultiMigsInsertCall) 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.multimig) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/multiMigs") - 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{ - "project": c.project, - "region": c.region, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "compute.regionMultiMigs.insert" 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 *RegionMultiMigsInsertCall) 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 RegionMultiMigsListCall struct { - s *Service - project string - region string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Retrieves a list of MultiMIGs in a project and region. -// -// - project: Project ID for this request. -// - region: Name of the region for this request. -func (r *RegionMultiMigsService) List(project string, region string) *RegionMultiMigsListCall { - c := &RegionMultiMigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.project = project - c.region = region - return c -} - -// Filter sets the optional parameter "filter": A filter expression that -// filters resources listed in the response. Most Compute resources support two -// types of filter expressions: expressions that support regular expressions -// and expressions that follow API improvement proposal AIP-160. These two -// types of filter expressions cannot be mixed in one request. If you want to -// use AIP-160, your expression must specify the field name, an operator, and -// the value that you want to use for filtering. The value must be a string, a -// number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, -// `>=` or `:`. For example, if you are filtering Compute Engine instances, you -// can exclude instances named `example-instance` by specifying `name != -// example-instance`. The `:*` comparison can be used to test whether a key has -// been defined. For example, to find all objects with `owner` label use: ``` -// labels.owner:* ``` You can also filter nested fields. For example, you could -// specify `scheduling.automaticRestart = false` to include instances only if -// they are not scheduled for automatic restarts. You can use filtering on -// nested fields to filter based on resource labels. To filter on multiple -// expressions, provide each separate expression within parentheses. For -// example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel -// Skylake") ``` By default, each expression is an `AND` expression. However, -// you can include `AND` and `OR` expressions explicitly. For example: ``` -// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND -// (scheduling.automaticRestart = true) ``` If you want to use a regular -// expression, use the `eq` (equal) or `ne` (not equal) operator against a -// single un-parenthesized expression with or without quotes or against -// multiple parenthesized expressions. Examples: `fieldname eq unquoted -// literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted -// literal" `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal -// value is interpreted as a regular expression using Google RE2 library -// syntax. The literal value must match the entire field. For example, to -// filter for instances that do not end with name "instance", you would use -// `name ne .*instance`. You cannot combine constraints on multiple fields -// using regular expressions. -func (c *RegionMultiMigsListCall) Filter(filter string) *RegionMultiMigsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// MaxResults sets the optional parameter "maxResults": The maximum number of -// results per page that should be returned. If the number of available results -// is larger than `maxResults`, Compute Engine returns a `nextPageToken` that -// can be used to get the next page of results in subsequent list requests. -// Acceptable values are `0` to `500`, inclusive. (Default: `500`) -func (c *RegionMultiMigsListCall) MaxResults(maxResults int64) *RegionMultiMigsListCall { - c.urlParams_.Set("maxResults", fmt.Sprint(maxResults)) - return c -} - -// OrderBy sets the optional parameter "orderBy": Sorts list results by a -// certain order. By default, results are returned in alphanumerical order -// based on the resource name. You can also sort results in descending order -// based on the creation timestamp using `orderBy="creationTimestamp desc". -// This sorts results based on the `creationTimestamp` field in reverse -// chronological order (newest result first). Use this to sort resources like -// operations so that the newest operation is returned first. Currently, only -// sorting by `name` or `creationTimestamp desc` is supported. -func (c *RegionMultiMigsListCall) OrderBy(orderBy string) *RegionMultiMigsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageToken sets the optional parameter "pageToken": Specifies a page token to -// use. Set `pageToken` to the `nextPageToken` returned by a previous list -// request to get the next page of results. -func (c *RegionMultiMigsListCall) PageToken(pageToken string) *RegionMultiMigsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// ReturnPartialSuccess sets the optional parameter "returnPartialSuccess": -// Opt-in for partial success behavior which provides partial results in case -// of failure. The default value is false. For example, when partial success -// behavior is enabled, aggregatedList for a single zone scope either returns -// all resources in the zone or no resources, with an error code. -func (c *RegionMultiMigsListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionMultiMigsListCall { - c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess)) - 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 *RegionMultiMigsListCall) Fields(s ...googleapi.Field) *RegionMultiMigsListCall { - 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 *RegionMultiMigsListCall) IfNoneMatch(entityTag string) *RegionMultiMigsListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *RegionMultiMigsListCall) Context(ctx context.Context) *RegionMultiMigsListCall { - 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 *RegionMultiMigsListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *RegionMultiMigsListCall) 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, "projects/{project}/regions/{region}/multiMigs") - 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{ - "project": c.project, - "region": c.region, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "compute.regionMultiMigs.list" call. -// Any non-2xx status code is an error. Response headers are in either -// *MultiMigsList.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 *RegionMultiMigsListCall) Do(opts ...googleapi.CallOption) (*MultiMigsList, 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 := &MultiMigsList{ - 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 *RegionMultiMigsListCall) Pages(ctx context.Context, f func(*MultiMigsList) 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 RegionNetworkEndpointGroupsAttachNetworkEndpointsCall struct { s *Service project string diff --git a/compute/v0.beta/compute-api.json b/compute/v0.beta/compute-api.json index 8d637ea3da6..2f398d79fd8 100644 --- a/compute/v0.beta/compute-api.json +++ b/compute/v0.beta/compute-api.json @@ -41911,7 +41911,7 @@ } } }, - "revision": "20240730", + "revision": "20240805", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -45076,6 +45076,25 @@ "description": "If true, enables Cloud CDN for the backend service of a global external Application Load Balancer.", "type": "boolean" }, + "externalManagedMigrationState": { + "description": "Specifies the canary migration state. Possible values are PREPARE, TEST_BY_PERCENTAGE, and TEST_ALL_TRAFFIC. To begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be changed to PREPARE. The state must be changed to TEST_ALL_TRAFFIC before the loadBalancingScheme can be changed to EXTERNAL_MANAGED. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate traffic by percentage using externalManagedMigrationTestingPercentage. Rolling back a migration requires the states to be set in reverse order. So changing the scheme from EXTERNAL_MANAGED to EXTERNAL requires the state to be set to TEST_ALL_TRAFFIC at the same time. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate some traffic back to EXTERNAL or PREPARE can be used to migrate all traffic back to EXTERNAL.", + "enum": [ + "PREPARE", + "TEST_ALL_TRAFFIC", + "TEST_BY_PERCENTAGE" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + }, + "externalManagedMigrationTestingPercentage": { + "description": "Determines the fraction of requests that should be processed by the Global external Application Load Balancer. The value of this field must be in the range [0, 100]. Session affinity options will slightly affect this routing behavior, for more details, see: Session Affinity. This value can only be set if the loadBalancingScheme in the BackendService is set to EXTERNAL (when using the classic Application Load Balancer) and the migration state is TEST_BY_PERCENTAGE.", + "format": "float", + "type": "number" + }, "failoverPolicy": { "$ref": "BackendServiceFailoverPolicy", "description": "Requires at least one backend instance group to be defined as a backup (failover) backend. For load balancers that have configurable failover: [Internal passthrough Network Load Balancers](https://cloud.google.com/load-balancing/docs/internal/failover-overview) and [external passthrough Network Load Balancers](https://cloud.google.com/load-balancing/docs/network/networklb-failover-overview)." @@ -50764,6 +50783,25 @@ "description": "An optional description of this resource. Provide this property when you create the resource.", "type": "string" }, + "externalManagedBackendBucketMigrationState": { + "description": "Specifies the canary migration state for the backend buckets attached to this forwarding rule. Possible values are PREPARE, TEST_BY_PERCENTAGE, and TEST_ALL_TRAFFIC. To begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be changed to PREPARE. The state must be changed to TEST_ALL_TRAFFIC before the loadBalancingScheme can be changed to EXTERNAL_MANAGED. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate traffic to backend buckets attached to this forwarding rule by percentage using externalManagedBackendBucketMigrationTestingPercentage. Rolling back a migration requires the states to be set in reverse order. So changing the scheme from EXTERNAL_MANAGED to EXTERNAL requires the state to be set to TEST_ALL_TRAFFIC at the same time. Optionally, the TEST_BY_PERCENTAGE state can be used to migrate some traffic back to EXTERNAL or PREPARE can be used to migrate all traffic back to EXTERNAL.", + "enum": [ + "PREPARE", + "TEST_ALL_TRAFFIC", + "TEST_BY_PERCENTAGE" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + }, + "externalManagedBackendBucketMigrationTestingPercentage": { + "description": "Determines the fraction of requests to backend buckets that should be processed by the global external Application Load Balancer. The value of this field must be in the range [0, 100]. This value can only be set if the loadBalancingScheme in the BackendService is set to EXTERNAL (when using the classic Application Load Balancer) and the migration state is TEST_BY_PERCENTAGE.", + "format": "float", + "type": "number" + }, "fingerprint": { "description": "Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a ForwardingRule. Include the fingerprint in patch request to ensure that you do not overwrite changes that were applied from another concurrent request. To see the latest fingerprint, make a get() request to retrieve a ForwardingRule.", "format": "byte", @@ -51629,7 +51667,6 @@ }, "timestamp": { "description": "Timestamp when the matching usage was calculated", - "format": "google-datetime", "type": "string" } }, @@ -63080,6 +63117,20 @@ }, "type": "array" }, + "architecture": { + "description": "[Output Only] The architecture of the machine type.", + "enum": [ + "ARCHITECTURE_UNSPECIFIED", + "ARM64", + "X86_64" + ], + "enumDescriptions": [ + "Default value indicating Architecture is not set.", + "Machines with architecture ARM64", + "Machines with architecture X86_64" + ], + "type": "string" + }, "bundledLocalSsds": { "$ref": "BundledLocalSsds", "description": "[Output Only] The configuration of bundled local SSD for the machine type." @@ -90769,7 +90820,7 @@ "type": "object" }, "localTrafficSelector": { - "description": "Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 is supported.", + "description": "Local traffic selector to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN tunnels.", "items": { "type": "string" }, @@ -90799,7 +90850,7 @@ "type": "string" }, "peerIp": { - "description": "IP address of the peer VPN gateway. Only IPv4 is supported.", + "description": "IP address of the peer VPN gateway. Only IPv4 is supported. This field can be set only for Classic VPN tunnels.", "type": "string" }, "region": { @@ -90807,7 +90858,7 @@ "type": "string" }, "remoteTrafficSelector": { - "description": "Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported.", + "description": "Remote traffic selectors to use when establishing the VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/16. The ranges should be disjoint. Only IPv4 is supported for Classic VPN tunnels. This field is output only for HA VPN tunnels.", "items": { "type": "string" }, @@ -90864,7 +90915,7 @@ "type": "string" }, "targetVpnGateway": { - "description": "URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created.", + "description": "URL of the Target VPN gateway with which this VPN tunnel is associated. Provided by the client when the VPN tunnel is created. This field can be set only for Classic VPN tunnels.", "type": "string" }, "vpnGateway": { diff --git a/compute/v0.beta/compute-gen.go b/compute/v0.beta/compute-gen.go index 58e51fc12bc..664f113cd4f 100644 --- a/compute/v0.beta/compute-gen.go +++ b/compute/v0.beta/compute-gen.go @@ -5082,6 +5082,33 @@ type BackendService struct { // EnableCDN: If true, enables Cloud CDN for the backend service of a global // external Application Load Balancer. EnableCDN bool `json:"enableCDN,omitempty"` + // ExternalManagedMigrationState: Specifies the canary migration state. + // Possible values are PREPARE, TEST_BY_PERCENTAGE, and TEST_ALL_TRAFFIC. To + // begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be + // changed to PREPARE. The state must be changed to TEST_ALL_TRAFFIC before the + // loadBalancingScheme can be changed to EXTERNAL_MANAGED. Optionally, the + // TEST_BY_PERCENTAGE state can be used to migrate traffic by percentage using + // externalManagedMigrationTestingPercentage. Rolling back a migration requires + // the states to be set in reverse order. So changing the scheme from + // EXTERNAL_MANAGED to EXTERNAL requires the state to be set to + // TEST_ALL_TRAFFIC at the same time. Optionally, the TEST_BY_PERCENTAGE state + // can be used to migrate some traffic back to EXTERNAL or PREPARE can be used + // to migrate all traffic back to EXTERNAL. + // + // Possible values: + // "PREPARE" + // "TEST_ALL_TRAFFIC" + // "TEST_BY_PERCENTAGE" + ExternalManagedMigrationState string `json:"externalManagedMigrationState,omitempty"` + // ExternalManagedMigrationTestingPercentage: Determines the fraction of + // requests that should be processed by the Global external Application Load + // Balancer. The value of this field must be in the range [0, 100]. Session + // affinity options will slightly affect this routing behavior, for more + // details, see: Session Affinity. This value can only be set if the + // loadBalancingScheme in the BackendService is set to EXTERNAL (when using the + // classic Application Load Balancer) and the migration state is + // TEST_BY_PERCENTAGE. + ExternalManagedMigrationTestingPercentage float64 `json:"externalManagedMigrationTestingPercentage,omitempty"` // FailoverPolicy: Requires at least one backend instance group to be defined // as a backup (failover) backend. For load balancers that have configurable // failover: Internal passthrough Network Load Balancers @@ -5412,6 +5439,20 @@ func (s BackendService) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +func (s *BackendService) UnmarshalJSON(data []byte) error { + type NoMethod BackendService + var s1 struct { + ExternalManagedMigrationTestingPercentage gensupport.JSONFloat64 `json:"externalManagedMigrationTestingPercentage"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ExternalManagedMigrationTestingPercentage = float64(s1.ExternalManagedMigrationTestingPercentage) + return nil +} + // BackendServiceAggregatedList: Contains a list of BackendServicesScopedList. type BackendServiceAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. @@ -11773,6 +11814,33 @@ type ForwardingRule struct { // Description: An optional description of this resource. Provide this property // when you create the resource. Description string `json:"description,omitempty"` + // ExternalManagedBackendBucketMigrationState: Specifies the canary migration + // state for the backend buckets attached to this forwarding rule. Possible + // values are PREPARE, TEST_BY_PERCENTAGE, and TEST_ALL_TRAFFIC. To begin the + // migration from EXTERNAL to EXTERNAL_MANAGED, the state must be changed to + // PREPARE. The state must be changed to TEST_ALL_TRAFFIC before the + // loadBalancingScheme can be changed to EXTERNAL_MANAGED. Optionally, the + // TEST_BY_PERCENTAGE state can be used to migrate traffic to backend buckets + // attached to this forwarding rule by percentage using + // externalManagedBackendBucketMigrationTestingPercentage. Rolling back a + // migration requires the states to be set in reverse order. So changing the + // scheme from EXTERNAL_MANAGED to EXTERNAL requires the state to be set to + // TEST_ALL_TRAFFIC at the same time. Optionally, the TEST_BY_PERCENTAGE state + // can be used to migrate some traffic back to EXTERNAL or PREPARE can be used + // to migrate all traffic back to EXTERNAL. + // + // Possible values: + // "PREPARE" + // "TEST_ALL_TRAFFIC" + // "TEST_BY_PERCENTAGE" + ExternalManagedBackendBucketMigrationState string `json:"externalManagedBackendBucketMigrationState,omitempty"` + // ExternalManagedBackendBucketMigrationTestingPercentage: Determines the + // fraction of requests to backend buckets that should be processed by the + // global external Application Load Balancer. The value of this field must be + // in the range [0, 100]. This value can only be set if the loadBalancingScheme + // in the BackendService is set to EXTERNAL (when using the classic Application + // Load Balancer) and the migration state is TEST_BY_PERCENTAGE. + ExternalManagedBackendBucketMigrationTestingPercentage float64 `json:"externalManagedBackendBucketMigrationTestingPercentage,omitempty"` // Fingerprint: Fingerprint of this resource. A hash of the contents stored in // this object. This field is used in optimistic locking. This field will be // ignored when inserting a ForwardingRule. Include the fingerprint in patch @@ -12002,6 +12070,20 @@ func (s ForwardingRule) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +func (s *ForwardingRule) UnmarshalJSON(data []byte) error { + type NoMethod ForwardingRule + var s1 struct { + ExternalManagedBackendBucketMigrationTestingPercentage gensupport.JSONFloat64 `json:"externalManagedBackendBucketMigrationTestingPercentage"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.ExternalManagedBackendBucketMigrationTestingPercentage = float64(s1.ExternalManagedBackendBucketMigrationTestingPercentage) + return nil +} + type ForwardingRuleAggregatedList struct { // Id: [Output Only] Unique identifier for the resource; defined by the server. Id string `json:"id,omitempty"` @@ -25899,6 +25981,14 @@ type MachineType struct { // Accelerators: [Output Only] A list of accelerator configurations assigned to // this machine type. Accelerators []*MachineTypeAccelerators `json:"accelerators,omitempty"` + // Architecture: [Output Only] The architecture of the machine type. + // + // Possible values: + // "ARCHITECTURE_UNSPECIFIED" - Default value indicating Architecture is not + // set. + // "ARM64" - Machines with architecture ARM64 + // "X86_64" - Machines with architecture X86_64 + Architecture string `json:"architecture,omitempty"` // BundledLocalSsds: [Output Only] The configuration of bundled local SSD for // the machine type. BundledLocalSsds *BundledLocalSsds `json:"bundledLocalSsds,omitempty"` @@ -56089,7 +56179,8 @@ type VpnTunnel struct { // LocalTrafficSelector: Local traffic selector to use when establishing the // VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted // string, for example: 192.168.0.0/16. The ranges must be disjoint. Only IPv4 - // is supported. + // is supported for Classic VPN tunnels. This field is output only for HA VPN + // tunnels. LocalTrafficSelector []string `json:"localTrafficSelector,omitempty"` // Name: Name of the resource. Provided by the client when the resource is // created. The name must be 1-63 characters long, and comply with RFC1035. @@ -56115,7 +56206,8 @@ type VpnTunnel struct { // provided, the VPN tunnel will automatically use the same vpnGatewayInterface // ID in the peer Google Cloud VPN gateway. PeerGcpGateway string `json:"peerGcpGateway,omitempty"` - // PeerIp: IP address of the peer VPN gateway. Only IPv4 is supported. + // PeerIp: IP address of the peer VPN gateway. Only IPv4 is supported. This + // field can be set only for Classic VPN tunnels. PeerIp string `json:"peerIp,omitempty"` // Region: [Output Only] URL of the region where the VPN tunnel resides. You // must specify this field as part of the HTTP request URL. It is not settable @@ -56124,7 +56216,8 @@ type VpnTunnel struct { // RemoteTrafficSelector: Remote traffic selectors to use when establishing the // VPN tunnel with the peer VPN gateway. The value should be a CIDR formatted // string, for example: 192.168.0.0/16. The ranges should be disjoint. Only - // IPv4 is supported. + // IPv4 is supported for Classic VPN tunnels. This field is output only for HA + // VPN tunnels. RemoteTrafficSelector []string `json:"remoteTrafficSelector,omitempty"` // Router: URL of the router resource to be used for dynamic routing. Router string `json:"router,omitempty"` @@ -56176,7 +56269,8 @@ type VpnTunnel struct { // resources are needed to setup VPN tunnel. Status string `json:"status,omitempty"` // TargetVpnGateway: URL of the Target VPN gateway with which this VPN tunnel - // is associated. Provided by the client when the VPN tunnel is created. + // is associated. Provided by the client when the VPN tunnel is created. This + // field can be set only for Classic VPN tunnels. TargetVpnGateway string `json:"targetVpnGateway,omitempty"` // VpnGateway: URL of the VPN gateway with which this VPN tunnel is associated. // Provided by the client when the VPN tunnel is created. This must be used diff --git a/firebaseml/v2beta/firebaseml-api.json b/firebaseml/v2beta/firebaseml-api.json index f33346d3a6c..2fb05ca0923 100644 --- a/firebaseml/v2beta/firebaseml-api.json +++ b/firebaseml/v2beta/firebaseml-api.json @@ -206,7 +206,7 @@ } } }, - "revision": "20240808", + "revision": "20240809", "rootUrl": "https://firebaseml.googleapis.com/", "schemas": { "Date": { @@ -290,7 +290,7 @@ "The finish reason is unspecified.", "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 safety violations. NOTE: When streaming, 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.", diff --git a/firebaseml/v2beta/firebaseml-gen.go b/firebaseml/v2beta/firebaseml-gen.go index 0495747aa68..0b301bf9472 100644 --- a/firebaseml/v2beta/firebaseml-gen.go +++ b/firebaseml/v2beta/firebaseml-gen.go @@ -284,8 +284,8 @@ type GoogleCloudAiplatformV1beta1Candidate struct { // "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. + // contains safety violations. NOTE: When streaming, 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. diff --git a/manufacturers/v1/manufacturers-api.json b/manufacturers/v1/manufacturers-api.json index 0432a4c3160..e163193cebd 100644 --- a/manufacturers/v1/manufacturers-api.json +++ b/manufacturers/v1/manufacturers-api.json @@ -416,7 +416,7 @@ } } }, - "revision": "20240716", + "revision": "20240809", "rootUrl": "https://manufacturers.googleapis.com/", "schemas": { "Attributes": { @@ -513,6 +513,13 @@ }, "type": "array" }, + "intendedCountry": { + "description": "Optional. List of countries to show this product in. Countries provided in this attribute will override any of the countries configured at feed level. The values should be: the [CLDR territory code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) of the countries in which this item will be shown.", + "items": { + "type": "string" + }, + "type": "array" + }, "itemGroupId": { "description": "The item group id of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#itemgroupid.", "type": "string" @@ -697,10 +704,34 @@ "description": "The destination status.", "id": "DestinationStatus", "properties": { + "approvedCountries": { + "description": "Output only. List of country codes (ISO 3166-1 alpha-2) where the offer is approved.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, "destination": { "description": "The name of the destination.", "type": "string" }, + "disapprovedCountries": { + "description": "Output only. List of country codes (ISO 3166-1 alpha-2) where the offer is disapproved.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "pendingCountries": { + "description": "Output only. List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, "status": { "description": "The status of the destination.", "enum": [ @@ -1224,6 +1255,10 @@ }, "type": "array" }, + "feedLabel": { + "description": "Optional. The feed label for the product.", + "type": "string" + }, "issues": { "description": "A server-generated list of issues associated with the product.", "items": { diff --git a/manufacturers/v1/manufacturers-gen.go b/manufacturers/v1/manufacturers-gen.go index 5ecf37c398b..eb63c667ae5 100644 --- a/manufacturers/v1/manufacturers-gen.go +++ b/manufacturers/v1/manufacturers-gen.go @@ -259,6 +259,12 @@ type Attributes struct { // "ClientShoppingCatalog" or "PartnerShoppingCatalog". For more information, // see https://support.google.com/manufacturers/answer/7443550 IncludedDestination []string `json:"includedDestination,omitempty"` + // IntendedCountry: Optional. List of countries to show this product in. + // Countries provided in this attribute will override any of the countries + // configured at feed level. The values should be: the CLDR territory code + // (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) of the + // countries in which this item will be shown. + IntendedCountry []string `json:"intendedCountry,omitempty"` // ItemGroupId: The item group id of the product. For more information, see // https://support.google.com/manufacturers/answer/6124116#itemgroupid. ItemGroupId string `json:"itemGroupId,omitempty"` @@ -436,8 +442,17 @@ func (s Count) MarshalJSON() ([]byte, error) { // DestinationStatus: The destination status. type DestinationStatus struct { + // ApprovedCountries: Output only. List of country codes (ISO 3166-1 alpha-2) + // where the offer is approved. + ApprovedCountries []string `json:"approvedCountries,omitempty"` // Destination: The name of the destination. Destination string `json:"destination,omitempty"` + // DisapprovedCountries: Output only. List of country codes (ISO 3166-1 + // alpha-2) where the offer is disapproved. + DisapprovedCountries []string `json:"disapprovedCountries,omitempty"` + // PendingCountries: Output only. List of country codes (ISO 3166-1 alpha-2) + // where the offer is pending approval. + PendingCountries []string `json:"pendingCountries,omitempty"` // Status: The status of the destination. // // Possible values: @@ -446,15 +461,15 @@ type DestinationStatus struct { // "PENDING" - The decision is still pending. // "DISAPPROVED" - The product is disapproved. Please look at the issues. Status string `json:"status,omitempty"` - // ForceSendFields is a list of field names (e.g. "Destination") to + // ForceSendFields is a list of field names (e.g. "ApprovedCountries") 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. "Destination") 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. "ApprovedCountries") 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:"-"` } @@ -970,6 +985,8 @@ type Product struct { ContentLanguage string `json:"contentLanguage,omitempty"` // DestinationStatuses: The status of the destinations. DestinationStatuses []*DestinationStatus `json:"destinationStatuses,omitempty"` + // FeedLabel: Optional. The feed label for the product. + FeedLabel string `json:"feedLabel,omitempty"` // Issues: A server-generated list of issues associated with the product. Issues []*Issue `json:"issues,omitempty"` // Name: Name in the format `{target_country}:{content_language}:{product_id}`. diff --git a/serviceusage/v1/serviceusage-api.json b/serviceusage/v1/serviceusage-api.json index 74e89d1c2a2..e6b34e1bdf7 100644 --- a/serviceusage/v1/serviceusage-api.json +++ b/serviceusage/v1/serviceusage-api.json @@ -426,7 +426,7 @@ } } }, - "revision": "20240712", + "revision": "20240811", "rootUrl": "https://serviceusage.googleapis.com/", "schemas": { "AddEnableRulesMetadata": { @@ -488,6 +488,83 @@ }, "type": "object" }, + "Analysis": { + "description": "A message to group the analysis information.", + "id": "Analysis", + "properties": { + "analysis": { + "$ref": "AnalysisResult", + "description": "Output only. Analysis result of updating a policy.", + "readOnly": true + }, + "analysisType": { + "description": "Output only. The type of analysis.", + "enum": [ + "ANALYSIS_TYPE_UNSPECIFIED", + "ANALYSIS_TYPE_DEPENDENCY", + "ANALYSIS_TYPE_RESOURCE_USAGE" + ], + "enumDescriptions": [ + "Unspecified analysis type. Do not use.", + "The analysis of service dependencies.", + "The analysis of service resource usage." + ], + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Output only. The user friendly display name of the analysis type. E.g. service dependency analysis, service resource usage analysis, etc.", + "readOnly": true, + "type": "string" + }, + "service": { + "description": "The names of the service that has analysis result of warnings or blockers. Example: `services/storage.googleapis.com`.", + "type": "string" + } + }, + "type": "object" + }, + "AnalysisResult": { + "description": "An analysis result including blockers and warnings.", + "id": "AnalysisResult", + "properties": { + "blockers": { + "description": "Blocking information that would prevent the policy changes at runtime.", + "items": { + "$ref": "Impact" + }, + "type": "array" + }, + "warnings": { + "description": "Warning information indicating that the policy changes might be unsafe, but will not block the changes at runtime.", + "items": { + "$ref": "Impact" + }, + "type": "array" + } + }, + "type": "object" + }, + "AnalyzeConsumerPolicyMetadata": { + "description": "Metadata for the `AnalyzeConsumerPolicy` method.", + "id": "AnalyzeConsumerPolicyMetadata", + "properties": {}, + "type": "object" + }, + "AnalyzeConsumerPolicyResponse": { + "description": "The response of analyzing a consumer policy update.", + "id": "AnalyzeConsumerPolicyResponse", + "properties": { + "analysis": { + "description": "The list of analyses returned from performing the intended policy update analysis. The analysis is grouped by service name and different analysis types. The empty analysis list means that the consumer policy can be updated without any warnings or blockers.", + "items": { + "$ref": "Analysis" + }, + "type": "array" + } + }, + "type": "object" + }, "Api": { "description": "Api is a light-weight descriptor for an API Interface. Interfaces are also described as \"protocol buffer services\" in some contexts, such as by the \"service\" keyword in a .proto file, but they are different from API Services, which represent a concrete implementation of an interface as opposed to simply a description of methods and bindings. They are also sometimes simply referred to as \"APIs\" in other contexts, such as the name of this message itself. See https://cloud.google.com/apis/design/glossary for detailed terminology.", "id": "Api", @@ -2020,6 +2097,31 @@ }, "type": "object" }, + "Impact": { + "description": "A message to group impacts of updating a policy.", + "id": "Impact", + "properties": { + "detail": { + "description": "Output only. User friendly impact detail in a free form message.", + "readOnly": true, + "type": "string" + }, + "impactType": { + "description": "Output only. The type of impact.", + "enum": [ + "IMPACT_TYPE_UNSPECIFIED", + "DEPENDENCY_MISSING_DEPENDENCIES" + ], + "enumDescriptions": [ + "Reserved Blocks (Block n contains codes from 100n to 100(n+1) -1 Block 0 - Special/Admin codes Block 1 - Impact Type of ANALYSIS_TYPE_DEPENDENCY Block 2 - Impact Type of ANALYSIS_TYPE_RESOURCE_USAGE ...", + "Block 1 - Impact Type of ANALYSIS_TYPE_DEPENDENCY" + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "ImportAdminOverridesMetadata": { "description": "Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportAdminOverrides.", "id": "ImportAdminOverridesMetadata", diff --git a/serviceusage/v1/serviceusage-gen.go b/serviceusage/v1/serviceusage-gen.go index 7010ee5af38..8c0bdb5b258 100644 --- a/serviceusage/v1/serviceusage-gen.go +++ b/serviceusage/v1/serviceusage-gen.go @@ -269,6 +269,99 @@ func (s AdminQuotaPolicy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// Analysis: A message to group the analysis information. +type Analysis struct { + // Analysis: Output only. Analysis result of updating a policy. + Analysis *AnalysisResult `json:"analysis,omitempty"` + // AnalysisType: Output only. The type of analysis. + // + // Possible values: + // "ANALYSIS_TYPE_UNSPECIFIED" - Unspecified analysis type. Do not use. + // "ANALYSIS_TYPE_DEPENDENCY" - The analysis of service dependencies. + // "ANALYSIS_TYPE_RESOURCE_USAGE" - The analysis of service resource usage. + AnalysisType string `json:"analysisType,omitempty"` + // DisplayName: Output only. The user friendly display name of the analysis + // type. E.g. service dependency analysis, service resource usage analysis, + // etc. + DisplayName string `json:"displayName,omitempty"` + // Service: The names of the service that has analysis result of warnings or + // blockers. Example: `services/storage.googleapis.com`. + Service string `json:"service,omitempty"` + // ForceSendFields is a list of field names (e.g. "Analysis") 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. "Analysis") 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 Analysis) MarshalJSON() ([]byte, error) { + type NoMethod Analysis + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AnalysisResult: An analysis result including blockers and warnings. +type AnalysisResult struct { + // Blockers: Blocking information that would prevent the policy changes at + // runtime. + Blockers []*Impact `json:"blockers,omitempty"` + // Warnings: Warning information indicating that the policy changes might be + // unsafe, but will not block the changes at runtime. + Warnings []*Impact `json:"warnings,omitempty"` + // ForceSendFields is a list of field names (e.g. "Blockers") 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. "Blockers") 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 AnalysisResult) MarshalJSON() ([]byte, error) { + type NoMethod AnalysisResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AnalyzeConsumerPolicyMetadata: Metadata for the `AnalyzeConsumerPolicy` +// method. +type AnalyzeConsumerPolicyMetadata struct { +} + +// AnalyzeConsumerPolicyResponse: The response of analyzing a consumer policy +// update. +type AnalyzeConsumerPolicyResponse struct { + // Analysis: The list of analyses returned from performing the intended policy + // update analysis. The analysis is grouped by service name and different + // analysis types. The empty analysis list means that the consumer policy can + // be updated without any warnings or blockers. + Analysis []*Analysis `json:"analysis,omitempty"` + // ForceSendFields is a list of field names (e.g. "Analysis") 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. "Analysis") 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 AnalyzeConsumerPolicyResponse) MarshalJSON() ([]byte, error) { + type NoMethod AnalyzeConsumerPolicyResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Api: Api is a light-weight descriptor for an API Interface. Interfaces are // also described as "protocol buffer services" in some contexts, such as by // the "service" keyword in a .proto file, but they are different from API @@ -2393,6 +2486,38 @@ func (s HttpRule) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// Impact: A message to group impacts of updating a policy. +type Impact struct { + // Detail: Output only. User friendly impact detail in a free form message. + Detail string `json:"detail,omitempty"` + // ImpactType: Output only. The type of impact. + // + // Possible values: + // "IMPACT_TYPE_UNSPECIFIED" - Reserved Blocks (Block n contains codes from + // 100n to 100(n+1) -1 Block 0 - Special/Admin codes Block 1 - Impact Type of + // ANALYSIS_TYPE_DEPENDENCY Block 2 - Impact Type of + // ANALYSIS_TYPE_RESOURCE_USAGE ... + // "DEPENDENCY_MISSING_DEPENDENCIES" - Block 1 - Impact Type of + // ANALYSIS_TYPE_DEPENDENCY + ImpactType string `json:"impactType,omitempty"` + // ForceSendFields is a list of field names (e.g. "Detail") 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. "Detail") 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 Impact) MarshalJSON() ([]byte, error) { + type NoMethod Impact + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ImportAdminOverridesMetadata: Metadata message that provides information // such as progress, partial failures, and similar information on each // GetOperation call of LRO returned by ImportAdminOverrides. diff --git a/serviceusage/v1beta1/serviceusage-api.json b/serviceusage/v1beta1/serviceusage-api.json index 6eb28168259..0d60f34212a 100644 --- a/serviceusage/v1beta1/serviceusage-api.json +++ b/serviceusage/v1beta1/serviceusage-api.json @@ -964,7 +964,7 @@ } } }, - "revision": "20240712", + "revision": "20240811", "rootUrl": "https://serviceusage.googleapis.com/", "schemas": { "AddEnableRulesMetadata": { @@ -1026,6 +1026,83 @@ }, "type": "object" }, + "Analysis": { + "description": "A message to group the analysis information.", + "id": "Analysis", + "properties": { + "analysis": { + "$ref": "AnalysisResult", + "description": "Output only. Analysis result of updating a policy.", + "readOnly": true + }, + "analysisType": { + "description": "Output only. The type of analysis.", + "enum": [ + "ANALYSIS_TYPE_UNSPECIFIED", + "ANALYSIS_TYPE_DEPENDENCY", + "ANALYSIS_TYPE_RESOURCE_USAGE" + ], + "enumDescriptions": [ + "Unspecified analysis type. Do not use.", + "The analysis of service dependencies.", + "The analysis of service resource usage." + ], + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Output only. The user friendly display name of the analysis type. E.g. service dependency analysis, service resource usage analysis, etc.", + "readOnly": true, + "type": "string" + }, + "service": { + "description": "The names of the service that has analysis result of warnings or blockers. Example: `services/storage.googleapis.com`.", + "type": "string" + } + }, + "type": "object" + }, + "AnalysisResult": { + "description": "An analysis result including blockers and warnings.", + "id": "AnalysisResult", + "properties": { + "blockers": { + "description": "Blocking information that would prevent the policy changes at runtime.", + "items": { + "$ref": "Impact" + }, + "type": "array" + }, + "warnings": { + "description": "Warning information indicating that the policy changes might be unsafe, but will not block the changes at runtime.", + "items": { + "$ref": "Impact" + }, + "type": "array" + } + }, + "type": "object" + }, + "AnalyzeConsumerPolicyMetadata": { + "description": "Metadata for the `AnalyzeConsumerPolicy` method.", + "id": "AnalyzeConsumerPolicyMetadata", + "properties": {}, + "type": "object" + }, + "AnalyzeConsumerPolicyResponse": { + "description": "The response of analyzing a consumer policy update.", + "id": "AnalyzeConsumerPolicyResponse", + "properties": { + "analysis": { + "description": "The list of analyses returned from performing the intended policy update analysis. The analysis is grouped by service name and different analysis types. The empty analysis list means that the consumer policy can be updated without any warnings or blockers.", + "items": { + "$ref": "Analysis" + }, + "type": "array" + } + }, + "type": "object" + }, "Api": { "description": "Api is a light-weight descriptor for an API Interface. Interfaces are also described as \"protocol buffer services\" in some contexts, such as by the \"service\" keyword in a .proto file, but they are different from API Services, which represent a concrete implementation of an interface as opposed to simply a description of methods and bindings. They are also sometimes simply referred to as \"APIs\" in other contexts, such as the name of this message itself. See https://cloud.google.com/apis/design/glossary for detailed terminology.", "id": "Api", @@ -2597,6 +2674,31 @@ }, "type": "object" }, + "Impact": { + "description": "A message to group impacts of updating a policy.", + "id": "Impact", + "properties": { + "detail": { + "description": "Output only. User friendly impact detail in a free form message.", + "readOnly": true, + "type": "string" + }, + "impactType": { + "description": "Output only. The type of impact.", + "enum": [ + "IMPACT_TYPE_UNSPECIFIED", + "DEPENDENCY_MISSING_DEPENDENCIES" + ], + "enumDescriptions": [ + "Reserved Blocks (Block n contains codes from 100n to 100(n+1) -1 Block 0 - Special/Admin codes Block 1 - Impact Type of ANALYSIS_TYPE_DEPENDENCY Block 2 - Impact Type of ANALYSIS_TYPE_RESOURCE_USAGE ...", + "Block 1 - Impact Type of ANALYSIS_TYPE_DEPENDENCY" + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "ImportAdminOverridesMetadata": { "description": "Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by ImportAdminOverrides.", "id": "ImportAdminOverridesMetadata", diff --git a/serviceusage/v1beta1/serviceusage-gen.go b/serviceusage/v1beta1/serviceusage-gen.go index 32fe10cf515..dee89abafd2 100644 --- a/serviceusage/v1beta1/serviceusage-gen.go +++ b/serviceusage/v1beta1/serviceusage-gen.go @@ -317,6 +317,99 @@ func (s AdminQuotaPolicy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// Analysis: A message to group the analysis information. +type Analysis struct { + // Analysis: Output only. Analysis result of updating a policy. + Analysis *AnalysisResult `json:"analysis,omitempty"` + // AnalysisType: Output only. The type of analysis. + // + // Possible values: + // "ANALYSIS_TYPE_UNSPECIFIED" - Unspecified analysis type. Do not use. + // "ANALYSIS_TYPE_DEPENDENCY" - The analysis of service dependencies. + // "ANALYSIS_TYPE_RESOURCE_USAGE" - The analysis of service resource usage. + AnalysisType string `json:"analysisType,omitempty"` + // DisplayName: Output only. The user friendly display name of the analysis + // type. E.g. service dependency analysis, service resource usage analysis, + // etc. + DisplayName string `json:"displayName,omitempty"` + // Service: The names of the service that has analysis result of warnings or + // blockers. Example: `services/storage.googleapis.com`. + Service string `json:"service,omitempty"` + // ForceSendFields is a list of field names (e.g. "Analysis") 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. "Analysis") 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 Analysis) MarshalJSON() ([]byte, error) { + type NoMethod Analysis + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AnalysisResult: An analysis result including blockers and warnings. +type AnalysisResult struct { + // Blockers: Blocking information that would prevent the policy changes at + // runtime. + Blockers []*Impact `json:"blockers,omitempty"` + // Warnings: Warning information indicating that the policy changes might be + // unsafe, but will not block the changes at runtime. + Warnings []*Impact `json:"warnings,omitempty"` + // ForceSendFields is a list of field names (e.g. "Blockers") 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. "Blockers") 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 AnalysisResult) MarshalJSON() ([]byte, error) { + type NoMethod AnalysisResult + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// AnalyzeConsumerPolicyMetadata: Metadata for the `AnalyzeConsumerPolicy` +// method. +type AnalyzeConsumerPolicyMetadata struct { +} + +// AnalyzeConsumerPolicyResponse: The response of analyzing a consumer policy +// update. +type AnalyzeConsumerPolicyResponse struct { + // Analysis: The list of analyses returned from performing the intended policy + // update analysis. The analysis is grouped by service name and different + // analysis types. The empty analysis list means that the consumer policy can + // be updated without any warnings or blockers. + Analysis []*Analysis `json:"analysis,omitempty"` + // ForceSendFields is a list of field names (e.g. "Analysis") 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. "Analysis") 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 AnalyzeConsumerPolicyResponse) MarshalJSON() ([]byte, error) { + type NoMethod AnalyzeConsumerPolicyResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Api: Api is a light-weight descriptor for an API Interface. Interfaces are // also described as "protocol buffer services" in some contexts, such as by // the "service" keyword in a .proto file, but they are different from API @@ -2469,6 +2562,38 @@ func (s HttpRule) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// Impact: A message to group impacts of updating a policy. +type Impact struct { + // Detail: Output only. User friendly impact detail in a free form message. + Detail string `json:"detail,omitempty"` + // ImpactType: Output only. The type of impact. + // + // Possible values: + // "IMPACT_TYPE_UNSPECIFIED" - Reserved Blocks (Block n contains codes from + // 100n to 100(n+1) -1 Block 0 - Special/Admin codes Block 1 - Impact Type of + // ANALYSIS_TYPE_DEPENDENCY Block 2 - Impact Type of + // ANALYSIS_TYPE_RESOURCE_USAGE ... + // "DEPENDENCY_MISSING_DEPENDENCIES" - Block 1 - Impact Type of + // ANALYSIS_TYPE_DEPENDENCY + ImpactType string `json:"impactType,omitempty"` + // ForceSendFields is a list of field names (e.g. "Detail") 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. "Detail") 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 Impact) MarshalJSON() ([]byte, error) { + type NoMethod Impact + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ImportAdminOverridesMetadata: Metadata message that provides information // such as progress, partial failures, and similar information on each // GetOperation call of LRO returned by ImportAdminOverrides.