From 7ec3ef8b1dcb2d287abee602b5c83d367c46010d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 2 Apr 2024 00:22:16 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2504) --- .../v1alpha/analyticsadmin-api.json | 7 +- analyticsadmin/v1alpha/analyticsadmin-gen.go | 6 + analyticsadmin/v1beta/analyticsadmin-api.json | 7 +- analyticsadmin/v1beta/analyticsadmin-gen.go | 6 + api-list.json | 2 +- dataform/v1beta1/dataform-api.json | 7 +- dataform/v1beta1/dataform-gen.go | 6 +- datamigration/v1/datamigration-api.json | 23 +- datamigration/v1/datamigration-gen.go | 36 ++ dataplex/v1/dataplex-api.json | 25 +- dataplex/v1/dataplex-gen.go | 68 ++- dialogflow/v3/dialogflow-api.json | 28 +- dialogflow/v3/dialogflow-gen.go | 50 +++ dialogflow/v3beta1/dialogflow-api.json | 28 +- dialogflow/v3beta1/dialogflow-gen.go | 50 +++ domains/v1/domains-api.json | 4 +- domains/v1/domains-gen.go | 14 +- domains/v1alpha2/domains-api.json | 19 +- domains/v1alpha2/domains-gen.go | 22 +- domains/v1beta1/domains-api.json | 4 +- domains/v1beta1/domains-gen.go | 14 +- gkebackup/v1/gkebackup-api.json | 188 +++++++- gkebackup/v1/gkebackup-gen.go | 425 ++++++++++++++++++ .../v1/paymentsresellersubscription-api.json | 4 +- .../v1/paymentsresellersubscription-gen.go | 6 +- versionhistory/v1/versionhistory-api.json | 40 +- versionhistory/v1/versionhistory-gen.go | 39 +- 27 files changed, 1044 insertions(+), 84 deletions(-) diff --git a/analyticsadmin/v1alpha/analyticsadmin-api.json b/analyticsadmin/v1alpha/analyticsadmin-api.json index 9bfadf718a9..427ab56b2d0 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-api.json +++ b/analyticsadmin/v1alpha/analyticsadmin-api.json @@ -4457,7 +4457,7 @@ } } }, - "revision": "20240312", + "revision": "20240329", "rootUrl": "https://analyticsadmin.googleapis.com/", "schemas": { "GoogleAnalyticsAdminV1alphaAccessBetweenFilter": { @@ -4870,6 +4870,11 @@ "description": "Required. Human-readable display name for this account.", "type": "string" }, + "gmpOrganization": { + "description": "Output only. The URI for a Google Marketing Platform organization resource. Only set when this account is connected to a GMP organization. Format: marketingplatformadmin.googleapis.com/organizations/{org_id}", + "readOnly": true, + "type": "string" + }, "name": { "description": "Output only. Resource name of this account. Format: accounts/{account} Example: \"accounts/100\"", "readOnly": true, diff --git a/analyticsadmin/v1alpha/analyticsadmin-gen.go b/analyticsadmin/v1alpha/analyticsadmin-gen.go index 11654519b4f..9d51dd6426c 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-gen.go +++ b/analyticsadmin/v1alpha/analyticsadmin-gen.go @@ -1253,6 +1253,12 @@ type GoogleAnalyticsAdminV1alphaAccount struct { // DisplayName: Required. Human-readable display name for this account. DisplayName string `json:"displayName,omitempty"` + // GmpOrganization: Output only. The URI for a Google Marketing Platform + // organization resource. Only set when this account is connected to a + // GMP organization. Format: + // marketingplatformadmin.googleapis.com/organizations/{org_id} + GmpOrganization string `json:"gmpOrganization,omitempty"` + // Name: Output only. Resource name of this account. Format: // accounts/{account} Example: "accounts/100" Name string `json:"name,omitempty"` diff --git a/analyticsadmin/v1beta/analyticsadmin-api.json b/analyticsadmin/v1beta/analyticsadmin-api.json index 31e733568c8..5c32985056a 100644 --- a/analyticsadmin/v1beta/analyticsadmin-api.json +++ b/analyticsadmin/v1beta/analyticsadmin-api.json @@ -1628,7 +1628,7 @@ } } }, - "revision": "20240105", + "revision": "20240329", "rootUrl": "https://analyticsadmin.googleapis.com/", "schemas": { "GoogleAnalyticsAdminV1betaAccessBetweenFilter": { @@ -2018,6 +2018,11 @@ "description": "Required. Human-readable display name for this account.", "type": "string" }, + "gmpOrganization": { + "description": "Output only. The URI for a Google Marketing Platform organization resource. Only set when this account is connected to a GMP organization. Format: marketingplatformadmin.googleapis.com/organizations/{org_id}", + "readOnly": true, + "type": "string" + }, "name": { "description": "Output only. Resource name of this account. Format: accounts/{account} Example: \"accounts/100\"", "readOnly": true, diff --git a/analyticsadmin/v1beta/analyticsadmin-gen.go b/analyticsadmin/v1beta/analyticsadmin-gen.go index 190f1a3686b..7409f1c1849 100644 --- a/analyticsadmin/v1beta/analyticsadmin-gen.go +++ b/analyticsadmin/v1beta/analyticsadmin-gen.go @@ -1015,6 +1015,12 @@ type GoogleAnalyticsAdminV1betaAccount struct { // DisplayName: Required. Human-readable display name for this account. DisplayName string `json:"displayName,omitempty"` + // GmpOrganization: Output only. The URI for a Google Marketing Platform + // organization resource. Only set when this account is connected to a + // GMP organization. Format: + // marketingplatformadmin.googleapis.com/organizations/{org_id} + GmpOrganization string `json:"gmpOrganization,omitempty"` + // Name: Output only. Resource name of this account. Format: // accounts/{account} Example: "accounts/100" Name string `json:"name,omitempty"` diff --git a/api-list.json b/api-list.json index b92080586a7..5eba0a49ab0 100644 --- a/api-list.json +++ b/api-list.json @@ -3371,7 +3371,7 @@ "id": "gkeonprem:v1", "name": "gkeonprem", "version": "v1", - "title": "Anthos On-Prem API", + "title": "GDC Virtual API", "description": "", "discoveryRestUrl": "https://gkeonprem.googleapis.com/$discovery/rest?version=v1", "icons": { diff --git a/dataform/v1beta1/dataform-api.json b/dataform/v1beta1/dataform-api.json index 01a68aaeb12..26b9d3f8896 100644 --- a/dataform/v1beta1/dataform-api.json +++ b/dataform/v1beta1/dataform-api.json @@ -1148,7 +1148,7 @@ ], "parameters": { "name": { - "description": "Output only. The workflow config's name.", + "description": "Identifier. The workflow config's name.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+$", "required": true, @@ -2103,7 +2103,7 @@ } } }, - "revision": "20240310", + "revision": "20240323", "rootUrl": "https://dataform.googleapis.com/", "schemas": { "Assertion": { @@ -3756,8 +3756,7 @@ "description": "Optional. If left unset, a default InvocationConfig will be used." }, "name": { - "description": "Output only. The workflow config's name.", - "readOnly": true, + "description": "Identifier. The workflow config's name.", "type": "string" }, "recentScheduledExecutionRecords": { diff --git a/dataform/v1beta1/dataform-gen.go b/dataform/v1beta1/dataform-gen.go index cb45393fe07..94ca4de2e16 100644 --- a/dataform/v1beta1/dataform-gen.go +++ b/dataform/v1beta1/dataform-gen.go @@ -3242,7 +3242,7 @@ type WorkflowConfig struct { // will be used. InvocationConfig *InvocationConfig `json:"invocationConfig,omitempty"` - // Name: Output only. The workflow config's name. + // Name: Identifier. The workflow config's name. Name string `json:"name,omitempty"` // RecentScheduledExecutionRecords: Output only. Records of the 10 most @@ -8872,7 +8872,7 @@ type ProjectsLocationsRepositoriesWorkflowConfigsPatchCall struct { // Patch: Updates a single WorkflowConfig. // -// - name: Output only. The workflow config's name. +// - name: Identifier. The workflow config's name. func (r *ProjectsLocationsRepositoriesWorkflowConfigsService) Patch(name string, workflowconfig *WorkflowConfig) *ProjectsLocationsRepositoriesWorkflowConfigsPatchCall { c := &ProjectsLocationsRepositoriesWorkflowConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -8988,7 +8988,7 @@ func (c *ProjectsLocationsRepositoriesWorkflowConfigsPatchCall) Do(opts ...googl // ], // "parameters": { // "name": { - // "description": "Output only. The workflow config's name.", + // "description": "Identifier. The workflow config's name.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+$", // "required": true, diff --git a/datamigration/v1/datamigration-api.json b/datamigration/v1/datamigration-api.json index bc7d672e431..be80933966b 100644 --- a/datamigration/v1/datamigration-api.json +++ b/datamigration/v1/datamigration-api.json @@ -2125,7 +2125,7 @@ } } }, - "revision": "20240315", + "revision": "20240327", "rootUrl": "https://datamigration.googleapis.com/", "schemas": { "AlloyDbConnectionProfile": { @@ -4409,6 +4409,20 @@ "description": "The path to the dump file in Google Cloud Storage, in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]). This field and the \"dump_flags\" field are mutually exclusive.", "type": "string" }, + "dumpType": { + "description": "Optional. The type of the data dump. Supported for MySQL to CloudSQL for MySQL migrations only.", + "enum": [ + "DUMP_TYPE_UNSPECIFIED", + "LOGICAL", + "PHYSICAL" + ], + "enumDescriptions": [ + "If not specified, defaults to LOGICAL", + "Logical dump.", + "Physical file-based dump. Supported for MySQL to CloudSQL for MySQL migrations only." + ], + "type": "string" + }, "duration": { "description": "Output only. The duration of the migration job (in seconds). A duration in seconds with up to nine fractional digits, terminated by 's'. Example: \"3.5s\".", "format": "google-duration", @@ -5152,7 +5166,12 @@ "ResumeMigrationJobRequest": { "description": "Request message for 'ResumeMigrationJob' request.", "id": "ResumeMigrationJobRequest", - "properties": {}, + "properties": { + "skipValidation": { + "description": "Optional. Resume the migration job without running prior configuration verification. Defaults to `false`.", + "type": "boolean" + } + }, "type": "object" }, "ReverseSshConnectivity": { diff --git a/datamigration/v1/datamigration-gen.go b/datamigration/v1/datamigration-gen.go index 5b17117950c..77b6ef30155 100644 --- a/datamigration/v1/datamigration-gen.go +++ b/datamigration/v1/datamigration-gen.go @@ -3455,6 +3455,16 @@ type MigrationJob struct { // "dump_flags" field are mutually exclusive. DumpPath string `json:"dumpPath,omitempty"` + // DumpType: Optional. The type of the data dump. Supported for MySQL to + // CloudSQL for MySQL migrations only. + // + // Possible values: + // "DUMP_TYPE_UNSPECIFIED" - If not specified, defaults to LOGICAL + // "LOGICAL" - Logical dump. + // "PHYSICAL" - Physical file-based dump. Supported for MySQL to + // CloudSQL for MySQL migrations only. + DumpType string `json:"dumpType,omitempty"` + // Duration: Output only. The duration of the migration job (in // seconds). A duration in seconds with up to nine fractional digits, // terminated by 's'. Example: "3.5s". @@ -4513,6 +4523,32 @@ func (s *RestartMigrationJobRequest) MarshalJSON() ([]byte, error) { // ResumeMigrationJobRequest: Request message for 'ResumeMigrationJob' // request. type ResumeMigrationJobRequest struct { + // SkipValidation: Optional. Resume the migration job without running + // prior configuration verification. Defaults to `false`. + SkipValidation bool `json:"skipValidation,omitempty"` + + // ForceSendFields is a list of field names (e.g. "SkipValidation") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "SkipValidation") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ResumeMigrationJobRequest) MarshalJSON() ([]byte, error) { + type NoMethod ResumeMigrationJobRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // ReverseSshConnectivity: The details needed to configure a reverse SSH diff --git a/dataplex/v1/dataplex-api.json b/dataplex/v1/dataplex-api.json index 6c1fce4c63b..ab626699d6a 100644 --- a/dataplex/v1/dataplex-api.json +++ b/dataplex/v1/dataplex-api.json @@ -2211,7 +2211,7 @@ ], "parameters": { "filter": { - "description": "Optional. A filter on the entries to return. Filters are case-sensitive. The request can be filtered by the following fields: entry_type, display_name. The comparison operators are =, !=, \u003c, \u003e, \u003c=, \u003e= (strings are compared according to lexical order) The logical operators AND, OR, NOT can be used in the filter. Example filter expressions: \"display_name=AnExampleDisplayName\" \"entry_type=projects/example-project/locations/global/entryTypes/example-entry_type\" \"entry_type=projects/a* OR \"entry_type=projects/k*\" \"NOT display_name=AnotherExampleDisplayName\"", + "description": "Optional. A filter on the entries to return. Filters are case-sensitive. The request can be filtered by the following fields: entry_type, entry_source.display_name. The comparison operators are =, !=, \u003c, \u003e, \u003c=, \u003e= (strings are compared according to lexical order) The logical operators AND, OR, NOT can be used in the filter. Wildcard \"*\" can be used, but for entry_type the full project id or number needs to be provided. Example filter expressions: \"entry_source.display_name=AnExampleDisplayName\" \"entry_type=projects/example-project/locations/global/entryTypes/example-entry_type\" \"entry_type=projects/example-project/locations/us/entryTypes/a* OR entry_type=projects/another-project/locations/*\" \"NOT entry_source.display_name=AnotherExampleDisplayName\"", "location": "query", "type": "string" }, @@ -5271,7 +5271,7 @@ } } }, - "revision": "20240317", + "revision": "20240325", "rootUrl": "https://dataplex.googleapis.com/", "schemas": { "Empty": { @@ -6886,6 +6886,10 @@ "$ref": "GoogleCloudDataplexV1DataQualityRuleSetExpectation", "description": "Row-level rule which evaluates whether each column value is contained by a specified set." }, + "sqlAssertion": { + "$ref": "GoogleCloudDataplexV1DataQualityRuleSqlAssertion", + "description": "Aggregate rule which evaluates the number of rows returned for the provided statement." + }, "statisticRangeExpectation": { "$ref": "GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation", "description": "Aggregate rule which evaluates whether the column aggregate statistic lies between a specified range." @@ -6950,6 +6954,12 @@ "description": "DataQualityRuleResult provides a more detailed, per-rule view of the results.", "id": "GoogleCloudDataplexV1DataQualityRuleResult", "properties": { + "assertionRowCount": { + "description": "Output only. The number of rows returned by the sql statement in the SqlAssertion rule.This field is only valid for SqlAssertion rules.", + "format": "int64", + "readOnly": true, + "type": "string" + }, "evaluatedCount": { "description": "The number of rows a rule was evaluated against.This field is only valid for row-level type rules.Evaluated count can be configured to either include all rows (default) - with null rows automatically failing rule evaluation, or exclude null rows from the evaluated_count, by setting ignore_nulls = true.", "format": "int64", @@ -7010,6 +7020,17 @@ }, "type": "object" }, + "GoogleCloudDataplexV1DataQualityRuleSqlAssertion": { + "description": "Queries for rows returned by the provided SQL statement. If any rows are are returned, this rule fails.The SQL statement needs to use BigQuery standard SQL syntax, and must not contain any semicolons.${data()} can be used to reference the rows being evaluated, i.e. the table after all additional filters (row filters, incremental data filters, sampling) are applied.Example: SELECT * FROM ${data()} WHERE price \u003c 0", + "id": "GoogleCloudDataplexV1DataQualityRuleSqlAssertion", + "properties": { + "sqlStatement": { + "description": "Optional. The SQL statement.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation": { "description": "Evaluates whether the column aggregate statistic lies between a specified range.", "id": "GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation", diff --git a/dataplex/v1/dataplex-gen.go b/dataplex/v1/dataplex-gen.go index 2b9639cf4b1..db2c030542f 100644 --- a/dataplex/v1/dataplex-gen.go +++ b/dataplex/v1/dataplex-gen.go @@ -3046,6 +3046,10 @@ type GoogleCloudDataplexV1DataQualityRule struct { // value is contained by a specified set. SetExpectation *GoogleCloudDataplexV1DataQualityRuleSetExpectation `json:"setExpectation,omitempty"` + // SqlAssertion: Aggregate rule which evaluates the number of rows + // returned for the provided statement. + SqlAssertion *GoogleCloudDataplexV1DataQualityRuleSqlAssertion `json:"sqlAssertion,omitempty"` + // StatisticRangeExpectation: Aggregate rule which evaluates whether the // column aggregate statistic lies between a specified range. StatisticRangeExpectation *GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation `json:"statisticRangeExpectation,omitempty"` @@ -3185,6 +3189,11 @@ func (s *GoogleCloudDataplexV1DataQualityRuleRegexExpectation) MarshalJSON() ([] // GoogleCloudDataplexV1DataQualityRuleResult: DataQualityRuleResult // provides a more detailed, per-rule view of the results. type GoogleCloudDataplexV1DataQualityRuleResult struct { + // AssertionRowCount: Output only. The number of rows returned by the + // sql statement in the SqlAssertion rule.This field is only valid for + // SqlAssertion rules. + AssertionRowCount int64 `json:"assertionRowCount,omitempty,string"` + // EvaluatedCount: The number of rows a rule was evaluated against.This // field is only valid for row-level type rules.Evaluated count can be // configured to either include all rows (default) - with null rows @@ -3214,15 +3223,15 @@ type GoogleCloudDataplexV1DataQualityRuleResult struct { // Rule: The rule specified in the DataQualitySpec, as is. Rule *GoogleCloudDataplexV1DataQualityRule `json:"rule,omitempty"` - // ForceSendFields is a list of field names (e.g. "EvaluatedCount") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "AssertionRowCount") + // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EvaluatedCount") to + // NullFields is a list of field names (e.g. "AssertionRowCount") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -3313,6 +3322,40 @@ func (s *GoogleCloudDataplexV1DataQualityRuleSetExpectation) MarshalJSON() ([]by return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDataplexV1DataQualityRuleSqlAssertion: Queries for rows +// returned by the provided SQL statement. If any rows are are returned, +// this rule fails.The SQL statement needs to use BigQuery standard SQL +// syntax, and must not contain any semicolons.${data()} can be used to +// reference the rows being evaluated, i.e. the table after all +// additional filters (row filters, incremental data filters, sampling) +// are applied.Example: SELECT * FROM ${data()} WHERE price < 0 +type GoogleCloudDataplexV1DataQualityRuleSqlAssertion struct { + // SqlStatement: Optional. The SQL statement. + SqlStatement string `json:"sqlStatement,omitempty"` + + // ForceSendFields is a list of field names (e.g. "SqlStatement") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "SqlStatement") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDataplexV1DataQualityRuleSqlAssertion) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDataplexV1DataQualityRuleSqlAssertion + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDataplexV1DataQualityRuleStatisticRangeExpectation: // Evaluates whether the column aggregate statistic lies between a // specified range. @@ -19643,14 +19686,17 @@ func (r *ProjectsLocationsEntryGroupsEntriesService) List(parent string) *Projec // Filter sets the optional parameter "filter": A filter on the entries // to return. Filters are case-sensitive. The request can be filtered by -// the following fields: entry_type, display_name. The comparison -// operators are =, !=, <, >, <=, >= (strings are compared according to -// lexical order) The logical operators AND, OR, NOT can be used in the -// filter. Example filter expressions: -// "display_name=AnExampleDisplayName" +// the following fields: entry_type, entry_source.display_name. The +// comparison operators are =, !=, <, >, <=, >= (strings are compared +// according to lexical order) The logical operators AND, OR, NOT can be +// used in the filter. Wildcard "*" can be used, but for entry_type the +// full project id or number needs to be provided. Example filter +// expressions: "entry_source.display_name=AnExampleDisplayName" // "entry_type=projects/example-project/locations/global/entryTypes/examp -// le-entry_type" "entry_type=projects/a* OR "entry_type=projects/k*" -// "NOT display_name=AnotherExampleDisplayName" +// le-entry_type" +// "entry_type=projects/example-project/locations/us/entryTypes/a* OR +// entry_type=projects/another-project/locations/*" "NOT +// entry_source.display_name=AnotherExampleDisplayName" func (c *ProjectsLocationsEntryGroupsEntriesListCall) Filter(filter string) *ProjectsLocationsEntryGroupsEntriesListCall { c.urlParams_.Set("filter", filter) return c @@ -19779,7 +19825,7 @@ func (c *ProjectsLocationsEntryGroupsEntriesListCall) Do(opts ...googleapi.CallO // ], // "parameters": { // "filter": { - // "description": "Optional. A filter on the entries to return. Filters are case-sensitive. The request can be filtered by the following fields: entry_type, display_name. The comparison operators are =, !=, \u003c, \u003e, \u003c=, \u003e= (strings are compared according to lexical order) The logical operators AND, OR, NOT can be used in the filter. Example filter expressions: \"display_name=AnExampleDisplayName\" \"entry_type=projects/example-project/locations/global/entryTypes/example-entry_type\" \"entry_type=projects/a* OR \"entry_type=projects/k*\" \"NOT display_name=AnotherExampleDisplayName\"", + // "description": "Optional. A filter on the entries to return. Filters are case-sensitive. The request can be filtered by the following fields: entry_type, entry_source.display_name. The comparison operators are =, !=, \u003c, \u003e, \u003c=, \u003e= (strings are compared according to lexical order) The logical operators AND, OR, NOT can be used in the filter. Wildcard \"*\" can be used, but for entry_type the full project id or number needs to be provided. Example filter expressions: \"entry_source.display_name=AnExampleDisplayName\" \"entry_type=projects/example-project/locations/global/entryTypes/example-entry_type\" \"entry_type=projects/example-project/locations/us/entryTypes/a* OR entry_type=projects/another-project/locations/*\" \"NOT entry_source.display_name=AnotherExampleDisplayName\"", // "location": "query", // "type": "string" // }, diff --git a/dialogflow/v3/dialogflow-api.json b/dialogflow/v3/dialogflow-api.json index 59bd0e25f19..ea3e4054d5f 100644 --- a/dialogflow/v3/dialogflow-api.json +++ b/dialogflow/v3/dialogflow-api.json @@ -4453,7 +4453,7 @@ } } }, - "revision": "20240313", + "revision": "20240401", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -4570,6 +4570,10 @@ "description": "Required. The human-readable name of the agent, unique within the location.", "type": "string" }, + "enableMultiLanguageTraining": { + "description": "Optional. Enable training multi-lingual models for this agent. These models will be trained on all the languages supported by the agent.", + "type": "boolean" + }, "enableSpellCorrection": { "description": "Indicates if automatic spell correction is enabled in detect intent requests.", "type": "boolean" @@ -6380,6 +6384,10 @@ "$ref": "GoogleCloudDialogflowCxV3KnowledgeConnectorSettings", "description": "Optional. Knowledge connector configuration." }, + "multiLanguageSettings": { + "$ref": "GoogleCloudDialogflowCxV3FlowMultiLanguageSettings", + "description": "Optional. Multi-lingual agent settings for this flow." + }, "name": { "description": "The unique identifier of the flow. Format: `projects//locations//agents//flows/`.", "type": "string" @@ -6432,6 +6440,24 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3FlowMultiLanguageSettings": { + "description": "Settings for multi-lingual agents.", + "id": "GoogleCloudDialogflowCxV3FlowMultiLanguageSettings", + "properties": { + "enableMultiLanguageDetection": { + "description": "Optional. Enable multi-language detection for this flow. This can be set only if agent level multi language setting is enabled.", + "type": "boolean" + }, + "supportedResponseLanguageCodes": { + "description": "Optional. Agent will respond in the detected language if the detected language code is in the supported resolved languages for this flow. This will be used only if multi-language training is enabled in the agent and multi-language detection is enabled in the flow. The supported languages must be a subset of the languages supported by the agent.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3FlowValidationResult": { "description": "The response message for Flows.GetFlowValidationResult.", "id": "GoogleCloudDialogflowCxV3FlowValidationResult", diff --git a/dialogflow/v3/dialogflow-gen.go b/dialogflow/v3/dialogflow-gen.go index 860f22483e9..7a7da5446b9 100644 --- a/dialogflow/v3/dialogflow-gen.go +++ b/dialogflow/v3/dialogflow-gen.go @@ -689,6 +689,11 @@ type GoogleCloudDialogflowCxV3Agent struct { // within the location. DisplayName string `json:"displayName,omitempty"` + // EnableMultiLanguageTraining: Optional. Enable training multi-lingual + // models for this agent. These models will be trained on all the + // languages supported by the agent. + EnableMultiLanguageTraining bool `json:"enableMultiLanguageTraining,omitempty"` + // EnableSpellCorrection: Indicates if automatic spell correction is // enabled in detect intent requests. EnableSpellCorrection bool `json:"enableSpellCorrection,omitempty"` @@ -3937,6 +3942,10 @@ type GoogleCloudDialogflowCxV3Flow struct { // configuration. KnowledgeConnectorSettings *GoogleCloudDialogflowCxV3KnowledgeConnectorSettings `json:"knowledgeConnectorSettings,omitempty"` + // MultiLanguageSettings: Optional. Multi-lingual agent settings for + // this flow. + MultiLanguageSettings *GoogleCloudDialogflowCxV3FlowMultiLanguageSettings `json:"multiLanguageSettings,omitempty"` + // Name: The unique identifier of the flow. Format: // `projects//locations//agents//flows/`. Name string `json:"name,omitempty"` @@ -4044,6 +4053,47 @@ func (s *GoogleCloudDialogflowCxV3FlowImportStrategy) MarshalJSON() ([]byte, err return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3FlowMultiLanguageSettings: Settings for +// multi-lingual agents. +type GoogleCloudDialogflowCxV3FlowMultiLanguageSettings struct { + // EnableMultiLanguageDetection: Optional. Enable multi-language + // detection for this flow. This can be set only if agent level multi + // language setting is enabled. + EnableMultiLanguageDetection bool `json:"enableMultiLanguageDetection,omitempty"` + + // SupportedResponseLanguageCodes: Optional. Agent will respond in the + // detected language if the detected language code is in the supported + // resolved languages for this flow. This will be used only if + // multi-language training is enabled in the agent and multi-language + // detection is enabled in the flow. The supported languages must be a + // subset of the languages supported by the agent. + SupportedResponseLanguageCodes []string `json:"supportedResponseLanguageCodes,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "EnableMultiLanguageDetection") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "EnableMultiLanguageDetection") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3FlowMultiLanguageSettings) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3FlowMultiLanguageSettings + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3FlowValidationResult: The response message // for Flows.GetFlowValidationResult. type GoogleCloudDialogflowCxV3FlowValidationResult struct { diff --git a/dialogflow/v3beta1/dialogflow-api.json b/dialogflow/v3beta1/dialogflow-api.json index 24bbcd71a76..e6f797c81dd 100644 --- a/dialogflow/v3beta1/dialogflow-api.json +++ b/dialogflow/v3beta1/dialogflow-api.json @@ -4453,7 +4453,7 @@ } } }, - "revision": "20240313", + "revision": "20240401", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -6926,6 +6926,10 @@ "description": "Required. The human-readable name of the agent, unique within the location.", "type": "string" }, + "enableMultiLanguageTraining": { + "description": "Optional. Enable training multi-lingual models for this agent. These models will be trained on all the languages supported by the agent.", + "type": "boolean" + }, "enableSpellCorrection": { "description": "Indicates if automatic spell correction is enabled in detect intent requests.", "type": "boolean" @@ -8736,6 +8740,10 @@ "$ref": "GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings", "description": "Optional. Knowledge connector configuration." }, + "multiLanguageSettings": { + "$ref": "GoogleCloudDialogflowCxV3beta1FlowMultiLanguageSettings", + "description": "Optional. Multi-lingual agent settings for this flow." + }, "name": { "description": "The unique identifier of the flow. Format: `projects//locations//agents//flows/`.", "type": "string" @@ -8788,6 +8796,24 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1FlowMultiLanguageSettings": { + "description": "Settings for multi-lingual agents.", + "id": "GoogleCloudDialogflowCxV3beta1FlowMultiLanguageSettings", + "properties": { + "enableMultiLanguageDetection": { + "description": "Optional. Enable multi-language detection for this flow. This can be set only if agent level multi language setting is enabled.", + "type": "boolean" + }, + "supportedResponseLanguageCodes": { + "description": "Optional. Agent will respond in the detected language if the detected language code is in the supported resolved languages for this flow. This will be used only if multi-language training is enabled in the agent and multi-language detection is enabled in the flow. The supported languages must be a subset of the languages supported by the agent.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1FlowValidationResult": { "description": "The response message for Flows.GetFlowValidationResult.", "id": "GoogleCloudDialogflowCxV3beta1FlowValidationResult", diff --git a/dialogflow/v3beta1/dialogflow-gen.go b/dialogflow/v3beta1/dialogflow-gen.go index 8498e083bae..c39bcaa9b30 100644 --- a/dialogflow/v3beta1/dialogflow-gen.go +++ b/dialogflow/v3beta1/dialogflow-gen.go @@ -5014,6 +5014,11 @@ type GoogleCloudDialogflowCxV3beta1Agent struct { // within the location. DisplayName string `json:"displayName,omitempty"` + // EnableMultiLanguageTraining: Optional. Enable training multi-lingual + // models for this agent. These models will be trained on all the + // languages supported by the agent. + EnableMultiLanguageTraining bool `json:"enableMultiLanguageTraining,omitempty"` + // EnableSpellCorrection: Indicates if automatic spell correction is // enabled in detect intent requests. EnableSpellCorrection bool `json:"enableSpellCorrection,omitempty"` @@ -8269,6 +8274,10 @@ type GoogleCloudDialogflowCxV3beta1Flow struct { // configuration. KnowledgeConnectorSettings *GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings `json:"knowledgeConnectorSettings,omitempty"` + // MultiLanguageSettings: Optional. Multi-lingual agent settings for + // this flow. + MultiLanguageSettings *GoogleCloudDialogflowCxV3beta1FlowMultiLanguageSettings `json:"multiLanguageSettings,omitempty"` + // Name: The unique identifier of the flow. Format: // `projects//locations//agents//flows/`. Name string `json:"name,omitempty"` @@ -8377,6 +8386,47 @@ func (s *GoogleCloudDialogflowCxV3beta1FlowImportStrategy) MarshalJSON() ([]byte return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1FlowMultiLanguageSettings: Settings for +// multi-lingual agents. +type GoogleCloudDialogflowCxV3beta1FlowMultiLanguageSettings struct { + // EnableMultiLanguageDetection: Optional. Enable multi-language + // detection for this flow. This can be set only if agent level multi + // language setting is enabled. + EnableMultiLanguageDetection bool `json:"enableMultiLanguageDetection,omitempty"` + + // SupportedResponseLanguageCodes: Optional. Agent will respond in the + // detected language if the detected language code is in the supported + // resolved languages for this flow. This will be used only if + // multi-language training is enabled in the agent and multi-language + // detection is enabled in the flow. The supported languages must be a + // subset of the languages supported by the agent. + SupportedResponseLanguageCodes []string `json:"supportedResponseLanguageCodes,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "EnableMultiLanguageDetection") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "EnableMultiLanguageDetection") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted + // from API requests. However, any field with an empty value appearing + // in NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudDialogflowCxV3beta1FlowMultiLanguageSettings) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1FlowMultiLanguageSettings + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1FlowValidationResult: The response // message for Flows.GetFlowValidationResult. type GoogleCloudDialogflowCxV3beta1FlowValidationResult struct { diff --git a/domains/v1/domains-api.json b/domains/v1/domains-api.json index dbd9a9cd4c2..8f5791afd8a 100644 --- a/domains/v1/domains-api.json +++ b/domains/v1/domains-api.json @@ -250,7 +250,7 @@ "registrations": { "methods": { "configureContactSettings": { - "description": "Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's registrant contact .", + "description": "Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's registrant contact . Caution: Please consider carefully any changes to contact privacy settings when changing from `REDACTED_CONTACT_DATA` to `PUBLIC_CONTACT_DATA.` There may be a delay in reflecting updates you make to registrant contact information such that any changes you make to contact privacy (including from `REDACTED_CONTACT_DATA` to `PUBLIC_CONTACT_DATA`) will be applied without delay but changes to registrant contact information may take a limited time to be publicized. This means that changes to contact privacy from `REDACTED_CONTACT_DATA` to `PUBLIC_CONTACT_DATA` may make the previous registrant contact data public until the modified registrant contact details are published.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registrations/{registrationsId}:configureContactSettings", "httpMethod": "POST", "id": "domains.projects.locations.registrations.configureContactSettings", @@ -848,7 +848,7 @@ } } }, - "revision": "20240125", + "revision": "20240327", "rootUrl": "https://domains.googleapis.com/", "schemas": { "AuditConfig": { diff --git a/domains/v1/domains-gen.go b/domains/v1/domains-gen.go index b9dc0b4a21a..d0599d7f53c 100644 --- a/domains/v1/domains-gen.go +++ b/domains/v1/domains-gen.go @@ -3245,7 +3245,17 @@ type ProjectsLocationsRegistrationsConfigureContactSettingsCall struct { // ConfigureContactSettings: Updates a `Registration`'s contact // settings. Some changes require confirmation by the domain's -// registrant contact . +// registrant contact . Caution: Please consider carefully any changes +// to contact privacy settings when changing from +// `REDACTED_CONTACT_DATA` to `PUBLIC_CONTACT_DATA.` There may be a +// delay in reflecting updates you make to registrant contact +// information such that any changes you make to contact privacy +// (including from `REDACTED_CONTACT_DATA` to `PUBLIC_CONTACT_DATA`) +// will be applied without delay but changes to registrant contact +// information may take a limited time to be publicized. This means that +// changes to contact privacy from `REDACTED_CONTACT_DATA` to +// `PUBLIC_CONTACT_DATA` may make the previous registrant contact data +// public until the modified registrant contact details are published. // // - registration: The name of the `Registration` whose contact settings // are being updated, in the format @@ -3348,7 +3358,7 @@ func (c *ProjectsLocationsRegistrationsConfigureContactSettingsCall) Do(opts ... } return ret, nil // { - // "description": "Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's registrant contact .", + // "description": "Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's registrant contact . Caution: Please consider carefully any changes to contact privacy settings when changing from `REDACTED_CONTACT_DATA` to `PUBLIC_CONTACT_DATA.` There may be a delay in reflecting updates you make to registrant contact information such that any changes you make to contact privacy (including from `REDACTED_CONTACT_DATA` to `PUBLIC_CONTACT_DATA`) will be applied without delay but changes to registrant contact information may take a limited time to be publicized. This means that changes to contact privacy from `REDACTED_CONTACT_DATA` to `PUBLIC_CONTACT_DATA` may make the previous registrant contact data public until the modified registrant contact details are published.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/registrations/{registrationsId}:configureContactSettings", // "httpMethod": "POST", // "id": "domains.projects.locations.registrations.configureContactSettings", diff --git a/domains/v1alpha2/domains-api.json b/domains/v1alpha2/domains-api.json index 14a900047c0..37d84fe1280 100644 --- a/domains/v1alpha2/domains-api.json +++ b/domains/v1alpha2/domains-api.json @@ -250,7 +250,7 @@ "registrations": { "methods": { "configureContactSettings": { - "description": "Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's registrant contact .", + "description": "Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's registrant contact . Caution: Please consider carefully any changes to contact privacy settings when changing from `REDACTED_CONTACT_DATA` to `PUBLIC_CONTACT_DATA.` There may be a delay in reflecting updates you make to registrant contact information such that any changes you make to contact privacy (including from `REDACTED_CONTACT_DATA` to `PUBLIC_CONTACT_DATA`) will be applied without delay but changes to registrant contact information may take a limited time to be publicized. This means that changes to contact privacy from `REDACTED_CONTACT_DATA` to `PUBLIC_CONTACT_DATA` may make the previous registrant contact data public until the modified registrant contact details are published.", "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/registrations/{registrationsId}:configureContactSettings", "httpMethod": "POST", "id": "domains.projects.locations.registrations.configureContactSettings", @@ -848,7 +848,7 @@ } } }, - "revision": "20240125", + "revision": "20240327", "rootUrl": "https://domains.googleapis.com/", "schemas": { "AuditConfig": { @@ -1859,6 +1859,21 @@ "description": "Output only. Pending contact settings for the `Registration`. Updates to the `contact_settings` field that change its `registrant_contact` or `privacy` fields require email confirmation by the `registrant_contact` before taking effect. This field is set only if there are pending updates to the `contact_settings` that have not been confirmed. To confirm the changes, the `registrant_contact` must follow the instructions in the email they receive.", "readOnly": true }, + "provider": { + "description": "Output only. Current domain management provider.", + "enum": [ + "REGISTRAR_UNSPECIFIED", + "GOOGLE_DOMAINS", + "SQUARESPACE" + ], + "enumDescriptions": [ + "Registrar is not selected.", + "Use Google Domains registrar.", + "Use Squarespace registrar" + ], + "readOnly": true, + "type": "string" + }, "registerFailureReason": { "description": "Output only. The reason the domain registration failed. Only set for domains in REGISTRATION_FAILED state.", "enum": [ diff --git a/domains/v1alpha2/domains-gen.go b/domains/v1alpha2/domains-gen.go index 89032f24cb3..57d1a37d9df 100644 --- a/domains/v1alpha2/domains-gen.go +++ b/domains/v1alpha2/domains-gen.go @@ -1952,6 +1952,14 @@ type Registration struct { // email they receive. PendingContactSettings *ContactSettings `json:"pendingContactSettings,omitempty"` + // Provider: Output only. Current domain management provider. + // + // Possible values: + // "REGISTRAR_UNSPECIFIED" - Registrar is not selected. + // "GOOGLE_DOMAINS" - Use Google Domains registrar. + // "SQUARESPACE" - Use Squarespace registrar + Provider string `json:"provider,omitempty"` + // RegisterFailureReason: Output only. The reason the domain // registration failed. Only set for domains in REGISTRATION_FAILED // state. @@ -3245,7 +3253,17 @@ type ProjectsLocationsRegistrationsConfigureContactSettingsCall struct { // ConfigureContactSettings: Updates a `Registration`'s contact // settings. Some changes require confirmation by the domain's -// registrant contact . +// registrant contact . Caution: Please consider carefully any changes +// to contact privacy settings when changing from +// `REDACTED_CONTACT_DATA` to `PUBLIC_CONTACT_DATA.` There may be a +// delay in reflecting updates you make to registrant contact +// information such that any changes you make to contact privacy +// (including from `REDACTED_CONTACT_DATA` to `PUBLIC_CONTACT_DATA`) +// will be applied without delay but changes to registrant contact +// information may take a limited time to be publicized. This means that +// changes to contact privacy from `REDACTED_CONTACT_DATA` to +// `PUBLIC_CONTACT_DATA` may make the previous registrant contact data +// public until the modified registrant contact details are published. // // - registration: The name of the `Registration` whose contact settings // are being updated, in the format @@ -3348,7 +3366,7 @@ func (c *ProjectsLocationsRegistrationsConfigureContactSettingsCall) Do(opts ... } return ret, nil // { - // "description": "Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's registrant contact .", + // "description": "Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's registrant contact . Caution: Please consider carefully any changes to contact privacy settings when changing from `REDACTED_CONTACT_DATA` to `PUBLIC_CONTACT_DATA.` There may be a delay in reflecting updates you make to registrant contact information such that any changes you make to contact privacy (including from `REDACTED_CONTACT_DATA` to `PUBLIC_CONTACT_DATA`) will be applied without delay but changes to registrant contact information may take a limited time to be publicized. This means that changes to contact privacy from `REDACTED_CONTACT_DATA` to `PUBLIC_CONTACT_DATA` may make the previous registrant contact data public until the modified registrant contact details are published.", // "flatPath": "v1alpha2/projects/{projectsId}/locations/{locationsId}/registrations/{registrationsId}:configureContactSettings", // "httpMethod": "POST", // "id": "domains.projects.locations.registrations.configureContactSettings", diff --git a/domains/v1beta1/domains-api.json b/domains/v1beta1/domains-api.json index 1aa26ee5c3a..0c4d34e82da 100644 --- a/domains/v1beta1/domains-api.json +++ b/domains/v1beta1/domains-api.json @@ -250,7 +250,7 @@ "registrations": { "methods": { "configureContactSettings": { - "description": "Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's registrant contact .", + "description": "Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's registrant contact . Caution: Please consider carefully any changes to contact privacy settings when changing from `REDACTED_CONTACT_DATA` to `PUBLIC_CONTACT_DATA.` There may be a delay in reflecting updates you make to registrant contact information such that any changes you make to contact privacy (including from `REDACTED_CONTACT_DATA` to `PUBLIC_CONTACT_DATA`) will be applied without delay but changes to registrant contact information may take a limited time to be publicized. This means that changes to contact privacy from `REDACTED_CONTACT_DATA` to `PUBLIC_CONTACT_DATA` may make the previous registrant contact data public until the modified registrant contact details are published.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/registrations/{registrationsId}:configureContactSettings", "httpMethod": "POST", "id": "domains.projects.locations.registrations.configureContactSettings", @@ -848,7 +848,7 @@ } } }, - "revision": "20240125", + "revision": "20240327", "rootUrl": "https://domains.googleapis.com/", "schemas": { "AuditConfig": { diff --git a/domains/v1beta1/domains-gen.go b/domains/v1beta1/domains-gen.go index 808ff85a4e2..90ea0458452 100644 --- a/domains/v1beta1/domains-gen.go +++ b/domains/v1beta1/domains-gen.go @@ -3245,7 +3245,17 @@ type ProjectsLocationsRegistrationsConfigureContactSettingsCall struct { // ConfigureContactSettings: Updates a `Registration`'s contact // settings. Some changes require confirmation by the domain's -// registrant contact . +// registrant contact . Caution: Please consider carefully any changes +// to contact privacy settings when changing from +// `REDACTED_CONTACT_DATA` to `PUBLIC_CONTACT_DATA.` There may be a +// delay in reflecting updates you make to registrant contact +// information such that any changes you make to contact privacy +// (including from `REDACTED_CONTACT_DATA` to `PUBLIC_CONTACT_DATA`) +// will be applied without delay but changes to registrant contact +// information may take a limited time to be publicized. This means that +// changes to contact privacy from `REDACTED_CONTACT_DATA` to +// `PUBLIC_CONTACT_DATA` may make the previous registrant contact data +// public until the modified registrant contact details are published. // // - registration: The name of the `Registration` whose contact settings // are being updated, in the format @@ -3348,7 +3358,7 @@ func (c *ProjectsLocationsRegistrationsConfigureContactSettingsCall) Do(opts ... } return ret, nil // { - // "description": "Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's registrant contact .", + // "description": "Updates a `Registration`'s contact settings. Some changes require confirmation by the domain's registrant contact . Caution: Please consider carefully any changes to contact privacy settings when changing from `REDACTED_CONTACT_DATA` to `PUBLIC_CONTACT_DATA.` There may be a delay in reflecting updates you make to registrant contact information such that any changes you make to contact privacy (including from `REDACTED_CONTACT_DATA` to `PUBLIC_CONTACT_DATA`) will be applied without delay but changes to registrant contact information may take a limited time to be publicized. This means that changes to contact privacy from `REDACTED_CONTACT_DATA` to `PUBLIC_CONTACT_DATA` may make the previous registrant contact data public until the modified registrant contact details are published.", // "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/registrations/{registrationsId}:configureContactSettings", // "httpMethod": "POST", // "id": "domains.projects.locations.registrations.configureContactSettings", diff --git a/gkebackup/v1/gkebackup-api.json b/gkebackup/v1/gkebackup-api.json index 9374311948c..51efaf320be 100644 --- a/gkebackup/v1/gkebackup-api.json +++ b/gkebackup/v1/gkebackup-api.json @@ -531,6 +531,31 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "getBackupIndexDownloadUrl": { + "description": "Retrieve the link to the backupIndex.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupPlans/{backupPlansId}/backups/{backupsId}:getBackupIndexDownloadUrl", + "httpMethod": "GET", + "id": "gkebackup.projects.locations.backupPlans.backups.getBackupIndexDownloadUrl", + "parameterOrder": [ + "backup" + ], + "parameters": { + "backup": { + "description": "Required. Full name of Backup resource. Format: projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/backupPlans/[^/]+/backups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+backup}:getBackupIndexDownloadUrl", + "response": { + "$ref": "GetBackupIndexDownloadUrlResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "getIamPolicy": { "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupPlans/{backupPlansId}/backups/{backupsId}:getIamPolicy", @@ -1688,7 +1713,7 @@ } } }, - "revision": "20240313", + "revision": "20240320", "rootUrl": "https://gkebackup.googleapis.com/", "schemas": { "AuditConfig": { @@ -1996,6 +2021,17 @@ "$ref": "RetentionPolicy", "description": "Optional. RetentionPolicy governs lifecycle of Backups created under this plan." }, + "rpoRiskLevel": { + "description": "Output only. A number that represents the current risk level of this BackupPlan from RPO perspective with 1 being no risk and 5 being highest risk.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "rpoRiskReason": { + "description": "Output only. Human-readable description of why the BackupPlan is in the current rpo_risk_level and action items if any.", + "readOnly": true, + "type": "string" + }, "state": { "description": "Output only. State of the BackupPlan. This State field reflects the various stages a BackupPlan can be in during the Create operation. It will be set to \"DEACTIVATED\" if the BackupPlan is deactivated on an Update", "enum": [ @@ -2124,6 +2160,62 @@ }, "type": "object" }, + "Date": { + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", + "id": "Date", + "properties": { + "day": { + "description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.", + "format": "int32", + "type": "integer" + }, + "month": { + "description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.", + "format": "int32", + "type": "integer" + }, + "year": { + "description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "DayOfWeekList": { + "description": "Holds repeated DaysOfWeek values as a container.", + "id": "DayOfWeekList", + "properties": { + "daysOfWeek": { + "description": "Optional. A list of days of week.", + "items": { + "enum": [ + "DAY_OF_WEEK_UNSPECIFIED", + "MONDAY", + "TUESDAY", + "WEDNESDAY", + "THURSDAY", + "FRIDAY", + "SATURDAY", + "SUNDAY" + ], + "enumDescriptions": [ + "The day of the week is unspecified.", + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" + ], + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", @@ -2141,6 +2233,34 @@ }, "type": "object" }, + "ExclusionWindow": { + "description": "Defines a time window during which no backup should happen. All time and date are in UTC.", + "id": "ExclusionWindow", + "properties": { + "daily": { + "description": "The exclusion window occurs every day if set to \"True\". Specifying this field to \"False\" is an error.", + "type": "boolean" + }, + "daysOfWeek": { + "$ref": "DayOfWeekList", + "description": "The exclusion window occurs on these days of each week in UTC." + }, + "duration": { + "description": "Required. Specifies duration of the window. Restrictions for duration based on the recurrence type to allow some time for backup to happen: - single_occurrence_date: no restriction, but UI may warn about this when duration \u003e= target RPO - daily window: duration \u003c 24 hours - weekly window: - days of week includes all seven days of a week: duration \u003c 24 hours - all other weekly window: duration \u003c 168 hours (i.e., 24 * 7 hours)", + "format": "google-duration", + "type": "string" + }, + "singleOccurrenceDate": { + "$ref": "Date", + "description": "No recurrence. The exclusion window occurs only once and on this date in UTC." + }, + "startTime": { + "$ref": "TimeOfDay", + "description": "Required. Specifies the start time of the window using time of the day in UTC." + } + }, + "type": "object" + }, "Expr": { "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", "id": "Expr", @@ -2164,6 +2284,16 @@ }, "type": "object" }, + "GetBackupIndexDownloadUrlResponse": { + "description": "Response message for GetBackupIndexDownloadUrl.", + "id": "GetBackupIndexDownloadUrlResponse", + "properties": { + "signedUrl": { + "type": "string" + } + }, + "type": "object" + }, "GoogleLongrunningCancelOperationRequest": { "description": "The request message for Operations.CancelOperation.", "id": "GoogleLongrunningCancelOperationRequest", @@ -2895,6 +3025,25 @@ }, "type": "object" }, + "RpoConfig": { + "description": "Defines RPO scheduling configuration for automatically creating Backups via this BackupPlan.", + "id": "RpoConfig", + "properties": { + "exclusionWindows": { + "description": "Optional. User specified time windows during which backup can NOT happen for this BackupPlan - backups should start and finish outside of any given exclusion window. Note: backup jobs will be scheduled to start and finish outside the duration of the window as much as possible, but running jobs will not get canceled when it runs into the window. All the time and date values in exclusion_windows entry in the API are in UTC. We only allow \u003c=1 recurrence (daily or weekly) exclusion window for a BackupPlan while no restriction on number of single occurrence windows.", + "items": { + "$ref": "ExclusionWindow" + }, + "type": "array" + }, + "targetRpoMinutes": { + "description": "Required. Defines the target RPO for the BackupPlan in minutes, which means the target maximum data loss in time that is acceptable for this BackupPlan. This must be at least 60, i.e., 1 hour, and at most 86400, i.e., 60 days.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "Schedule": { "description": "Defines scheduling parameters for automatically creating Backups via this BackupPlan.", "id": "Schedule", @@ -2903,9 +3052,19 @@ "description": "Optional. A standard [cron](https://wikipedia.com/wiki/cron) string that defines a repeating schedule for creating Backups via this BackupPlan. This is mutually exclusive with the rpo_config field since at most one schedule can be defined for a BackupPlan. If this is defined, then backup_retain_days must also be defined. Default (empty): no automatic backup creation will occur.", "type": "string" }, + "nextScheduledBackupTime": { + "description": "Output only. Start time of next scheduled backup under this BackupPlan by either cron_schedule or rpo config.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, "paused": { "description": "Optional. This flag denotes whether automatic Backup creation is paused for this BackupPlan. Default: False", "type": "boolean" + }, + "rpoConfig": { + "$ref": "RpoConfig", + "description": "Optional. Defines the RPO schedule configuration for this BackupPlan. This is mutually exclusive with the cron_schedule field since at most one schedule can be defined for a BackupPLan. If this is defined, then backup_retain_days must also be defined. Default (empty): no automatic backup creation will occur." } }, "type": "object" @@ -2987,6 +3146,33 @@ }, "type": "object" }, + "TimeOfDay": { + "description": "Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.", + "id": "TimeOfDay", + "properties": { + "hours": { + "description": "Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value \"24:00:00\" for scenarios like business closing time.", + "format": "int32", + "type": "integer" + }, + "minutes": { + "description": "Minutes of hour of day. Must be from 0 to 59.", + "format": "int32", + "type": "integer" + }, + "nanos": { + "description": "Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.", + "format": "int32", + "type": "integer" + }, + "seconds": { + "description": "Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "TransformationRule": { "description": "A transformation rule to be applied against Kubernetes resources as they are selected for restoration from a Backup. A rule contains both filtering logic (which resources are subject to transform) and transformation logic.", "id": "TransformationRule", diff --git a/gkebackup/v1/gkebackup-gen.go b/gkebackup/v1/gkebackup-gen.go index 25e029007f2..8c2d7398f2a 100644 --- a/gkebackup/v1/gkebackup-gen.go +++ b/gkebackup/v1/gkebackup-gen.go @@ -640,6 +640,15 @@ type BackupPlan struct { // Backups created under this plan. RetentionPolicy *RetentionPolicy `json:"retentionPolicy,omitempty"` + // RpoRiskLevel: Output only. A number that represents the current risk + // level of this BackupPlan from RPO perspective with 1 being no risk + // and 5 being highest risk. + RpoRiskLevel int64 `json:"rpoRiskLevel,omitempty"` + + // RpoRiskReason: Output only. Human-readable description of why the + // BackupPlan is in the current rpo_risk_level and action items if any. + RpoRiskReason string `json:"rpoRiskReason,omitempty"` + // State: Output only. State of the BackupPlan. This State field // reflects the various stages a BackupPlan can be in during the Create // operation. It will be set to "DEACTIVATED" if the BackupPlan is @@ -909,6 +918,91 @@ func (s *ClusterResourceRestoreScope) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Date: Represents a whole or partial calendar date, such as a +// birthday. The time of day and time zone are either specified +// elsewhere or are insignificant. The date is relative to the Gregorian +// Calendar. This can represent one of the following: * A full date, +// with non-zero year, month, and day values. * A month and day, with a +// zero year (for example, an anniversary). * A year on its own, with a +// zero month and a zero day. * A year and month, with a zero day (for +// example, a credit card expiration date). Related types: * +// google.type.TimeOfDay * google.type.DateTime * +// google.protobuf.Timestamp +type Date struct { + // Day: Day of a month. Must be from 1 to 31 and valid for the year and + // month, or 0 to specify a year by itself or a year and month where the + // day isn't significant. + Day int64 `json:"day,omitempty"` + + // Month: Month of a year. Must be from 1 to 12, or 0 to specify a year + // without a month and day. + Month int64 `json:"month,omitempty"` + + // Year: Year of the date. Must be from 1 to 9999, or 0 to specify a + // date without a year. + Year int64 `json:"year,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Day") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Day") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Date) MarshalJSON() ([]byte, error) { + type NoMethod Date + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DayOfWeekList: Holds repeated DaysOfWeek values as a container. +type DayOfWeekList struct { + // DaysOfWeek: Optional. A list of days of week. + // + // Possible values: + // "DAY_OF_WEEK_UNSPECIFIED" - The day of the week is unspecified. + // "MONDAY" - Monday + // "TUESDAY" - Tuesday + // "WEDNESDAY" - Wednesday + // "THURSDAY" - Thursday + // "FRIDAY" - Friday + // "SATURDAY" - Saturday + // "SUNDAY" - Sunday + DaysOfWeek []string `json:"daysOfWeek,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DaysOfWeek") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DaysOfWeek") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DayOfWeekList) MarshalJSON() ([]byte, error) { + type NoMethod DayOfWeekList + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Empty: A generic empty message that you can re-use to avoid defining // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For @@ -951,6 +1045,57 @@ func (s *EncryptionKey) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ExclusionWindow: Defines a time window during which no backup should +// happen. All time and date are in UTC. +type ExclusionWindow struct { + // Daily: The exclusion window occurs every day if set to "True". + // Specifying this field to "False" is an error. + Daily bool `json:"daily,omitempty"` + + // DaysOfWeek: The exclusion window occurs on these days of each week in + // UTC. + DaysOfWeek *DayOfWeekList `json:"daysOfWeek,omitempty"` + + // Duration: Required. Specifies duration of the window. Restrictions + // for duration based on the recurrence type to allow some time for + // backup to happen: - single_occurrence_date: no restriction, but UI + // may warn about this when duration >= target RPO - daily window: + // duration < 24 hours - weekly window: - days of week includes all + // seven days of a week: duration < 24 hours - all other weekly window: + // duration < 168 hours (i.e., 24 * 7 hours) + Duration string `json:"duration,omitempty"` + + // SingleOccurrenceDate: No recurrence. The exclusion window occurs only + // once and on this date in UTC. + SingleOccurrenceDate *Date `json:"singleOccurrenceDate,omitempty"` + + // StartTime: Required. Specifies the start time of the window using + // time of the day in UTC. + StartTime *TimeOfDay `json:"startTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Daily") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Daily") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ExclusionWindow) MarshalJSON() ([]byte, error) { + type NoMethod ExclusionWindow + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Expr: Represents a textual expression in the Common Expression // Language (CEL) syntax. CEL is a C-like expression language. The // syntax and semantics of CEL are documented at @@ -1011,6 +1156,38 @@ func (s *Expr) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GetBackupIndexDownloadUrlResponse: Response message for +// GetBackupIndexDownloadUrl. +type GetBackupIndexDownloadUrlResponse struct { + SignedUrl string `json:"signedUrl,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "SignedUrl") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "SignedUrl") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GetBackupIndexDownloadUrlResponse) MarshalJSON() ([]byte, error) { + type NoMethod GetBackupIndexDownloadUrlResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleLongrunningCancelOperationRequest: The request message for // Operations.CancelOperation. type GoogleLongrunningCancelOperationRequest struct { @@ -2230,6 +2407,50 @@ func (s *RetentionPolicy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// RpoConfig: Defines RPO scheduling configuration for automatically +// creating Backups via this BackupPlan. +type RpoConfig struct { + // ExclusionWindows: Optional. User specified time windows during which + // backup can NOT happen for this BackupPlan - backups should start and + // finish outside of any given exclusion window. Note: backup jobs will + // be scheduled to start and finish outside the duration of the window + // as much as possible, but running jobs will not get canceled when it + // runs into the window. All the time and date values in + // exclusion_windows entry in the API are in UTC. We only allow <=1 + // recurrence (daily or weekly) exclusion window for a BackupPlan while + // no restriction on number of single occurrence windows. + ExclusionWindows []*ExclusionWindow `json:"exclusionWindows,omitempty"` + + // TargetRpoMinutes: Required. Defines the target RPO for the BackupPlan + // in minutes, which means the target maximum data loss in time that is + // acceptable for this BackupPlan. This must be at least 60, i.e., 1 + // hour, and at most 86400, i.e., 60 days. + TargetRpoMinutes int64 `json:"targetRpoMinutes,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExclusionWindows") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExclusionWindows") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *RpoConfig) MarshalJSON() ([]byte, error) { + type NoMethod RpoConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Schedule: Defines scheduling parameters for automatically creating // Backups via this BackupPlan. type Schedule struct { @@ -2242,10 +2463,21 @@ type Schedule struct { // will occur. CronSchedule string `json:"cronSchedule,omitempty"` + // NextScheduledBackupTime: Output only. Start time of next scheduled + // backup under this BackupPlan by either cron_schedule or rpo config. + NextScheduledBackupTime string `json:"nextScheduledBackupTime,omitempty"` + // Paused: Optional. This flag denotes whether automatic Backup creation // is paused for this BackupPlan. Default: False Paused bool `json:"paused,omitempty"` + // RpoConfig: Optional. Defines the RPO schedule configuration for this + // BackupPlan. This is mutually exclusive with the cron_schedule field + // since at most one schedule can be defined for a BackupPLan. If this + // is defined, then backup_retain_days must also be defined. Default + // (empty): no automatic backup creation will occur. + RpoConfig *RpoConfig `json:"rpoConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "CronSchedule") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -2444,6 +2676,50 @@ func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// TimeOfDay: Represents a time of day. The date and time zone are +// either not significant or are specified elsewhere. An API may choose +// to allow leap seconds. Related types are google.type.Date and +// `google.protobuf.Timestamp`. +type TimeOfDay struct { + // Hours: Hours of day in 24 hour format. Should be from 0 to 23. An API + // may choose to allow the value "24:00:00" for scenarios like business + // closing time. + Hours int64 `json:"hours,omitempty"` + + // Minutes: Minutes of hour of day. Must be from 0 to 59. + Minutes int64 `json:"minutes,omitempty"` + + // Nanos: Fractions of seconds in nanoseconds. Must be from 0 to + // 999,999,999. + Nanos int64 `json:"nanos,omitempty"` + + // Seconds: Seconds of minutes of the time. Must normally be from 0 to + // 59. An API may allow the value 60 if it allows leap-seconds. + Seconds int64 `json:"seconds,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Hours") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Hours") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TimeOfDay) MarshalJSON() ([]byte, error) { + type NoMethod TimeOfDay + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // TransformationRule: A transformation rule to be applied against // Kubernetes resources as they are selected for restoration from a // Backup. A rule contains both filtering logic (which resources are @@ -4894,6 +5170,155 @@ func (c *ProjectsLocationsBackupPlansBackupsGetCall) Do(opts ...googleapi.CallOp } +// method id "gkebackup.projects.locations.backupPlans.backups.getBackupIndexDownloadUrl": + +type ProjectsLocationsBackupPlansBackupsGetBackupIndexDownloadUrlCall struct { + s *Service + backup string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetBackupIndexDownloadUrl: Retrieve the link to the backupIndex. +// +// - backup: Full name of Backup resource. Format: +// projects/{project}/locations/{location}/backupPlans/{backup_plan}/ba +// ckups/{backup}. +func (r *ProjectsLocationsBackupPlansBackupsService) GetBackupIndexDownloadUrl(backup string) *ProjectsLocationsBackupPlansBackupsGetBackupIndexDownloadUrlCall { + c := &ProjectsLocationsBackupPlansBackupsGetBackupIndexDownloadUrlCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.backup = backup + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsBackupPlansBackupsGetBackupIndexDownloadUrlCall) Fields(s ...googleapi.Field) *ProjectsLocationsBackupPlansBackupsGetBackupIndexDownloadUrlCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsBackupPlansBackupsGetBackupIndexDownloadUrlCall) IfNoneMatch(entityTag string) *ProjectsLocationsBackupPlansBackupsGetBackupIndexDownloadUrlCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsBackupPlansBackupsGetBackupIndexDownloadUrlCall) Context(ctx context.Context) *ProjectsLocationsBackupPlansBackupsGetBackupIndexDownloadUrlCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsBackupPlansBackupsGetBackupIndexDownloadUrlCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBackupPlansBackupsGetBackupIndexDownloadUrlCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+backup}:getBackupIndexDownloadUrl") + 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{ + "backup": c.backup, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "gkebackup.projects.locations.backupPlans.backups.getBackupIndexDownloadUrl" call. +// Exactly one of *GetBackupIndexDownloadUrlResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GetBackupIndexDownloadUrlResponse.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 *ProjectsLocationsBackupPlansBackupsGetBackupIndexDownloadUrlCall) Do(opts ...googleapi.CallOption) (*GetBackupIndexDownloadUrlResponse, 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 := &GetBackupIndexDownloadUrlResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Retrieve the link to the backupIndex.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupPlans/{backupPlansId}/backups/{backupsId}:getBackupIndexDownloadUrl", + // "httpMethod": "GET", + // "id": "gkebackup.projects.locations.backupPlans.backups.getBackupIndexDownloadUrl", + // "parameterOrder": [ + // "backup" + // ], + // "parameters": { + // "backup": { + // "description": "Required. Full name of Backup resource. Format: projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/backupPlans/[^/]+/backups/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+backup}:getBackupIndexDownloadUrl", + // "response": { + // "$ref": "GetBackupIndexDownloadUrlResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "gkebackup.projects.locations.backupPlans.backups.getIamPolicy": type ProjectsLocationsBackupPlansBackupsGetIamPolicyCall struct { diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-api.json b/paymentsresellersubscription/v1/paymentsresellersubscription-api.json index 881e236b189..174e6a1d813 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-api.json +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-api.json @@ -435,7 +435,7 @@ } } }, - "revision": "20240226", + "revision": "20240331", "rootUrl": "https://paymentsresellersubscription.googleapis.com/", "schemas": { "GoogleCloudPaymentsResellerSubscriptionV1Amount": { @@ -1231,7 +1231,7 @@ "type": "integer" }, "lineItemPromotionSpecs": { - "description": "Optional. The promotions applied on the line item. It can be: - a free trial promotion, which overrides the subscription-level free trial promotion. - an introductory pricing promotion. When used as input in Create or Provision API, specify its resource name only.", + "description": "Optional. The promotions applied on the line item. It can be: - an introductory pricing promotion. - a free trial promotion. This feature is not enabled. If used, the request will be rejected. When used as input in Create or Provision API, specify its resource name only.", "items": { "$ref": "GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec" }, diff --git a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go index 4a3a0be85d1..92a54e7e303 100644 --- a/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go +++ b/paymentsresellersubscription/v1/paymentsresellersubscription-gen.go @@ -1471,9 +1471,9 @@ type GoogleCloudPaymentsResellerSubscriptionV1SubscriptionLineItem struct { LineItemIndex int64 `json:"lineItemIndex,omitempty"` // LineItemPromotionSpecs: Optional. The promotions applied on the line - // item. It can be: - a free trial promotion, which overrides the - // subscription-level free trial promotion. - an introductory pricing - // promotion. When used as input in Create or Provision API, specify its + // item. It can be: - an introductory pricing promotion. - a free trial + // promotion. This feature is not enabled. If used, the request will be + // rejected. When used as input in Create or Provision API, specify its // resource name only. LineItemPromotionSpecs []*GoogleCloudPaymentsResellerSubscriptionV1SubscriptionPromotionSpec `json:"lineItemPromotionSpecs,omitempty"` diff --git a/versionhistory/v1/versionhistory-api.json b/versionhistory/v1/versionhistory-api.json index 5fa356f93f0..467be3666bc 100644 --- a/versionhistory/v1/versionhistory-api.json +++ b/versionhistory/v1/versionhistory-api.json @@ -271,7 +271,7 @@ } } }, - "revision": "20240327", + "revision": "20240331", "rootUrl": "https://versionhistory.googleapis.com/", "schemas": { "Channel": { @@ -294,13 +294,13 @@ ], "enumDescriptions": [ "", + "The Stable channel.", + "The Beta channel.", + "The Dev channel.", + "The Canary channel.", + "The Canary channel for Chrome, with DCHECK/ASAN enabled.", "", - "", - "", - "", - "", - "", - "", + "The Extended Stable channel for Chrome.", "The Long-term support channel for ChromeOS.", "The Long-term support candidate channel for ChromeOS." ], @@ -432,20 +432,20 @@ ], "enumDescriptions": [ "", + "Chrome Desktop for Windows (32-bit).", + "Chrome Desktop for Windows (x86_64).", + "Chrome Desktop for macOS (x86_64).", + "Chrome Desktop for Linux.", + "Chrome for Android.", + "WebView for Android.", + "Chrome for iOS.", "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", + "Chrome for macOS (ARM64).", + "ChromeOS Lacros (x86_64).", + "ChromeOS Lacros (ARM).", + "ChromeOS.", + "ChromeOS Lacros (ARM64).", + "Chrome for Fuchsia.", "Chrome Desktop for Windows (ARM64)." ], "type": "string" diff --git a/versionhistory/v1/versionhistory-gen.go b/versionhistory/v1/versionhistory-gen.go index 094ea7ba367..a3a86196184 100644 --- a/versionhistory/v1/versionhistory-gen.go +++ b/versionhistory/v1/versionhistory-gen.go @@ -197,13 +197,14 @@ type Channel struct { // // Possible values: // "CHANNEL_TYPE_UNSPECIFIED" - // "STABLE" - // "BETA" - // "DEV" - // "CANARY" - // "CANARY_ASAN" + // "STABLE" - The Stable channel. + // "BETA" - The Beta channel. + // "DEV" - The Dev channel. + // "CANARY" - The Canary channel. + // "CANARY_ASAN" - The Canary channel for Chrome, with DCHECK/ASAN + // enabled. // "ALL" - // "EXTENDED" + // "EXTENDED" - The Extended Stable channel for Chrome. // "LTS" - The Long-term support channel for ChromeOS. // "LTC" - The Long-term support candidate channel for ChromeOS. ChannelType string `json:"channelType,omitempty"` @@ -433,20 +434,20 @@ type Platform struct { // // Possible values: // "PLATFORM_TYPE_UNSPECIFIED" - // "WIN" - // "WIN64" - // "MAC" - // "LINUX" - // "ANDROID" - // "WEBVIEW" - // "IOS" + // "WIN" - Chrome Desktop for Windows (32-bit). + // "WIN64" - Chrome Desktop for Windows (x86_64). + // "MAC" - Chrome Desktop for macOS (x86_64). + // "LINUX" - Chrome Desktop for Linux. + // "ANDROID" - Chrome for Android. + // "WEBVIEW" - WebView for Android. + // "IOS" - Chrome for iOS. // "ALL" - // "MAC_ARM64" - // "LACROS" - // "LACROS_ARM32" - // "CHROMEOS" - // "LACROS_ARM64" - // "FUCHSIA" + // "MAC_ARM64" - Chrome for macOS (ARM64). + // "LACROS" - ChromeOS Lacros (x86_64). + // "LACROS_ARM32" - ChromeOS Lacros (ARM). + // "CHROMEOS" - ChromeOS. + // "LACROS_ARM64" - ChromeOS Lacros (ARM64). + // "FUCHSIA" - Chrome for Fuchsia. // "WIN_ARM64" - Chrome Desktop for Windows (ARM64). PlatformType string `json:"platformType,omitempty"`