From 9d791a4ab985501fd21f368d17f9475e5c8b217c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sat, 28 Sep 2024 00:24:25 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2804) --- .../v1/accesscontextmanager-api.json | 9 +- .../v1/accesscontextmanager-gen.go | 16 +- backupdr/v1/backupdr-api.json | 32 +- backupdr/v1/backupdr-gen.go | 61 +- dfareporting/v4/dfareporting-api.json | 302 +++++++++- dfareporting/v4/dfareporting-gen.go | 521 +++++++++++++++++- dialogflow/v2/dialogflow-api.json | 58 +- dialogflow/v2/dialogflow-gen.go | 24 + dialogflow/v2beta1/dialogflow-api.json | 48 +- dialogflow/v2beta1/dialogflow-gen.go | 18 + dialogflow/v3/dialogflow-api.json | 32 +- dialogflow/v3/dialogflow-gen.go | 16 +- dialogflow/v3beta1/dialogflow-api.json | 76 ++- dialogflow/v3beta1/dialogflow-gen.go | 67 ++- firebaseml/v2beta/firebaseml-api.json | 54 +- firebaseml/v2beta/firebaseml-gen.go | 113 +++- memcache/v1beta2/memcache-api.json | 390 ++++++++++++- memcache/v1beta2/memcache-gen.go | 420 ++++++++++++++ .../accounts_v1beta/merchantapi-api.json | 6 +- .../accounts_v1beta/merchantapi-gen.go | 11 +- .../v1/networkconnectivity-api.json | 56 +- .../v1/networkconnectivity-gen.go | 45 +- .../v1/networkmanagement-api.json | 22 +- networkmanagement/v1/networkmanagement-gen.go | 11 + .../v1beta1/networkmanagement-api.json | 14 +- .../v1beta1/networkmanagement-gen.go | 5 + networksecurity/v1/networksecurity-api.json | 27 +- networksecurity/v1/networksecurity-gen.go | 31 ++ networkservices/v1/networkservices-api.json | 101 +--- networkservices/v1/networkservices-gen.go | 355 +----------- redis/v1/redis-api.json | 33 +- redis/v1/redis-gen.go | 32 +- redis/v1beta1/redis-api.json | 33 +- redis/v1beta1/redis-gen.go | 32 +- secretmanager/v1/secretmanager-api.json | 6 +- secretmanager/v1/secretmanager-gen.go | 4 +- .../v1/servicenetworking-api.json | 4 +- servicenetworking/v1/servicenetworking-gen.go | 2 +- .../v1beta/servicenetworking-api.json | 4 +- .../v1beta/servicenetworking-gen.go | 2 +- spanner/v1/spanner-api.json | 24 +- spanner/v1/spanner-gen.go | 8 +- sqladmin/v1beta4/sqladmin-api.json | 51 +- sqladmin/v1beta4/sqladmin-gen.go | 65 ++- youtube/v3/youtube-api.json | 6 +- youtube/v3/youtube-gen.go | 3 - 46 files changed, 2631 insertions(+), 619 deletions(-) diff --git a/accesscontextmanager/v1/accesscontextmanager-api.json b/accesscontextmanager/v1/accesscontextmanager-api.json index 31d433250cb..e1b7f25075f 100644 --- a/accesscontextmanager/v1/accesscontextmanager-api.json +++ b/accesscontextmanager/v1/accesscontextmanager-api.json @@ -1205,6 +1205,11 @@ "name" ], "parameters": { + "appendScopedAccessSettings": { + "description": "Optional. This field will be used to control whether or not scoped access settings are appended to the existing list of scoped access settings. If true, the scoped access settings in the request will be appended to the existing list of scoped access settings. If false, the scoped access settings in the request replace the existing list of scoped access settings.", + "location": "query", + "type": "boolean" + }, "name": { "description": "Immutable. Assigned by the server during creation. The last segment has an arbitrary length and has only URI unreserved characters (as defined by [RFC 3986 Section 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)). Should not be specified by the client during creation. Example: \"organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N\"", "location": "path", @@ -1213,7 +1218,7 @@ "type": "string" }, "updateMask": { - "description": "Required. Only the fields specified in this mask are updated. Because name and group_key cannot be changed, update_mask is required and may only contain the following fields: `access_levels`, `dry_run_access_levels`. update_mask { paths: \"access_levels\" }", + "description": "Required. Only the fields specified in this mask are updated. Because name and group_key cannot be changed, update_mask is required and may only contain the following fields: `access_levels`, `dry_run_access_levels`, `reauth_settings`, `scoped_access_settings`. update_mask { paths: \"access_levels\" }", "format": "google-fieldmask", "location": "query", "type": "string" @@ -1290,7 +1295,7 @@ } } }, - "revision": "20240908", + "revision": "20240923", "rootUrl": "https://accesscontextmanager.googleapis.com/", "schemas": { "AccessContextManagerOperationMetadata": { diff --git a/accesscontextmanager/v1/accesscontextmanager-gen.go b/accesscontextmanager/v1/accesscontextmanager-gen.go index 5d1666f046d..6db84fcddd1 100644 --- a/accesscontextmanager/v1/accesscontextmanager-gen.go +++ b/accesscontextmanager/v1/accesscontextmanager-gen.go @@ -6601,11 +6601,23 @@ func (r *OrganizationsGcpUserAccessBindingsService) Patch(name string, gcpuserac return c } +// AppendScopedAccessSettings sets the optional parameter +// "appendScopedAccessSettings": This field will be used to control whether or +// not scoped access settings are appended to the existing list of scoped +// access settings. If true, the scoped access settings in the request will be +// appended to the existing list of scoped access settings. If false, the +// scoped access settings in the request replace the existing list of scoped +// access settings. +func (c *OrganizationsGcpUserAccessBindingsPatchCall) AppendScopedAccessSettings(appendScopedAccessSettings bool) *OrganizationsGcpUserAccessBindingsPatchCall { + c.urlParams_.Set("appendScopedAccessSettings", fmt.Sprint(appendScopedAccessSettings)) + return c +} + // UpdateMask sets the optional parameter "updateMask": Required. Only the // fields specified in this mask are updated. Because name and group_key cannot // be changed, update_mask is required and may only contain the following -// fields: `access_levels`, `dry_run_access_levels`. update_mask { paths: -// "access_levels" } +// fields: `access_levels`, `dry_run_access_levels`, `reauth_settings`, +// `scoped_access_settings`. update_mask { paths: "access_levels" } func (c *OrganizationsGcpUserAccessBindingsPatchCall) UpdateMask(updateMask string) *OrganizationsGcpUserAccessBindingsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c diff --git a/backupdr/v1/backupdr-api.json b/backupdr/v1/backupdr-api.json index c6266a13dfb..d865c0d5f65 100644 --- a/backupdr/v1/backupdr-api.json +++ b/backupdr/v1/backupdr-api.json @@ -489,7 +489,7 @@ "backupVaults": { "methods": { "create": { - "description": "", + "description": "Creates a new BackupVault in a given project and location.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupVaults", "httpMethod": "POST", "id": "backupdr.projects.locations.backupVaults.create", @@ -743,7 +743,7 @@ "type": "boolean" }, "name": { - "description": "Output only. Identifier. The resource name.", + "description": "Output only. Identifier. Name of the backup vault to create. It must have the format`\"projects/{project}/locations/{location}/backupVaults/{backupvault}\"`. `{backupvault}` cannot be changed after creation. It must be between 3-63 characters long and must be unique within the project and location.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+$", "required": true, @@ -1007,7 +1007,7 @@ "type": "boolean" }, "name": { - "description": "Output only. Identifier. The resource name.", + "description": "Output only. Identifier. Name of the datasource to create. It must have the format`\"projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}\"`. `{datasource}` cannot be changed after creation. It must be between 3-63 characters long and must be unique within the backup vault.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/dataSources/[^/]+$", "required": true, @@ -1237,7 +1237,7 @@ ], "parameters": { "name": { - "description": "Output only. Identifier. Name of the resource.", + "description": "Output only. Identifier. Name of the backup to create. It must have the format`\"projects//locations//backupVaults//dataSources/{datasource}/backups/{backup}\"`. `{backup}` cannot be changed after creation. It must be between 3-63 characters long and must be unique within the datasource.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+/dataSources/[^/]+/backups/[^/]+$", "required": true, @@ -1658,7 +1658,7 @@ } } }, - "revision": "20240913", + "revision": "20240918", "rootUrl": "https://backupdr.googleapis.com/", "schemas": { "AbandonBackupRequest": { @@ -2126,7 +2126,7 @@ "type": "object" }, "name": { - "description": "Output only. Identifier. Name of the resource.", + "description": "Output only. Identifier. Name of the backup to create. It must have the format`\"projects//locations//backupVaults//dataSources/{datasource}/backups/{backup}\"`. `{backup}` cannot be changed after creation. It must be between 3-63 characters long and must be unique within the datasource.", "readOnly": true, "type": "string" }, @@ -2508,6 +2508,22 @@ "description": "Message describing a BackupVault object.", "id": "BackupVault", "properties": { + "accessRestriction": { + "description": "Optional. Note: This field is added for future use case and will not be supported in the current release. Optional. Access restriction for the backup vault. Default value is WITHIN_ORGANIZATION if not provided during creation.", + "enum": [ + "ACCESS_RESTRICTION_UNSPECIFIED", + "WITHIN_PROJECT", + "WITHIN_ORGANIZATION", + "UNRESTRICTED" + ], + "enumDescriptions": [ + "Access restriction not set.", + "Access to or from resources outside your current project will be denied.", + "Access to or from resources outside your current organization will be denied.", + "No access restriction." + ], + "type": "string" + }, "annotations": { "additionalProperties": { "type": "string" @@ -2558,7 +2574,7 @@ "type": "object" }, "name": { - "description": "Output only. Identifier. The resource name.", + "description": "Output only. Identifier. Name of the backup vault to create. It must have the format`\"projects/{project}/locations/{location}/backupVaults/{backupvault}\"`. `{backupvault}` cannot be changed after creation. It must be between 3-63 characters long and must be unique within the project and location.", "readOnly": true, "type": "string" }, @@ -3056,7 +3072,7 @@ "type": "object" }, "name": { - "description": "Output only. Identifier. The resource name.", + "description": "Output only. Identifier. Name of the datasource to create. It must have the format`\"projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}\"`. `{datasource}` cannot be changed after creation. It must be between 3-63 characters long and must be unique within the backup vault.", "readOnly": true, "type": "string" }, diff --git a/backupdr/v1/backupdr-gen.go b/backupdr/v1/backupdr-gen.go index 3b2852691ca..3646f2bca23 100644 --- a/backupdr/v1/backupdr-gen.go +++ b/backupdr/v1/backupdr-gen.go @@ -723,7 +723,11 @@ type Backup struct { // Labels: Optional. Resource labels to represent user provided metadata. No // labels currently defined. Labels map[string]string `json:"labels,omitempty"` - // Name: Output only. Identifier. Name of the resource. + // Name: Output only. Identifier. Name of the backup to create. It must have + // the + // format"projects//locations//backupVaults//dataSources/{datasource}/backups/{ + // backup}". `{backup}` cannot be changed after creation. It must be between + // 3-63 characters long and must be unique within the datasource. Name string `json:"name,omitempty"` // ResourceSizeBytes: Output only. source resource size in bytes at the time of // the backup. @@ -1106,6 +1110,19 @@ func (s BackupRule) MarshalJSON() ([]byte, error) { // BackupVault: Message describing a BackupVault object. type BackupVault struct { + // AccessRestriction: Optional. Note: This field is added for future use case + // and will not be supported in the current release. Optional. Access + // restriction for the backup vault. Default value is WITHIN_ORGANIZATION if + // not provided during creation. + // + // Possible values: + // "ACCESS_RESTRICTION_UNSPECIFIED" - Access restriction not set. + // "WITHIN_PROJECT" - Access to or from resources outside your current + // project will be denied. + // "WITHIN_ORGANIZATION" - Access to or from resources outside your current + // organization will be denied. + // "UNRESTRICTED" - No access restriction. + AccessRestriction string `json:"accessRestriction,omitempty"` // Annotations: Optional. User annotations. See // https://google.aip.dev/128#annotations Stores small amounts of arbitrary // data. @@ -1133,7 +1150,11 @@ type BackupVault struct { // Labels: Optional. Resource labels to represent user provided metadata. No // labels currently defined: Labels map[string]string `json:"labels,omitempty"` - // Name: Output only. Identifier. The resource name. + // Name: Output only. Identifier. Name of the backup vault to create. It must + // have the + // format"projects/{project}/locations/{location}/backupVaults/{backupvault}". + // `{backupvault}` cannot be changed after creation. It must be between 3-63 + // characters long and must be unique within the project and location. Name string `json:"name,omitempty"` // ServiceAccount: Output only. Service account used by the BackupVault Service // for this BackupVault. The user should grant this account permissions in @@ -1160,15 +1181,15 @@ type BackupVault struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Annotations") to + // ForceSendFields is a list of field names (e.g. "AccessRestriction") 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. "Annotations") 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. "AccessRestriction") 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:"-"` } @@ -1724,7 +1745,12 @@ type DataSource struct { // Labels: Optional. Resource labels to represent user provided metadata. No // labels currently defined: Labels map[string]string `json:"labels,omitempty"` - // Name: Output only. Identifier. The resource name. + // Name: Output only. Identifier. Name of the datasource to create. It must + // have the + // format"projects/{project}/locations/{location}/backupVaults/{backupvault}/da + // taSources/{datasource}". `{datasource}` cannot be changed after creation. + // It must be between 3-63 characters long and must be unique within the backup + // vault. Name string `json:"name,omitempty"` // State: Output only. The DataSource resource instance state. // @@ -5475,7 +5501,7 @@ type ProjectsLocationsBackupVaultsCreateCall struct { header_ http.Header } -// Create: +// Create: Creates a new BackupVault in a given project and location. // // - parent: Value for parent. func (r *ProjectsLocationsBackupVaultsService) Create(parent string, backupvault *BackupVault) *ProjectsLocationsBackupVaultsCreateCall { @@ -6224,7 +6250,11 @@ type ProjectsLocationsBackupVaultsPatchCall struct { // Patch: Updates the settings of a BackupVault. // -// - name: Output only. Identifier. The resource name. +// - name: Output only. Identifier. Name of the backup vault to create. It must +// have the +// format"projects/{project}/locations/{location}/backupVaults/{backupvault}" +// `. `{backupvault}` cannot be changed after creation. It must be between +// 3-63 characters long and must be unique within the project and location. func (r *ProjectsLocationsBackupVaultsService) Patch(name string, backupvault *BackupVault) *ProjectsLocationsBackupVaultsPatchCall { c := &ProjectsLocationsBackupVaultsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -7154,7 +7184,12 @@ type ProjectsLocationsBackupVaultsDataSourcesPatchCall struct { // Patch: Updates the settings of a DataSource. // -// - name: Output only. Identifier. The resource name. +// - name: Output only. Identifier. Name of the datasource to create. It must +// have the +// format"projects/{project}/locations/{location}/backupVaults/{backupvault}/ +// dataSources/{datasource}". `{datasource}` cannot be changed after +// creation. It must be between 3-63 characters long and must be unique +// within the backup vault. func (r *ProjectsLocationsBackupVaultsDataSourcesService) Patch(name string, datasource *DataSource) *ProjectsLocationsBackupVaultsDataSourcesPatchCall { c := &ProjectsLocationsBackupVaultsDataSourcesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -7915,7 +7950,11 @@ type ProjectsLocationsBackupVaultsDataSourcesBackupsPatchCall struct { // Patch: Updates the settings of a Backup. // -// - name: Output only. Identifier. Name of the resource. +// - name: Output only. Identifier. Name of the backup to create. It must have +// the +// format"projects//locations//backupVaults//dataSources/{datasource}/backups +// /{backup}". `{backup}` cannot be changed after creation. It must be +// between 3-63 characters long and must be unique within the datasource. func (r *ProjectsLocationsBackupVaultsDataSourcesBackupsService) Patch(name string, backup *Backup) *ProjectsLocationsBackupVaultsDataSourcesBackupsPatchCall { c := &ProjectsLocationsBackupVaultsDataSourcesBackupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name diff --git a/dfareporting/v4/dfareporting-api.json b/dfareporting/v4/dfareporting-api.json index 5a5d9d1a2e5..c1bdad96a11 100644 --- a/dfareporting/v4/dfareporting-api.json +++ b/dfareporting/v4/dfareporting-api.json @@ -9561,6 +9561,91 @@ } } }, + "tvCampaignDetails": { + "methods": { + "get": { + "description": "Gets one TvCampaignDetail by ID.", + "flatPath": "userprofiles/{userprofilesId}/tvCampaignDetails/{tvCampaignDetailsId}", + "httpMethod": "GET", + "id": "dfareporting.tvCampaignDetails.get", + "parameterOrder": [ + "profileId", + "id" + ], + "parameters": { + "accountId": { + "description": "Required. Account ID associated with this request.", + "format": "int64", + "location": "query", + "type": "string" + }, + "id": { + "description": "Required. TV Campaign ID.", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + }, + "profileId": { + "description": "Required. User profile ID associated with this request.", + "format": "int64", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "userprofiles/{+profileId}/tvCampaignDetails/{+id}", + "response": { + "$ref": "TvCampaignDetail" + }, + "scopes": [ + "https://www.googleapis.com/auth/dfatrafficking" + ] + } + } + }, + "tvCampaignSummaries": { + "methods": { + "list": { + "description": "Retrieves a list of TV campaign summaries.", + "flatPath": "userprofiles/{userprofilesId}/tvCampaignSummaries", + "httpMethod": "GET", + "id": "dfareporting.tvCampaignSummaries.list", + "parameterOrder": [ + "profileId" + ], + "parameters": { + "accountId": { + "description": "Required. Account ID associated with this request.", + "format": "int64", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. Search string to filter the list of TV campaign summaries. Matches any substring. Required field.", + "location": "query", + "type": "string" + }, + "profileId": { + "description": "Required. User profile ID associated with this request.", + "format": "int64", + "location": "path", + "pattern": "^[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "userprofiles/{+profileId}/tvCampaignSummaries", + "response": { + "$ref": "TvCampaignSummariesListResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/dfatrafficking" + ] + } + } + }, "userProfiles": { "methods": { "get": { @@ -10067,7 +10152,7 @@ } } }, - "revision": "20240821", + "revision": "20240926", "rootUrl": "https://dfareporting.googleapis.com/", "schemas": { "Account": { @@ -11664,7 +11749,7 @@ "type": "object" }, "CartData": { - "description": "Contains additional information about cart data.", + "description": "Contains additional information about cart data. This field may only be used when calling batchinsert; it is not supported by batchupdate.", "id": "CartData", "properties": { "items": { @@ -11683,7 +11768,7 @@ "type": "string" }, "merchantId": { - "description": "The Merchant Center ID where the items are uploaded.", + "description": "The Merchant Center ID where the items are uploaded. This is a required field.", "format": "int64", "type": "string" } @@ -11968,13 +12053,17 @@ "type": "object" }, "CompatibleFields": { - "description": "Represents a response to the queryCompatibleFields method.", + "description": "Represents a response to the queryCompatibleFields method. Next ID: 10", "id": "CompatibleFields", "properties": { "crossDimensionReachReportCompatibleFields": { "$ref": "CrossDimensionReachReportCompatibleFields", "description": "Contains items that are compatible to be selected for a report of type \"CROSS_DIMENSION_REACH\"." }, + "crossMediaReachReportCompatibleFields": { + "$ref": "CrossMediaReachReportCompatibleFields", + "description": "Contains items that are compatible to be selected for a report of type \"CROSS_MEDIA_REACH\"." + }, "floodlightReportCompatibleFields": { "$ref": "FloodlightReportCompatibleFields", "description": "Contains items that are compatible to be selected for a report of type \"FLOODLIGHT\"." @@ -12107,7 +12196,7 @@ "type": "boolean" }, "customVariables": { - "description": "Custom floodlight variables. This field may only be used when calling batchinsert; it is not supported by batchupdate.", + "description": "Custom floodlight variables.", "items": { "$ref": "CustomFloodlightVariable" }, @@ -14300,6 +14389,38 @@ }, "type": "object" }, + "CrossMediaReachReportCompatibleFields": { + "description": "Represents fields that are compatible to be selected for a report of type \"CROSS_MEDIA_REACH\".", + "id": "CrossMediaReachReportCompatibleFields", + "properties": { + "dimensionFilters": { + "description": "Dimensions which are compatible to be selected in the \"dimensionFilters\" section of the report.", + "items": { + "$ref": "Dimension" + }, + "type": "array" + }, + "dimensions": { + "description": "Dimensions which are compatible to be selected in the \"dimensions\" section of the report.", + "items": { + "$ref": "Dimension" + }, + "type": "array" + }, + "kind": { + "description": "The kind of resource this is, in this case dfareporting#crossMediaReachReportCompatibleFields.", + "type": "string" + }, + "metrics": { + "description": "Metrics which are compatible to be selected in the \"metricNames\" section of the report.", + "items": { + "$ref": "Metric" + }, + "type": "array" + } + }, + "type": "object" + }, "CustomFloodlightVariable": { "description": "A custom floodlight variable. This field may only be used when calling batchinsert; it is not supported by batchupdate.", "id": "CustomFloodlightVariable", @@ -14309,7 +14430,7 @@ "type": "string" }, "type": { - "description": "The type of custom floodlight variable to supply a value for. These map to the \"u[1-20]=\" in the tags.", + "description": "The type of custom floodlight variable to supply a value for. These map to the \"u[1-100]=\" in the tags.", "enum": [ "U1", "U2", @@ -19117,6 +19238,37 @@ }, "type": "object" }, + "crossMediaReachCriteria": { + "description": "Optional. The report criteria for a report of type \"CROSS_MEDIA_REACH\".", + "properties": { + "dateRange": { + "$ref": "DateRange", + "description": "Required. The date range this report should be run for." + }, + "dimensionFilters": { + "description": "Required. The list of filters on which dimensions are filtered. Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.", + "items": { + "$ref": "DimensionValue" + }, + "type": "array" + }, + "dimensions": { + "description": "Required. The list of dimensions the report should include.", + "items": { + "$ref": "SortedDimension" + }, + "type": "array" + }, + "metricNames": { + "description": "Required. The list of names of metrics the report should include.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "delivery": { "description": "The report's email delivery settings.", "properties": { @@ -19486,13 +19638,15 @@ "REACH", "PATH_TO_CONVERSION", "CROSS_DIMENSION_REACH", - "FLOODLIGHT" + "FLOODLIGHT", + "CROSS_MEDIA_REACH" ], "enumDescriptions": [ "", "", "", "", + "", "" ], "type": "string" @@ -20561,6 +20715,140 @@ }, "type": "object" }, + "TvCampaignDetail": { + "description": "TvCampaignDetail contains data from a TV campaign for specific start dates and date windows.", + "id": "TvCampaignDetail", + "properties": { + "id": { + "description": "ID of this TV campaign.", + "type": "string" + }, + "kind": { + "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#tvCampaignSummary\".", + "type": "string" + }, + "timepoints": { + "description": "The timepoints of the TV campaign.", + "items": { + "$ref": "TvCampaignTimepoint" + }, + "type": "array" + } + }, + "type": "object" + }, + "TvCampaignSummariesListResponse": { + "description": "Response message for TvCampaignSummariesService.List.", + "id": "TvCampaignSummariesListResponse", + "properties": { + "kind": { + "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#tvCampaignSummariesListResponse\".", + "type": "string" + }, + "tvCampaignSummaries": { + "description": "List of TV campaign summaries.", + "items": { + "$ref": "TvCampaignSummary" + }, + "type": "array" + } + }, + "type": "object" + }, + "TvCampaignSummary": { + "description": "TvCampaignSummary contains aggregate data from a TV campaign.", + "id": "TvCampaignSummary", + "properties": { + "endDate": { + "description": "The end date of the TV campaign, inclusive. A string of the format: \"yyyy-MM-dd\".", + "type": "string" + }, + "grp": { + "description": "GRP of this TV campaign.", + "format": "int64", + "type": "string" + }, + "id": { + "description": "ID of this TV campaign.", + "type": "string" + }, + "impressions": { + "description": "Impressions across the entire TV campaign.", + "format": "int64", + "type": "string" + }, + "kind": { + "description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#tvCampaignSummary\".", + "type": "string" + }, + "name": { + "description": "Identifier. Name of this TV campaign.", + "type": "string" + }, + "spend": { + "description": "Spend across the entire TV campaign.", + "format": "double", + "type": "number" + }, + "startDate": { + "description": "The start date of the TV campaign, inclusive. A string of the format: \"yyyy-MM-dd\".", + "type": "string" + }, + "type": { + "description": "\"CampaignComponentType\" of this TV campaign.", + "enum": [ + "CAMPAIGN_COMPONENT_TYPE_UNSPECIFIED", + "COMPANY", + "BRAND", + "PRODUCT", + "CAMPAIGN" + ], + "enumDescriptions": [ + "Required to exist; do not use.", + "Company.", + "Brand.", + "Product.", + "Campaign." + ], + "type": "string" + } + }, + "type": "object" + }, + "TvCampaignTimepoint": { + "description": "A single data point for TvCampaignDetail, which holds information about the TV campaign for a specific start date and date window.", + "id": "TvCampaignTimepoint", + "properties": { + "dateWindow": { + "description": "The date window of the timepoint.", + "enum": [ + "WEEKS_UNSPECIFIED", + "WEEKS_ONE", + "WEEKS_FOUR", + "WEEKS_EIGHT", + "WEEKS_TWELVE" + ], + "enumDescriptions": [ + "Default value, should never be set.", + "One week.", + "Four weeks.", + "Eight weeks.", + "Twelve weeks." + ], + "type": "string" + }, + "spend": { + "description": "The spend within the time range of the timepoint.", + "format": "double", + "type": "number" + }, + "startDate": { + "description": "The start date of the timepoint. A string in the format of \"yyyy-MM-dd\".", + "type": "string" + } + }, + "type": "object" + }, "UniversalAdId": { "description": "A Universal Ad ID as per the VAST 4.0 spec. Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and VPAID.", "id": "UniversalAdId", diff --git a/dfareporting/v4/dfareporting-gen.go b/dfareporting/v4/dfareporting-gen.go index 1e428ef59fc..7c708da72ec 100644 --- a/dfareporting/v4/dfareporting-gen.go +++ b/dfareporting/v4/dfareporting-gen.go @@ -206,6 +206,8 @@ func New(client *http.Client) (*Service, error) { s.Subaccounts = NewSubaccountsService(s) s.TargetableRemarketingLists = NewTargetableRemarketingListsService(s) s.TargetingTemplates = NewTargetingTemplatesService(s) + s.TvCampaignDetails = NewTvCampaignDetailsService(s) + s.TvCampaignSummaries = NewTvCampaignSummariesService(s) s.UserProfiles = NewUserProfilesService(s) s.UserRolePermissionGroups = NewUserRolePermissionGroupsService(s) s.UserRolePermissions = NewUserRolePermissionsService(s) @@ -335,6 +337,10 @@ type Service struct { TargetingTemplates *TargetingTemplatesService + TvCampaignDetails *TvCampaignDetailsService + + TvCampaignSummaries *TvCampaignSummariesService + UserProfiles *UserProfilesService UserRolePermissionGroups *UserRolePermissionGroupsService @@ -899,6 +905,24 @@ type TargetingTemplatesService struct { s *Service } +func NewTvCampaignDetailsService(s *Service) *TvCampaignDetailsService { + rs := &TvCampaignDetailsService{s: s} + return rs +} + +type TvCampaignDetailsService struct { + s *Service +} + +func NewTvCampaignSummariesService(s *Service) *TvCampaignSummariesService { + rs := &TvCampaignSummariesService{s: s} + return rs +} + +type TvCampaignSummariesService struct { + s *Service +} + func NewUserProfilesService(s *Service) *UserProfilesService { rs := &UserProfilesService{s: s} return rs @@ -2569,7 +2593,8 @@ func (s CampaignsListResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// CartData: Contains additional information about cart data. +// CartData: Contains additional information about cart data. This field may +// only be used when calling batchinsert; it is not supported by batchupdate. type CartData struct { // Items: Data of the items purchased. Items []*CartDataItem `json:"items,omitempty"` @@ -2582,7 +2607,8 @@ type CartData struct { // are uploaded. Use ISO 639-1 language codes. This field is needed only when // item IDs are not unique across multiple Merchant Center feeds. MerchantFeedLanguage string `json:"merchantFeedLanguage,omitempty"` - // MerchantId: The Merchant Center ID where the items are uploaded. + // MerchantId: The Merchant Center ID where the items are uploaded. This is a + // required field. MerchantId int64 `json:"merchantId,omitempty,string"` // ForceSendFields is a list of field names (e.g. "Items") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -2947,10 +2973,14 @@ func (s CompanionSetting) MarshalJSON() ([]byte, error) { } // CompatibleFields: Represents a response to the queryCompatibleFields method. +// Next ID: 10 type CompatibleFields struct { // CrossDimensionReachReportCompatibleFields: Contains items that are // compatible to be selected for a report of type "CROSS_DIMENSION_REACH". CrossDimensionReachReportCompatibleFields *CrossDimensionReachReportCompatibleFields `json:"crossDimensionReachReportCompatibleFields,omitempty"` + // CrossMediaReachReportCompatibleFields: Contains items that are compatible to + // be selected for a report of type "CROSS_MEDIA_REACH". + CrossMediaReachReportCompatibleFields *CrossMediaReachReportCompatibleFields `json:"crossMediaReachReportCompatibleFields,omitempty"` // FloodlightReportCompatibleFields: Contains items that are compatible to be // selected for a report of type "FLOODLIGHT". FloodlightReportCompatibleFields *FloodlightReportCompatibleFields `json:"floodlightReportCompatibleFields,omitempty"` @@ -3128,8 +3158,7 @@ type Conversion struct { // ChildDirectedTreatment: Whether this particular request may come from a user // under the age of 13, under COPPA compliance. ChildDirectedTreatment bool `json:"childDirectedTreatment,omitempty"` - // CustomVariables: Custom floodlight variables. This field may only be used - // when calling batchinsert; it is not supported by batchupdate. + // CustomVariables: Custom floodlight variables. CustomVariables []*CustomFloodlightVariable `json:"customVariables,omitempty"` // Dclid: The display click ID. This field is mutually exclusive with // encryptedUserId, encryptedUserIdCandidates[], matchId, mobileDeviceId, @@ -5169,6 +5198,39 @@ func (s CrossDimensionReachReportCompatibleFields) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// CrossMediaReachReportCompatibleFields: Represents fields that are compatible +// to be selected for a report of type "CROSS_MEDIA_REACH". +type CrossMediaReachReportCompatibleFields struct { + // DimensionFilters: Dimensions which are compatible to be selected in the + // "dimensionFilters" section of the report. + DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"` + // Dimensions: Dimensions which are compatible to be selected in the + // "dimensions" section of the report. + Dimensions []*Dimension `json:"dimensions,omitempty"` + // Kind: The kind of resource this is, in this case + // dfareporting#crossMediaReachReportCompatibleFields. + Kind string `json:"kind,omitempty"` + // Metrics: Metrics which are compatible to be selected in the "metricNames" + // section of the report. + Metrics []*Metric `json:"metrics,omitempty"` + // ForceSendFields is a list of field names (e.g. "DimensionFilters") 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. "DimensionFilters") 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 CrossMediaReachReportCompatibleFields) MarshalJSON() ([]byte, error) { + type NoMethod CrossMediaReachReportCompatibleFields + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // CustomFloodlightVariable: A custom floodlight variable. This field may only // be used when calling batchinsert; it is not supported by batchupdate. type CustomFloodlightVariable struct { @@ -5176,7 +5238,7 @@ type CustomFloodlightVariable struct { // "dfareporting#customFloodlightVariable". Kind string `json:"kind,omitempty"` // Type: The type of custom floodlight variable to supply a value for. These - // map to the "u[1-20]=" in the tags. + // map to the "u[1-100]=" in the tags. // // Possible values: // "U1" @@ -9782,6 +9844,9 @@ type Report struct { // CrossDimensionReachCriteria: The report criteria for a report of type // "CROSS_DIMENSION_REACH". CrossDimensionReachCriteria *ReportCrossDimensionReachCriteria `json:"crossDimensionReachCriteria,omitempty"` + // CrossMediaReachCriteria: Optional. The report criteria for a report of type + // "CROSS_MEDIA_REACH". + CrossMediaReachCriteria *ReportCrossMediaReachCriteria `json:"crossMediaReachCriteria,omitempty"` // Delivery: The report's email delivery settings. Delivery *ReportDelivery `json:"delivery,omitempty"` // Etag: The eTag of this response for caching purposes. @@ -9828,6 +9893,7 @@ type Report struct { // "PATH_TO_CONVERSION" // "CROSS_DIMENSION_REACH" // "FLOODLIGHT" + // "CROSS_MEDIA_REACH" Type string `json:"type,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. @@ -9926,6 +9992,38 @@ func (s ReportCrossDimensionReachCriteria) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ReportCrossMediaReachCriteria: Optional. The report criteria for a report of +// type "CROSS_MEDIA_REACH". +type ReportCrossMediaReachCriteria struct { + // DateRange: Required. The date range this report should be run for. + DateRange *DateRange `json:"dateRange,omitempty"` + // DimensionFilters: Required. The list of filters on which dimensions are + // filtered. Filters for different dimensions are ANDed, filters for the same + // dimension are grouped together and ORed. + DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"` + // Dimensions: Required. The list of dimensions the report should include. + Dimensions []*SortedDimension `json:"dimensions,omitempty"` + // MetricNames: Required. The list of names of metrics the report should + // include. + MetricNames []string `json:"metricNames,omitempty"` + // ForceSendFields is a list of field names (e.g. "DateRange") 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. "DateRange") 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 ReportCrossMediaReachCriteria) MarshalJSON() ([]byte, error) { + type NoMethod ReportCrossMediaReachCriteria + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ReportDelivery: The report's email delivery settings. type ReportDelivery struct { // EmailOwner: Whether the report should be emailed to the report owner. @@ -11455,6 +11553,178 @@ func (s TranscodeSetting) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// TvCampaignDetail: TvCampaignDetail contains data from a TV campaign for +// specific start dates and date windows. +type TvCampaignDetail struct { + // Id: ID of this TV campaign. + Id string `json:"id,omitempty"` + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#tvCampaignSummary". + Kind string `json:"kind,omitempty"` + // Timepoints: The timepoints of the TV campaign. + Timepoints []*TvCampaignTimepoint `json:"timepoints,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Id") 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. "Id") 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 TvCampaignDetail) MarshalJSON() ([]byte, error) { + type NoMethod TvCampaignDetail + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// TvCampaignSummariesListResponse: Response message for +// TvCampaignSummariesService.List. +type TvCampaignSummariesListResponse struct { + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#tvCampaignSummariesListResponse". + Kind string `json:"kind,omitempty"` + // TvCampaignSummaries: List of TV campaign summaries. + TvCampaignSummaries []*TvCampaignSummary `json:"tvCampaignSummaries,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Kind") 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. "Kind") 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 TvCampaignSummariesListResponse) MarshalJSON() ([]byte, error) { + type NoMethod TvCampaignSummariesListResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// TvCampaignSummary: TvCampaignSummary contains aggregate data from a TV +// campaign. +type TvCampaignSummary struct { + // EndDate: The end date of the TV campaign, inclusive. A string of the format: + // "yyyy-MM-dd". + EndDate string `json:"endDate,omitempty"` + // Grp: GRP of this TV campaign. + Grp int64 `json:"grp,omitempty,string"` + // Id: ID of this TV campaign. + Id string `json:"id,omitempty"` + // Impressions: Impressions across the entire TV campaign. + Impressions int64 `json:"impressions,omitempty,string"` + // Kind: Identifies what kind of resource this is. Value: the fixed string + // "dfareporting#tvCampaignSummary". + Kind string `json:"kind,omitempty"` + // Name: Identifier. Name of this TV campaign. + Name string `json:"name,omitempty"` + // Spend: Spend across the entire TV campaign. + Spend float64 `json:"spend,omitempty"` + // StartDate: The start date of the TV campaign, inclusive. A string of the + // format: "yyyy-MM-dd". + StartDate string `json:"startDate,omitempty"` + // Type: "CampaignComponentType" of this TV campaign. + // + // Possible values: + // "CAMPAIGN_COMPONENT_TYPE_UNSPECIFIED" - Required to exist; do not use. + // "COMPANY" - Company. + // "BRAND" - Brand. + // "PRODUCT" - Product. + // "CAMPAIGN" - Campaign. + Type string `json:"type,omitempty"` + // ForceSendFields is a list of field names (e.g. "EndDate") 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. "EndDate") 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 TvCampaignSummary) MarshalJSON() ([]byte, error) { + type NoMethod TvCampaignSummary + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *TvCampaignSummary) UnmarshalJSON(data []byte) error { + type NoMethod TvCampaignSummary + var s1 struct { + Spend gensupport.JSONFloat64 `json:"spend"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Spend = float64(s1.Spend) + return nil +} + +// TvCampaignTimepoint: A single data point for TvCampaignDetail, which holds +// information about the TV campaign for a specific start date and date window. +type TvCampaignTimepoint struct { + // DateWindow: The date window of the timepoint. + // + // Possible values: + // "WEEKS_UNSPECIFIED" - Default value, should never be set. + // "WEEKS_ONE" - One week. + // "WEEKS_FOUR" - Four weeks. + // "WEEKS_EIGHT" - Eight weeks. + // "WEEKS_TWELVE" - Twelve weeks. + DateWindow string `json:"dateWindow,omitempty"` + // Spend: The spend within the time range of the timepoint. + Spend float64 `json:"spend,omitempty"` + // StartDate: The start date of the timepoint. A string in the format of + // "yyyy-MM-dd". + StartDate string `json:"startDate,omitempty"` + // ForceSendFields is a list of field names (e.g. "DateWindow") 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. "DateWindow") 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 TvCampaignTimepoint) MarshalJSON() ([]byte, error) { + type NoMethod TvCampaignTimepoint + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *TvCampaignTimepoint) UnmarshalJSON(data []byte) error { + type NoMethod TvCampaignTimepoint + var s1 struct { + Spend gensupport.JSONFloat64 `json:"spend"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Spend = float64(s1.Spend) + return nil +} + // UniversalAdId: A Universal Ad ID as per the VAST 4.0 spec. Applicable to the // following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and VPAID. type UniversalAdId struct { @@ -36952,6 +37222,247 @@ func (c *TargetingTemplatesUpdateCall) Do(opts ...googleapi.CallOption) (*Target return ret, nil } +type TvCampaignDetailsGetCall struct { + s *Service + profileId int64 + id string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets one TvCampaignDetail by ID. +// +// - id: TV Campaign ID. +// - profileId: User profile ID associated with this request. +func (r *TvCampaignDetailsService) Get(profileId int64, id string) *TvCampaignDetailsGetCall { + c := &TvCampaignDetailsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.profileId = profileId + c.id = id + return c +} + +// AccountId sets the optional parameter "accountId": Required. Account ID +// associated with this request. +func (c *TvCampaignDetailsGetCall) AccountId(accountId int64) *TvCampaignDetailsGetCall { + c.urlParams_.Set("accountId", fmt.Sprint(accountId)) + 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 *TvCampaignDetailsGetCall) Fields(s ...googleapi.Field) *TvCampaignDetailsGetCall { + 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 *TvCampaignDetailsGetCall) IfNoneMatch(entityTag string) *TvCampaignDetailsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *TvCampaignDetailsGetCall) Context(ctx context.Context) *TvCampaignDetailsGetCall { + 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 *TvCampaignDetailsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *TvCampaignDetailsGetCall) 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, "userprofiles/{+profileId}/tvCampaignDetails/{+id}") + 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{ + "profileId": strconv.FormatInt(c.profileId, 10), + "id": c.id, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dfareporting.tvCampaignDetails.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *TvCampaignDetail.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 *TvCampaignDetailsGetCall) Do(opts ...googleapi.CallOption) (*TvCampaignDetail, 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 := &TvCampaignDetail{ + 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 TvCampaignSummariesListCall struct { + s *Service + profileId int64 + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Retrieves a list of TV campaign summaries. +// +// - profileId: User profile ID associated with this request. +func (r *TvCampaignSummariesService) List(profileId int64) *TvCampaignSummariesListCall { + c := &TvCampaignSummariesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.profileId = profileId + return c +} + +// AccountId sets the optional parameter "accountId": Required. Account ID +// associated with this request. +func (c *TvCampaignSummariesListCall) AccountId(accountId int64) *TvCampaignSummariesListCall { + c.urlParams_.Set("accountId", fmt.Sprint(accountId)) + return c +} + +// Name sets the optional parameter "name": Required. Search string to filter +// the list of TV campaign summaries. Matches any substring. Required field. +func (c *TvCampaignSummariesListCall) Name(name string) *TvCampaignSummariesListCall { + c.urlParams_.Set("name", name) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *TvCampaignSummariesListCall) Fields(s ...googleapi.Field) *TvCampaignSummariesListCall { + 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 *TvCampaignSummariesListCall) IfNoneMatch(entityTag string) *TvCampaignSummariesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *TvCampaignSummariesListCall) Context(ctx context.Context) *TvCampaignSummariesListCall { + 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 *TvCampaignSummariesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *TvCampaignSummariesListCall) 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, "userprofiles/{+profileId}/tvCampaignSummaries") + 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{ + "profileId": strconv.FormatInt(c.profileId, 10), + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dfareporting.tvCampaignSummaries.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *TvCampaignSummariesListResponse.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 *TvCampaignSummariesListCall) Do(opts ...googleapi.CallOption) (*TvCampaignSummariesListResponse, 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 := &TvCampaignSummariesListResponse{ + 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 UserProfilesGetCall struct { s *Service profileId int64 diff --git a/dialogflow/v2/dialogflow-api.json b/dialogflow/v2/dialogflow-api.json index 37c21eeab09..3a1b39ae9f0 100644 --- a/dialogflow/v2/dialogflow-api.json +++ b/dialogflow/v2/dialogflow-api.json @@ -8714,7 +8714,7 @@ } } }, - "revision": "20240828", + "revision": "20240924", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -9678,7 +9678,8 @@ "AUDIO_ENCODING_AMR", "AUDIO_ENCODING_AMR_WB", "AUDIO_ENCODING_OGG_OPUS", - "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" + "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE", + "AUDIO_ENCODING_ALAW" ], "enumDescriptions": [ "Not specified.", @@ -9688,7 +9689,8 @@ "Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.", "Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.", "Opus encoded audio frames in Ogg container ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be 16000.", - "Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, `OGG_OPUS` is highly preferred over Speex encoding. The [Speex](https://speex.org/) encoding supported by Dialogflow API has a header byte in each block, as in MIME type `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of blocks, one block per RTP packet. Each block starts with a byte containing the length of the block, in bytes, followed by one or more frames of Speex data, padded to an integral number of bytes (octets) as specified in RFC 5574. In other words, each RTP header is replaced with a single byte containing the block length. Only Speex wideband is supported. `sample_rate_hertz` must be 16000." + "Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, `OGG_OPUS` is highly preferred over Speex encoding. The [Speex](https://speex.org/) encoding supported by Dialogflow API has a header byte in each block, as in MIME type `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of blocks, one block per RTP packet. Each block starts with a byte containing the length of the block, in bytes, followed by one or more frames of Speex data, padded to an integral number of bytes (octets) as specified in RFC 5574. In other words, each RTP header is replaced with a single byte containing the block length. Only Speex wideband is supported. `sample_rate_hertz` must be 16000.", + "8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law." ], "type": "string" }, @@ -11983,7 +11985,8 @@ "AUDIO_ENCODING_AMR", "AUDIO_ENCODING_AMR_WB", "AUDIO_ENCODING_OGG_OPUS", - "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" + "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE", + "AUDIO_ENCODING_ALAW" ], "enumDescriptions": [ "Not specified.", @@ -11993,7 +11996,8 @@ "Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.", "Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.", "Opus encoded audio frames in Ogg container ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be 16000.", - "Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, `OGG_OPUS` is highly preferred over Speex encoding. The [Speex](https://speex.org/) encoding supported by Dialogflow API has a header byte in each block, as in MIME type `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of blocks, one block per RTP packet. Each block starts with a byte containing the length of the block, in bytes, followed by one or more frames of Speex data, padded to an integral number of bytes (octets) as specified in RFC 5574. In other words, each RTP header is replaced with a single byte containing the block length. Only Speex wideband is supported. `sample_rate_hertz` must be 16000." + "Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, `OGG_OPUS` is highly preferred over Speex encoding. The [Speex](https://speex.org/) encoding supported by Dialogflow API has a header byte in each block, as in MIME type `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of blocks, one block per RTP packet. Each block starts with a byte containing the length of the block, in bytes, followed by one or more frames of Speex data, padded to an integral number of bytes (octets) as specified in RFC 5574. In other words, each RTP header is replaced with a single byte containing the block length. Only Speex wideband is supported. `sample_rate_hertz` must be 16000.", + "8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law." ], "type": "string" }, @@ -14330,6 +14334,16 @@ "description": "Output only. ConversationDataset resource name. Format: `projects//locations//conversationDatasets/`", "readOnly": true, "type": "string" + }, + "satisfiesPzi": { + "description": "Output only. A read only boolean field reflecting Zone Isolation status of the dataset.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. A read only boolean field reflecting Zone Separation status of the dataset.", + "readOnly": true, + "type": "boolean" } }, "type": "object" @@ -14417,6 +14431,16 @@ "description": "ConversationModel resource name. Format: `projects//conversationModels/`", "type": "string" }, + "satisfiesPzi": { + "description": "Output only. A read only boolean field reflecting Zone Isolation status of the model.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. A read only boolean field reflecting Zone Separation status of the model.", + "readOnly": true, + "type": "boolean" + }, "smartReplyModelMetadata": { "$ref": "GoogleCloudDialogflowV2SmartReplyModelMetadata", "description": "Metadata for smart reply models." @@ -16158,7 +16182,8 @@ "AUDIO_ENCODING_AMR", "AUDIO_ENCODING_AMR_WB", "AUDIO_ENCODING_OGG_OPUS", - "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" + "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE", + "AUDIO_ENCODING_ALAW" ], "enumDescriptions": [ "Not specified.", @@ -16168,7 +16193,8 @@ "Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.", "Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.", "Opus encoded audio frames in Ogg container ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be 16000.", - "Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, `OGG_OPUS` is highly preferred over Speex encoding. The [Speex](https://speex.org/) encoding supported by Dialogflow API has a header byte in each block, as in MIME type `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of blocks, one block per RTP packet. Each block starts with a byte containing the length of the block, in bytes, followed by one or more frames of Speex data, padded to an integral number of bytes (octets) as specified in RFC 5574. In other words, each RTP header is replaced with a single byte containing the block length. Only Speex wideband is supported. `sample_rate_hertz` must be 16000." + "Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, `OGG_OPUS` is highly preferred over Speex encoding. The [Speex](https://speex.org/) encoding supported by Dialogflow API has a header byte in each block, as in MIME type `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of blocks, one block per RTP packet. Each block starts with a byte containing the length of the block, in bytes, followed by one or more frames of Speex data, padded to an integral number of bytes (octets) as specified in RFC 5574. In other words, each RTP header is replaced with a single byte containing the block length. Only Speex wideband is supported. `sample_rate_hertz` must be 16000.", + "8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law." ], "type": "string" }, @@ -17862,7 +17888,8 @@ "OUTPUT_AUDIO_ENCODING_MP3", "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS", "OUTPUT_AUDIO_ENCODING_OGG_OPUS", - "OUTPUT_AUDIO_ENCODING_MULAW" + "OUTPUT_AUDIO_ENCODING_MULAW", + "OUTPUT_AUDIO_ENCODING_ALAW" ], "enumDescriptions": [ "Not specified.", @@ -17870,7 +17897,8 @@ "MP3 audio at 32kbps.", "MP3 audio at 64kbps.", "Opus encoded audio wrapped in an ogg container. The result will be a file which can be played natively on Android, and in browsers (at least Chrome and Firefox). The quality of the encoding is considerably higher than MP3 while using approximately the same bitrate.", - "8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law." + "8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.", + "8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law." ], "type": "string" }, @@ -18518,7 +18546,8 @@ "AUDIO_ENCODING_AMR", "AUDIO_ENCODING_AMR_WB", "AUDIO_ENCODING_OGG_OPUS", - "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" + "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE", + "AUDIO_ENCODING_ALAW" ], "enumDescriptions": [ "Not specified.", @@ -18528,7 +18557,8 @@ "Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.", "Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.", "Opus encoded audio frames in Ogg container ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be 16000.", - "Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, `OGG_OPUS` is highly preferred over Speex encoding. The [Speex](https://speex.org/) encoding supported by Dialogflow API has a header byte in each block, as in MIME type `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of blocks, one block per RTP packet. Each block starts with a byte containing the length of the block, in bytes, followed by one or more frames of Speex data, padded to an integral number of bytes (octets) as specified in RFC 5574. In other words, each RTP header is replaced with a single byte containing the block length. Only Speex wideband is supported. `sample_rate_hertz` must be 16000." + "Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, `OGG_OPUS` is highly preferred over Speex encoding. The [Speex](https://speex.org/) encoding supported by Dialogflow API has a header byte in each block, as in MIME type `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of blocks, one block per RTP packet. Each block starts with a byte containing the length of the block, in bytes, followed by one or more frames of Speex data, padded to an integral number of bytes (octets) as specified in RFC 5574. In other words, each RTP header is replaced with a single byte containing the block length. Only Speex wideband is supported. `sample_rate_hertz` must be 16000.", + "8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law." ], "type": "string" }, @@ -19049,7 +19079,8 @@ "OUTPUT_AUDIO_ENCODING_MP3", "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS", "OUTPUT_AUDIO_ENCODING_OGG_OPUS", - "OUTPUT_AUDIO_ENCODING_MULAW" + "OUTPUT_AUDIO_ENCODING_MULAW", + "OUTPUT_AUDIO_ENCODING_ALAW" ], "enumDescriptions": [ "Not specified.", @@ -19057,7 +19088,8 @@ "MP3 audio at 32kbps.", "MP3 audio at 64kbps.", "Opus encoded audio wrapped in an ogg container. The result will be a file which can be played natively on Android, and in browsers (at least Chrome and Firefox). The quality of the encoding is considerably higher than MP3 while using approximately the same bitrate.", - "8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law." + "8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.", + "8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law." ], "type": "string" }, diff --git a/dialogflow/v2/dialogflow-gen.go b/dialogflow/v2/dialogflow-gen.go index e415baf0955..0069aaa91ba 100644 --- a/dialogflow/v2/dialogflow-gen.go +++ b/dialogflow/v2/dialogflow-gen.go @@ -2399,6 +2399,8 @@ type GoogleCloudDialogflowCxV3InputAudioConfig struct { // 5574. In other words, each RTP header is replaced with a single byte // containing the block length. Only Speex wideband is supported. // `sample_rate_hertz` must be 16000. + // "AUDIO_ENCODING_ALAW" - 8-bit samples that compand 13-bit audio samples + // using G.711 PCMU/a-law. AudioEncoding string `json:"audioEncoding,omitempty"` // BargeInConfig: Configuration of barge-in behavior during the streaming of // input audio. @@ -5679,6 +5681,8 @@ type GoogleCloudDialogflowCxV3beta1InputAudioConfig struct { // 5574. In other words, each RTP header is replaced with a single byte // containing the block length. Only Speex wideband is supported. // `sample_rate_hertz` must be 16000. + // "AUDIO_ENCODING_ALAW" - 8-bit samples that compand 13-bit audio samples + // using G.711 PCMU/a-law. AudioEncoding string `json:"audioEncoding,omitempty"` // BargeInConfig: Configuration of barge-in behavior during the streaming of // input audio. @@ -8794,6 +8798,12 @@ type GoogleCloudDialogflowV2ConversationDataset struct { // Name: Output only. ConversationDataset resource name. Format: // `projects//locations//conversationDatasets/` Name string `json:"name,omitempty"` + // SatisfiesPzi: Output only. A read only boolean field reflecting Zone + // Isolation status of the dataset. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` + // SatisfiesPzs: Output only. A read only boolean field reflecting Zone + // Separation status of the dataset. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -8909,6 +8919,12 @@ type GoogleCloudDialogflowV2ConversationModel struct { // Name: ConversationModel resource name. Format: // `projects//conversationModels/` Name string `json:"name,omitempty"` + // SatisfiesPzi: Output only. A read only boolean field reflecting Zone + // Isolation status of the model. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` + // SatisfiesPzs: Output only. A read only boolean field reflecting Zone + // Separation status of the model. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // SmartReplyModelMetadata: Metadata for smart reply models. SmartReplyModelMetadata *GoogleCloudDialogflowV2SmartReplyModelMetadata `json:"smartReplyModelMetadata,omitempty"` // State: Output only. State of the model. A model can only serve prediction @@ -11550,6 +11566,8 @@ type GoogleCloudDialogflowV2InputAudioConfig struct { // 5574. In other words, each RTP header is replaced with a single byte // containing the block length. Only Speex wideband is supported. // `sample_rate_hertz` must be 16000. + // "AUDIO_ENCODING_ALAW" - 8-bit samples that compand 13-bit audio samples + // using G.711 PCMU/a-law. AudioEncoding string `json:"audioEncoding,omitempty"` // DisableNoSpeechRecognizedEvent: Only used in Participants.AnalyzeContent and // Participants.StreamingAnalyzeContent. If `false` and recognition doesn't @@ -13859,6 +13877,8 @@ type GoogleCloudDialogflowV2OutputAudioConfig struct { // bitrate. // "OUTPUT_AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio // samples using G.711 PCMU/mu-law. + // "OUTPUT_AUDIO_ENCODING_ALAW" - 8-bit samples that compand 13-bit audio + // samples using G.711 PCMU/a-law. AudioEncoding string `json:"audioEncoding,omitempty"` // SampleRateHertz: The synthesis sample rate (in hertz) for this audio. If not // provided, then the synthesizer will use the default sample rate based on the @@ -14880,6 +14900,8 @@ type GoogleCloudDialogflowV2SpeechToTextConfig struct { // 5574. In other words, each RTP header is replaced with a single byte // containing the block length. Only Speex wideband is supported. // `sample_rate_hertz` must be 16000. + // "AUDIO_ENCODING_ALAW" - 8-bit samples that compand 13-bit audio samples + // using G.711 PCMU/a-law. AudioEncoding string `json:"audioEncoding,omitempty"` // EnableWordInfo: If `true`, Dialogflow returns SpeechWordInfo in // StreamingRecognitionResult with information about the recognized speech @@ -15693,6 +15715,8 @@ type GoogleCloudDialogflowV2TextToSpeechSettings struct { // bitrate. // "OUTPUT_AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio // samples using G.711 PCMU/mu-law. + // "OUTPUT_AUDIO_ENCODING_ALAW" - 8-bit samples that compand 13-bit audio + // samples using G.711 PCMU/a-law. OutputAudioEncoding string `json:"outputAudioEncoding,omitempty"` // SampleRateHertz: Optional. The synthesis sample rate (in hertz) for this // audio. If not provided, then the synthesizer will use the default sample diff --git a/dialogflow/v2beta1/dialogflow-api.json b/dialogflow/v2beta1/dialogflow-api.json index 35655208bf1..49b49a828b7 100644 --- a/dialogflow/v2beta1/dialogflow-api.json +++ b/dialogflow/v2beta1/dialogflow-api.json @@ -8082,7 +8082,7 @@ } } }, - "revision": "20240828", + "revision": "20240924", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -9046,7 +9046,8 @@ "AUDIO_ENCODING_AMR", "AUDIO_ENCODING_AMR_WB", "AUDIO_ENCODING_OGG_OPUS", - "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" + "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE", + "AUDIO_ENCODING_ALAW" ], "enumDescriptions": [ "Not specified.", @@ -9056,7 +9057,8 @@ "Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.", "Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.", "Opus encoded audio frames in Ogg container ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be 16000.", - "Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, `OGG_OPUS` is highly preferred over Speex encoding. The [Speex](https://speex.org/) encoding supported by Dialogflow API has a header byte in each block, as in MIME type `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of blocks, one block per RTP packet. Each block starts with a byte containing the length of the block, in bytes, followed by one or more frames of Speex data, padded to an integral number of bytes (octets) as specified in RFC 5574. In other words, each RTP header is replaced with a single byte containing the block length. Only Speex wideband is supported. `sample_rate_hertz` must be 16000." + "Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, `OGG_OPUS` is highly preferred over Speex encoding. The [Speex](https://speex.org/) encoding supported by Dialogflow API has a header byte in each block, as in MIME type `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of blocks, one block per RTP packet. Each block starts with a byte containing the length of the block, in bytes, followed by one or more frames of Speex data, padded to an integral number of bytes (octets) as specified in RFC 5574. In other words, each RTP header is replaced with a single byte containing the block length. Only Speex wideband is supported. `sample_rate_hertz` must be 16000.", + "8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law." ], "type": "string" }, @@ -11351,7 +11353,8 @@ "AUDIO_ENCODING_AMR", "AUDIO_ENCODING_AMR_WB", "AUDIO_ENCODING_OGG_OPUS", - "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" + "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE", + "AUDIO_ENCODING_ALAW" ], "enumDescriptions": [ "Not specified.", @@ -11361,7 +11364,8 @@ "Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.", "Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.", "Opus encoded audio frames in Ogg container ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be 16000.", - "Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, `OGG_OPUS` is highly preferred over Speex encoding. The [Speex](https://speex.org/) encoding supported by Dialogflow API has a header byte in each block, as in MIME type `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of blocks, one block per RTP packet. Each block starts with a byte containing the length of the block, in bytes, followed by one or more frames of Speex data, padded to an integral number of bytes (octets) as specified in RFC 5574. In other words, each RTP header is replaced with a single byte containing the block length. Only Speex wideband is supported. `sample_rate_hertz` must be 16000." + "Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, `OGG_OPUS` is highly preferred over Speex encoding. The [Speex](https://speex.org/) encoding supported by Dialogflow API has a header byte in each block, as in MIME type `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of blocks, one block per RTP packet. Each block starts with a byte containing the length of the block, in bytes, followed by one or more frames of Speex data, padded to an integral number of bytes (octets) as specified in RFC 5574. In other words, each RTP header is replaced with a single byte containing the block length. Only Speex wideband is supported. `sample_rate_hertz` must be 16000.", + "8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law." ], "type": "string" }, @@ -13002,6 +13006,16 @@ "description": "ConversationModel resource name. Format: `projects//conversationModels/`", "type": "string" }, + "satisfiesPzi": { + "description": "Output only. A read only boolean field reflecting Zone Isolation status of the model.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. A read only boolean field reflecting Zone Separation status of the model.", + "readOnly": true, + "type": "boolean" + }, "smartReplyModelMetadata": { "$ref": "GoogleCloudDialogflowV2SmartReplyModelMetadata", "description": "Metadata for smart reply models." @@ -17585,7 +17599,8 @@ "AUDIO_ENCODING_AMR", "AUDIO_ENCODING_AMR_WB", "AUDIO_ENCODING_OGG_OPUS", - "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" + "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE", + "AUDIO_ENCODING_ALAW" ], "enumDescriptions": [ "Not specified.", @@ -17595,7 +17610,8 @@ "Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.", "Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.", "Opus encoded audio frames in Ogg container ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be 16000.", - "Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, `OGG_OPUS` is highly preferred over Speex encoding. The [Speex](https://speex.org/) encoding supported by Dialogflow API has a header byte in each block, as in MIME type `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of blocks, one block per RTP packet. Each block starts with a byte containing the length of the block, in bytes, followed by one or more frames of Speex data, padded to an integral number of bytes (octets) as specified in RFC 5574. In other words, each RTP header is replaced with a single byte containing the block length. Only Speex wideband is supported. `sample_rate_hertz` must be 16000." + "Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, `OGG_OPUS` is highly preferred over Speex encoding. The [Speex](https://speex.org/) encoding supported by Dialogflow API has a header byte in each block, as in MIME type `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of blocks, one block per RTP packet. Each block starts with a byte containing the length of the block, in bytes, followed by one or more frames of Speex data, padded to an integral number of bytes (octets) as specified in RFC 5574. In other words, each RTP header is replaced with a single byte containing the block length. Only Speex wideband is supported. `sample_rate_hertz` must be 16000.", + "8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law." ], "type": "string" }, @@ -19614,7 +19630,8 @@ "OUTPUT_AUDIO_ENCODING_MP3", "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS", "OUTPUT_AUDIO_ENCODING_OGG_OPUS", - "OUTPUT_AUDIO_ENCODING_MULAW" + "OUTPUT_AUDIO_ENCODING_MULAW", + "OUTPUT_AUDIO_ENCODING_ALAW" ], "enumDescriptions": [ "Not specified.", @@ -19622,7 +19639,8 @@ "MP3 audio at 32kbps.", "MP3 audio at 64kbps.", "Opus encoded audio wrapped in an ogg container. The result will be a file which can be played natively on Android, and in browsers (at least Chrome and Firefox). The quality of the encoding is considerably higher than MP3 while using approximately the same bitrate.", - "8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law." + "8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.", + "8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law." ], "type": "string" }, @@ -20345,7 +20363,8 @@ "AUDIO_ENCODING_AMR", "AUDIO_ENCODING_AMR_WB", "AUDIO_ENCODING_OGG_OPUS", - "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" + "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE", + "AUDIO_ENCODING_ALAW" ], "enumDescriptions": [ "Not specified.", @@ -20355,7 +20374,8 @@ "Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.", "Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.", "Opus encoded audio frames in Ogg container ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be 16000.", - "Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, `OGG_OPUS` is highly preferred over Speex encoding. The [Speex](https://speex.org/) encoding supported by Dialogflow API has a header byte in each block, as in MIME type `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of blocks, one block per RTP packet. Each block starts with a byte containing the length of the block, in bytes, followed by one or more frames of Speex data, padded to an integral number of bytes (octets) as specified in RFC 5574. In other words, each RTP header is replaced with a single byte containing the block length. Only Speex wideband is supported. `sample_rate_hertz` must be 16000." + "Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, `OGG_OPUS` is highly preferred over Speex encoding. The [Speex](https://speex.org/) encoding supported by Dialogflow API has a header byte in each block, as in MIME type `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of blocks, one block per RTP packet. Each block starts with a byte containing the length of the block, in bytes, followed by one or more frames of Speex data, padded to an integral number of bytes (octets) as specified in RFC 5574. In other words, each RTP header is replaced with a single byte containing the block length. Only Speex wideband is supported. `sample_rate_hertz` must be 16000.", + "8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law." ], "type": "string" }, @@ -21096,7 +21116,8 @@ "OUTPUT_AUDIO_ENCODING_MP3", "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS", "OUTPUT_AUDIO_ENCODING_OGG_OPUS", - "OUTPUT_AUDIO_ENCODING_MULAW" + "OUTPUT_AUDIO_ENCODING_MULAW", + "OUTPUT_AUDIO_ENCODING_ALAW" ], "enumDescriptions": [ "Not specified.", @@ -21104,7 +21125,8 @@ "MP3 audio at 32kbps.", "MP3 audio at 64kbps.", "Opus encoded audio wrapped in an ogg container. The result will be a file which can be played natively on Android, and in browsers (at least Chrome and Firefox). The quality of the encoding is considerably higher than MP3 while using approximately the same bitrate.", - "8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law." + "8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.", + "8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law." ], "type": "string" }, diff --git a/dialogflow/v2beta1/dialogflow-gen.go b/dialogflow/v2beta1/dialogflow-gen.go index 273e6017810..858b962eba2 100644 --- a/dialogflow/v2beta1/dialogflow-gen.go +++ b/dialogflow/v2beta1/dialogflow-gen.go @@ -2327,6 +2327,8 @@ type GoogleCloudDialogflowCxV3InputAudioConfig struct { // 5574. In other words, each RTP header is replaced with a single byte // containing the block length. Only Speex wideband is supported. // `sample_rate_hertz` must be 16000. + // "AUDIO_ENCODING_ALAW" - 8-bit samples that compand 13-bit audio samples + // using G.711 PCMU/a-law. AudioEncoding string `json:"audioEncoding,omitempty"` // BargeInConfig: Configuration of barge-in behavior during the streaming of // input audio. @@ -5607,6 +5609,8 @@ type GoogleCloudDialogflowCxV3beta1InputAudioConfig struct { // 5574. In other words, each RTP header is replaced with a single byte // containing the block length. Only Speex wideband is supported. // `sample_rate_hertz` must be 16000. + // "AUDIO_ENCODING_ALAW" - 8-bit samples that compand 13-bit audio samples + // using G.711 PCMU/a-law. AudioEncoding string `json:"audioEncoding,omitempty"` // BargeInConfig: Configuration of barge-in behavior during the streaming of // input audio. @@ -7836,6 +7840,12 @@ type GoogleCloudDialogflowV2ConversationModel struct { // Name: ConversationModel resource name. Format: // `projects//conversationModels/` Name string `json:"name,omitempty"` + // SatisfiesPzi: Output only. A read only boolean field reflecting Zone + // Isolation status of the model. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` + // SatisfiesPzs: Output only. A read only boolean field reflecting Zone + // Separation status of the model. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // SmartReplyModelMetadata: Metadata for smart reply models. SmartReplyModelMetadata *GoogleCloudDialogflowV2SmartReplyModelMetadata `json:"smartReplyModelMetadata,omitempty"` // State: Output only. State of the model. A model can only serve prediction @@ -14300,6 +14310,8 @@ type GoogleCloudDialogflowV2beta1InputAudioConfig struct { // 5574. In other words, each RTP header is replaced with a single byte // containing the block length. Only Speex wideband is supported. // `sample_rate_hertz` must be 16000. + // "AUDIO_ENCODING_ALAW" - 8-bit samples that compand 13-bit audio samples + // using G.711 PCMU/a-law. AudioEncoding string `json:"audioEncoding,omitempty"` // BargeInConfig: Configuration of barge-in behavior during the streaming of // input audio. @@ -17076,6 +17088,8 @@ type GoogleCloudDialogflowV2beta1OutputAudioConfig struct { // bitrate. // "OUTPUT_AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio // samples using G.711 PCMU/mu-law. + // "OUTPUT_AUDIO_ENCODING_ALAW" - 8-bit samples that compand 13-bit audio + // samples using G.711 PCMU/a-law. AudioEncoding string `json:"audioEncoding,omitempty"` // SampleRateHertz: The synthesis sample rate (in hertz) for this audio. If not // provided, then the synthesizer will use the default sample rate based on the @@ -18170,6 +18184,8 @@ type GoogleCloudDialogflowV2beta1SpeechToTextConfig struct { // 5574. In other words, each RTP header is replaced with a single byte // containing the block length. Only Speex wideband is supported. // `sample_rate_hertz` must be 16000. + // "AUDIO_ENCODING_ALAW" - 8-bit samples that compand 13-bit audio samples + // using G.711 PCMU/a-law. AudioEncoding string `json:"audioEncoding,omitempty"` // EnableWordInfo: If `true`, Dialogflow returns SpeechWordInfo in // StreamingRecognitionResult with information about the recognized speech @@ -19235,6 +19251,8 @@ type GoogleCloudDialogflowV2beta1TextToSpeechSettings struct { // bitrate. // "OUTPUT_AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio // samples using G.711 PCMU/mu-law. + // "OUTPUT_AUDIO_ENCODING_ALAW" - 8-bit samples that compand 13-bit audio + // samples using G.711 PCMU/a-law. OutputAudioEncoding string `json:"outputAudioEncoding,omitempty"` // SampleRateHertz: Optional. The synthesis sample rate (in hertz) for this // audio. If not provided, then the synthesizer will use the default sample diff --git a/dialogflow/v3/dialogflow-api.json b/dialogflow/v3/dialogflow-api.json index effed43ba43..ac02c316b66 100644 --- a/dialogflow/v3/dialogflow-api.json +++ b/dialogflow/v3/dialogflow-api.json @@ -4453,7 +4453,7 @@ } } }, - "revision": "20240903", + "revision": "20240924", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -7250,7 +7250,8 @@ "AUDIO_ENCODING_AMR", "AUDIO_ENCODING_AMR_WB", "AUDIO_ENCODING_OGG_OPUS", - "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" + "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE", + "AUDIO_ENCODING_ALAW" ], "enumDescriptions": [ "Not specified.", @@ -7260,7 +7261,8 @@ "Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.", "Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.", "Opus encoded audio frames in Ogg container ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be 16000.", - "Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, `OGG_OPUS` is highly preferred over Speex encoding. The [Speex](https://speex.org/) encoding supported by Dialogflow API has a header byte in each block, as in MIME type `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of blocks, one block per RTP packet. Each block starts with a byte containing the length of the block, in bytes, followed by one or more frames of Speex data, padded to an integral number of bytes (octets) as specified in RFC 5574. In other words, each RTP header is replaced with a single byte containing the block length. Only Speex wideband is supported. `sample_rate_hertz` must be 16000." + "Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, `OGG_OPUS` is highly preferred over Speex encoding. The [Speex](https://speex.org/) encoding supported by Dialogflow API has a header byte in each block, as in MIME type `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of blocks, one block per RTP packet. Each block starts with a byte containing the length of the block, in bytes, followed by one or more frames of Speex data, padded to an integral number of bytes (octets) as specified in RFC 5574. In other words, each RTP header is replaced with a single byte containing the block length. Only Speex wideband is supported. `sample_rate_hertz` must be 16000.", + "8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law." ], "type": "string" }, @@ -8036,7 +8038,8 @@ "OUTPUT_AUDIO_ENCODING_MP3", "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS", "OUTPUT_AUDIO_ENCODING_OGG_OPUS", - "OUTPUT_AUDIO_ENCODING_MULAW" + "OUTPUT_AUDIO_ENCODING_MULAW", + "OUTPUT_AUDIO_ENCODING_ALAW" ], "enumDescriptions": [ "Not specified.", @@ -8044,7 +8047,8 @@ "MP3 audio at 32kbps.", "MP3 audio at 64kbps.", "Opus encoded audio wrapped in an ogg container. The result will be a file which can be played natively on Android, and in browsers (at least Chrome and Firefox). The quality of the encoding is considerably higher than MP3 while using approximately the same bitrate.", - "8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law." + "8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.", + "8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law." ], "type": "string" }, @@ -8337,7 +8341,7 @@ }, "dataStoreConnectionSignals": { "$ref": "GoogleCloudDialogflowCxV3DataStoreConnectionSignals", - "description": "Optional. Data store connection feature output signals. Filled only when data stores are involved in serving the query and DetectIntentRequest.populate data_store_connection_quality_signals is set to true in the request." + "description": "Optional. Data store connection feature output signals. Filled only when data stores are involved in serving the query and DetectIntentRequest.populate_data_store_connection_signals is set to true in the request." }, "diagnosticInfo": { "additionalProperties": { @@ -11180,7 +11184,8 @@ "AUDIO_ENCODING_AMR", "AUDIO_ENCODING_AMR_WB", "AUDIO_ENCODING_OGG_OPUS", - "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" + "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE", + "AUDIO_ENCODING_ALAW" ], "enumDescriptions": [ "Not specified.", @@ -11190,7 +11195,8 @@ "Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.", "Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.", "Opus encoded audio frames in Ogg container ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be 16000.", - "Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, `OGG_OPUS` is highly preferred over Speex encoding. The [Speex](https://speex.org/) encoding supported by Dialogflow API has a header byte in each block, as in MIME type `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of blocks, one block per RTP packet. Each block starts with a byte containing the length of the block, in bytes, followed by one or more frames of Speex data, padded to an integral number of bytes (octets) as specified in RFC 5574. In other words, each RTP header is replaced with a single byte containing the block length. Only Speex wideband is supported. `sample_rate_hertz` must be 16000." + "Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, `OGG_OPUS` is highly preferred over Speex encoding. The [Speex](https://speex.org/) encoding supported by Dialogflow API has a header byte in each block, as in MIME type `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of blocks, one block per RTP packet. Each block starts with a byte containing the length of the block, in bytes, followed by one or more frames of Speex data, padded to an integral number of bytes (octets) as specified in RFC 5574. In other words, each RTP header is replaced with a single byte containing the block length. Only Speex wideband is supported. `sample_rate_hertz` must be 16000.", + "8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law." ], "type": "string" }, @@ -12831,6 +12837,16 @@ "description": "ConversationModel resource name. Format: `projects//conversationModels/`", "type": "string" }, + "satisfiesPzi": { + "description": "Output only. A read only boolean field reflecting Zone Isolation status of the model.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. A read only boolean field reflecting Zone Separation status of the model.", + "readOnly": true, + "type": "boolean" + }, "smartReplyModelMetadata": { "$ref": "GoogleCloudDialogflowV2SmartReplyModelMetadata", "description": "Metadata for smart reply models." diff --git a/dialogflow/v3/dialogflow-gen.go b/dialogflow/v3/dialogflow-gen.go index b4dcffa099d..dc4c6870a7e 100644 --- a/dialogflow/v3/dialogflow-gen.go +++ b/dialogflow/v3/dialogflow-gen.go @@ -4465,6 +4465,8 @@ type GoogleCloudDialogflowCxV3InputAudioConfig struct { // 5574. In other words, each RTP header is replaced with a single byte // containing the block length. Only Speex wideband is supported. // `sample_rate_hertz` must be 16000. + // "AUDIO_ENCODING_ALAW" - 8-bit samples that compand 13-bit audio samples + // using G.711 PCMU/a-law. AudioEncoding string `json:"audioEncoding,omitempty"` // BargeInConfig: Configuration of barge-in behavior during the streaming of // input audio. @@ -5701,6 +5703,8 @@ type GoogleCloudDialogflowCxV3OutputAudioConfig struct { // bitrate. // "OUTPUT_AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio // samples using G.711 PCMU/mu-law. + // "OUTPUT_AUDIO_ENCODING_ALAW" - 8-bit samples that compand 13-bit audio + // samples using G.711 PCMU/a-law. AudioEncoding string `json:"audioEncoding,omitempty"` // SampleRateHertz: Optional. The synthesis sample rate (in hertz) for this // audio. If not provided, then the synthesizer will use the default sample @@ -6105,8 +6109,8 @@ type GoogleCloudDialogflowCxV3QueryResult struct { CurrentPage *GoogleCloudDialogflowCxV3Page `json:"currentPage,omitempty"` // DataStoreConnectionSignals: Optional. Data store connection feature output // signals. Filled only when data stores are involved in serving the query and - // DetectIntentRequest.populate data_store_connection_quality_signals is set to - // true in the request. + // DetectIntentRequest.populate_data_store_connection_signals is set to true in + // the request. DataStoreConnectionSignals *GoogleCloudDialogflowCxV3DataStoreConnectionSignals `json:"dataStoreConnectionSignals,omitempty"` // DiagnosticInfo: The free-form diagnostic info. For example, this field could // contain webhook call latency. The fields of this data can change without @@ -10190,6 +10194,8 @@ type GoogleCloudDialogflowCxV3beta1InputAudioConfig struct { // 5574. In other words, each RTP header is replaced with a single byte // containing the block length. Only Speex wideband is supported. // `sample_rate_hertz` must be 16000. + // "AUDIO_ENCODING_ALAW" - 8-bit samples that compand 13-bit audio samples + // using G.711 PCMU/a-law. AudioEncoding string `json:"audioEncoding,omitempty"` // BargeInConfig: Configuration of barge-in behavior during the streaming of // input audio. @@ -12419,6 +12425,12 @@ type GoogleCloudDialogflowV2ConversationModel struct { // Name: ConversationModel resource name. Format: // `projects//conversationModels/` Name string `json:"name,omitempty"` + // SatisfiesPzi: Output only. A read only boolean field reflecting Zone + // Isolation status of the model. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` + // SatisfiesPzs: Output only. A read only boolean field reflecting Zone + // Separation status of the model. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // SmartReplyModelMetadata: Metadata for smart reply models. SmartReplyModelMetadata *GoogleCloudDialogflowV2SmartReplyModelMetadata `json:"smartReplyModelMetadata,omitempty"` // State: Output only. State of the model. A model can only serve prediction diff --git a/dialogflow/v3beta1/dialogflow-api.json b/dialogflow/v3beta1/dialogflow-api.json index f269696efbf..b761d7cc0cb 100644 --- a/dialogflow/v3beta1/dialogflow-api.json +++ b/dialogflow/v3beta1/dialogflow-api.json @@ -3381,7 +3381,7 @@ ], "parameters": { "languageCode": { - "description": "Optional. The language to list examples for. If not specified, the agent's default language is used. Note: languages must be enabled in the agent before they can be used.", + "description": "Optional. The language to list examples for. If not specified, list all examples under the playbook. Note: languages must be enabled in the agent before they can be used.", "location": "query", "type": "string" }, @@ -5185,7 +5185,7 @@ } } }, - "revision": "20240903", + "revision": "20240924", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AdvancedSettings": { @@ -6149,7 +6149,8 @@ "AUDIO_ENCODING_AMR", "AUDIO_ENCODING_AMR_WB", "AUDIO_ENCODING_OGG_OPUS", - "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" + "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE", + "AUDIO_ENCODING_ALAW" ], "enumDescriptions": [ "Not specified.", @@ -6159,7 +6160,8 @@ "Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.", "Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.", "Opus encoded audio frames in Ogg container ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be 16000.", - "Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, `OGG_OPUS` is highly preferred over Speex encoding. The [Speex](https://speex.org/) encoding supported by Dialogflow API has a header byte in each block, as in MIME type `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of blocks, one block per RTP packet. Each block starts with a byte containing the length of the block, in bytes, followed by one or more frames of Speex data, padded to an integral number of bytes (octets) as specified in RFC 5574. In other words, each RTP header is replaced with a single byte containing the block length. Only Speex wideband is supported. `sample_rate_hertz` must be 16000." + "Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, `OGG_OPUS` is highly preferred over Speex encoding. The [Speex](https://speex.org/) encoding supported by Dialogflow API has a header byte in each block, as in MIME type `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of blocks, one block per RTP packet. Each block starts with a byte containing the length of the block, in bytes, followed by one or more frames of Speex data, padded to an integral number of bytes (octets) as specified in RFC 5574. In other words, each RTP header is replaced with a single byte containing the block length. Only Speex wideband is supported. `sample_rate_hertz` must be 16000.", + "8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law." ], "type": "string" }, @@ -7636,6 +7638,10 @@ "description": "The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted [Web Demo](https://cloud.google.com/dialogflow/docs/integrations/web-demo) integration.", "type": "string" }, + "bigqueryExportSettings": { + "$ref": "GoogleCloudDialogflowCxV3beta1BigQueryExportSettings", + "description": "Optional. The BigQuery export settings for this agent. The conversation data will be exported to BigQuery tables if it is enabled. By default, BigQuery export settings will not be exported with agent. You need to set include_bigquery_export_settings to include it in the exported agent." + }, "clientCertificateSettings": { "$ref": "GoogleCloudDialogflowCxV3beta1AgentClientCertificateSettings", "description": "Optional. Settings for custom client certificates." @@ -7985,6 +7991,21 @@ }, "type": "object" }, + "GoogleCloudDialogflowCxV3beta1BigQueryExportSettings": { + "description": "The settings of BigQuery export.", + "id": "GoogleCloudDialogflowCxV3beta1BigQueryExportSettings", + "properties": { + "bigqueryTable": { + "description": "The BigQuery table to export. Format: `projects//datasets//tables/`.", + "type": "string" + }, + "enabled": { + "description": "The field to indicate whether the BigQuery export is enabled.", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleCloudDialogflowCxV3beta1BoostSpec": { "description": "Boost specification to boost certain documents. A copy of google.cloud.discoveryengine.v1main.BoostSpec, field documentation is available at https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1alpha/BoostSpec", "id": "GoogleCloudDialogflowCxV3beta1BoostSpec", @@ -9317,7 +9338,7 @@ "type": "string" }, "languageCode": { - "description": "Optional. The language code of the example. If not specified, the agent's default language is used. Note: languages must be enabled in the agent before they can be used.", + "description": "Optional. The language code of the example. If not specified, the agent's default language is used. Note: languages must be enabled in the agent before they can be used. Note: example's language code is not currently used in dialogflow agents.", "type": "string" }, "name": { @@ -10809,7 +10830,8 @@ "AUDIO_ENCODING_AMR", "AUDIO_ENCODING_AMR_WB", "AUDIO_ENCODING_OGG_OPUS", - "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE" + "AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE", + "AUDIO_ENCODING_ALAW" ], "enumDescriptions": [ "Not specified.", @@ -10819,7 +10841,8 @@ "Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.", "Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.", "Opus encoded audio frames in Ogg container ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be 16000.", - "Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, `OGG_OPUS` is highly preferred over Speex encoding. The [Speex](https://speex.org/) encoding supported by Dialogflow API has a header byte in each block, as in MIME type `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of blocks, one block per RTP packet. Each block starts with a byte containing the length of the block, in bytes, followed by one or more frames of Speex data, padded to an integral number of bytes (octets) as specified in RFC 5574. In other words, each RTP header is replaced with a single byte containing the block length. Only Speex wideband is supported. `sample_rate_hertz` must be 16000." + "Although the use of lossy encodings is not recommended, if a very low bitrate encoding is required, `OGG_OPUS` is highly preferred over Speex encoding. The [Speex](https://speex.org/) encoding supported by Dialogflow API has a header byte in each block, as in MIME type `audio/x-speex-with-header-byte`. It is a variant of the RTP Speex encoding defined in [RFC 5574](https://tools.ietf.org/html/rfc5574). The stream is a sequence of blocks, one block per RTP packet. Each block starts with a byte containing the length of the block, in bytes, followed by one or more frames of Speex data, padded to an integral number of bytes (octets) as specified in RFC 5574. In other words, each RTP header is replaced with a single byte containing the block length. Only Speex wideband is supported. `sample_rate_hertz` must be 16000.", + "8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law." ], "type": "string" }, @@ -11700,7 +11723,8 @@ "OUTPUT_AUDIO_ENCODING_MP3", "OUTPUT_AUDIO_ENCODING_MP3_64_KBPS", "OUTPUT_AUDIO_ENCODING_OGG_OPUS", - "OUTPUT_AUDIO_ENCODING_MULAW" + "OUTPUT_AUDIO_ENCODING_MULAW", + "OUTPUT_AUDIO_ENCODING_ALAW" ], "enumDescriptions": [ "Not specified.", @@ -11708,7 +11732,8 @@ "MP3 audio at 32kbps.", "MP3 audio at 64kbps.", "Opus encoded audio wrapped in an ogg container. The result will be a file which can be played natively on Android, and in browsers (at least Chrome and Firefox). The quality of the encoding is considerably higher than MP3 while using approximately the same bitrate.", - "8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law." + "8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.", + "8-bit samples that compand 13-bit audio samples using G.711 PCMU/a-law." ], "type": "string" }, @@ -12284,7 +12309,7 @@ }, "dataStoreConnectionSignals": { "$ref": "GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignals", - "description": "Optional. Data store connection feature output signals. Filled only when data stores are involved in serving the query and DetectIntentRequest.populate data_store_connection_quality_signals is set to true in the request." + "description": "Optional. Data store connection feature output signals. Filled only when data stores are involved in serving the query and DetectIntentRequest.populate_data_store_connection_signals is set to true in the request." }, "diagnosticInfo": { "additionalProperties": { @@ -12803,6 +12828,20 @@ "$ref": "GoogleCloudDialogflowCxV3beta1SafetySettingsPhrase" }, "type": "array" + }, + "defaultBannedPhraseMatchStrategy": { + "description": "Optional. Default phrase match strategy for banned phrases.", + "enum": [ + "PHRASE_MATCH_STRATEGY_UNSPECIFIED", + "PARTIAL_MATCH", + "WORD_MATCH" + ], + "enumDescriptions": [ + "Unspecified, defaults to PARTIAL_MATCH.", + "Text that contains the phrase as a substring will be matched, e.g. \"foo\" will match \"afoobar\".", + "Text that contains the tokenized words of the phrase will be matched, e.g. \"foo\" will match \"a foo bar\" and \"foo bar\", but not \"foobar\"." + ], + "type": "string" } }, "type": "object" @@ -13461,6 +13500,13 @@ ], "type": "string" }, + "scopes": { + "description": "Optional. The OAuth scopes to grant.", + "items": { + "type": "string" + }, + "type": "array" + }, "tokenEndpoint": { "description": "Required. The token endpoint in the OAuth provider to exchange for an access token.", "type": "string" @@ -14861,6 +14907,16 @@ "description": "ConversationModel resource name. Format: `projects//conversationModels/`", "type": "string" }, + "satisfiesPzi": { + "description": "Output only. A read only boolean field reflecting Zone Isolation status of the model.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. A read only boolean field reflecting Zone Separation status of the model.", + "readOnly": true, + "type": "boolean" + }, "smartReplyModelMetadata": { "$ref": "GoogleCloudDialogflowV2SmartReplyModelMetadata", "description": "Metadata for smart reply models." diff --git a/dialogflow/v3beta1/dialogflow-gen.go b/dialogflow/v3beta1/dialogflow-gen.go index c4861db55af..8d4a2c7ba0b 100644 --- a/dialogflow/v3beta1/dialogflow-gen.go +++ b/dialogflow/v3beta1/dialogflow-gen.go @@ -2003,6 +2003,8 @@ type GoogleCloudDialogflowCxV3InputAudioConfig struct { // 5574. In other words, each RTP header is replaced with a single byte // containing the block length. Only Speex wideband is supported. // `sample_rate_hertz` must be 16000. + // "AUDIO_ENCODING_ALAW" - 8-bit samples that compand 13-bit audio samples + // using G.711 PCMU/a-law. AudioEncoding string `json:"audioEncoding,omitempty"` // BargeInConfig: Configuration of barge-in behavior during the streaming of // input audio. @@ -4009,6 +4011,12 @@ type GoogleCloudDialogflowCxV3beta1Agent struct { // (https://cloud.google.com/dialogflow/docs/integrations/web-demo) // integration. AvatarUri string `json:"avatarUri,omitempty"` + // BigqueryExportSettings: Optional. The BigQuery export settings for this + // agent. The conversation data will be exported to BigQuery tables if it is + // enabled. By default, BigQuery export settings will not be exported with + // agent. You need to set include_bigquery_export_settings to include it in the + // exported agent. + BigqueryExportSettings *GoogleCloudDialogflowCxV3beta1BigQueryExportSettings `json:"bigqueryExportSettings,omitempty"` // ClientCertificateSettings: Optional. Settings for custom client // certificates. ClientCertificateSettings *GoogleCloudDialogflowCxV3beta1AgentClientCertificateSettings `json:"clientCertificateSettings,omitempty"` @@ -4546,6 +4554,32 @@ func (s GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse) MarshalJSON() ( return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudDialogflowCxV3beta1BigQueryExportSettings: The settings of +// BigQuery export. +type GoogleCloudDialogflowCxV3beta1BigQueryExportSettings struct { + // BigqueryTable: The BigQuery table to export. Format: + // `projects//datasets//tables/`. + BigqueryTable string `json:"bigqueryTable,omitempty"` + // Enabled: The field to indicate whether the BigQuery export is enabled. + Enabled bool `json:"enabled,omitempty"` + // ForceSendFields is a list of field names (e.g. "BigqueryTable") 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. "BigqueryTable") 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 GoogleCloudDialogflowCxV3beta1BigQueryExportSettings) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudDialogflowCxV3beta1BigQueryExportSettings + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudDialogflowCxV3beta1BoostSpec: Boost specification to boost // certain documents. A copy of google.cloud.discoveryengine.v1main.BoostSpec, // field documentation is available at @@ -6288,7 +6322,8 @@ type GoogleCloudDialogflowCxV3beta1Example struct { DisplayName string `json:"displayName,omitempty"` // LanguageCode: Optional. The language code of the example. If not specified, // the agent's default language is used. Note: languages must be enabled in the - // agent before they can be used. + // agent before they can be used. Note: example's language code is not + // currently used in dialogflow agents. LanguageCode string `json:"languageCode,omitempty"` // Name: The unique identifier of the playbook example. Format: // `projects//locations//agents//playbooks//examples/`. @@ -8377,6 +8412,8 @@ type GoogleCloudDialogflowCxV3beta1InputAudioConfig struct { // 5574. In other words, each RTP header is replaced with a single byte // containing the block length. Only Speex wideband is supported. // `sample_rate_hertz` must be 16000. + // "AUDIO_ENCODING_ALAW" - 8-bit samples that compand 13-bit audio samples + // using G.711 PCMU/a-law. AudioEncoding string `json:"audioEncoding,omitempty"` // BargeInConfig: Configuration of barge-in behavior during the streaming of // input audio. @@ -9790,6 +9827,8 @@ type GoogleCloudDialogflowCxV3beta1OutputAudioConfig struct { // bitrate. // "OUTPUT_AUDIO_ENCODING_MULAW" - 8-bit samples that compand 14-bit audio // samples using G.711 PCMU/mu-law. + // "OUTPUT_AUDIO_ENCODING_ALAW" - 8-bit samples that compand 13-bit audio + // samples using G.711 PCMU/a-law. AudioEncoding string `json:"audioEncoding,omitempty"` // SampleRateHertz: Optional. The synthesis sample rate (in hertz) for this // audio. If not provided, then the synthesizer will use the default sample @@ -10489,8 +10528,8 @@ type GoogleCloudDialogflowCxV3beta1QueryResult struct { CurrentPage *GoogleCloudDialogflowCxV3beta1Page `json:"currentPage,omitempty"` // DataStoreConnectionSignals: Optional. Data store connection feature output // signals. Filled only when data stores are involved in serving the query and - // DetectIntentRequest.populate data_store_connection_quality_signals is set to - // true in the request. + // DetectIntentRequest.populate_data_store_connection_signals is set to true in + // the request. DataStoreConnectionSignals *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignals `json:"dataStoreConnectionSignals,omitempty"` // DiagnosticInfo: The free-form diagnostic info. For example, this field could // contain webhook call latency. The fields of this data can change without @@ -11215,6 +11254,18 @@ func (s GoogleCloudDialogflowCxV3beta1RunTestCaseResponse) MarshalJSON() ([]byte type GoogleCloudDialogflowCxV3beta1SafetySettings struct { // BannedPhrases: Banned phrases for generated text. BannedPhrases []*GoogleCloudDialogflowCxV3beta1SafetySettingsPhrase `json:"bannedPhrases,omitempty"` + // DefaultBannedPhraseMatchStrategy: Optional. Default phrase match strategy + // for banned phrases. + // + // Possible values: + // "PHRASE_MATCH_STRATEGY_UNSPECIFIED" - Unspecified, defaults to + // PARTIAL_MATCH. + // "PARTIAL_MATCH" - Text that contains the phrase as a substring will be + // matched, e.g. "foo" will match "afoobar". + // "WORD_MATCH" - Text that contains the tokenized words of the phrase will + // be matched, e.g. "foo" will match "a foo bar" and "foo bar", but not + // "foobar". + DefaultBannedPhraseMatchStrategy string `json:"defaultBannedPhraseMatchStrategy,omitempty"` // ForceSendFields is a list of field names (e.g. "BannedPhrases") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -12146,6 +12197,8 @@ type GoogleCloudDialogflowCxV3beta1ToolAuthenticationOAuthConfig struct { // "CLIENT_CREDENTIAL" - Represents the [client credential // flow](https://oauth.net/2/grant-types/client-credentials). OauthGrantType string `json:"oauthGrantType,omitempty"` + // Scopes: Optional. The OAuth scopes to grant. + Scopes []string `json:"scopes,omitempty"` // TokenEndpoint: Required. The token endpoint in the OAuth provider to // exchange for an access token. TokenEndpoint string `json:"tokenEndpoint,omitempty"` @@ -14063,6 +14116,12 @@ type GoogleCloudDialogflowV2ConversationModel struct { // Name: ConversationModel resource name. Format: // `projects//conversationModels/` Name string `json:"name,omitempty"` + // SatisfiesPzi: Output only. A read only boolean field reflecting Zone + // Isolation status of the model. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` + // SatisfiesPzs: Output only. A read only boolean field reflecting Zone + // Separation status of the model. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // SmartReplyModelMetadata: Metadata for smart reply models. SmartReplyModelMetadata *GoogleCloudDialogflowV2SmartReplyModelMetadata `json:"smartReplyModelMetadata,omitempty"` // State: Output only. State of the model. A model can only serve prediction @@ -32406,7 +32465,7 @@ func (r *ProjectsLocationsAgentsPlaybooksExamplesService) List(parent string) *P } // LanguageCode sets the optional parameter "languageCode": The language to -// list examples for. If not specified, the agent's default language is used. +// list examples for. If not specified, list all examples under the playbook. // Note: languages must be enabled in the agent before they can be used. func (c *ProjectsLocationsAgentsPlaybooksExamplesListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsPlaybooksExamplesListCall { c.urlParams_.Set("languageCode", languageCode) diff --git a/firebaseml/v2beta/firebaseml-api.json b/firebaseml/v2beta/firebaseml-api.json index 9b4c4ee1b06..0065084edd6 100644 --- a/firebaseml/v2beta/firebaseml-api.json +++ b/firebaseml/v2beta/firebaseml-api.json @@ -206,7 +206,7 @@ } } }, - "revision": "20240917", + "revision": "20240925", "rootUrl": "https://firebaseml.googleapis.com/", "schemas": { "Date": { @@ -457,6 +457,30 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1DynamicRetrievalConfig": { + "description": "Describes the options to customize dynamic retrieval.", + "id": "GoogleCloudAiplatformV1beta1DynamicRetrievalConfig", + "properties": { + "dynamicThreshold": { + "description": "Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used.", + "format": "float", + "type": "number" + }, + "mode": { + "description": "The mode of the predictor to be used in dynamic retrieval.", + "enum": [ + "MODE_UNSPECIFIED", + "MODE_DYNAMIC" + ], + "enumDescriptions": [ + "Always trigger retrieval.", + "Run retrieval only when system decides it is necessary." + ], + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1FileData": { "description": "URI based data.", "id": "GoogleCloudAiplatformV1beta1FileData", @@ -837,7 +861,12 @@ "GoogleCloudAiplatformV1beta1GoogleSearchRetrieval": { "description": "Tool to retrieve public web data for grounding, powered by Google.", "id": "GoogleCloudAiplatformV1beta1GoogleSearchRetrieval", - "properties": {}, + "properties": { + "dynamicRetrievalConfig": { + "$ref": "GoogleCloudAiplatformV1beta1DynamicRetrievalConfig", + "description": "Specifies the dynamic retrieval configuration for the given source." + } + }, "type": "object" }, "GoogleCloudAiplatformV1beta1GroundingChunk": { @@ -903,6 +932,11 @@ }, "type": "array" }, + "retrievalMetadata": { + "$ref": "GoogleCloudAiplatformV1beta1RetrievalMetadata", + "description": "Optional. Output only. Retrieval metadata.", + "readOnly": true + }, "retrievalQueries": { "description": "Optional. Queries executed by the retrieval tools.", "items": { @@ -982,11 +1016,11 @@ "type": "number" }, "token": { - "description": "The candidate’s token string value.", + "description": "The candidate's token string value.", "type": "string" }, "tokenId": { - "description": "The candidate’s token id value.", + "description": "The candidate's token id value.", "format": "int32", "type": "integer" } @@ -1058,6 +1092,18 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1RetrievalMetadata": { + "description": "Metadata related to retrieval in the grounding flow.", + "id": "GoogleCloudAiplatformV1beta1RetrievalMetadata", + "properties": { + "googleSearchDynamicRetrievalScore": { + "description": "Optional. Score indicating how likely information from google search could help answer the prompt. The score is in the range [0, 1], where 0 is the least likely and 1 is the most likely. This score is only populated when google search grounding and dynamic retrieval is enabled. It will be compared to the threshold to determine whether to trigger google search.", + "format": "float", + "type": "number" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1SafetyRating": { "description": "Safety rating corresponding to the generated content.", "id": "GoogleCloudAiplatformV1beta1SafetyRating", diff --git a/firebaseml/v2beta/firebaseml-gen.go b/firebaseml/v2beta/firebaseml-gen.go index 48a7c5c2fe6..93879721303 100644 --- a/firebaseml/v2beta/firebaseml-gen.go +++ b/firebaseml/v2beta/firebaseml-gen.go @@ -498,6 +498,50 @@ func (s GoogleCloudAiplatformV1beta1CountTokensResponse) MarshalJSON() ([]byte, return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1DynamicRetrievalConfig: Describes the options to +// customize dynamic retrieval. +type GoogleCloudAiplatformV1beta1DynamicRetrievalConfig struct { + // DynamicThreshold: Optional. The threshold to be used in dynamic retrieval. + // If not set, a system default value is used. + DynamicThreshold float64 `json:"dynamicThreshold,omitempty"` + // Mode: The mode of the predictor to be used in dynamic retrieval. + // + // Possible values: + // "MODE_UNSPECIFIED" - Always trigger retrieval. + // "MODE_DYNAMIC" - Run retrieval only when system decides it is necessary. + Mode string `json:"mode,omitempty"` + // ForceSendFields is a list of field names (e.g. "DynamicThreshold") 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. "DynamicThreshold") 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 GoogleCloudAiplatformV1beta1DynamicRetrievalConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1DynamicRetrievalConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1beta1DynamicRetrievalConfig) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1beta1DynamicRetrievalConfig + var s1 struct { + DynamicThreshold gensupport.JSONFloat64 `json:"dynamicThreshold"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.DynamicThreshold = float64(s1.DynamicThreshold) + return nil +} + // GoogleCloudAiplatformV1beta1FileData: URI based data. type GoogleCloudAiplatformV1beta1FileData struct { // FileUri: Required. URI. @@ -988,6 +1032,25 @@ func (s GoogleCloudAiplatformV1beta1GenerationConfigRoutingConfigManualRoutingMo // GoogleCloudAiplatformV1beta1GoogleSearchRetrieval: Tool to retrieve public // web data for grounding, powered by Google. type GoogleCloudAiplatformV1beta1GoogleSearchRetrieval struct { + // DynamicRetrievalConfig: Specifies the dynamic retrieval configuration for + // the given source. + DynamicRetrievalConfig *GoogleCloudAiplatformV1beta1DynamicRetrievalConfig `json:"dynamicRetrievalConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "DynamicRetrievalConfig") 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. "DynamicRetrievalConfig") 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 GoogleCloudAiplatformV1beta1GoogleSearchRetrieval) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1GoogleSearchRetrieval + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GoogleCloudAiplatformV1beta1GroundingChunk: Grounding chunk. @@ -1072,6 +1135,8 @@ type GoogleCloudAiplatformV1beta1GroundingMetadata struct { GroundingChunks []*GoogleCloudAiplatformV1beta1GroundingChunk `json:"groundingChunks,omitempty"` // GroundingSupports: Optional. List of grounding support. GroundingSupports []*GoogleCloudAiplatformV1beta1GroundingSupport `json:"groundingSupports,omitempty"` + // RetrievalMetadata: Optional. Output only. Retrieval metadata. + RetrievalMetadata *GoogleCloudAiplatformV1beta1RetrievalMetadata `json:"retrievalMetadata,omitempty"` // RetrievalQueries: Optional. Queries executed by the retrieval tools. RetrievalQueries []string `json:"retrievalQueries,omitempty"` // SearchEntryPoint: Optional. Google search entry for the following-up web @@ -1176,9 +1241,9 @@ func (s GoogleCloudAiplatformV1beta1LogprobsResult) MarshalJSON() ([]byte, error type GoogleCloudAiplatformV1beta1LogprobsResultCandidate struct { // LogProbability: The candidate's log probability. LogProbability float64 `json:"logProbability,omitempty"` - // Token: The candidate’s token string value. + // Token: The candidate's token string value. Token string `json:"token,omitempty"` - // TokenId: The candidate’s token id value. + // TokenId: The candidate's token id value. TokenId int64 `json:"tokenId,omitempty"` // ForceSendFields is a list of field names (e.g. "LogProbability") to // unconditionally include in API requests. By default, fields with empty or @@ -1307,6 +1372,50 @@ func (s GoogleCloudAiplatformV1beta1Retrieval) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1RetrievalMetadata: Metadata related to retrieval +// in the grounding flow. +type GoogleCloudAiplatformV1beta1RetrievalMetadata struct { + // GoogleSearchDynamicRetrievalScore: Optional. Score indicating how likely + // information from google search could help answer the prompt. The score is in + // the range [0, 1], where 0 is the least likely and 1 is the most likely. This + // score is only populated when google search grounding and dynamic retrieval + // is enabled. It will be compared to the threshold to determine whether to + // trigger google search. + GoogleSearchDynamicRetrievalScore float64 `json:"googleSearchDynamicRetrievalScore,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "GoogleSearchDynamicRetrievalScore") 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. + // "GoogleSearchDynamicRetrievalScore") 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 GoogleCloudAiplatformV1beta1RetrievalMetadata) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1RetrievalMetadata + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *GoogleCloudAiplatformV1beta1RetrievalMetadata) UnmarshalJSON(data []byte) error { + type NoMethod GoogleCloudAiplatformV1beta1RetrievalMetadata + var s1 struct { + GoogleSearchDynamicRetrievalScore gensupport.JSONFloat64 `json:"googleSearchDynamicRetrievalScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.GoogleSearchDynamicRetrievalScore = float64(s1.GoogleSearchDynamicRetrievalScore) + return nil +} + // GoogleCloudAiplatformV1beta1SafetyRating: Safety rating corresponding to the // generated content. type GoogleCloudAiplatformV1beta1SafetyRating struct { diff --git a/memcache/v1beta2/memcache-api.json b/memcache/v1beta2/memcache-api.json index 29b0a1bde7e..b79d6866b71 100644 --- a/memcache/v1beta2/memcache-api.json +++ b/memcache/v1beta2/memcache-api.json @@ -612,7 +612,7 @@ } } }, - "revision": "20240604", + "revision": "20240919", "rootUrl": "https://memcache.googleapis.com/", "schemas": { "ApplyParametersRequest": { @@ -651,12 +651,85 @@ }, "type": "object" }, + "AssetLocation": { + "description": "Provides the mapping of a cloud asset to a direct physical location or to a proxy that defines the location on its behalf.", + "id": "AssetLocation", + "properties": { + "ccfeRmsPath": { + "description": "Spanner path of the CCFE RMS database. It is only applicable for CCFE tenants that use CCFE RMS for storing resource metadata.", + "type": "string" + }, + "expected": { + "$ref": "IsolationExpectations", + "description": "Defines the customer expectation around ZI/ZS for this asset and ZI/ZS state of the region at the time of asset creation." + }, + "extraParameters": { + "description": "Defines extra parameters required for specific asset types.", + "items": { + "$ref": "ExtraParameter" + }, + "type": "array" + }, + "locationData": { + "description": "Contains all kinds of physical location definitions for this asset.", + "items": { + "$ref": "LocationData" + }, + "type": "array" + }, + "parentAsset": { + "description": "Defines parents assets if any in order to allow later generation of child_asset_location data via child assets.", + "items": { + "$ref": "CloudAsset" + }, + "type": "array" + } + }, + "type": "object" + }, + "BlobstoreLocation": { + "description": "Policy ID that identified data placement in Blobstore as per go/blobstore-user-guide#data-metadata-placement-and-failure-domains", + "id": "BlobstoreLocation", + "properties": { + "policyId": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "CancelOperationRequest": { "description": "The request message for Operations.CancelOperation.", "id": "CancelOperationRequest", "properties": {}, "type": "object" }, + "CloudAsset": { + "id": "CloudAsset", + "properties": { + "assetName": { + "type": "string" + }, + "assetType": { + "type": "string" + } + }, + "type": "object" + }, + "CloudAssetComposition": { + "id": "CloudAssetComposition", + "properties": { + "childAsset": { + "items": { + "$ref": "CloudAsset" + }, + "type": "array" + } + }, + "type": "object" + }, "DailyCycle": { "description": "Time window specified for daily operations.", "id": "DailyCycle", @@ -714,12 +787,35 @@ }, "type": "object" }, + "DirectLocationAssignment": { + "id": "DirectLocationAssignment", + "properties": { + "location": { + "items": { + "$ref": "LocationAssignment" + }, + "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", "properties": {}, "type": "object" }, + "ExtraParameter": { + "description": "Defines parameters that should only be used for specific asset types.", + "id": "ExtraParameter", + "properties": { + "regionalMigDistributionPolicy": { + "$ref": "RegionalMigDistributionPolicy", + "description": "Details about zones used by regional compute.googleapis.com/InstanceGroupManager to create instances." + } + }, + "type": "object" + }, "GoogleCloudMemcacheV1beta2LocationMetadata": { "description": "Metadata for the given google.cloud.location.Location.", "id": "GoogleCloudMemcacheV1beta2LocationMetadata", @@ -1283,6 +1379,131 @@ }, "type": "object" }, + "IsolationExpectations": { + "id": "IsolationExpectations", + "properties": { + "requirementOverride": { + "$ref": "RequirementOverride", + "description": "Explicit overrides for ZI and ZS requirements to be used for resources that should be excluded from ZI/ZS verification logic." + }, + "ziOrgPolicy": { + "enum": [ + "ZI_UNSPECIFIED", + "ZI_UNKNOWN", + "ZI_NOT_REQUIRED", + "ZI_PREFERRED", + "ZI_REQUIRED" + ], + "enumDescriptions": [ + "", + "To be used if tracking is not available", + "", + "", + "" + ], + "type": "string" + }, + "ziRegionPolicy": { + "enum": [ + "ZI_REGION_POLICY_UNSPECIFIED", + "ZI_REGION_POLICY_UNKNOWN", + "ZI_REGION_POLICY_NOT_SET", + "ZI_REGION_POLICY_FAIL_OPEN", + "ZI_REGION_POLICY_FAIL_CLOSED" + ], + "enumDescriptions": [ + "", + "To be used if tracking is not available", + "", + "", + "" + ], + "type": "string" + }, + "ziRegionState": { + "enum": [ + "ZI_REGION_UNSPECIFIED", + "ZI_REGION_UNKNOWN", + "ZI_REGION_NOT_ENABLED", + "ZI_REGION_ENABLED" + ], + "enumDescriptions": [ + "", + "To be used if tracking is not available", + "", + "" + ], + "type": "string" + }, + "zoneIsolation": { + "deprecated": true, + "description": "Deprecated: use zi_org_policy, zi_region_policy and zi_region_state instead for setting ZI expectations as per go/zicy-publish-physical-location.", + "enum": [ + "ZI_UNSPECIFIED", + "ZI_UNKNOWN", + "ZI_NOT_REQUIRED", + "ZI_PREFERRED", + "ZI_REQUIRED" + ], + "enumDescriptions": [ + "", + "To be used if tracking is not available", + "", + "", + "" + ], + "type": "string" + }, + "zoneSeparation": { + "deprecated": true, + "description": "Deprecated: use zs_org_policy, and zs_region_stateinstead for setting Zs expectations as per go/zicy-publish-physical-location.", + "enum": [ + "ZS_UNSPECIFIED", + "ZS_UNKNOWN", + "ZS_NOT_REQUIRED", + "ZS_REQUIRED" + ], + "enumDescriptions": [ + "", + "To be used if tracking is not available", + "", + "" + ], + "type": "string" + }, + "zsOrgPolicy": { + "enum": [ + "ZS_UNSPECIFIED", + "ZS_UNKNOWN", + "ZS_NOT_REQUIRED", + "ZS_REQUIRED" + ], + "enumDescriptions": [ + "", + "To be used if tracking is not available", + "", + "" + ], + "type": "string" + }, + "zsRegionState": { + "enum": [ + "ZS_REGION_UNSPECIFIED", + "ZS_REGION_UNKNOWN", + "ZS_REGION_NOT_ENABLED", + "ZS_REGION_ENABLED" + ], + "enumDescriptions": [ + "", + "To be used if tracking of the asset ZS-bit is not available", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, "ListInstancesResponse": { "description": "Response for ListInstances.", "id": "ListInstancesResponse", @@ -1378,6 +1599,64 @@ }, "type": "object" }, + "LocationAssignment": { + "id": "LocationAssignment", + "properties": { + "location": { + "type": "string" + }, + "locationType": { + "enum": [ + "UNSPECIFIED", + "CLUSTER", + "POP", + "CLOUD_ZONE", + "CLOUD_REGION", + "MULTI_REGION_GEO", + "MULTI_REGION_JURISDICTION", + "GLOBAL", + "OTHER" + ], + "enumDescriptions": [ + "", + "1-10: Physical failure domains.", + "", + "11-20: Logical failure domains.", + "", + "", + "", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, + "LocationData": { + "id": "LocationData", + "properties": { + "blobstoreLocation": { + "$ref": "BlobstoreLocation" + }, + "childAssetLocation": { + "$ref": "CloudAssetComposition" + }, + "directLocation": { + "$ref": "DirectLocationAssignment" + }, + "gcpProjectProxy": { + "$ref": "TenantProjectProxy" + }, + "placerLocation": { + "$ref": "PlacerLocation" + }, + "spannerLocation": { + "$ref": "SpannerLocation" + } + }, + "type": "object" + }, "LocationMetadata": { "description": "Metadata for the given google.cloud.location.Location.", "id": "LocationMetadata", @@ -1672,6 +1951,74 @@ }, "type": "object" }, + "PlacerLocation": { + "description": "Message describing that the location of the customer resource is tied to placer allocations", + "id": "PlacerLocation", + "properties": { + "placerConfig": { + "description": "Directory with a config related to it in placer (e.g. \"/placer/prod/home/my-root/my-dir\")", + "type": "string" + } + }, + "type": "object" + }, + "RegionalMigDistributionPolicy": { + "description": "To be used for specifying the intended distribution of regional compute.googleapis.com/InstanceGroupManager instances", + "id": "RegionalMigDistributionPolicy", + "properties": { + "targetShape": { + "description": "The shape in which the group converges around distribution of resources. Instance of proto2 enum", + "format": "int32", + "type": "integer" + }, + "zones": { + "description": "Cloud zones used by regional MIG to create instances.", + "items": { + "$ref": "ZoneConfiguration" + }, + "type": "array" + } + }, + "type": "object" + }, + "RequirementOverride": { + "id": "RequirementOverride", + "properties": { + "ziOverride": { + "enum": [ + "ZI_UNSPECIFIED", + "ZI_UNKNOWN", + "ZI_NOT_REQUIRED", + "ZI_PREFERRED", + "ZI_REQUIRED" + ], + "enumDescriptions": [ + "", + "To be used if tracking is not available", + "", + "", + "" + ], + "type": "string" + }, + "zsOverride": { + "enum": [ + "ZS_UNSPECIFIED", + "ZS_UNKNOWN", + "ZS_NOT_REQUIRED", + "ZS_REQUIRED" + ], + "enumDescriptions": [ + "", + "To be used if tracking is not available", + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, "RescheduleMaintenanceRequest": { "description": "Request for RescheduleMaintenance.", "id": "RescheduleMaintenanceRequest", @@ -1740,6 +2087,26 @@ }, "type": "object" }, + "SpannerLocation": { + "id": "SpannerLocation", + "properties": { + "backupName": { + "description": "Set of backups used by the resource with name in the same format as what is available at http://table/spanner_automon.backup_metadata", + "items": { + "type": "string" + }, + "type": "array" + }, + "dbName": { + "description": "Set of databases used by the resource in format /span//", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "Status": { "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "id": "Status", @@ -1767,6 +2134,18 @@ }, "type": "object" }, + "TenantProjectProxy": { + "id": "TenantProjectProxy", + "properties": { + "projectNumbers": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "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", @@ -1902,6 +2281,15 @@ }, "type": "object" }, + "ZoneConfiguration": { + "id": "ZoneConfiguration", + "properties": { + "zone": { + "type": "string" + } + }, + "type": "object" + }, "ZoneMetadata": { "id": "ZoneMetadata", "properties": {}, diff --git a/memcache/v1beta2/memcache-gen.go b/memcache/v1beta2/memcache-gen.go index fdb5aca7262..5449c8b9229 100644 --- a/memcache/v1beta2/memcache-gen.go +++ b/memcache/v1beta2/memcache-gen.go @@ -252,10 +252,108 @@ func (s ApplySoftwareUpdateRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// AssetLocation: Provides the mapping of a cloud asset to a direct physical +// location or to a proxy that defines the location on its behalf. +type AssetLocation struct { + // CcfeRmsPath: Spanner path of the CCFE RMS database. It is only applicable + // for CCFE tenants that use CCFE RMS for storing resource metadata. + CcfeRmsPath string `json:"ccfeRmsPath,omitempty"` + // Expected: Defines the customer expectation around ZI/ZS for this asset and + // ZI/ZS state of the region at the time of asset creation. + Expected *IsolationExpectations `json:"expected,omitempty"` + // ExtraParameters: Defines extra parameters required for specific asset types. + ExtraParameters []*ExtraParameter `json:"extraParameters,omitempty"` + // LocationData: Contains all kinds of physical location definitions for this + // asset. + LocationData []*LocationData `json:"locationData,omitempty"` + // ParentAsset: Defines parents assets if any in order to allow later + // generation of child_asset_location data via child assets. + ParentAsset []*CloudAsset `json:"parentAsset,omitempty"` + // ForceSendFields is a list of field names (e.g. "CcfeRmsPath") 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. "CcfeRmsPath") 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 AssetLocation) MarshalJSON() ([]byte, error) { + type NoMethod AssetLocation + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// BlobstoreLocation: Policy ID that identified data placement in Blobstore as +// per go/blobstore-user-guide#data-metadata-placement-and-failure-domains +type BlobstoreLocation struct { + PolicyId []string `json:"policyId,omitempty"` + // ForceSendFields is a list of field names (e.g. "PolicyId") 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. "PolicyId") 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 BlobstoreLocation) MarshalJSON() ([]byte, error) { + type NoMethod BlobstoreLocation + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // CancelOperationRequest: The request message for Operations.CancelOperation. type CancelOperationRequest struct { } +type CloudAsset struct { + AssetName string `json:"assetName,omitempty"` + AssetType string `json:"assetType,omitempty"` + // ForceSendFields is a list of field names (e.g. "AssetName") 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. "AssetName") 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 CloudAsset) MarshalJSON() ([]byte, error) { + type NoMethod CloudAsset + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type CloudAssetComposition struct { + ChildAsset []*CloudAsset `json:"childAsset,omitempty"` + // ForceSendFields is a list of field names (e.g. "ChildAsset") 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. "ChildAsset") 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 CloudAssetComposition) MarshalJSON() ([]byte, error) { + type NoMethod CloudAssetComposition + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // DailyCycle: Time window specified for daily operations. type DailyCycle struct { // Duration: Output only. Duration of the time window, set by service producer. @@ -353,6 +451,26 @@ func (s DenyMaintenancePeriod) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type DirectLocationAssignment struct { + Location []*LocationAssignment `json:"location,omitempty"` + // ForceSendFields is a list of field names (e.g. "Location") 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. "Location") 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 DirectLocationAssignment) MarshalJSON() ([]byte, error) { + type NoMethod DirectLocationAssignment + return gensupport.MarshalJSON(NoMethod(s), 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 instance: service Foo @@ -362,6 +480,30 @@ type Empty struct { googleapi.ServerResponse `json:"-"` } +// ExtraParameter: Defines parameters that should only be used for specific +// asset types. +type ExtraParameter struct { + // RegionalMigDistributionPolicy: Details about zones used by regional + // compute.googleapis.com/InstanceGroupManager to create instances. + RegionalMigDistributionPolicy *RegionalMigDistributionPolicy `json:"regionalMigDistributionPolicy,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "RegionalMigDistributionPolicy") 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. "RegionalMigDistributionPolicy") + // 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 ExtraParameter) MarshalJSON() ([]byte, error) { + type NoMethod ExtraParameter + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudMemcacheV1beta2LocationMetadata: Metadata for the given // google.cloud.location.Location. type GoogleCloudMemcacheV1beta2LocationMetadata struct { @@ -1008,6 +1150,81 @@ func (s InstanceMessage) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type IsolationExpectations struct { + // RequirementOverride: Explicit overrides for ZI and ZS requirements to be + // used for resources that should be excluded from ZI/ZS verification logic. + RequirementOverride *RequirementOverride `json:"requirementOverride,omitempty"` + // Possible values: + // "ZI_UNSPECIFIED" + // "ZI_UNKNOWN" - To be used if tracking is not available + // "ZI_NOT_REQUIRED" + // "ZI_PREFERRED" + // "ZI_REQUIRED" + ZiOrgPolicy string `json:"ziOrgPolicy,omitempty"` + // Possible values: + // "ZI_REGION_POLICY_UNSPECIFIED" + // "ZI_REGION_POLICY_UNKNOWN" - To be used if tracking is not available + // "ZI_REGION_POLICY_NOT_SET" + // "ZI_REGION_POLICY_FAIL_OPEN" + // "ZI_REGION_POLICY_FAIL_CLOSED" + ZiRegionPolicy string `json:"ziRegionPolicy,omitempty"` + // Possible values: + // "ZI_REGION_UNSPECIFIED" + // "ZI_REGION_UNKNOWN" - To be used if tracking is not available + // "ZI_REGION_NOT_ENABLED" + // "ZI_REGION_ENABLED" + ZiRegionState string `json:"ziRegionState,omitempty"` + // ZoneIsolation: Deprecated: use zi_org_policy, zi_region_policy and + // zi_region_state instead for setting ZI expectations as per + // go/zicy-publish-physical-location. + // + // Possible values: + // "ZI_UNSPECIFIED" + // "ZI_UNKNOWN" - To be used if tracking is not available + // "ZI_NOT_REQUIRED" + // "ZI_PREFERRED" + // "ZI_REQUIRED" + ZoneIsolation string `json:"zoneIsolation,omitempty"` + // ZoneSeparation: Deprecated: use zs_org_policy, and zs_region_stateinstead + // for setting Zs expectations as per go/zicy-publish-physical-location. + // + // Possible values: + // "ZS_UNSPECIFIED" + // "ZS_UNKNOWN" - To be used if tracking is not available + // "ZS_NOT_REQUIRED" + // "ZS_REQUIRED" + ZoneSeparation string `json:"zoneSeparation,omitempty"` + // Possible values: + // "ZS_UNSPECIFIED" + // "ZS_UNKNOWN" - To be used if tracking is not available + // "ZS_NOT_REQUIRED" + // "ZS_REQUIRED" + ZsOrgPolicy string `json:"zsOrgPolicy,omitempty"` + // Possible values: + // "ZS_REGION_UNSPECIFIED" + // "ZS_REGION_UNKNOWN" - To be used if tracking of the asset ZS-bit is not + // available + // "ZS_REGION_NOT_ENABLED" + // "ZS_REGION_ENABLED" + ZsRegionState string `json:"zsRegionState,omitempty"` + // ForceSendFields is a list of field names (e.g. "RequirementOverride") 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. "RequirementOverride") 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 IsolationExpectations) MarshalJSON() ([]byte, error) { + type NoMethod IsolationExpectations + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // ListInstancesResponse: Response for ListInstances. type ListInstancesResponse struct { // NextPageToken: Token to retrieve the next page of results, or empty if there @@ -1135,6 +1352,62 @@ func (s Location) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type LocationAssignment struct { + Location string `json:"location,omitempty"` + // Possible values: + // "UNSPECIFIED" + // "CLUSTER" - 1-10: Physical failure domains. + // "POP" + // "CLOUD_ZONE" - 11-20: Logical failure domains. + // "CLOUD_REGION" + // "MULTI_REGION_GEO" + // "MULTI_REGION_JURISDICTION" + // "GLOBAL" + // "OTHER" + LocationType string `json:"locationType,omitempty"` + // ForceSendFields is a list of field names (e.g. "Location") 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. "Location") 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 LocationAssignment) MarshalJSON() ([]byte, error) { + type NoMethod LocationAssignment + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type LocationData struct { + BlobstoreLocation *BlobstoreLocation `json:"blobstoreLocation,omitempty"` + ChildAssetLocation *CloudAssetComposition `json:"childAssetLocation,omitempty"` + DirectLocation *DirectLocationAssignment `json:"directLocation,omitempty"` + GcpProjectProxy *TenantProjectProxy `json:"gcpProjectProxy,omitempty"` + PlacerLocation *PlacerLocation `json:"placerLocation,omitempty"` + SpannerLocation *SpannerLocation `json:"spannerLocation,omitempty"` + // ForceSendFields is a list of field names (e.g. "BlobstoreLocation") 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. "BlobstoreLocation") 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 LocationData) MarshalJSON() ([]byte, error) { + type NoMethod LocationData + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // LocationMetadata: Metadata for the given google.cloud.location.Location. type LocationMetadata struct { // AvailableZones: Output only. The set of available zones in the location. The @@ -1451,6 +1724,89 @@ func (s OperationMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// PlacerLocation: Message describing that the location of the customer +// resource is tied to placer allocations +type PlacerLocation struct { + // PlacerConfig: Directory with a config related to it in placer (e.g. + // "/placer/prod/home/my-root/my-dir") + PlacerConfig string `json:"placerConfig,omitempty"` + // ForceSendFields is a list of field names (e.g. "PlacerConfig") 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. "PlacerConfig") 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 PlacerLocation) MarshalJSON() ([]byte, error) { + type NoMethod PlacerLocation + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// RegionalMigDistributionPolicy: To be used for specifying the intended +// distribution of regional compute.googleapis.com/InstanceGroupManager +// instances +type RegionalMigDistributionPolicy struct { + // TargetShape: The shape in which the group converges around distribution of + // resources. Instance of proto2 enum + TargetShape int64 `json:"targetShape,omitempty"` + // Zones: Cloud zones used by regional MIG to create instances. + Zones []*ZoneConfiguration `json:"zones,omitempty"` + // ForceSendFields is a list of field names (e.g. "TargetShape") 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. "TargetShape") 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 RegionalMigDistributionPolicy) MarshalJSON() ([]byte, error) { + type NoMethod RegionalMigDistributionPolicy + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +type RequirementOverride struct { + // Possible values: + // "ZI_UNSPECIFIED" + // "ZI_UNKNOWN" - To be used if tracking is not available + // "ZI_NOT_REQUIRED" + // "ZI_PREFERRED" + // "ZI_REQUIRED" + ZiOverride string `json:"ziOverride,omitempty"` + // Possible values: + // "ZS_UNSPECIFIED" + // "ZS_UNKNOWN" - To be used if tracking is not available + // "ZS_NOT_REQUIRED" + // "ZS_REQUIRED" + ZsOverride string `json:"zsOverride,omitempty"` + // ForceSendFields is a list of field names (e.g. "ZiOverride") 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. "ZiOverride") 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 RequirementOverride) MarshalJSON() ([]byte, error) { + type NoMethod RequirementOverride + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // RescheduleMaintenanceRequest: Request for RescheduleMaintenance. type RescheduleMaintenanceRequest struct { // RescheduleType: Required. If reschedule type is SPECIFIC_TIME, must set up @@ -1522,6 +1878,30 @@ func (s Schedule) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type SpannerLocation struct { + // BackupName: Set of backups used by the resource with name in the same format + // as what is available at http://table/spanner_automon.backup_metadata + BackupName []string `json:"backupName,omitempty"` + // DbName: Set of databases used by the resource in format /span// + DbName []string `json:"dbName,omitempty"` + // ForceSendFields is a list of field names (e.g. "BackupName") 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. "BackupName") 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 SpannerLocation) MarshalJSON() ([]byte, error) { + type NoMethod SpannerLocation + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Status: The `Status` type defines a logical error model that is suitable for // different programming environments, including REST APIs and RPC APIs. It is // used by gRPC (https://github.com/grpc). Each `Status` message contains three @@ -1556,6 +1936,26 @@ func (s Status) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type TenantProjectProxy struct { + ProjectNumbers []string `json:"projectNumbers,omitempty"` + // ForceSendFields is a list of field names (e.g. "ProjectNumbers") 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. "ProjectNumbers") 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 TenantProjectProxy) MarshalJSON() ([]byte, error) { + type NoMethod TenantProjectProxy + return gensupport.MarshalJSON(NoMethod(s), 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`. @@ -1720,6 +2120,26 @@ func (s WeeklyMaintenanceWindow) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +type ZoneConfiguration struct { + Zone string `json:"zone,omitempty"` + // ForceSendFields is a list of field names (e.g. "Zone") 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. "Zone") 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 ZoneConfiguration) MarshalJSON() ([]byte, error) { + type NoMethod ZoneConfiguration + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + type ZoneMetadata struct { } diff --git a/merchantapi/accounts_v1beta/merchantapi-api.json b/merchantapi/accounts_v1beta/merchantapi-api.json index eb1d0deed16..a9a9fe5180a 100644 --- a/merchantapi/accounts_v1beta/merchantapi-api.json +++ b/merchantapi/accounts_v1beta/merchantapi-api.json @@ -1383,7 +1383,7 @@ "parameterOrder": [], "parameters": { "kind": { - "description": "The Kind this terms of service version applies to.", + "description": "Required. The Kind this terms of service version applies to.", "enum": [ "TERMS_OF_SERVICE_KIND_UNSPECIFIED", "MERCHANT_CENTER" @@ -1396,7 +1396,7 @@ "type": "string" }, "regionCode": { - "description": "Region code as defined by [CLDR](https://cldr.unicode.org/). This is either a country when the ToS applies specifically to that country or 001 when it applies globally.", + "description": "Required. Region code as defined by [CLDR](https://cldr.unicode.org/). This is either a country when the ToS applies specifically to that country or 001 when it applies globally.", "location": "query", "type": "string" } @@ -1412,7 +1412,7 @@ } } }, - "revision": "20240923", + "revision": "20240924", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "AcceptTermsOfService": { diff --git a/merchantapi/accounts_v1beta/merchantapi-gen.go b/merchantapi/accounts_v1beta/merchantapi-gen.go index 361ee2ccd9e..e133403bd65 100644 --- a/merchantapi/accounts_v1beta/merchantapi-gen.go +++ b/merchantapi/accounts_v1beta/merchantapi-gen.go @@ -7827,8 +7827,8 @@ func (r *TermsOfServiceService) RetrieveLatest() *TermsOfServiceRetrieveLatestCa return c } -// Kind sets the optional parameter "kind": The Kind this terms of service -// version applies to. +// Kind sets the optional parameter "kind": Required. The Kind this terms of +// service version applies to. // // Possible values: // @@ -7839,9 +7839,10 @@ func (c *TermsOfServiceRetrieveLatestCall) Kind(kind string) *TermsOfServiceRetr return c } -// RegionCode sets the optional parameter "regionCode": Region code as defined -// by CLDR (https://cldr.unicode.org/). This is either a country when the ToS -// applies specifically to that country or 001 when it applies globally. +// RegionCode sets the optional parameter "regionCode": Required. Region code +// as defined by CLDR (https://cldr.unicode.org/). This is either a country +// when the ToS applies specifically to that country or 001 when it applies +// globally. func (c *TermsOfServiceRetrieveLatestCall) RegionCode(regionCode string) *TermsOfServiceRetrieveLatestCall { c.urlParams_.Set("regionCode", regionCode) return c diff --git a/networkconnectivity/v1/networkconnectivity-api.json b/networkconnectivity/v1/networkconnectivity-api.json index 62af16c551a..bd38fc1b870 100644 --- a/networkconnectivity/v1/networkconnectivity-api.json +++ b/networkconnectivity/v1/networkconnectivity-api.json @@ -2812,7 +2812,7 @@ } } }, - "revision": "20240911", + "revision": "20240923", "rootUrl": "https://networkconnectivity.googleapis.com/", "schemas": { "AcceptHubSpokeRequest": { @@ -3572,7 +3572,7 @@ "id": "LinkedInterconnectAttachments", "properties": { "includeImportRanges": { - "description": "Optional. IP ranges allowed to be included during import from hub.(does not control transit connectivity) The only allowed value for now is \"ALL_IPV4_RANGES\".", + "description": "Optional. IP ranges allowed to be included during import from hub (does not control transit connectivity). The only allowed value for now is \"ALL_IPV4_RANGES\".", "items": { "type": "string" }, @@ -3597,12 +3597,44 @@ }, "type": "object" }, + "LinkedProducerVpcNetwork": { + "description": "Next ID: 7", + "id": "LinkedProducerVpcNetwork", + "properties": { + "excludeExportRanges": { + "description": "Optional. IP ranges encompassing the subnets to be excluded from peering.", + "items": { + "type": "string" + }, + "type": "array" + }, + "network": { + "description": "Immutable. The URI of the Service Consumer VPC that the Producer VPC is peered with.", + "type": "string" + }, + "peering": { + "description": "Immutable. The name of the VPC peering between the Service Consumer VPC and the Producer VPC (defined in the Tenant project) which is added to the NCC hub. This peering must be in ACTIVE state.", + "type": "string" + }, + "producerNetwork": { + "description": "Output only. The URI of the Producer VPC.", + "readOnly": true, + "type": "string" + }, + "serviceConsumerVpcSpoke": { + "description": "Output only. The Service Consumer Network spoke.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "LinkedRouterApplianceInstances": { "description": "A collection of router appliance instances. If you configure multiple router appliance instances to receive data from the same set of sites outside of Google Cloud, we recommend that you associate those instances with the same spoke.", "id": "LinkedRouterApplianceInstances", "properties": { "includeImportRanges": { - "description": "Optional. IP ranges allowed to be included during import from hub.(does not control transit connectivity) The only allowed value for now is \"ALL_IPV4_RANGES\".", + "description": "Optional. IP ranges allowed to be included during import from hub (does not control transit connectivity). The only allowed value for now is \"ALL_IPV4_RANGES\".", "items": { "type": "string" }, @@ -3665,7 +3697,7 @@ "id": "LinkedVpnTunnels", "properties": { "includeImportRanges": { - "description": "Optional. IP ranges allowed to be included during import from hub.(does not control transit connectivity) The only allowed value for now is \"ALL_IPV4_RANGES\".", + "description": "Optional. IP ranges allowed to be included during import from hub (does not control transit connectivity). The only allowed value for now is \"ALL_IPV4_RANGES\".", "items": { "type": "string" }, @@ -5102,6 +5134,10 @@ "$ref": "LinkedInterconnectAttachments", "description": "VLAN attachments that are associated with the spoke." }, + "linkedProducerVpcNetwork": { + "$ref": "LinkedProducerVpcNetwork", + "description": "Optional. The linked producer VPC that is associated with the spoke." + }, "linkedRouterApplianceInstances": { "$ref": "LinkedRouterApplianceInstances", "description": "Router appliance instances that are associated with the spoke." @@ -5133,14 +5169,16 @@ "VPN_TUNNEL", "INTERCONNECT_ATTACHMENT", "ROUTER_APPLIANCE", - "VPC_NETWORK" + "VPC_NETWORK", + "PRODUCER_VPC_NETWORK" ], "enumDescriptions": [ "Unspecified spoke type.", "Spokes associated with VPN tunnels.", "Spokes associated with VLAN attachments.", "Spokes associated with router appliance instances.", - "Spokes associated with VPC networks." + "Spokes associated with VPC networks.", + "Spokes that are backed by a producer VPC network." ], "readOnly": true, "type": "string" @@ -5306,14 +5344,16 @@ "VPN_TUNNEL", "INTERCONNECT_ATTACHMENT", "ROUTER_APPLIANCE", - "VPC_NETWORK" + "VPC_NETWORK", + "PRODUCER_VPC_NETWORK" ], "enumDescriptions": [ "Unspecified spoke type.", "Spokes associated with VPN tunnels.", "Spokes associated with VLAN attachments.", "Spokes associated with router appliance instances.", - "Spokes associated with VPC networks." + "Spokes associated with VPC networks.", + "Spokes that are backed by a producer VPC network." ], "readOnly": true, "type": "string" diff --git a/networkconnectivity/v1/networkconnectivity-gen.go b/networkconnectivity/v1/networkconnectivity-gen.go index 9ae9ae3c544..08dd7020b95 100644 --- a/networkconnectivity/v1/networkconnectivity-gen.go +++ b/networkconnectivity/v1/networkconnectivity-gen.go @@ -1323,7 +1323,7 @@ func (s InternalRange) MarshalJSON() ([]byte, error) { // all attachments should be capable of advertising the same prefixes. type LinkedInterconnectAttachments struct { // IncludeImportRanges: Optional. IP ranges allowed to be included during - // import from hub.(does not control transit connectivity) The only allowed + // import from hub (does not control transit connectivity). The only allowed // value for now is "ALL_IPV4_RANGES". IncludeImportRanges []string `json:"includeImportRanges,omitempty"` // SiteToSiteDataTransfer: A value that controls whether site-to-site data @@ -1354,13 +1354,47 @@ func (s LinkedInterconnectAttachments) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// LinkedProducerVpcNetwork: Next ID: 7 +type LinkedProducerVpcNetwork struct { + // ExcludeExportRanges: Optional. IP ranges encompassing the subnets to be + // excluded from peering. + ExcludeExportRanges []string `json:"excludeExportRanges,omitempty"` + // Network: Immutable. The URI of the Service Consumer VPC that the Producer + // VPC is peered with. + Network string `json:"network,omitempty"` + // Peering: Immutable. The name of the VPC peering between the Service Consumer + // VPC and the Producer VPC (defined in the Tenant project) which is added to + // the NCC hub. This peering must be in ACTIVE state. + Peering string `json:"peering,omitempty"` + // ProducerNetwork: Output only. The URI of the Producer VPC. + ProducerNetwork string `json:"producerNetwork,omitempty"` + // ServiceConsumerVpcSpoke: Output only. The Service Consumer Network spoke. + ServiceConsumerVpcSpoke string `json:"serviceConsumerVpcSpoke,omitempty"` + // ForceSendFields is a list of field names (e.g. "ExcludeExportRanges") 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. "ExcludeExportRanges") 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 LinkedProducerVpcNetwork) MarshalJSON() ([]byte, error) { + type NoMethod LinkedProducerVpcNetwork + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // LinkedRouterApplianceInstances: A collection of router appliance instances. // If you configure multiple router appliance instances to receive data from // the same set of sites outside of Google Cloud, we recommend that you // associate those instances with the same spoke. type LinkedRouterApplianceInstances struct { // IncludeImportRanges: Optional. IP ranges allowed to be included during - // import from hub.(does not control transit connectivity) The only allowed + // import from hub (does not control transit connectivity). The only allowed // value for now is "ALL_IPV4_RANGES". IncludeImportRanges []string `json:"includeImportRanges,omitempty"` // Instances: The list of router appliance instances. @@ -1429,7 +1463,7 @@ func (s LinkedVpcNetwork) MarshalJSON() ([]byte, error) { // all tunnels should be capable of advertising the same prefixes. type LinkedVpnTunnels struct { // IncludeImportRanges: Optional. IP ranges allowed to be included during - // import from hub.(does not control transit connectivity) The only allowed + // import from hub (does not control transit connectivity). The only allowed // value for now is "ALL_IPV4_RANGES". IncludeImportRanges []string `json:"includeImportRanges,omitempty"` // SiteToSiteDataTransfer: A value that controls whether site-to-site data @@ -3071,6 +3105,9 @@ type Spoke struct { // LinkedInterconnectAttachments: VLAN attachments that are associated with the // spoke. LinkedInterconnectAttachments *LinkedInterconnectAttachments `json:"linkedInterconnectAttachments,omitempty"` + // LinkedProducerVpcNetwork: Optional. The linked producer VPC that is + // associated with the spoke. + LinkedProducerVpcNetwork *LinkedProducerVpcNetwork `json:"linkedProducerVpcNetwork,omitempty"` // LinkedRouterApplianceInstances: Router appliance instances that are // associated with the spoke. LinkedRouterApplianceInstances *LinkedRouterApplianceInstances `json:"linkedRouterApplianceInstances,omitempty"` @@ -3093,6 +3130,7 @@ type Spoke struct { // "INTERCONNECT_ATTACHMENT" - Spokes associated with VLAN attachments. // "ROUTER_APPLIANCE" - Spokes associated with router appliance instances. // "VPC_NETWORK" - Spokes associated with VPC networks. + // "PRODUCER_VPC_NETWORK" - Spokes that are backed by a producer VPC network. SpokeType string `json:"spokeType,omitempty"` // State: Output only. The current lifecycle state of this spoke. // @@ -3255,6 +3293,7 @@ type SpokeTypeCount struct { // "INTERCONNECT_ATTACHMENT" - Spokes associated with VLAN attachments. // "ROUTER_APPLIANCE" - Spokes associated with router appliance instances. // "VPC_NETWORK" - Spokes associated with VPC networks. + // "PRODUCER_VPC_NETWORK" - Spokes that are backed by a producer VPC network. SpokeType string `json:"spokeType,omitempty"` // ForceSendFields is a list of field names (e.g. "Count") to unconditionally // include in API requests. By default, fields with empty or default values are diff --git a/networkmanagement/v1/networkmanagement-api.json b/networkmanagement/v1/networkmanagement-api.json index 9450ed43abd..8240c9432af 100644 --- a/networkmanagement/v1/networkmanagement-api.json +++ b/networkmanagement/v1/networkmanagement-api.json @@ -591,7 +591,7 @@ } } }, - "revision": "20240911", + "revision": "20240918", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -1168,7 +1168,8 @@ "REDIS_CLUSTER_NO_EXTERNAL_IP", "REDIS_CLUSTER_UNSUPPORTED_PROTOCOL", "NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION", - "NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION" + "NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION", + "NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION" ], "enumDescriptions": [ "Cause is unspecified.", @@ -1252,7 +1253,8 @@ "Redis Cluster does not have an external IP address.", "Packet is dropped due to an unsupported protocol being used to connect to a Redis Cluster. Only TCP connections are accepted by a Redis Cluster.", "Packet from the non-GCP (on-prem) or unknown GCP network is dropped due to the destination IP address not belonging to any IP prefix advertised via BGP by the Cloud Router.", - "Packet from the non-GCP (on-prem) or unknown GCP network is dropped due to the destination IP address not belonging to any IP prefix included to the local traffic selector of the VPN tunnel." + "Packet from the non-GCP (on-prem) or unknown GCP network is dropped due to the destination IP address not belonging to any IP prefix included to the local traffic selector of the VPN tunnel.", + "Packet from the unknown peered network is dropped due to no known route from the source network to the destination IP address." ], "type": "string" }, @@ -1409,6 +1411,14 @@ "projectId": { "description": "Project ID where the endpoint is located. The Project ID can be derived from the URI if you provide a VM instance or network URI. The following are two cases where you must provide the project ID: 1. Only the IP address is specified, and the IP address is within a Google Cloud project. 2. When you are using Shared VPC and the IP address that you provide is from the service project. In this case, the network that the IP address resides in is defined in the host project.", "type": "string" + }, + "redisCluster": { + "description": "A [Redis Cluster](https://cloud.google.com/memorystore/docs/cluster) URI.", + "type": "string" + }, + "redisInstance": { + "description": "A [Redis Instance](https://cloud.google.com/memorystore/docs/redis) URI.", + "type": "string" } }, "type": "object" @@ -2621,7 +2631,8 @@ "PEERING_SUBNET", "PEERING_STATIC", "PEERING_DYNAMIC", - "POLICY_BASED" + "POLICY_BASED", + "ADVERTISED" ], "enumDescriptions": [ "Unspecified type. Default value.", @@ -2631,7 +2642,8 @@ "A subnet route received from peering network.", "A static route received from peering network.", "A dynamic route received from peering network.", - "Policy based route." + "Policy based route.", + "Advertised route. Synthetic route which is used to transition from the StartFromPrivateNetwork state in Connectivity tests." ], "type": "string" }, diff --git a/networkmanagement/v1/networkmanagement-gen.go b/networkmanagement/v1/networkmanagement-gen.go index ffc7325e87d..4086ab8ae90 100644 --- a/networkmanagement/v1/networkmanagement-gen.go +++ b/networkmanagement/v1/networkmanagement-gen.go @@ -1048,6 +1048,9 @@ type DropInfo struct { // (on-prem) or unknown GCP network is dropped due to the destination IP // address not belonging to any IP prefix included to the local traffic // selector of the VPN tunnel. + // "NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION" - Packet from the + // unknown peered network is dropped due to no known route from the source + // network to the destination IP address. Cause string `json:"cause,omitempty"` // DestinationIp: Destination IP address of the dropped packet (if relevant). DestinationIp string `json:"destinationIp,omitempty"` @@ -1194,6 +1197,12 @@ type Endpoint struct { // provide is from the service project. In this case, the network that the IP // address resides in is defined in the host project. ProjectId string `json:"projectId,omitempty"` + // RedisCluster: A Redis Cluster + // (https://cloud.google.com/memorystore/docs/cluster) URI. + RedisCluster string `json:"redisCluster,omitempty"` + // RedisInstance: A Redis Instance + // (https://cloud.google.com/memorystore/docs/redis) URI. + RedisInstance string `json:"redisInstance,omitempty"` // ForceSendFields is a list of field names (e.g. "AppEngineVersion") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -2510,6 +2519,8 @@ type RouteInfo struct { // "PEERING_STATIC" - A static route received from peering network. // "PEERING_DYNAMIC" - A dynamic route received from peering network. // "POLICY_BASED" - Policy based route. + // "ADVERTISED" - Advertised route. Synthetic route which is used to + // transition from the StartFromPrivateNetwork state in Connectivity tests. RouteType string `json:"routeType,omitempty"` // SrcIpRange: Source IP address range of the route. Policy based routes only. SrcIpRange string `json:"srcIpRange,omitempty"` diff --git a/networkmanagement/v1beta1/networkmanagement-api.json b/networkmanagement/v1beta1/networkmanagement-api.json index f4811b1347e..2bb23f8b979 100644 --- a/networkmanagement/v1beta1/networkmanagement-api.json +++ b/networkmanagement/v1beta1/networkmanagement-api.json @@ -758,7 +758,7 @@ } } }, - "revision": "20240911", + "revision": "20240918", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -1340,7 +1340,8 @@ "REDIS_CLUSTER_NO_EXTERNAL_IP", "REDIS_CLUSTER_UNSUPPORTED_PROTOCOL", "NO_ADVERTISED_ROUTE_TO_GCP_DESTINATION", - "NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION" + "NO_TRAFFIC_SELECTOR_TO_GCP_DESTINATION", + "NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION" ], "enumDescriptions": [ "Cause is unspecified.", @@ -1424,7 +1425,8 @@ "Redis Cluster does not have an external IP address.", "Packet is dropped due to an unsupported protocol being used to connect to a Redis Cluster. Only TCP connections are accepted by a Redis Cluster.", "Packet from the non-GCP (on-prem) or unknown GCP network is dropped due to the destination IP address not belonging to any IP prefix advertised via BGP by the Cloud Router.", - "Packet from the non-GCP (on-prem) or unknown GCP network is dropped due to the destination IP address not belonging to any IP prefix included to the local traffic selector of the VPN tunnel." + "Packet from the non-GCP (on-prem) or unknown GCP network is dropped due to the destination IP address not belonging to any IP prefix included to the local traffic selector of the VPN tunnel.", + "Packet from the unknown peered network is dropped due to no known route from the source network to the destination IP address." ], "type": "string" }, @@ -2826,7 +2828,8 @@ "PEERING_SUBNET", "PEERING_STATIC", "PEERING_DYNAMIC", - "POLICY_BASED" + "POLICY_BASED", + "ADVERTISED" ], "enumDescriptions": [ "Unspecified type. Default value.", @@ -2836,7 +2839,8 @@ "A subnet route received from peering network.", "A static route received from peering network.", "A dynamic route received from peering network.", - "Policy based route." + "Policy based route.", + "Advertised route. Synthetic route which is used to transition from the StartFromPrivateNetwork state in Connectivity tests." ], "type": "string" }, diff --git a/networkmanagement/v1beta1/networkmanagement-gen.go b/networkmanagement/v1beta1/networkmanagement-gen.go index 69c388d4b54..319ef2b9fd6 100644 --- a/networkmanagement/v1beta1/networkmanagement-gen.go +++ b/networkmanagement/v1beta1/networkmanagement-gen.go @@ -1064,6 +1064,9 @@ type DropInfo struct { // (on-prem) or unknown GCP network is dropped due to the destination IP // address not belonging to any IP prefix included to the local traffic // selector of the VPN tunnel. + // "NO_KNOWN_ROUTE_FROM_PEERED_NETWORK_TO_DESTINATION" - Packet from the + // unknown peered network is dropped due to no known route from the source + // network to the destination IP address. Cause string `json:"cause,omitempty"` // DestinationIp: Destination IP address of the dropped packet (if relevant). DestinationIp string `json:"destinationIp,omitempty"` @@ -2563,6 +2566,8 @@ type RouteInfo struct { // "PEERING_STATIC" - A static route received from peering network. // "PEERING_DYNAMIC" - A dynamic route received from peering network. // "POLICY_BASED" - Policy based route. + // "ADVERTISED" - Advertised route. Synthetic route which is used to + // transition from the StartFromPrivateNetwork state in Connectivity tests. RouteType string `json:"routeType,omitempty"` // SrcIpRange: Source IP address range of the route. Policy based routes only. SrcIpRange string `json:"srcIpRange,omitempty"` diff --git a/networksecurity/v1/networksecurity-api.json b/networksecurity/v1/networksecurity-api.json index e33b145cd4d..4b4c6c9f1b8 100644 --- a/networksecurity/v1/networksecurity-api.json +++ b/networksecurity/v1/networksecurity-api.json @@ -3253,7 +3253,7 @@ } } }, - "revision": "20240828", + "revision": "20240919", "rootUrl": "https://networksecurity.googleapis.com/", "schemas": { "AddAddressGroupItemsRequest": { @@ -3492,6 +3492,17 @@ }, "type": "object" }, + "CustomMirroringProfile": { + "description": "CustomMirroringProfile defines an action for mirroring traffic to a collector's EndpointGroup", + "id": "CustomMirroringProfile", + "properties": { + "mirroringEndpointGroup": { + "description": "Required. The MirroringEndpointGroup to which traffic associated with the SP should be mirrored.", + "type": "string" + } + }, + "type": "object" + }, "Destination": { "description": "Specification of traffic destination attributes.", "id": "Destination", @@ -4527,6 +4538,10 @@ "readOnly": true, "type": "string" }, + "customMirroringProfile": { + "$ref": "CustomMirroringProfile", + "description": "The custom Packet Mirroring v2 configuration for the SecurityProfile." + }, "description": { "description": "Optional. An optional description of the profile. Max length 512 characters.", "type": "string" @@ -4555,11 +4570,13 @@ "description": "Immutable. The single ProfileType that the SecurityProfile resource configures.", "enum": [ "PROFILE_TYPE_UNSPECIFIED", - "THREAT_PREVENTION" + "THREAT_PREVENTION", + "CUSTOM_MIRRORING" ], "enumDescriptions": [ "Profile type not specified.", - "Profile type for threat prevention." + "Profile type for threat prevention.", + "Profile type for packet mirroring v2" ], "type": "string" }, @@ -4582,6 +4599,10 @@ "readOnly": true, "type": "string" }, + "customMirroringProfile": { + "description": "Optional. Reference to a SecurityProfile with the CustomMirroring configuration.", + "type": "string" + }, "description": { "description": "Optional. An optional description of the profile group. Max length 2048 characters.", "type": "string" diff --git a/networksecurity/v1/networksecurity-gen.go b/networksecurity/v1/networksecurity-gen.go index b4a0efe6632..fbefe6e4ba4 100644 --- a/networksecurity/v1/networksecurity-gen.go +++ b/networksecurity/v1/networksecurity-gen.go @@ -653,6 +653,30 @@ func (s CloneAddressGroupItemsRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// CustomMirroringProfile: CustomMirroringProfile defines an action for +// mirroring traffic to a collector's EndpointGroup +type CustomMirroringProfile struct { + // MirroringEndpointGroup: Required. The MirroringEndpointGroup to which + // traffic associated with the SP should be mirrored. + MirroringEndpointGroup string `json:"mirroringEndpointGroup,omitempty"` + // ForceSendFields is a list of field names (e.g. "MirroringEndpointGroup") 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. "MirroringEndpointGroup") 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 CustomMirroringProfile) MarshalJSON() ([]byte, error) { + type NoMethod CustomMirroringProfile + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Destination: Specification of traffic destination attributes. type Destination struct { // Hosts: Required. List of host names to match. Matched against the @@ -2159,6 +2183,9 @@ func (s Rule) MarshalJSON() ([]byte, error) { type SecurityProfile struct { // CreateTime: Output only. Resource creation timestamp. CreateTime string `json:"createTime,omitempty"` + // CustomMirroringProfile: The custom Packet Mirroring v2 configuration for the + // SecurityProfile. + CustomMirroringProfile *CustomMirroringProfile `json:"customMirroringProfile,omitempty"` // Description: Optional. An optional description of the profile. Max length // 512 characters. Description string `json:"description,omitempty"` @@ -2182,6 +2209,7 @@ type SecurityProfile struct { // Possible values: // "PROFILE_TYPE_UNSPECIFIED" - Profile type not specified. // "THREAT_PREVENTION" - Profile type for threat prevention. + // "CUSTOM_MIRRORING" - Profile type for packet mirroring v2 Type string `json:"type,omitempty"` // UpdateTime: Output only. Last resource update timestamp. UpdateTime string `json:"updateTime,omitempty"` @@ -2211,6 +2239,9 @@ func (s SecurityProfile) MarshalJSON() ([]byte, error) { type SecurityProfileGroup struct { // CreateTime: Output only. Resource creation timestamp. CreateTime string `json:"createTime,omitempty"` + // CustomMirroringProfile: Optional. Reference to a SecurityProfile with the + // CustomMirroring configuration. + CustomMirroringProfile string `json:"customMirroringProfile,omitempty"` // Description: Optional. An optional description of the profile group. Max // length 2048 characters. Description string `json:"description,omitempty"` diff --git a/networkservices/v1/networkservices-api.json b/networkservices/v1/networkservices-api.json index bb60c2645cc..4da34e5db88 100644 --- a/networkservices/v1/networkservices-api.json +++ b/networkservices/v1/networkservices-api.json @@ -1241,7 +1241,7 @@ "type": "string" }, "updateMask": { - "description": "Optional. Used to specify the fields to be overwritten in the `LbRouteExtension` resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.", + "description": "Optional. Used to specify the fields to be overwritten in the `LbRouteExtension` resource by the update. The fields specified in the `update_mask` are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -1423,7 +1423,7 @@ "type": "string" }, "updateMask": { - "description": "Optional. Used to specify the fields to be overwritten in the `LbTrafficExtension` resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.", + "description": "Optional. Used to specify the fields to be overwritten in the `LbTrafficExtension` resource by the update. The fields specified in the `update_mask` are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not specify a mask, then all fields are overwritten.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -1930,37 +1930,6 @@ "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}/serviceLbPolicies/{serviceLbPoliciesId}:getIamPolicy", - "httpMethod": "GET", - "id": "networkservices.projects.locations.serviceLbPolicies.getIamPolicy", - "parameterOrder": [ - "resource" - ], - "parameters": { - "options.requestedPolicyVersion": { - "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", - "format": "int32", - "location": "query", - "type": "integer" - }, - "resource": { - "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/serviceLbPolicies/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:getIamPolicy", - "response": { - "$ref": "Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, "list": { "description": "Lists ServiceLbPolicies in a given project and location.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/serviceLbPolicies", @@ -2030,62 +1999,6 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] - }, - "setIamPolicy": { - "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/serviceLbPolicies/{serviceLbPoliciesId}:setIamPolicy", - "httpMethod": "POST", - "id": "networkservices.projects.locations.serviceLbPolicies.setIamPolicy", - "parameterOrder": [ - "resource" - ], - "parameters": { - "resource": { - "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/serviceLbPolicies/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:setIamPolicy", - "request": { - "$ref": "SetIamPolicyRequest" - }, - "response": { - "$ref": "Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "testIamPermissions": { - "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/serviceLbPolicies/{serviceLbPoliciesId}:testIamPermissions", - "httpMethod": "POST", - "id": "networkservices.projects.locations.serviceLbPolicies.testIamPermissions", - "parameterOrder": [ - "resource" - ], - "parameters": { - "resource": { - "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/serviceLbPolicies/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+resource}:testIamPermissions", - "request": { - "$ref": "TestIamPermissionsRequest" - }, - "response": { - "$ref": "TestIamPermissionsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] } } }, @@ -2408,7 +2321,7 @@ } } }, - "revision": "20240913", + "revision": "20240919", "rootUrl": "https://networkservices.googleapis.com/", "schemas": { "AuditConfig": { @@ -3759,7 +3672,7 @@ "type": "object" }, "loadBalancingScheme": { - "description": "Required. All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. Supported values: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to [Choosing a load balancer](https://cloud.google.com/load-balancing/docs/backend-service).", + "description": "Required. All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. Supported values: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to [Backend services overview](https://cloud.google.com/load-balancing/docs/backend-service).", "enum": [ "LOAD_BALANCING_SCHEME_UNSPECIFIED", "INTERNAL_MANAGED", @@ -3777,7 +3690,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "Optional. The metadata provided here is included as part of the `metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The metadata is available under the namespace `com.google.lb_route_extension.`. The following variables are supported in the metadata Struct: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name. Only one of the resource level metadata and extension level metadata can be set.", + "description": "Optional. The metadata provided here is included as part of the `metadata_context` (of type `google.protobuf.Struct`) in the `ProcessingRequest` message sent to the extension server. The metadata is available under the namespace `com.google.lb_route_extension.`. The following variables are supported in the metadata Struct: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name.", "type": "object" }, "name": { @@ -3829,7 +3742,7 @@ "type": "object" }, "loadBalancingScheme": { - "description": "Required. All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. Supported values: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to [Choosing a load balancer](https://cloud.google.com/load-balancing/docs/backend-service).", + "description": "Required. All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. Supported values: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to [Backend services overview](https://cloud.google.com/load-balancing/docs/backend-service).", "enum": [ "LOAD_BALANCING_SCHEME_UNSPECIFIED", "INTERNAL_MANAGED", @@ -3847,7 +3760,7 @@ "description": "Properties of the object.", "type": "any" }, - "description": "Optional. The metadata provided here is included in the `ProcessingRequest.metadata_context.filter_metadata` map field. The metadata is available under the key `com.google.lb_traffic_extension.`. The following variables are supported in the metadata: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name. Only one of the resource level metadata and extension level metadata can be set.", + "description": "Optional. The metadata provided here is included in the `ProcessingRequest.metadata_context.filter_metadata` map field. The metadata is available under the key `com.google.lb_traffic_extension.`. The following variables are supported in the metadata: `{forwarding_rule_id}` - substituted with the forwarding rule's fully qualified resource name.", "type": "object" }, "name": { diff --git a/networkservices/v1/networkservices-gen.go b/networkservices/v1/networkservices-gen.go index f07e006d79e..f99f7cd984e 100644 --- a/networkservices/v1/networkservices-gen.go +++ b/networkservices/v1/networkservices-gen.go @@ -2238,7 +2238,7 @@ type LbRouteExtension struct { // LoadBalancingScheme: Required. All backend services and forwarding rules // referenced by this extension must share the same load balancing scheme. // Supported values: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more - // information, refer to Choosing a load balancer + // information, refer to Backend services overview // (https://cloud.google.com/load-balancing/docs/backend-service). // // Possible values: @@ -2254,8 +2254,7 @@ type LbRouteExtension struct { // available under the namespace `com.google.lb_route_extension.`. The // following variables are supported in the metadata Struct: // `{forwarding_rule_id}` - substituted with the forwarding rule's fully - // qualified resource name. Only one of the resource level metadata and - // extension level metadata can be set. + // qualified resource name. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: Required. Identifier. Name of the `LbRouteExtension` resource in the // following format: @@ -2314,7 +2313,7 @@ type LbTrafficExtension struct { // LoadBalancingScheme: Required. All backend services and forwarding rules // referenced by this extension must share the same load balancing scheme. // Supported values: `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more - // information, refer to Choosing a load balancer + // information, refer to Backend services overview // (https://cloud.google.com/load-balancing/docs/backend-service). // // Possible values: @@ -2328,8 +2327,7 @@ type LbTrafficExtension struct { // `ProcessingRequest.metadata_context.filter_metadata` map field. The metadata // is available under the key `com.google.lb_traffic_extension.`. The following // variables are supported in the metadata: `{forwarding_rule_id}` - - // substituted with the forwarding rule's fully qualified resource name. Only - // one of the resource level metadata and extension level metadata can be set. + // substituted with the forwarding rule's fully qualified resource name. Metadata googleapi.RawMessage `json:"metadata,omitempty"` // Name: Required. Identifier. Name of the `LbTrafficExtension` resource in the // following format: @@ -7858,7 +7856,7 @@ func (c *ProjectsLocationsLbRouteExtensionsPatchCall) RequestId(requestId string // UpdateMask sets the optional parameter "updateMask": Used to specify the // fields to be overwritten in the `LbRouteExtension` resource by the update. -// The fields specified in the update_mask are relative to the resource, not +// The fields specified in the `update_mask` are relative to the resource, not // the full request. A field is overwritten if it is in the mask. If the user // does not specify a mask, then all fields are overwritten. func (c *ProjectsLocationsLbRouteExtensionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsLbRouteExtensionsPatchCall { @@ -8500,7 +8498,7 @@ func (c *ProjectsLocationsLbTrafficExtensionsPatchCall) RequestId(requestId stri // UpdateMask sets the optional parameter "updateMask": Used to specify the // fields to be overwritten in the `LbTrafficExtension` resource by the update. -// The fields specified in the update_mask are relative to the resource, not +// The fields specified in the `update_mask` are relative to the resource, not // the full request. A field is overwritten if it is in the mask. If the user // does not specify a mask, then all fields are overwritten. func (c *ProjectsLocationsLbTrafficExtensionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsLbTrafficExtensionsPatchCall { @@ -10402,133 +10400,6 @@ func (c *ProjectsLocationsServiceLbPoliciesGetCall) Do(opts ...googleapi.CallOpt return ret, nil } -type ProjectsLocationsServiceLbPoliciesGetIamPolicyCall struct { - s *Service - resource string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// GetIamPolicy: Gets the access control policy for a resource. Returns an -// empty policy if the resource exists and does not have a policy set. -// -// - resource: REQUIRED: The resource for which the policy is being requested. -// See Resource names (https://cloud.google.com/apis/design/resource_names) -// for the appropriate value for this field. -func (r *ProjectsLocationsServiceLbPoliciesService) GetIamPolicy(resource string) *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall { - c := &ProjectsLocationsServiceLbPoliciesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - return c -} - -// OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": The maximum policy version that will be -// used to format the policy. Valid values are 0, 1, and 3. Requests specifying -// an invalid value will be rejected. Requests for policies with any -// conditional role bindings must specify version 3. Policies with no -// conditional role bindings may specify any valid value or leave the field -// unset. The policy in the response might use the policy version that you -// specified, or it might use a lower policy version. For example, if you -// specify version 3, but the policy has no conditional role bindings, the -// response uses version 1. To learn which resources support conditions in -// their IAM policies, see the IAM documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). -func (c *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) - 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 *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall { - 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 *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall { - 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 *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") - 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{ - "resource": c.resource, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "networkservices.projects.locations.serviceLbPolicies.getIamPolicy" call. -// Any non-2xx status code is an error. Response headers are in either -// *Policy.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 *ProjectsLocationsServiceLbPoliciesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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 := &Policy{ - 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 ProjectsLocationsServiceLbPoliciesListCall struct { s *Service parent string @@ -10790,220 +10661,6 @@ func (c *ProjectsLocationsServiceLbPoliciesPatchCall) Do(opts ...googleapi.CallO return ret, nil } -type ProjectsLocationsServiceLbPoliciesSetIamPolicyCall struct { - s *Service - resource string - setiampolicyrequest *SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// SetIamPolicy: Sets the access control policy on the specified resource. -// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, -// and `PERMISSION_DENIED` errors. -// -// - resource: REQUIRED: The resource for which the policy is being specified. -// See Resource names (https://cloud.google.com/apis/design/resource_names) -// for the appropriate value for this field. -func (r *ProjectsLocationsServiceLbPoliciesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall { - c := &ProjectsLocationsServiceLbPoliciesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.setiampolicyrequest = setiampolicyrequest - 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 *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall { - 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 *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall) 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.setiampolicyrequest) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") - 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{ - "resource": c.resource, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "networkservices.projects.locations.serviceLbPolicies.setIamPolicy" call. -// Any non-2xx status code is an error. Response headers are in either -// *Policy.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 *ProjectsLocationsServiceLbPoliciesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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 := &Policy{ - 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 ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall struct { - s *Service - resource string - testiampermissionsrequest *TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// TestIamPermissions: Returns permissions that a caller has on the specified -// resource. If the resource does not exist, this will return an empty set of -// permissions, not a `NOT_FOUND` error. Note: This operation is designed to be -// used for building permission-aware UIs and command-line tools, not for -// authorization checking. This operation may "fail open" without warning. -// -// - resource: REQUIRED: The resource for which the policy detail is being -// requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the appropriate -// value for this field. -func (r *ProjectsLocationsServiceLbPoliciesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall { - c := &ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.testiampermissionsrequest = testiampermissionsrequest - 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 *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall { - 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 *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall) 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.testiampermissionsrequest) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") - 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{ - "resource": c.resource, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "networkservices.projects.locations.serviceLbPolicies.testIamPermissions" call. -// Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.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 *ProjectsLocationsServiceLbPoliciesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, 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 := &TestIamPermissionsResponse{ - 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 ProjectsLocationsTcpRoutesCreateCall struct { s *Service parent string diff --git a/redis/v1/redis-api.json b/redis/v1/redis-api.json index 4d979749f52..5e4896b7823 100644 --- a/redis/v1/redis-api.json +++ b/redis/v1/redis-api.json @@ -849,7 +849,7 @@ } } }, - "revision": "20240918", + "revision": "20240924", "rootUrl": "https://redis.googleapis.com/", "schemas": { "AOFConfig": { @@ -1884,7 +1884,7 @@ "type": "object" }, "DatabaseResourceMetadata": { - "description": "Common model for database resource instance metadata. Next ID: 21", + "description": "Common model for database resource instance metadata. Next ID: 23", "id": "DatabaseResourceMetadata", "properties": { "availabilityConfiguration": { @@ -1928,6 +1928,20 @@ "$ref": "CustomMetadataData", "description": "Any custom metadata associated with the resource" }, + "edition": { + "description": "Optional. Edition represents whether the instance is ENTERPRISE or ENTERPRISE_PLUS. This information is core to Cloud SQL only and is used to identify the edition of the instance.", + "enum": [ + "EDITION_UNSPECIFIED", + "EDITION_ENTERPRISE", + "EDITION_ENTERPRISE_PLUS" + ], + "enumDescriptions": [ + "Default, to make it consistent with instance edition enum.", + "Represents the enterprise edition.", + "Represents the enterprise plus edition." + ], + "type": "string" + }, "entitlements": { "description": "Entitlements associated with the resource", "items": { @@ -2011,6 +2025,10 @@ "$ref": "DatabaseResourceId", "description": "Identifier for this resource's immediate parent/primary resource if the current resource is a replica or derived form of another Database resource. Else it would be NULL. REQUIRED if the immediate parent exists when first time resource is getting ingested, otherwise optional." }, + "primaryResourceLocation": { + "description": "Primary resource location. REQUIRED if the immediate parent exists when first time resource is getting ingested, otherwise optional.", + "type": "string" + }, "product": { "$ref": "Product", "description": "The product this resource represents." @@ -3684,7 +3702,7 @@ "type": "string" }, "pscConnectionId": { - "description": "Optional. The PSC connection id of the forwarding rule connected to the service attachment.", + "description": "Required. The PSC connection id of the forwarding rule connected to the service attachment.", "type": "string" }, "serviceAttachment": { @@ -3885,6 +3903,11 @@ "RetentionSettings": { "id": "RetentionSettings", "properties": { + "durationBasedRetention": { + "description": "Duration based retention period i.e. 172800 seconds (2 days)", + "format": "google-duration", + "type": "string" + }, "quantityBasedRetention": { "format": "int32", "type": "integer" @@ -3895,12 +3918,14 @@ "RETENTION_UNIT_UNSPECIFIED", "COUNT", "TIME", + "DURATION", "RETENTION_UNIT_OTHER" ], "enumDescriptions": [ "Backup retention unit is unspecified, will be treated as COUNT.", "Retention will be by count, eg. \"retain the most recent 7 backups\".", - "Retention will be by Time, eg. \"retain the last 7 days backups\".", + "Retention will be by Time, eg. \"retain backups till a specific time\" i.e. till 2024-05-01T00:00:00Z.", + "Retention will be by duration, eg. \"retain the backups for 172800 seconds (2 days)\".", "For rest of the other category" ], "type": "string" diff --git a/redis/v1/redis-gen.go b/redis/v1/redis-gen.go index d6b4dd59ab2..6ec8535519e 100644 --- a/redis/v1/redis-gen.go +++ b/redis/v1/redis-gen.go @@ -1244,7 +1244,7 @@ func (s DatabaseResourceId) MarshalJSON() ([]byte, error) { } // DatabaseResourceMetadata: Common model for database resource instance -// metadata. Next ID: 21 +// metadata. Next ID: 23 type DatabaseResourceMetadata struct { // AvailabilityConfiguration: Availability configuration for this instance AvailabilityConfiguration *AvailabilityConfiguration `json:"availabilityConfiguration,omitempty"` @@ -1268,6 +1268,16 @@ type DatabaseResourceMetadata struct { CurrentState string `json:"currentState,omitempty"` // CustomMetadata: Any custom metadata associated with the resource CustomMetadata *CustomMetadataData `json:"customMetadata,omitempty"` + // Edition: Optional. Edition represents whether the instance is ENTERPRISE or + // ENTERPRISE_PLUS. This information is core to Cloud SQL only and is used to + // identify the edition of the instance. + // + // Possible values: + // "EDITION_UNSPECIFIED" - Default, to make it consistent with instance + // edition enum. + // "EDITION_ENTERPRISE" - Represents the enterprise edition. + // "EDITION_ENTERPRISE_PLUS" - Represents the enterprise plus edition. + Edition string `json:"edition,omitempty"` // Entitlements: Entitlements associated with the resource Entitlements []*Entitlement `json:"entitlements,omitempty"` // ExpectedState: The state that the instance is expected to be in. For @@ -1309,6 +1319,10 @@ type DatabaseResourceMetadata struct { // Database resource. Else it would be NULL. REQUIRED if the immediate parent // exists when first time resource is getting ingested, otherwise optional. PrimaryResourceId *DatabaseResourceId `json:"primaryResourceId,omitempty"` + // PrimaryResourceLocation: Primary resource location. REQUIRED if the + // immediate parent exists when first time resource is getting ingested, + // otherwise optional. + PrimaryResourceLocation string `json:"primaryResourceLocation,omitempty"` // Product: The product this resource represents. Product *Product `json:"product,omitempty"` // ResourceContainer: Closest parent Cloud Resource Manager container of this @@ -3046,7 +3060,7 @@ type PscConnection struct { // ProjectId: Optional. Project ID of the consumer project where the forwarding // rule is created in. ProjectId string `json:"projectId,omitempty"` - // PscConnectionId: Optional. The PSC connection id of the forwarding rule + // PscConnectionId: Required. The PSC connection id of the forwarding rule // connected to the service attachment. PscConnectionId string `json:"pscConnectionId,omitempty"` // ServiceAttachment: Required. The service attachment which is the target of @@ -3295,7 +3309,10 @@ func (s RescheduleMaintenanceRequest) MarshalJSON() ([]byte, error) { } type RetentionSettings struct { - QuantityBasedRetention int64 `json:"quantityBasedRetention,omitempty"` + // DurationBasedRetention: Duration based retention period i.e. 172800 seconds + // (2 days) + DurationBasedRetention string `json:"durationBasedRetention,omitempty"` + QuantityBasedRetention int64 `json:"quantityBasedRetention,omitempty"` // RetentionUnit: The unit that 'retained_backups' represents. // // Possible values: @@ -3303,17 +3320,20 @@ type RetentionSettings struct { // be treated as COUNT. // "COUNT" - Retention will be by count, eg. "retain the most recent 7 // backups". - // "TIME" - Retention will be by Time, eg. "retain the last 7 days backups". + // "TIME" - Retention will be by Time, eg. "retain backups till a specific + // time" i.e. till 2024-05-01T00:00:00Z. + // "DURATION" - Retention will be by duration, eg. "retain the backups for + // 172800 seconds (2 days)". // "RETENTION_UNIT_OTHER" - For rest of the other category RetentionUnit string `json:"retentionUnit,omitempty"` TimeBasedRetention string `json:"timeBasedRetention,omitempty"` - // ForceSendFields is a list of field names (e.g. "QuantityBasedRetention") to + // ForceSendFields is a list of field names (e.g. "DurationBasedRetention") 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. "QuantityBasedRetention") to + // NullFields is a list of field names (e.g. "DurationBasedRetention") 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. diff --git a/redis/v1beta1/redis-api.json b/redis/v1beta1/redis-api.json index 860d9623fb6..b51042b2b48 100644 --- a/redis/v1beta1/redis-api.json +++ b/redis/v1beta1/redis-api.json @@ -849,7 +849,7 @@ } } }, - "revision": "20240918", + "revision": "20240924", "rootUrl": "https://redis.googleapis.com/", "schemas": { "AOFConfig": { @@ -1884,7 +1884,7 @@ "type": "object" }, "DatabaseResourceMetadata": { - "description": "Common model for database resource instance metadata. Next ID: 21", + "description": "Common model for database resource instance metadata. Next ID: 23", "id": "DatabaseResourceMetadata", "properties": { "availabilityConfiguration": { @@ -1928,6 +1928,20 @@ "$ref": "CustomMetadataData", "description": "Any custom metadata associated with the resource" }, + "edition": { + "description": "Optional. Edition represents whether the instance is ENTERPRISE or ENTERPRISE_PLUS. This information is core to Cloud SQL only and is used to identify the edition of the instance.", + "enum": [ + "EDITION_UNSPECIFIED", + "EDITION_ENTERPRISE", + "EDITION_ENTERPRISE_PLUS" + ], + "enumDescriptions": [ + "Default, to make it consistent with instance edition enum.", + "Represents the enterprise edition.", + "Represents the enterprise plus edition." + ], + "type": "string" + }, "entitlements": { "description": "Entitlements associated with the resource", "items": { @@ -2011,6 +2025,10 @@ "$ref": "DatabaseResourceId", "description": "Identifier for this resource's immediate parent/primary resource if the current resource is a replica or derived form of another Database resource. Else it would be NULL. REQUIRED if the immediate parent exists when first time resource is getting ingested, otherwise optional." }, + "primaryResourceLocation": { + "description": "Primary resource location. REQUIRED if the immediate parent exists when first time resource is getting ingested, otherwise optional.", + "type": "string" + }, "product": { "$ref": "Product", "description": "The product this resource represents." @@ -3691,7 +3709,7 @@ "type": "string" }, "pscConnectionId": { - "description": "Optional. The PSC connection id of the forwarding rule connected to the service attachment.", + "description": "Required. The PSC connection id of the forwarding rule connected to the service attachment.", "type": "string" }, "serviceAttachment": { @@ -3892,6 +3910,11 @@ "RetentionSettings": { "id": "RetentionSettings", "properties": { + "durationBasedRetention": { + "description": "Duration based retention period i.e. 172800 seconds (2 days)", + "format": "google-duration", + "type": "string" + }, "quantityBasedRetention": { "format": "int32", "type": "integer" @@ -3902,12 +3925,14 @@ "RETENTION_UNIT_UNSPECIFIED", "COUNT", "TIME", + "DURATION", "RETENTION_UNIT_OTHER" ], "enumDescriptions": [ "Backup retention unit is unspecified, will be treated as COUNT.", "Retention will be by count, eg. \"retain the most recent 7 backups\".", - "Retention will be by Time, eg. \"retain the last 7 days backups\".", + "Retention will be by Time, eg. \"retain backups till a specific time\" i.e. till 2024-05-01T00:00:00Z.", + "Retention will be by duration, eg. \"retain the backups for 172800 seconds (2 days)\".", "For rest of the other category" ], "type": "string" diff --git a/redis/v1beta1/redis-gen.go b/redis/v1beta1/redis-gen.go index baf97cbb8ab..0f270afd792 100644 --- a/redis/v1beta1/redis-gen.go +++ b/redis/v1beta1/redis-gen.go @@ -1244,7 +1244,7 @@ func (s DatabaseResourceId) MarshalJSON() ([]byte, error) { } // DatabaseResourceMetadata: Common model for database resource instance -// metadata. Next ID: 21 +// metadata. Next ID: 23 type DatabaseResourceMetadata struct { // AvailabilityConfiguration: Availability configuration for this instance AvailabilityConfiguration *AvailabilityConfiguration `json:"availabilityConfiguration,omitempty"` @@ -1268,6 +1268,16 @@ type DatabaseResourceMetadata struct { CurrentState string `json:"currentState,omitempty"` // CustomMetadata: Any custom metadata associated with the resource CustomMetadata *CustomMetadataData `json:"customMetadata,omitempty"` + // Edition: Optional. Edition represents whether the instance is ENTERPRISE or + // ENTERPRISE_PLUS. This information is core to Cloud SQL only and is used to + // identify the edition of the instance. + // + // Possible values: + // "EDITION_UNSPECIFIED" - Default, to make it consistent with instance + // edition enum. + // "EDITION_ENTERPRISE" - Represents the enterprise edition. + // "EDITION_ENTERPRISE_PLUS" - Represents the enterprise plus edition. + Edition string `json:"edition,omitempty"` // Entitlements: Entitlements associated with the resource Entitlements []*Entitlement `json:"entitlements,omitempty"` // ExpectedState: The state that the instance is expected to be in. For @@ -1309,6 +1319,10 @@ type DatabaseResourceMetadata struct { // Database resource. Else it would be NULL. REQUIRED if the immediate parent // exists when first time resource is getting ingested, otherwise optional. PrimaryResourceId *DatabaseResourceId `json:"primaryResourceId,omitempty"` + // PrimaryResourceLocation: Primary resource location. REQUIRED if the + // immediate parent exists when first time resource is getting ingested, + // otherwise optional. + PrimaryResourceLocation string `json:"primaryResourceLocation,omitempty"` // Product: The product this resource represents. Product *Product `json:"product,omitempty"` // ResourceContainer: Closest parent Cloud Resource Manager container of this @@ -3050,7 +3064,7 @@ type PscConnection struct { // ProjectId: Optional. Project ID of the consumer project where the forwarding // rule is created in. ProjectId string `json:"projectId,omitempty"` - // PscConnectionId: Optional. The PSC connection id of the forwarding rule + // PscConnectionId: Required. The PSC connection id of the forwarding rule // connected to the service attachment. PscConnectionId string `json:"pscConnectionId,omitempty"` // ServiceAttachment: Required. The service attachment which is the target of @@ -3299,7 +3313,10 @@ func (s RescheduleMaintenanceRequest) MarshalJSON() ([]byte, error) { } type RetentionSettings struct { - QuantityBasedRetention int64 `json:"quantityBasedRetention,omitempty"` + // DurationBasedRetention: Duration based retention period i.e. 172800 seconds + // (2 days) + DurationBasedRetention string `json:"durationBasedRetention,omitempty"` + QuantityBasedRetention int64 `json:"quantityBasedRetention,omitempty"` // RetentionUnit: The unit that 'retained_backups' represents. // // Possible values: @@ -3307,17 +3324,20 @@ type RetentionSettings struct { // be treated as COUNT. // "COUNT" - Retention will be by count, eg. "retain the most recent 7 // backups". - // "TIME" - Retention will be by Time, eg. "retain the last 7 days backups". + // "TIME" - Retention will be by Time, eg. "retain backups till a specific + // time" i.e. till 2024-05-01T00:00:00Z. + // "DURATION" - Retention will be by duration, eg. "retain the backups for + // 172800 seconds (2 days)". // "RETENTION_UNIT_OTHER" - For rest of the other category RetentionUnit string `json:"retentionUnit,omitempty"` TimeBasedRetention string `json:"timeBasedRetention,omitempty"` - // ForceSendFields is a list of field names (e.g. "QuantityBasedRetention") to + // ForceSendFields is a list of field names (e.g. "DurationBasedRetention") 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. "QuantityBasedRetention") to + // NullFields is a list of field names (e.g. "DurationBasedRetention") 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. diff --git a/secretmanager/v1/secretmanager-api.json b/secretmanager/v1/secretmanager-api.json index 7698407fe4a..3d693383ddb 100644 --- a/secretmanager/v1/secretmanager-api.json +++ b/secretmanager/v1/secretmanager-api.json @@ -1190,7 +1190,7 @@ } } }, - "revision": "20240816", + "revision": "20240924", "rootUrl": "https://secretmanager.googleapis.com/", "schemas": { "AccessSecretVersionResponse": { @@ -1623,7 +1623,7 @@ }, "customerManagedEncryption": { "$ref": "CustomerManagedEncryption", - "description": "Optional. The customer-managed encryption configuration of the Regionalised Secrets. If no configuration is provided, Google-managed default encryption is used. Updates to the Secret encryption configuration only apply to SecretVersions added afterwards. They do not apply retroactively to existing SecretVersions." + "description": "Optional. The customer-managed encryption configuration of the regionalized secrets. If no configuration is provided, Google-managed default encryption is used. Updates to the Secret encryption configuration only apply to SecretVersions added afterwards. They do not apply retroactively to existing SecretVersions." }, "etag": { "description": "Optional. Etag of the currently stored Secret.", @@ -1716,7 +1716,7 @@ }, "customerManagedEncryption": { "$ref": "CustomerManagedEncryptionStatus", - "description": "Output only. The customer-managed encryption status of the SecretVersion. Only populated if customer-managed encryption is used and Secret is a Regionalised Secret.", + "description": "Output only. The customer-managed encryption status of the SecretVersion. Only populated if customer-managed encryption is used and Secret is a regionalized secret.", "readOnly": true }, "destroyTime": { diff --git a/secretmanager/v1/secretmanager-gen.go b/secretmanager/v1/secretmanager-gen.go index a15d2ad1233..1697865012d 100644 --- a/secretmanager/v1/secretmanager-gen.go +++ b/secretmanager/v1/secretmanager-gen.go @@ -1073,7 +1073,7 @@ type Secret struct { // CreateTime: Output only. The time at which the Secret was created. CreateTime string `json:"createTime,omitempty"` // CustomerManagedEncryption: Optional. The customer-managed encryption - // configuration of the Regionalised Secrets. If no configuration is provided, + // configuration of the regionalized secrets. If no configuration is provided, // Google-managed default encryption is used. Updates to the Secret encryption // configuration only apply to SecretVersions added afterwards. They do not // apply retroactively to existing SecretVersions. @@ -1188,7 +1188,7 @@ type SecretVersion struct { CreateTime string `json:"createTime,omitempty"` // CustomerManagedEncryption: Output only. The customer-managed encryption // status of the SecretVersion. Only populated if customer-managed encryption - // is used and Secret is a Regionalised Secret. + // is used and Secret is a regionalized secret. CustomerManagedEncryption *CustomerManagedEncryptionStatus `json:"customerManagedEncryption,omitempty"` // DestroyTime: Output only. The time this SecretVersion was destroyed. Only // present if state is DESTROYED. diff --git a/servicenetworking/v1/servicenetworking-api.json b/servicenetworking/v1/servicenetworking-api.json index fb473f607d9..88feacde98f 100644 --- a/servicenetworking/v1/servicenetworking-api.json +++ b/servicenetworking/v1/servicenetworking-api.json @@ -1029,7 +1029,7 @@ } } }, - "revision": "20240916", + "revision": "20240925", "rootUrl": "https://servicenetworking.googleapis.com/", "schemas": { "AddDnsRecordSetMetadata": { @@ -3005,7 +3005,7 @@ "type": "object" }, "Mixin": { - "description": "Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v1/{resource=**}:getAcl\"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = \"/v2/{resource=**}\"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inherting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/{resource=**}:getAcl\"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\"; } ... }", + "description": "Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v1/{resource=**}:getAcl\"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = \"/v2/{resource=**}\"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inheriting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/{resource=**}:getAcl\"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\"; } ... }", "id": "Mixin", "properties": { "name": { diff --git a/servicenetworking/v1/servicenetworking-gen.go b/servicenetworking/v1/servicenetworking-gen.go index 1269750bf40..3a7474063a0 100644 --- a/servicenetworking/v1/servicenetworking-gen.go +++ b/servicenetworking/v1/servicenetworking-gen.go @@ -3250,7 +3250,7 @@ func (s MetricRule) MarshalJSON() ([]byte, error) { // mixin construct implies that all methods in `AccessControl` are also // declared with same name and request/response types in `Storage`. A // documentation generator or annotation processor will see the effective -// `Storage.GetAcl` method after inherting documentation and annotations as +// `Storage.GetAcl` method after inheriting documentation and annotations as // follows: service Storage { // Get the underlying ACL object. rpc // GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = // "/v2/{resource=**}:getAcl"; } ... } Note how the version in the path pattern diff --git a/servicenetworking/v1beta/servicenetworking-api.json b/servicenetworking/v1beta/servicenetworking-api.json index 350570b5953..ca7d79162da 100644 --- a/servicenetworking/v1beta/servicenetworking-api.json +++ b/servicenetworking/v1beta/servicenetworking-api.json @@ -307,7 +307,7 @@ } } }, - "revision": "20240916", + "revision": "20240925", "rootUrl": "https://servicenetworking.googleapis.com/", "schemas": { "AddDnsRecordSetMetadata": { @@ -2025,7 +2025,7 @@ "type": "object" }, "Mixin": { - "description": "Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v1/{resource=**}:getAcl\"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = \"/v2/{resource=**}\"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inherting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/{resource=**}:getAcl\"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\"; } ... }", + "description": "Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v1/{resource=**}:getAcl\"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = \"/v2/{resource=**}\"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inheriting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/{resource=**}:getAcl\"; } ... } Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = \"/v2/acls/{resource=**}:getAcl\"; } ... }", "id": "Mixin", "properties": { "name": { diff --git a/servicenetworking/v1beta/servicenetworking-gen.go b/servicenetworking/v1beta/servicenetworking-gen.go index 193df8dc5c0..90f42c20dbd 100644 --- a/servicenetworking/v1beta/servicenetworking-gen.go +++ b/servicenetworking/v1beta/servicenetworking-gen.go @@ -2702,7 +2702,7 @@ func (s MetricRule) MarshalJSON() ([]byte, error) { // mixin construct implies that all methods in `AccessControl` are also // declared with same name and request/response types in `Storage`. A // documentation generator or annotation processor will see the effective -// `Storage.GetAcl` method after inherting documentation and annotations as +// `Storage.GetAcl` method after inheriting documentation and annotations as // follows: service Storage { // Get the underlying ACL object. rpc // GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = // "/v2/{resource=**}:getAcl"; } ... } Note how the version in the path pattern diff --git a/spanner/v1/spanner-api.json b/spanner/v1/spanner-api.json index a000359477d..de2a36e7c66 100644 --- a/spanner/v1/spanner-api.json +++ b/spanner/v1/spanner-api.json @@ -27,15 +27,35 @@ "endpointUrl": "https://spanner.me-central2.rep.googleapis.com/", "location": "me-central2" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://spanner.us-central1.rep.googleapis.com/", + "location": "us-central1" + }, { "description": "Regional Endpoint", "endpointUrl": "https://spanner.us-east1.rep.googleapis.com/", "location": "us-east1" }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://spanner.us-east4.rep.googleapis.com/", + "location": "us-east4" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://spanner.us-east5.rep.googleapis.com/", + "location": "us-east5" + }, { "description": "Regional Endpoint", "endpointUrl": "https://spanner.us-west1.rep.googleapis.com/", "location": "us-west1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://spanner.us-west4.rep.googleapis.com/", + "location": "us-west4" } ], "fullyEncodeReservedExpansion": true, @@ -3264,7 +3284,7 @@ } } }, - "revision": "20240910", + "revision": "20240918", "rootUrl": "https://spanner.googleapis.com/", "schemas": { "AutoscalingConfig": { @@ -4547,7 +4567,7 @@ "enumDescriptions": [ "The default mode. Only the statement results are returned.", "This mode returns only the query plan, without any results or execution statistics information.", - "This mode returns both the query plan and the execution statistics along with the results. This has a performance overhead compared to the NORMAL mode. It is not recommended to use this mode for production traffic." + "This mode returns the query plan, overall execution statistics, operator level execution statistics along with the results. This has a performance overhead compared to the other modes. It is not recommended to use this mode for production traffic." ], "type": "string" }, diff --git a/spanner/v1/spanner-gen.go b/spanner/v1/spanner-gen.go index ff996da3981..444ab675982 100644 --- a/spanner/v1/spanner-gen.go +++ b/spanner/v1/spanner-gen.go @@ -2324,10 +2324,10 @@ type ExecuteSqlRequest struct { // "NORMAL" - The default mode. Only the statement results are returned. // "PLAN" - This mode returns only the query plan, without any results or // execution statistics information. - // "PROFILE" - This mode returns both the query plan and the execution - // statistics along with the results. This has a performance overhead compared - // to the NORMAL mode. It is not recommended to use this mode for production - // traffic. + // "PROFILE" - This mode returns the query plan, overall execution + // statistics, operator level execution statistics along with the results. This + // has a performance overhead compared to the other modes. It is not + // recommended to use this mode for production traffic. QueryMode string `json:"queryMode,omitempty"` // QueryOptions: Query optimizer configuration to use for the given query. QueryOptions *QueryOptions `json:"queryOptions,omitempty"` diff --git a/sqladmin/v1beta4/sqladmin-api.json b/sqladmin/v1beta4/sqladmin-api.json index 638c57fa1ad..b49cffaae8a 100644 --- a/sqladmin/v1beta4/sqladmin-api.json +++ b/sqladmin/v1beta4/sqladmin-api.json @@ -819,6 +819,28 @@ "instance" ], "parameters": { + "enableFinalBackup": { + "description": "Flag to opt-in for final backup. By default, it is turned off.", + "location": "query", + "type": "boolean" + }, + "finalBackupDescription": { + "description": "Optional. The description of the final backup.", + "location": "query", + "type": "string" + }, + "finalBackupExpiryTime": { + "description": "Optional. Final Backup expiration time. Timestamp in UTC of when this resource is considered expired.", + "format": "google-datetime", + "location": "query", + "type": "string" + }, + "finalBackupTtlDays": { + "description": "Optional. Retention period of the final backup.", + "format": "int64", + "location": "query", + "type": "string" + }, "instance": { "description": "Cloud SQL instance ID. This does not include the project ID.", "location": "path", @@ -1669,6 +1691,11 @@ "project" ], "parameters": { + "filter": { + "description": "Optional. A filter string that follows the rules of EBNF grammar (https://google.aip.dev/assets/misc/ebnf-filtering.txt). Cloud SQL provides filters for status, operationType, and startTime.", + "location": "query", + "type": "string" + }, "instance": { "description": "Cloud SQL instance ID. This does not include the project ID.", "location": "query", @@ -2366,7 +2393,7 @@ } } }, - "revision": "20240912", + "revision": "20240925", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -2556,6 +2583,10 @@ "kind": { "description": "This is always `sql#backupContext`.", "type": "string" + }, + "name": { + "description": "The name of the backup. Format: projects/{project}/backups/{backup}", + "type": "string" } }, "type": "object" @@ -4598,9 +4629,17 @@ "description": "Database instance restore backup request.", "id": "InstancesRestoreBackupRequest", "properties": { + "backup": { + "description": "The name of the backup to restore from in following format: projects/{project-id}/backups/{backup-uid} Only one of restore_backup_context or backup can be passed to the input.", + "type": "string" + }, "restoreBackupContext": { "$ref": "RestoreBackupContext", "description": "Parameters required to perform the restore backup operation." + }, + "restoreInstanceSettings": { + "$ref": "DatabaseInstance", + "description": "Optional. Restore instance settings overrides the instance settings stored as part of the backup. Instance's major database version cannot be changed and the disk size can only be increased. This feature is only available for restores to new instances using the backup name." } }, "type": "object" @@ -4999,6 +5038,7 @@ "AUTO_RESTART", "REENCRYPT", "SWITCHOVER", + "UPDATE_BACKUP", "ACQUIRE_SSRS_LEASE", "RELEASE_SSRS_LEASE", "RECONFIGURE_OLD_PRIMARY", @@ -5050,6 +5090,7 @@ false, false, false, + false, true, true, false, @@ -5095,6 +5136,7 @@ "Performs auto-restart of an HA-enabled Cloud SQL database for auto recovery.", "Re-encrypts CMEK instances with latest key version.", "Switches the roles of the primary and replica pair. The target instance should be the replica.", + "Update a backup.", "Acquire a lease for the setup of SQL Server Reporting Services (SSRS).", "Release a lease for the setup of SQL Server Reporting Services (SSRS).", "Reconfigures old primary after a promote replica operation. Effect of a promote operation to the old primary is executed in this operation, asynchronously from the promote replica operation executed to the replica.", @@ -5247,6 +5289,13 @@ "nextPageToken": { "description": "The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.", "type": "string" + }, + "warnings": { + "description": "List of warnings that occurred while handling the request.", + "items": { + "$ref": "ApiWarning" + }, + "type": "array" } }, "type": "object" diff --git a/sqladmin/v1beta4/sqladmin-gen.go b/sqladmin/v1beta4/sqladmin-gen.go index 8f9f8090c73..3985a0599bd 100644 --- a/sqladmin/v1beta4/sqladmin-gen.go +++ b/sqladmin/v1beta4/sqladmin-gen.go @@ -505,6 +505,8 @@ type BackupContext struct { BackupId int64 `json:"backupId,omitempty,string"` // Kind: This is always `sql#backupContext`. Kind string `json:"kind,omitempty"` + // Name: The name of the backup. Format: projects/{project}/backups/{backup} + Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "BackupId") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -2661,18 +2663,28 @@ func (s InstancesReencryptRequest) MarshalJSON() ([]byte, error) { // InstancesRestoreBackupRequest: Database instance restore backup request. type InstancesRestoreBackupRequest struct { + // Backup: The name of the backup to restore from in following format: + // projects/{project-id}/backups/{backup-uid} Only one of + // restore_backup_context or backup can be passed to the input. + Backup string `json:"backup,omitempty"` // RestoreBackupContext: Parameters required to perform the restore backup // operation. RestoreBackupContext *RestoreBackupContext `json:"restoreBackupContext,omitempty"` - // ForceSendFields is a list of field names (e.g. "RestoreBackupContext") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See + // RestoreInstanceSettings: Optional. Restore instance settings overrides the + // instance settings stored as part of the backup. Instance's major database + // version cannot be changed and the disk size can only be increased. This + // feature is only available for restores to new instances using the backup + // name. + RestoreInstanceSettings *DatabaseInstance `json:"restoreInstanceSettings,omitempty"` + // ForceSendFields is a list of field names (e.g. "Backup") 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. "RestoreBackupContext") 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. "Backup") 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:"-"` } @@ -3174,6 +3186,7 @@ type Operation struct { // "REENCRYPT" - Re-encrypts CMEK instances with latest key version. // "SWITCHOVER" - Switches the roles of the primary and replica pair. The // target instance should be the replica. + // "UPDATE_BACKUP" - Update a backup. // "ACQUIRE_SSRS_LEASE" - Acquire a lease for the setup of SQL Server // Reporting Services (SSRS). // "RELEASE_SSRS_LEASE" - Release a lease for the setup of SQL Server @@ -3339,6 +3352,8 @@ type OperationsListResponse struct { // sets. Provide this value in a subsequent request to return the next page of // results. NextPageToken string `json:"nextPageToken,omitempty"` + // Warnings: List of warnings that occurred while handling the request. + Warnings []*ApiWarning `json:"warnings,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -7016,6 +7031,35 @@ func (r *InstancesService) Delete(project string, instance string) *InstancesDel return c } +// EnableFinalBackup sets the optional parameter "enableFinalBackup": Flag to +// opt-in for final backup. By default, it is turned off. +func (c *InstancesDeleteCall) EnableFinalBackup(enableFinalBackup bool) *InstancesDeleteCall { + c.urlParams_.Set("enableFinalBackup", fmt.Sprint(enableFinalBackup)) + return c +} + +// FinalBackupDescription sets the optional parameter "finalBackupDescription": +// The description of the final backup. +func (c *InstancesDeleteCall) FinalBackupDescription(finalBackupDescription string) *InstancesDeleteCall { + c.urlParams_.Set("finalBackupDescription", finalBackupDescription) + return c +} + +// FinalBackupExpiryTime sets the optional parameter "finalBackupExpiryTime": +// Final Backup expiration time. Timestamp in UTC of when this resource is +// considered expired. +func (c *InstancesDeleteCall) FinalBackupExpiryTime(finalBackupExpiryTime string) *InstancesDeleteCall { + c.urlParams_.Set("finalBackupExpiryTime", finalBackupExpiryTime) + return c +} + +// FinalBackupTtlDays sets the optional parameter "finalBackupTtlDays": +// Retention period of the final backup. +func (c *InstancesDeleteCall) FinalBackupTtlDays(finalBackupTtlDays int64) *InstancesDeleteCall { + c.urlParams_.Set("finalBackupTtlDays", fmt.Sprint(finalBackupTtlDays)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. @@ -9712,6 +9756,15 @@ func (r *OperationsService) List(project string) *OperationsListCall { return c } +// Filter sets the optional parameter "filter": A filter string that follows +// the rules of EBNF grammar +// (https://google.aip.dev/assets/misc/ebnf-filtering.txt). Cloud SQL provides +// filters for status, operationType, and startTime. +func (c *OperationsListCall) Filter(filter string) *OperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + // Instance sets the optional parameter "instance": Cloud SQL instance ID. This // does not include the project ID. func (c *OperationsListCall) Instance(instance string) *OperationsListCall { diff --git a/youtube/v3/youtube-api.json b/youtube/v3/youtube-api.json index a5a0be17ca9..575fd5f5d75 100644 --- a/youtube/v3/youtube-api.json +++ b/youtube/v3/youtube-api.json @@ -4072,7 +4072,7 @@ } } }, - "revision": "20240916", + "revision": "20240926", "rootUrl": "https://youtube.googleapis.com/", "schemas": { "AbuseReport": { @@ -10573,10 +10573,6 @@ "description": "The ID that YouTube uses to uniquely identify the subscriber's channel.", "type": "string" }, - "channelTitle": { - "description": "Channel title for the channel that the subscription belongs to.", - "type": "string" - }, "description": { "description": "The subscription's details.", "type": "string" diff --git a/youtube/v3/youtube-gen.go b/youtube/v3/youtube-gen.go index 1d02a53f4fa..9a4e0c6ed10 100644 --- a/youtube/v3/youtube-gen.go +++ b/youtube/v3/youtube-gen.go @@ -6742,9 +6742,6 @@ type SubscriptionSnippet struct { // ChannelId: The ID that YouTube uses to uniquely identify the subscriber's // channel. ChannelId string `json:"channelId,omitempty"` - // ChannelTitle: Channel title for the channel that the subscription belongs - // to. - ChannelTitle string `json:"channelTitle,omitempty"` // Description: The subscription's details. Description string `json:"description,omitempty"` // PublishedAt: The date and time that the subscription was created.