From 3274578d62c47b51018251088eab9bdfc2b4b90c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 14 Jun 2022 07:14:14 +0000 Subject: [PATCH] feat(all): auto-regenerate discovery clients --- chromepolicy/v1/chromepolicy-api.json | 4 +- chromepolicy/v1/chromepolicy-gen.go | 8 +- datamigration/v1/datamigration-api.json | 8 +- datamigration/v1/datamigration-gen.go | 2 + dfareporting/v3.5/dfareporting-api.json | 8 +- dfareporting/v3.5/dfareporting-gen.go | 8 +- dfareporting/v4/dfareporting-api.json | 8 +- dfareporting/v4/dfareporting-gen.go | 8 +- docs/v1/docs-api.json | 8 +- docs/v1/docs-gen.go | 13 +- .../v1.1/doubleclickbidmanager-api.json | 26 +- .../v1.1/doubleclickbidmanager-gen.go | 12 + eventarc/v1/eventarc-api.json | 261 +++- eventarc/v1/eventarc-gen.go | 1086 +++++++++++++++-- eventarc/v1beta1/eventarc-api.json | 8 +- eventarc/v1beta1/eventarc-gen.go | 19 +- gameservices/v1/gameservices-api.json | 4 +- gameservices/v1/gameservices-gen.go | 19 +- gameservices/v1beta/gameservices-api.json | 4 +- gameservices/v1beta/gameservices-gen.go | 19 +- gkehub/v1alpha/gkehub-api.json | 45 +- gkehub/v1alpha/gkehub-gen.go | 50 + localservices/v1/localservices-api.json | 4 +- localservices/v1/localservices-gen.go | 2 +- .../v1beta1/networkmanagement-api.json | 6 +- .../v1beta1/networkmanagement-gen.go | 11 +- .../v1alpha1/prod_tt_sasportal-api.json | 160 +-- .../v1alpha1/prod_tt_sasportal-gen.go | 160 +-- sheets/v4/sheets-api.json | 62 +- sheets/v4/sheets-gen.go | 66 +- storage/v1/storage-api.json | 17 +- storage/v1/storage-gen.go | 34 + youtube/v3/youtube-api.json | 25 +- youtube/v3/youtube-gen.go | 51 +- 34 files changed, 1788 insertions(+), 438 deletions(-) diff --git a/chromepolicy/v1/chromepolicy-api.json b/chromepolicy/v1/chromepolicy-api.json index 70486bb56dc..503347fd820 100644 --- a/chromepolicy/v1/chromepolicy-api.json +++ b/chromepolicy/v1/chromepolicy-api.json @@ -324,7 +324,7 @@ } } }, - "revision": "20220506", + "revision": "20220612", "rootUrl": "https://chromepolicy.googleapis.com/", "schemas": { "ChromeCrosDpanelAutosettingsProtoPolicyApiLifecycle": { @@ -725,7 +725,7 @@ "type": "string" }, "policySchemaFilter": { - "description": "The schema filter to apply to the resolve request. Specify a schema name to view a particular schema, for example: chrome.users.ShowLogoutButton Wildcards are supported, but only in the leaf portion of the schema name. Wildcards cannot be used in namespace directly. Please read https://developers.google.com/chrome/chrome-management/guides/policyapi for details on schema namepsaces. For example: Valid: \"chrome.users.*\", \"chrome.users.apps.*\", \"chrome.printers.*\" Invalid: \"*\", \"*.users\", \"chrome.*\", \"chrome.*.apps.*\"", + "description": "The schema filter to apply to the resolve request. Specify a schema name to view a particular schema, for example: chrome.users.ShowLogoutButton Wildcards are supported, but only in the leaf portion of the schema name. Wildcards cannot be used in namespace directly. Please read https://developers.google.com/chrome/policy/guides/policy-schemas for details on schema namepsaces. For example: Valid: \"chrome.users.*\", \"chrome.users.apps.*\", \"chrome.printers.*\" Invalid: \"*\", \"*.users\", \"chrome.*\", \"chrome.*.apps.*\"", "type": "string" }, "policyTargetKey": { diff --git a/chromepolicy/v1/chromepolicy-gen.go b/chromepolicy/v1/chromepolicy-gen.go index df7012ae3f1..058e5741161 100644 --- a/chromepolicy/v1/chromepolicy-gen.go +++ b/chromepolicy/v1/chromepolicy-gen.go @@ -849,10 +849,10 @@ type GoogleChromePolicyV1ResolveRequest struct { // example: chrome.users.ShowLogoutButton Wildcards are supported, but // only in the leaf portion of the schema name. Wildcards cannot be used // in namespace directly. Please read - // https://developers.google.com/chrome/chrome-management/guides/policyapi - // for details on schema namepsaces. For example: Valid: - // "chrome.users.*", "chrome.users.apps.*", "chrome.printers.*" Invalid: - // "*", "*.users", "chrome.*", "chrome.*.apps.*" + // https://developers.google.com/chrome/policy/guides/policy-schemas for + // details on schema namepsaces. For example: Valid: "chrome.users.*", + // "chrome.users.apps.*", "chrome.printers.*" Invalid: "*", "*.users", + // "chrome.*", "chrome.*.apps.*" PolicySchemaFilter string `json:"policySchemaFilter,omitempty"` // PolicyTargetKey: Required. The key of the target resource on which diff --git a/datamigration/v1/datamigration-api.json b/datamigration/v1/datamigration-api.json index 0fa997f8aab..90a1bb4dd80 100644 --- a/datamigration/v1/datamigration-api.json +++ b/datamigration/v1/datamigration-api.json @@ -1049,7 +1049,7 @@ } } }, - "revision": "20220504", + "revision": "20220602", "rootUrl": "https://datamigration.googleapis.com/", "schemas": { "AuditConfig": { @@ -1840,7 +1840,8 @@ "UNSUPPORTED_GTID_MODE", "UNSUPPORTED_TABLE_DEFINITION", "UNSUPPORTED_DEFINER", - "CANT_RESTART_RUNNING_MIGRATION" + "CANT_RESTART_RUNNING_MIGRATION", + "TABLES_WITH_LIMITED_SUPPORT" ], "enumDescriptions": [ "An unknown error occurred", @@ -1862,7 +1863,8 @@ "The gtid_mode is not supported, applicable for MySQL.", "The table definition is not support due to missing primary key or replica identity.", "The definer is not supported.", - "Migration is already running at the time of restart request." + "Migration is already running at the time of restart request.", + "The source has tables with limited support. E.g. PostgreSQL tables without primary keys." ], "readOnly": true, "type": "string" diff --git a/datamigration/v1/datamigration-gen.go b/datamigration/v1/datamigration-gen.go index ea01a593d32..55a98ddb2e0 100644 --- a/datamigration/v1/datamigration-gen.go +++ b/datamigration/v1/datamigration-gen.go @@ -1283,6 +1283,8 @@ type MigrationJobVerificationError struct { // "UNSUPPORTED_DEFINER" - The definer is not supported. // "CANT_RESTART_RUNNING_MIGRATION" - Migration is already running at // the time of restart request. + // "TABLES_WITH_LIMITED_SUPPORT" - The source has tables with limited + // support. E.g. PostgreSQL tables without primary keys. ErrorCode string `json:"errorCode,omitempty"` // ErrorDetailMessage: Output only. A specific detailed error message, diff --git a/dfareporting/v3.5/dfareporting-api.json b/dfareporting/v3.5/dfareporting-api.json index 3ef997c8321..331c99038e1 100644 --- a/dfareporting/v3.5/dfareporting-api.json +++ b/dfareporting/v3.5/dfareporting-api.json @@ -2290,9 +2290,7 @@ "OBJECT_TARGETING_TEMPLATE", "OBJECT_SEARCH_LIFT_STUDY", "OBJECT_FLOODLIGHT_DV360_LINK", - "OBJECT_ADVERTISER_CUSTOMER_LINK", - "OBJECT_CREATIVE_PROJECT", - "OBJECT_ACCOUNT_CAMPAIGN_CREATIVE_PROJECT_LINK" + "OBJECT_ADVERTISER_CUSTOMER_LINK" ], "enumDescriptions": [ "", @@ -2335,8 +2333,6 @@ "", "", "", - "", - "", "" ], "location": "query", @@ -9663,7 +9659,7 @@ } } }, - "revision": "20220607", + "revision": "20220611", "rootUrl": "https://dfareporting.googleapis.com/", "schemas": { "Account": { diff --git a/dfareporting/v3.5/dfareporting-gen.go b/dfareporting/v3.5/dfareporting-gen.go index d241b137a1d..73569e5a9e0 100644 --- a/dfareporting/v3.5/dfareporting-gen.go +++ b/dfareporting/v3.5/dfareporting-gen.go @@ -23079,8 +23079,6 @@ func (c *ChangeLogsListCall) ObjectIds(objectIds ...int64) *ChangeLogsListCall { // "OBJECT_SEARCH_LIFT_STUDY" // "OBJECT_FLOODLIGHT_DV360_LINK" // "OBJECT_ADVERTISER_CUSTOMER_LINK" -// "OBJECT_CREATIVE_PROJECT" -// "OBJECT_ACCOUNT_CAMPAIGN_CREATIVE_PROJECT_LINK" func (c *ChangeLogsListCall) ObjectType(objectType string) *ChangeLogsListCall { c.urlParams_.Set("objectType", objectType) return c @@ -23338,9 +23336,7 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe // "OBJECT_TARGETING_TEMPLATE", // "OBJECT_SEARCH_LIFT_STUDY", // "OBJECT_FLOODLIGHT_DV360_LINK", - // "OBJECT_ADVERTISER_CUSTOMER_LINK", - // "OBJECT_CREATIVE_PROJECT", - // "OBJECT_ACCOUNT_CAMPAIGN_CREATIVE_PROJECT_LINK" + // "OBJECT_ADVERTISER_CUSTOMER_LINK" // ], // "enumDescriptions": [ // "", @@ -23383,8 +23379,6 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe // "", // "", // "", - // "", - // "", // "" // ], // "location": "query", diff --git a/dfareporting/v4/dfareporting-api.json b/dfareporting/v4/dfareporting-api.json index f2c9a137b70..fd07fe6aa3f 100644 --- a/dfareporting/v4/dfareporting-api.json +++ b/dfareporting/v4/dfareporting-api.json @@ -2633,9 +2633,7 @@ "OBJECT_TARGETING_TEMPLATE", "OBJECT_SEARCH_LIFT_STUDY", "OBJECT_FLOODLIGHT_DV360_LINK", - "OBJECT_ADVERTISER_CUSTOMER_LINK", - "OBJECT_CREATIVE_PROJECT", - "OBJECT_ACCOUNT_CAMPAIGN_CREATIVE_PROJECT_LINK" + "OBJECT_ADVERTISER_CUSTOMER_LINK" ], "enumDescriptions": [ "", @@ -2678,8 +2676,6 @@ "", "", "", - "", - "", "" ], "location": "query", @@ -10036,7 +10032,7 @@ } } }, - "revision": "20220607", + "revision": "20220611", "rootUrl": "https://dfareporting.googleapis.com/", "schemas": { "Account": { diff --git a/dfareporting/v4/dfareporting-gen.go b/dfareporting/v4/dfareporting-gen.go index 891ddd150a2..14e5a363337 100644 --- a/dfareporting/v4/dfareporting-gen.go +++ b/dfareporting/v4/dfareporting-gen.go @@ -25087,8 +25087,6 @@ func (c *ChangeLogsListCall) ObjectIds(objectIds ...int64) *ChangeLogsListCall { // "OBJECT_SEARCH_LIFT_STUDY" // "OBJECT_FLOODLIGHT_DV360_LINK" // "OBJECT_ADVERTISER_CUSTOMER_LINK" -// "OBJECT_CREATIVE_PROJECT" -// "OBJECT_ACCOUNT_CAMPAIGN_CREATIVE_PROJECT_LINK" func (c *ChangeLogsListCall) ObjectType(objectType string) *ChangeLogsListCall { c.urlParams_.Set("objectType", objectType) return c @@ -25346,9 +25344,7 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe // "OBJECT_TARGETING_TEMPLATE", // "OBJECT_SEARCH_LIFT_STUDY", // "OBJECT_FLOODLIGHT_DV360_LINK", - // "OBJECT_ADVERTISER_CUSTOMER_LINK", - // "OBJECT_CREATIVE_PROJECT", - // "OBJECT_ACCOUNT_CAMPAIGN_CREATIVE_PROJECT_LINK" + // "OBJECT_ADVERTISER_CUSTOMER_LINK" // ], // "enumDescriptions": [ // "", @@ -25391,8 +25387,6 @@ func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListRe // "", // "", // "", - // "", - // "", // "" // ], // "location": "query", diff --git a/docs/v1/docs-api.json b/docs/v1/docs-api.json index a85d1e3ebc3..3bcb2070649 100644 --- a/docs/v1/docs-api.json +++ b/docs/v1/docs-api.json @@ -216,7 +216,7 @@ } } }, - "revision": "20220601", + "revision": "20220609", "rootUrl": "https://docs.googleapis.com/", "schemas": { "AutoText": { @@ -2411,7 +2411,7 @@ "type": "string" }, "pageBreakBefore": { - "description": "Whether the current paragraph should always start at the beginning of a page. If unset, the value is inherited from the parent. Attempting to update page_break_before for paragraphs in unsupported regions, including Table, Header, Footer and Footnote can result in an invalid document state in which case a 400 bad request error is returned.", + "description": "Whether the current paragraph should always start at the beginning of a page. If unset, the value is inherited from the parent. Attempting to update page_break_before for paragraphs in unsupported regions, including Table, Header, Footer and Footnote, can result in an invalid document state which returns a 400 bad request error.", "type": "boolean" }, "shading": { @@ -3454,7 +3454,7 @@ "properties": { "paragraphStyle": { "$ref": "ParagraphStyle", - "description": "A ParagraphStyle that only includes the changes made in this suggestion. This can be used along with the paragraph_suggestion_state to see which fields have changed and their new values." + "description": "A ParagraphStyle that only includes the changes made in this suggestion. This can be used along with the paragraph_style_suggestion_state to see which fields have changed and their new values." }, "paragraphStyleSuggestionState": { "$ref": "ParagraphStyleSuggestionState", @@ -4168,7 +4168,7 @@ "id": "UpdateParagraphStyleRequest", "properties": { "fields": { - "description": "The fields that should be updated. At least one field must be specified. The root `paragraph_style` is implied and should not be specified. For example, to update the paragraph style's alignment property, set `fields` to `\"alignment\"`. To reset a property to its default value, include its field name in the field mask but leave the field itself unset.", + "description": "The fields that should be updated. At least one field must be specified. The root `paragraph_style` is implied and should not be specified. A single `\"*\"` can be used as short-hand for listing every field. For example, to update the paragraph style's alignment property, set `fields` to `\"alignment\"`. To reset a property to its default value, include its field name in the field mask but leave the field itself unset.", "format": "google-fieldmask", "type": "string" }, diff --git a/docs/v1/docs-gen.go b/docs/v1/docs-gen.go index 21dd09e1a39..fdd1379a1be 100644 --- a/docs/v1/docs-gen.go +++ b/docs/v1/docs-gen.go @@ -3954,9 +3954,9 @@ type ParagraphStyle struct { // PageBreakBefore: Whether the current paragraph should always start at // the beginning of a page. If unset, the value is inherited from the // parent. Attempting to update page_break_before for paragraphs in - // unsupported regions, including Table, Header, Footer and Footnote can - // result in an invalid document state in which case a 400 bad request - // error is returned. + // unsupported regions, including Table, Header, Footer and Footnote, + // can result in an invalid document state which returns a 400 bad + // request error. PageBreakBefore bool `json:"pageBreakBefore,omitempty"` // Shading: The shading of the paragraph. If unset, the value is @@ -5705,8 +5705,8 @@ func (s *SuggestedNamedStyles) MarshalJSON() ([]byte, error) { type SuggestedParagraphStyle struct { // ParagraphStyle: A ParagraphStyle that only includes the changes made // in this suggestion. This can be used along with the - // paragraph_suggestion_state to see which fields have changed and their - // new values. + // paragraph_style_suggestion_state to see which fields have changed and + // their new values. ParagraphStyle *ParagraphStyle `json:"paragraphStyle,omitempty"` // ParagraphStyleSuggestionState: A mask that indicates which of the @@ -6841,7 +6841,8 @@ func (s *UpdateDocumentStyleRequest) MarshalJSON() ([]byte, error) { type UpdateParagraphStyleRequest struct { // Fields: The fields that should be updated. At least one field must be // specified. The root `paragraph_style` is implied and should not be - // specified. For example, to update the paragraph style's alignment + // specified. A single "*" can be used as short-hand for listing every + // field. For example, to update the paragraph style's alignment // property, set `fields` to "alignment". To reset a property to its // default value, include its field name in the field mask but leave the // field itself unset. diff --git a/doubleclickbidmanager/v1.1/doubleclickbidmanager-api.json b/doubleclickbidmanager/v1.1/doubleclickbidmanager-api.json index ee18ff1cafa..32a9fc294d9 100644 --- a/doubleclickbidmanager/v1.1/doubleclickbidmanager-api.json +++ b/doubleclickbidmanager/v1.1/doubleclickbidmanager-api.json @@ -280,7 +280,7 @@ } } }, - "revision": "20220426", + "revision": "20220607", "rootUrl": "https://doubleclickbidmanager.googleapis.com/", "schemas": { "ChannelGrouping": { @@ -2074,7 +2074,18 @@ "METRIC_WIN_LOSS_DEAL_TARGETED_IMPRESSIONS", "METRIC_WIN_LOSS_LINEITEM_TARGETED_IMPRESSIONS", "METRIC_VERIFICATION_VIDEO_PLAYER_SIZE_MEASURABLE_IMPRESSIONS", - "METRIC_TRUEVIEW_ALL_AD_SEQUENCE_IMPRESSIONS" + "METRIC_TRUEVIEW_ALL_AD_SEQUENCE_IMPRESSIONS", + "METRIC_IMPRESSIONS_COVIEWED", + "METRIC_UNIQUE_REACH_IMPRESSION_REACH_COVIEWED", + "METRIC_UNIQUE_REACH_TOTAL_REACH_COVIEWED", + "METRIC_UNIQUE_REACH_AVERAGE_IMPRESSION_FREQUENCY_COVIEWED", + "METRIC_GRP_CORRECTED_IMPRESSIONS_COVIEWED", + "METRIC_VIRTUAL_PEOPLE_IMPRESSION_REACH_BY_DEMO_COVIEWED", + "METRIC_VIRTUAL_PEOPLE_AVERAGE_IMPRESSION_FREQUENCY_BY_DEMO_COVIEWED", + "METRIC_TARGET_RATING_POINTS_COVIEWED", + "METRIC_DEMO_COMPOSITION_IMPRESSION_COVIEWED", + "METRIC_VIRTUAL_PEOPLE_IMPRESSION_REACH_SHARE_PERCENT_COVIEWED", + "METRIC_VIRTUAL_PEOPLE_IMPRESSION_REACH_PERCENT_COVIEWED" ], "enumDescriptions": [ "", @@ -2541,6 +2552,17 @@ "", "", "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", "" ], "type": "string" diff --git a/doubleclickbidmanager/v1.1/doubleclickbidmanager-gen.go b/doubleclickbidmanager/v1.1/doubleclickbidmanager-gen.go index 71db43acc81..1a1ac59b7e3 100644 --- a/doubleclickbidmanager/v1.1/doubleclickbidmanager-gen.go +++ b/doubleclickbidmanager/v1.1/doubleclickbidmanager-gen.go @@ -1494,6 +1494,18 @@ type Parameters struct { // "METRIC_WIN_LOSS_LINEITEM_TARGETED_IMPRESSIONS" // "METRIC_VERIFICATION_VIDEO_PLAYER_SIZE_MEASURABLE_IMPRESSIONS" // "METRIC_TRUEVIEW_ALL_AD_SEQUENCE_IMPRESSIONS" + // "METRIC_IMPRESSIONS_COVIEWED" + // "METRIC_UNIQUE_REACH_IMPRESSION_REACH_COVIEWED" + // "METRIC_UNIQUE_REACH_TOTAL_REACH_COVIEWED" + // "METRIC_UNIQUE_REACH_AVERAGE_IMPRESSION_FREQUENCY_COVIEWED" + // "METRIC_GRP_CORRECTED_IMPRESSIONS_COVIEWED" + // "METRIC_VIRTUAL_PEOPLE_IMPRESSION_REACH_BY_DEMO_COVIEWED" + // + // "METRIC_VIRTUAL_PEOPLE_AVERAGE_IMPRESSION_FREQUENCY_BY_DEMO_COVIEWED" + // "METRIC_TARGET_RATING_POINTS_COVIEWED" + // "METRIC_DEMO_COMPOSITION_IMPRESSION_COVIEWED" + // "METRIC_VIRTUAL_PEOPLE_IMPRESSION_REACH_SHARE_PERCENT_COVIEWED" + // "METRIC_VIRTUAL_PEOPLE_IMPRESSION_REACH_PERCENT_COVIEWED" Metrics []string `json:"metrics,omitempty"` // Options: Additional query options. diff --git a/eventarc/v1/eventarc-api.json b/eventarc/v1/eventarc-api.json index 45bd58096ce..2295eb72dcb 100644 --- a/eventarc/v1/eventarc-api.json +++ b/eventarc/v1/eventarc-api.json @@ -179,6 +179,89 @@ "resources": { "channelConnections": { "methods": { + "create": { + "description": "Create a new ChannelConnection in a particular project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/channelConnections", + "httpMethod": "POST", + "id": "eventarc.projects.locations.channelConnections.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "channelConnectionId": { + "description": "Required. The user-provided ID to be assigned to the channel connection.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent collection in which to add this channel connection.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/channelConnections", + "request": { + "$ref": "ChannelConnection" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Delete a single ChannelConnection.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/channelConnections/{channelConnectionsId}", + "httpMethod": "DELETE", + "id": "eventarc.projects.locations.channelConnections.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the channel connection to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/channelConnections/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Get a single ChannelConnection.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/channelConnections/{channelConnectionsId}", + "httpMethod": "GET", + "id": "eventarc.projects.locations.channelConnections.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the channel connection to get.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/channelConnections/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "ChannelConnection" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "getIamPolicy": { "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/channelConnections/{channelConnectionsId}:getIamPolicy", @@ -195,7 +278,7 @@ "type": "integer" }, "resource": { - "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + "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/[^/]+/channelConnections/[^/]+$", "required": true, @@ -210,6 +293,42 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "list": { + "description": "List channel connections.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/channelConnections", + "httpMethod": "GET", + "id": "eventarc.projects.locations.channelConnections.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of channel connections to return on each page. Note: The service may send fewer responses.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The page token; provide the value from the `next_page_token` field in a previous `ListChannelConnections` call to retrieve the subsequent page. When paginating, all other parameters provided to `ListChannelConnetions` match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent collection from which to list channel connections.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/channelConnections", + "response": { + "$ref": "ListChannelConnectionsResponse" + }, + "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}/channelConnections/{channelConnectionsId}:setIamPolicy", @@ -220,7 +339,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + "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/[^/]+/channelConnections/[^/]+$", "required": true, @@ -248,7 +367,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + "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/[^/]+/channelConnections/[^/]+$", "required": true, @@ -379,7 +498,7 @@ "type": "integer" }, "resource": { - "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + "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/[^/]+/channels/[^/]+$", "required": true, @@ -484,7 +603,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + "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/[^/]+/channels/[^/]+$", "required": true, @@ -512,7 +631,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + "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/[^/]+/channels/[^/]+$", "required": true, @@ -851,7 +970,7 @@ "type": "integer" }, "resource": { - "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + "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/[^/]+/triggers/[^/]+$", "required": true, @@ -966,7 +1085,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + "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/[^/]+/triggers/[^/]+$", "required": true, @@ -994,7 +1113,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + "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/[^/]+/triggers/[^/]+$", "required": true, @@ -1019,7 +1138,7 @@ } } }, - "revision": "20220429", + "revision": "20220607", "rootUrl": "https://eventarc.googleapis.com/", "schemas": { "AuditConfig": { @@ -1151,6 +1270,42 @@ }, "type": "object" }, + "ChannelConnection": { + "description": "A representation of the ChannelConnection resource. A ChannelConnection is a resource which event providers create during the activation process to establish a connection between the provider and the subscriber channel.", + "id": "ChannelConnection", + "properties": { + "activationToken": { + "description": "Input only. Activation token for the channel. The token will be used during the creation of ChannelConnection to bind the channel with the provider project. This field will not be stored in the provider resource.", + "type": "string" + }, + "channel": { + "description": "Required. The name of the connected subscriber Channel. This is a weak reference to avoid cross project and cross accounts references. This must be in `projects/{project}/location/{location}/channels/{channel_id}` format.", + "type": "string" + }, + "createTime": { + "description": "Output only. The creation time.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Required. The name of the connection.", + "type": "string" + }, + "uid": { + "description": "Output only. / Output only. Server assigned ID of the resource. The server guarantees uniqueness and immutability until deleted.", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. The last-modified time.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "CloudRun": { "description": "Represents a Cloud Run destination.", "id": "CloudRun", @@ -1411,6 +1566,31 @@ }, "type": "object" }, + "ListChannelConnectionsResponse": { + "description": "The response message for the `ListChannelConnections` method.", + "id": "ListChannelConnectionsResponse", + "properties": { + "channelConnections": { + "description": "The requested channel connections, up to the number specified in `page_size`.", + "items": { + "$ref": "ChannelConnection" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A page token that can be sent to ListChannelConnections to request the next page. If this is empty, then there are no more pages.", + "type": "string" + }, + "unreachable": { + "description": "Unreachable resources, if any.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "ListChannelsResponse": { "description": "The response message for the `ListChannels` method.", "id": "ListChannelsResponse", @@ -1670,6 +1850,59 @@ }, "type": "object" }, + "StateCondition": { + "description": "A condition that is part of the trigger state computation.", + "id": "StateCondition", + "properties": { + "code": { + "description": "The canonical code of the condition.", + "enum": [ + "OK", + "CANCELLED", + "UNKNOWN", + "INVALID_ARGUMENT", + "DEADLINE_EXCEEDED", + "NOT_FOUND", + "ALREADY_EXISTS", + "PERMISSION_DENIED", + "UNAUTHENTICATED", + "RESOURCE_EXHAUSTED", + "FAILED_PRECONDITION", + "ABORTED", + "OUT_OF_RANGE", + "UNIMPLEMENTED", + "INTERNAL", + "UNAVAILABLE", + "DATA_LOSS" + ], + "enumDescriptions": [ + "Not an error; returned on success HTTP Mapping: 200 OK", + "The operation was cancelled, typically by the caller. HTTP Mapping: 499 Client Closed Request", + "Unknown error. For example, this error may be returned when a `Status` value received from another address space belongs to an error space that is not known in this address space. Also errors raised by APIs that do not return enough error information may be converted to this error. HTTP Mapping: 500 Internal Server Error", + "The client specified an invalid argument. Note that this differs from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments that are problematic regardless of the state of the system (e.g., a malformed file name). HTTP Mapping: 400 Bad Request", + "The deadline expired before the operation could complete. For operations that change the state of the system, this error may be returned even if the operation has completed successfully. For example, a successful response from a server could have been delayed long enough for the deadline to expire. HTTP Mapping: 504 Gateway Timeout", + "Some requested entity (e.g., file or directory) was not found. Note to server developers: if a request is denied for an entire class of users, such as gradual feature rollout or undocumented allowlist, `NOT_FOUND` may be used. If a request is denied for some users within a class of users, such as user-based access control, `PERMISSION_DENIED` must be used. HTTP Mapping: 404 Not Found", + "The entity that a client attempted to create (e.g., file or directory) already exists. HTTP Mapping: 409 Conflict", + "The caller does not have permission to execute the specified operation. `PERMISSION_DENIED` must not be used for rejections caused by exhausting some resource (use `RESOURCE_EXHAUSTED` instead for those errors). `PERMISSION_DENIED` must not be used if the caller can not be identified (use `UNAUTHENTICATED` instead for those errors). This error code does not imply the request is valid or the requested entity exists or satisfies other pre-conditions. HTTP Mapping: 403 Forbidden", + "The request does not have valid authentication credentials for the operation. HTTP Mapping: 401 Unauthorized", + "Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space. HTTP Mapping: 429 Too Many Requests", + "The operation was rejected because the system is not in a state required for the operation's execution. For example, the directory to be deleted is non-empty, an rmdir operation is applied to a non-directory, etc. Service implementors can use the following guidelines to decide between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: (a) Use `UNAVAILABLE` if the client can retry just the failing call. (b) Use `ABORTED` if the client should retry at a higher level. For example, when a client-specified test-and-set fails, indicating the client should restart a read-modify-write sequence. (c) Use `FAILED_PRECONDITION` if the client should not retry until the system state has been explicitly fixed. For example, if an \"rmdir\" fails because the directory is non-empty, `FAILED_PRECONDITION` should be returned since the client should not retry unless the files are deleted from the directory. HTTP Mapping: 400 Bad Request", + "The operation was aborted, typically due to a concurrency issue such as a sequencer check failure or transaction abort. See the guidelines above for deciding between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping: 409 Conflict", + "The operation was attempted past the valid range. E.g., seeking or reading past end-of-file. Unlike `INVALID_ARGUMENT`, this error indicates a problem that may be fixed if the system state changes. For example, a 32-bit file system will generate `INVALID_ARGUMENT` if asked to read at an offset that is not in the range [0,2^32-1], but it will generate `OUT_OF_RANGE` if asked to read from an offset past the current file size. There is a fair bit of overlap between `FAILED_PRECONDITION` and `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific error) when it applies so that callers who are iterating through a space can easily look for an `OUT_OF_RANGE` error to detect when they are done. HTTP Mapping: 400 Bad Request", + "The operation is not implemented or is not supported/enabled in this service. HTTP Mapping: 501 Not Implemented", + "Internal errors. This means that some invariants expected by the underlying system have been broken. This error code is reserved for serious errors. HTTP Mapping: 500 Internal Server Error", + "The service is currently unavailable. This is most likely a transient condition, which can be corrected by retrying with a backoff. Note that it is not always safe to retry non-idempotent operations. See the guidelines above for deciding between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping: 503 Service Unavailable", + "Unrecoverable data loss or corruption. HTTP Mapping: 500 Internal Server Error" + ], + "type": "string" + }, + "message": { + "description": "Human-readable message.", + "type": "string" + } + }, + "type": "object" + }, "TestIamPermissionsRequest": { "description": "Request message for `TestIamPermissions` method.", "id": "TestIamPermissionsRequest", @@ -1717,6 +1950,14 @@ "description": "Optional. The name of the channel associated with the trigger in `projects/{project}/locations/{location}/channels/{channel}` format. You must provide a channel to receive events from Eventarc SaaS partners.", "type": "string" }, + "conditions": { + "additionalProperties": { + "$ref": "StateCondition" + }, + "description": "Output only. The reason(s) why a trigger is in FAILED state.", + "readOnly": true, + "type": "object" + }, "createTime": { "description": "Output only. The creation time.", "format": "google-datetime", diff --git a/eventarc/v1/eventarc-gen.go b/eventarc/v1/eventarc-gen.go index 15fc4ce582d..938addd6519 100644 --- a/eventarc/v1/eventarc-gen.go +++ b/eventarc/v1/eventarc-gen.go @@ -474,6 +474,65 @@ func (s *Channel) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ChannelConnection: A representation of the ChannelConnection +// resource. A ChannelConnection is a resource which event providers +// create during the activation process to establish a connection +// between the provider and the subscriber channel. +type ChannelConnection struct { + // ActivationToken: Input only. Activation token for the channel. The + // token will be used during the creation of ChannelConnection to bind + // the channel with the provider project. This field will not be stored + // in the provider resource. + ActivationToken string `json:"activationToken,omitempty"` + + // Channel: Required. The name of the connected subscriber Channel. This + // is a weak reference to avoid cross project and cross accounts + // references. This must be in + // `projects/{project}/location/{location}/channels/{channel_id}` + // format. + Channel string `json:"channel,omitempty"` + + // CreateTime: Output only. The creation time. + CreateTime string `json:"createTime,omitempty"` + + // Name: Required. The name of the connection. + Name string `json:"name,omitempty"` + + // Uid: Output only. / Output only. Server assigned ID of the resource. + // The server guarantees uniqueness and immutability until deleted. + Uid string `json:"uid,omitempty"` + + // UpdateTime: Output only. The last-modified time. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ActivationToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ActivationToken") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ChannelConnection) MarshalJSON() ([]byte, error) { + type NoMethod ChannelConnection + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CloudRun: Represents a Cloud Run destination. type CloudRun struct { // Path: Optional. The relative path on the Cloud Run service the events @@ -954,6 +1013,49 @@ func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListChannelConnectionsResponse: The response message for the +// `ListChannelConnections` method. +type ListChannelConnectionsResponse struct { + // ChannelConnections: The requested channel connections, up to the + // number specified in `page_size`. + ChannelConnections []*ChannelConnection `json:"channelConnections,omitempty"` + + // NextPageToken: A page token that can be sent to + // ListChannelConnections to request the next page. If this is empty, + // then there are no more pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Unreachable: Unreachable resources, if any. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "ChannelConnections") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ChannelConnections") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ListChannelConnectionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListChannelConnectionsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListChannelsResponse: The response message for the `ListChannels` // method. type ListChannelsResponse struct { @@ -1446,6 +1548,127 @@ func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// StateCondition: A condition that is part of the trigger state +// computation. +type StateCondition struct { + // Code: The canonical code of the condition. + // + // Possible values: + // "OK" - Not an error; returned on success HTTP Mapping: 200 OK + // "CANCELLED" - The operation was cancelled, typically by the caller. + // HTTP Mapping: 499 Client Closed Request + // "UNKNOWN" - Unknown error. For example, this error may be returned + // when a `Status` value received from another address space belongs to + // an error space that is not known in this address space. Also errors + // raised by APIs that do not return enough error information may be + // converted to this error. HTTP Mapping: 500 Internal Server Error + // "INVALID_ARGUMENT" - The client specified an invalid argument. Note + // that this differs from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` + // indicates arguments that are problematic regardless of the state of + // the system (e.g., a malformed file name). HTTP Mapping: 400 Bad + // Request + // "DEADLINE_EXCEEDED" - The deadline expired before the operation + // could complete. For operations that change the state of the system, + // this error may be returned even if the operation has completed + // successfully. For example, a successful response from a server could + // have been delayed long enough for the deadline to expire. HTTP + // Mapping: 504 Gateway Timeout + // "NOT_FOUND" - Some requested entity (e.g., file or directory) was + // not found. Note to server developers: if a request is denied for an + // entire class of users, such as gradual feature rollout or + // undocumented allowlist, `NOT_FOUND` may be used. If a request is + // denied for some users within a class of users, such as user-based + // access control, `PERMISSION_DENIED` must be used. HTTP Mapping: 404 + // Not Found + // "ALREADY_EXISTS" - The entity that a client attempted to create + // (e.g., file or directory) already exists. HTTP Mapping: 409 Conflict + // "PERMISSION_DENIED" - The caller does not have permission to + // execute the specified operation. `PERMISSION_DENIED` must not be used + // for rejections caused by exhausting some resource (use + // `RESOURCE_EXHAUSTED` instead for those errors). `PERMISSION_DENIED` + // must not be used if the caller can not be identified (use + // `UNAUTHENTICATED` instead for those errors). This error code does not + // imply the request is valid or the requested entity exists or + // satisfies other pre-conditions. HTTP Mapping: 403 Forbidden + // "UNAUTHENTICATED" - The request does not have valid authentication + // credentials for the operation. HTTP Mapping: 401 Unauthorized + // "RESOURCE_EXHAUSTED" - Some resource has been exhausted, perhaps a + // per-user quota, or perhaps the entire file system is out of space. + // HTTP Mapping: 429 Too Many Requests + // "FAILED_PRECONDITION" - The operation was rejected because the + // system is not in a state required for the operation's execution. For + // example, the directory to be deleted is non-empty, an rmdir operation + // is applied to a non-directory, etc. Service implementors can use the + // following guidelines to decide between `FAILED_PRECONDITION`, + // `ABORTED`, and `UNAVAILABLE`: (a) Use `UNAVAILABLE` if the client can + // retry just the failing call. (b) Use `ABORTED` if the client should + // retry at a higher level. For example, when a client-specified + // test-and-set fails, indicating the client should restart a + // read-modify-write sequence. (c) Use `FAILED_PRECONDITION` if the + // client should not retry until the system state has been explicitly + // fixed. For example, if an "rmdir" fails because the directory is + // non-empty, `FAILED_PRECONDITION` should be returned since the client + // should not retry unless the files are deleted from the directory. + // HTTP Mapping: 400 Bad Request + // "ABORTED" - The operation was aborted, typically due to a + // concurrency issue such as a sequencer check failure or transaction + // abort. See the guidelines above for deciding between + // `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping: + // 409 Conflict + // "OUT_OF_RANGE" - The operation was attempted past the valid range. + // E.g., seeking or reading past end-of-file. Unlike `INVALID_ARGUMENT`, + // this error indicates a problem that may be fixed if the system state + // changes. For example, a 32-bit file system will generate + // `INVALID_ARGUMENT` if asked to read at an offset that is not in the + // range [0,2^32-1], but it will generate `OUT_OF_RANGE` if asked to + // read from an offset past the current file size. There is a fair bit + // of overlap between `FAILED_PRECONDITION` and `OUT_OF_RANGE`. We + // recommend using `OUT_OF_RANGE` (the more specific error) when it + // applies so that callers who are iterating through a space can easily + // look for an `OUT_OF_RANGE` error to detect when they are done. HTTP + // Mapping: 400 Bad Request + // "UNIMPLEMENTED" - The operation is not implemented or is not + // supported/enabled in this service. HTTP Mapping: 501 Not Implemented + // "INTERNAL" - Internal errors. This means that some invariants + // expected by the underlying system have been broken. This error code + // is reserved for serious errors. HTTP Mapping: 500 Internal Server + // Error + // "UNAVAILABLE" - The service is currently unavailable. This is most + // likely a transient condition, which can be corrected by retrying with + // a backoff. Note that it is not always safe to retry non-idempotent + // operations. See the guidelines above for deciding between + // `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping: + // 503 Service Unavailable + // "DATA_LOSS" - Unrecoverable data loss or corruption. HTTP Mapping: + // 500 Internal Server Error + Code string `json:"code,omitempty"` + + // Message: Human-readable message. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *StateCondition) MarshalJSON() ([]byte, error) { + type NoMethod StateCondition + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // TestIamPermissionsRequest: Request message for `TestIamPermissions` // method. type TestIamPermissionsRequest struct { @@ -1551,6 +1774,10 @@ type Trigger struct { // partners. Channel string `json:"channel,omitempty"` + // Conditions: Output only. The reason(s) why a trigger is in FAILED + // state. + Conditions map[string]StateCondition `json:"conditions,omitempty"` + // CreateTime: Output only. The creation time. CreateTime string `json:"createTime,omitempty"` @@ -1789,45 +2016,517 @@ type ProjectsLocationsListCall struct { header_ http.Header } -// List: Lists information about the supported locations for this -// service. +// List: Lists information about the supported locations for this +// service. +// +// - name: The resource that owns the locations collection, if +// applicable. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": A filter to narrow down +// results to a preferred subset. The filtering language accepts strings +// like "displayName=tokyo", and is documented in more detail in +// AIP-160 (https://google.aip.dev/160). +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return. If not set, the service selects a default. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token +// received from the `next_page_token` field in the response. Send that +// page token to receive the subsequent page. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "eventarc.projects.locations.list" call. +// Exactly one of *ListLocationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.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 *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, 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, &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, err + } + ret := &ListLocationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists information about the supported locations for this service.", + // "flatPath": "v1/projects/{projectsId}/locations", + // "httpMethod": "GET", + // "id": "eventarc.projects.locations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The resource that owns the locations collection, if applicable.", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of results to return. If not set, the service selects a default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}/locations", + // "response": { + // "$ref": "ListLocationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "eventarc.projects.locations.channelConnections.create": + +type ProjectsLocationsChannelConnectionsCreateCall struct { + s *Service + parent string + channelconnection *ChannelConnection + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Create a new ChannelConnection in a particular project and +// location. +// +// - parent: The parent collection in which to add this channel +// connection. +func (r *ProjectsLocationsChannelConnectionsService) Create(parent string, channelconnection *ChannelConnection) *ProjectsLocationsChannelConnectionsCreateCall { + c := &ProjectsLocationsChannelConnectionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.channelconnection = channelconnection + return c +} + +// ChannelConnectionId sets the optional parameter +// "channelConnectionId": Required. The user-provided ID to be assigned +// to the channel connection. +func (c *ProjectsLocationsChannelConnectionsCreateCall) ChannelConnectionId(channelConnectionId string) *ProjectsLocationsChannelConnectionsCreateCall { + c.urlParams_.Set("channelConnectionId", channelConnectionId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsChannelConnectionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsChannelConnectionsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsChannelConnectionsCreateCall) Context(ctx context.Context) *ProjectsLocationsChannelConnectionsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsChannelConnectionsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsChannelConnectionsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.channelconnection) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/channelConnections") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "eventarc.projects.locations.channelConnections.create" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsChannelConnectionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &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, err + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Create a new ChannelConnection in a particular project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/channelConnections", + // "httpMethod": "POST", + // "id": "eventarc.projects.locations.channelConnections.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "channelConnectionId": { + // "description": "Required. The user-provided ID to be assigned to the channel connection.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent collection in which to add this channel connection.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/channelConnections", + // "request": { + // "$ref": "ChannelConnection" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "eventarc.projects.locations.channelConnections.delete": + +type ProjectsLocationsChannelConnectionsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Delete a single ChannelConnection. +// +// - name: The name of the channel connection to delete. +func (r *ProjectsLocationsChannelConnectionsService) Delete(name string) *ProjectsLocationsChannelConnectionsDeleteCall { + c := &ProjectsLocationsChannelConnectionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsChannelConnectionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsChannelConnectionsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsChannelConnectionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsChannelConnectionsDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsChannelConnectionsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsChannelConnectionsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "eventarc.projects.locations.channelConnections.delete" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsChannelConnectionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &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, err + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Delete a single ChannelConnection.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/channelConnections/{channelConnectionsId}", + // "httpMethod": "DELETE", + // "id": "eventarc.projects.locations.channelConnections.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the channel connection to delete.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/channelConnections/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "eventarc.projects.locations.channelConnections.get": + +type ProjectsLocationsChannelConnectionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get a single ChannelConnection. // -// - name: The resource that owns the locations collection, if -// applicable. -func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { - c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the channel connection to get. +func (r *ProjectsLocationsChannelConnectionsService) Get(name string) *ProjectsLocationsChannelConnectionsGetCall { + c := &ProjectsLocationsChannelConnectionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } -// Filter sets the optional parameter "filter": A filter to narrow down -// results to a preferred subset. The filtering language accepts strings -// like "displayName=tokyo", and is documented in more detail in -// AIP-160 (https://google.aip.dev/160). -func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return. If not set, the service selects a default. -func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token -// received from the `next_page_token` field in the response. Send that -// page token to receive the subsequent page. -func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { +func (c *ProjectsLocationsChannelConnectionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsChannelConnectionsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -1837,7 +2536,7 @@ func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocati // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { +func (c *ProjectsLocationsChannelConnectionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsChannelConnectionsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -1845,21 +2544,21 @@ func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocat // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { +func (c *ProjectsLocationsChannelConnectionsGetCall) Context(ctx context.Context) *ProjectsLocationsChannelConnectionsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsListCall) Header() http.Header { +func (c *ProjectsLocationsChannelConnectionsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsChannelConnectionsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -1872,7 +2571,7 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -1885,14 +2584,14 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "eventarc.projects.locations.list" call. -// Exactly one of *ListLocationsResponse or error will be non-nil. Any +// Do executes the "eventarc.projects.locations.channelConnections.get" call. +// Exactly one of *ChannelConnection or error will be non-nil. Any // non-2xx status code is an error. Response headers are in either -// *ListLocationsResponse.ServerResponse.Header or (if a response was +// *ChannelConnection.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 *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { +func (c *ProjectsLocationsChannelConnectionsGetCall) Do(opts ...googleapi.CallOption) (*ChannelConnection, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -1911,7 +2610,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ListLocationsResponse{ + ret := &ChannelConnection{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -1923,41 +2622,25 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat } return ret, nil // { - // "description": "Lists information about the supported locations for this service.", - // "flatPath": "v1/projects/{projectsId}/locations", + // "description": "Get a single ChannelConnection.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/channelConnections/{channelConnectionsId}", // "httpMethod": "GET", - // "id": "eventarc.projects.locations.list", + // "id": "eventarc.projects.locations.channelConnections.get", // "parameterOrder": [ // "name" // ], // "parameters": { - // "filter": { - // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", - // "location": "query", - // "type": "string" - // }, // "name": { - // "description": "The resource that owns the locations collection, if applicable.", + // "description": "Required. The name of the channel connection to get.", // "location": "path", - // "pattern": "^projects/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/channelConnections/[^/]+$", // "required": true, // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of results to return. If not set, the service selects a default.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", - // "location": "query", - // "type": "string" // } // }, - // "path": "v1/{+name}/locations", + // "path": "v1/{+name}", // "response": { - // "$ref": "ListLocationsResponse" + // "$ref": "ChannelConnection" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -1966,27 +2649,6 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat } -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - // method id "eventarc.projects.locations.channelConnections.getIamPolicy": type ProjectsLocationsChannelConnectionsGetIamPolicyCall struct { @@ -2003,8 +2665,9 @@ type ProjectsLocationsChannelConnectionsGetIamPolicyCall struct { // set. // // - resource: REQUIRED: The resource for which the policy is being -// requested. See the operation documentation for the appropriate -// value for this field. +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. func (r *ProjectsLocationsChannelConnectionsService) GetIamPolicy(resource string) *ProjectsLocationsChannelConnectionsGetIamPolicyCall { c := &ProjectsLocationsChannelConnectionsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -2143,7 +2806,7 @@ func (c *ProjectsLocationsChannelConnectionsGetIamPolicyCall) Do(opts ...googlea // "type": "integer" // }, // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + // "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/[^/]+/channelConnections/[^/]+$", // "required": true, @@ -2161,6 +2824,203 @@ func (c *ProjectsLocationsChannelConnectionsGetIamPolicyCall) Do(opts ...googlea } +// method id "eventarc.projects.locations.channelConnections.list": + +type ProjectsLocationsChannelConnectionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: List channel connections. +// +// - parent: The parent collection from which to list channel +// connections. +func (r *ProjectsLocationsChannelConnectionsService) List(parent string) *ProjectsLocationsChannelConnectionsListCall { + c := &ProjectsLocationsChannelConnectionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of channel connections to return on each page. Note: The service may +// send fewer responses. +func (c *ProjectsLocationsChannelConnectionsListCall) PageSize(pageSize int64) *ProjectsLocationsChannelConnectionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The page token; +// provide the value from the `next_page_token` field in a previous +// `ListChannelConnections` call to retrieve the subsequent page. When +// paginating, all other parameters provided to `ListChannelConnetions` +// match the call that provided the page token. +func (c *ProjectsLocationsChannelConnectionsListCall) PageToken(pageToken string) *ProjectsLocationsChannelConnectionsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsChannelConnectionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsChannelConnectionsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsChannelConnectionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsChannelConnectionsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsChannelConnectionsListCall) Context(ctx context.Context) *ProjectsLocationsChannelConnectionsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsChannelConnectionsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsChannelConnectionsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/channelConnections") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "eventarc.projects.locations.channelConnections.list" call. +// Exactly one of *ListChannelConnectionsResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListChannelConnectionsResponse.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 *ProjectsLocationsChannelConnectionsListCall) Do(opts ...googleapi.CallOption) (*ListChannelConnectionsResponse, 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, &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, err + } + ret := &ListChannelConnectionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "List channel connections.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/channelConnections", + // "httpMethod": "GET", + // "id": "eventarc.projects.locations.channelConnections.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of channel connections to return on each page. Note: The service may send fewer responses.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The page token; provide the value from the `next_page_token` field in a previous `ListChannelConnections` call to retrieve the subsequent page. When paginating, all other parameters provided to `ListChannelConnetions` match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent collection from which to list channel connections.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/channelConnections", + // "response": { + // "$ref": "ListChannelConnectionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsChannelConnectionsListCall) Pages(ctx context.Context, f func(*ListChannelConnectionsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + // method id "eventarc.projects.locations.channelConnections.setIamPolicy": type ProjectsLocationsChannelConnectionsSetIamPolicyCall struct { @@ -2177,8 +3037,9 @@ type ProjectsLocationsChannelConnectionsSetIamPolicyCall struct { // `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. // // - resource: REQUIRED: The resource for which the policy is being -// specified. See the operation documentation for the appropriate -// value for this field. +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. func (r *ProjectsLocationsChannelConnectionsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsChannelConnectionsSetIamPolicyCall { c := &ProjectsLocationsChannelConnectionsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -2286,7 +3147,7 @@ func (c *ProjectsLocationsChannelConnectionsSetIamPolicyCall) Do(opts ...googlea // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + // "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/[^/]+/channelConnections/[^/]+$", // "required": true, @@ -2326,7 +3187,8 @@ type ProjectsLocationsChannelConnectionsTestIamPermissionsCall struct { // operation may "fail open" without warning. // // - resource: REQUIRED: The resource for which the policy detail is -// being requested. See the operation documentation for the +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the // appropriate value for this field. func (r *ProjectsLocationsChannelConnectionsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsChannelConnectionsTestIamPermissionsCall { c := &ProjectsLocationsChannelConnectionsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -2435,7 +3297,7 @@ func (c *ProjectsLocationsChannelConnectionsTestIamPermissionsCall) Do(opts ...g // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + // "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/[^/]+/channelConnections/[^/]+$", // "required": true, @@ -2928,8 +3790,9 @@ type ProjectsLocationsChannelsGetIamPolicyCall struct { // set. // // - resource: REQUIRED: The resource for which the policy is being -// requested. See the operation documentation for the appropriate -// value for this field. +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. func (r *ProjectsLocationsChannelsService) GetIamPolicy(resource string) *ProjectsLocationsChannelsGetIamPolicyCall { c := &ProjectsLocationsChannelsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -3068,7 +3931,7 @@ func (c *ProjectsLocationsChannelsGetIamPolicyCall) Do(opts ...googleapi.CallOpt // "type": "integer" // }, // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + // "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/[^/]+/channels/[^/]+$", // "required": true, @@ -3484,8 +4347,9 @@ type ProjectsLocationsChannelsSetIamPolicyCall struct { // `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. // // - resource: REQUIRED: The resource for which the policy is being -// specified. See the operation documentation for the appropriate -// value for this field. +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. func (r *ProjectsLocationsChannelsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsChannelsSetIamPolicyCall { c := &ProjectsLocationsChannelsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -3593,7 +4457,7 @@ func (c *ProjectsLocationsChannelsSetIamPolicyCall) Do(opts ...googleapi.CallOpt // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + // "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/[^/]+/channels/[^/]+$", // "required": true, @@ -3633,7 +4497,8 @@ type ProjectsLocationsChannelsTestIamPermissionsCall struct { // operation may "fail open" without warning. // // - resource: REQUIRED: The resource for which the policy detail is -// being requested. See the operation documentation for the +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the // appropriate value for this field. func (r *ProjectsLocationsChannelsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsChannelsTestIamPermissionsCall { c := &ProjectsLocationsChannelsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -3742,7 +4607,7 @@ func (c *ProjectsLocationsChannelsTestIamPermissionsCall) Do(opts ...googleapi.C // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + // "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/[^/]+/channels/[^/]+$", // "required": true, @@ -5277,8 +6142,9 @@ type ProjectsLocationsTriggersGetIamPolicyCall struct { // set. // // - resource: REQUIRED: The resource for which the policy is being -// requested. See the operation documentation for the appropriate -// value for this field. +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. func (r *ProjectsLocationsTriggersService) GetIamPolicy(resource string) *ProjectsLocationsTriggersGetIamPolicyCall { c := &ProjectsLocationsTriggersGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -5417,7 +6283,7 @@ func (c *ProjectsLocationsTriggersGetIamPolicyCall) Do(opts ...googleapi.CallOpt // "type": "integer" // }, // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + // "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/[^/]+/triggers/[^/]+$", // "required": true, @@ -5861,8 +6727,9 @@ type ProjectsLocationsTriggersSetIamPolicyCall struct { // `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. // // - resource: REQUIRED: The resource for which the policy is being -// specified. See the operation documentation for the appropriate -// value for this field. +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. func (r *ProjectsLocationsTriggersService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsTriggersSetIamPolicyCall { c := &ProjectsLocationsTriggersSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -5970,7 +6837,7 @@ func (c *ProjectsLocationsTriggersSetIamPolicyCall) Do(opts ...googleapi.CallOpt // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + // "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/[^/]+/triggers/[^/]+$", // "required": true, @@ -6010,7 +6877,8 @@ type ProjectsLocationsTriggersTestIamPermissionsCall struct { // operation may "fail open" without warning. // // - resource: REQUIRED: The resource for which the policy detail is -// being requested. See the operation documentation for the +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the // appropriate value for this field. func (r *ProjectsLocationsTriggersService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsTriggersTestIamPermissionsCall { c := &ProjectsLocationsTriggersTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -6119,7 +6987,7 @@ func (c *ProjectsLocationsTriggersTestIamPermissionsCall) Do(opts ...googleapi.C // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + // "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/[^/]+/triggers/[^/]+$", // "required": true, diff --git a/eventarc/v1beta1/eventarc-api.json b/eventarc/v1beta1/eventarc-api.json index 6bd2986e90b..d4d74ce15f4 100644 --- a/eventarc/v1beta1/eventarc-api.json +++ b/eventarc/v1beta1/eventarc-api.json @@ -421,7 +421,7 @@ "type": "integer" }, "resource": { - "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + "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/[^/]+/triggers/[^/]+$", "required": true, @@ -531,7 +531,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + "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/[^/]+/triggers/[^/]+$", "required": true, @@ -559,7 +559,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + "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/[^/]+/triggers/[^/]+$", "required": true, @@ -584,7 +584,7 @@ } } }, - "revision": "20220429", + "revision": "20220607", "rootUrl": "https://eventarc.googleapis.com/", "schemas": { "AuditConfig": { diff --git a/eventarc/v1beta1/eventarc-gen.go b/eventarc/v1beta1/eventarc-gen.go index a6152e1e677..f8c519140ee 100644 --- a/eventarc/v1beta1/eventarc-gen.go +++ b/eventarc/v1beta1/eventarc-gen.go @@ -2720,8 +2720,9 @@ type ProjectsLocationsTriggersGetIamPolicyCall struct { // set. // // - resource: REQUIRED: The resource for which the policy is being -// requested. See the operation documentation for the appropriate -// value for this field. +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. func (r *ProjectsLocationsTriggersService) GetIamPolicy(resource string) *ProjectsLocationsTriggersGetIamPolicyCall { c := &ProjectsLocationsTriggersGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -2860,7 +2861,7 @@ func (c *ProjectsLocationsTriggersGetIamPolicyCall) Do(opts ...googleapi.CallOpt // "type": "integer" // }, // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + // "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/[^/]+/triggers/[^/]+$", // "required": true, @@ -3290,8 +3291,9 @@ type ProjectsLocationsTriggersSetIamPolicyCall struct { // `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. // // - resource: REQUIRED: The resource for which the policy is being -// specified. See the operation documentation for the appropriate -// value for this field. +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. func (r *ProjectsLocationsTriggersService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsTriggersSetIamPolicyCall { c := &ProjectsLocationsTriggersSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -3399,7 +3401,7 @@ func (c *ProjectsLocationsTriggersSetIamPolicyCall) Do(opts ...googleapi.CallOpt // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + // "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/[^/]+/triggers/[^/]+$", // "required": true, @@ -3439,7 +3441,8 @@ type ProjectsLocationsTriggersTestIamPermissionsCall struct { // operation may "fail open" without warning. // // - resource: REQUIRED: The resource for which the policy detail is -// being requested. See the operation documentation for the +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the // appropriate value for this field. func (r *ProjectsLocationsTriggersService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsTriggersTestIamPermissionsCall { c := &ProjectsLocationsTriggersTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -3548,7 +3551,7 @@ func (c *ProjectsLocationsTriggersTestIamPermissionsCall) Do(opts ...googleapi.C // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + // "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/[^/]+/triggers/[^/]+$", // "required": true, diff --git a/gameservices/v1/gameservices-api.json b/gameservices/v1/gameservices-api.json index c9ad3ca05c9..4c888562dfe 100644 --- a/gameservices/v1/gameservices-api.json +++ b/gameservices/v1/gameservices-api.json @@ -1357,7 +1357,7 @@ } } }, - "revision": "20220504", + "revision": "20220602", "rootUrl": "https://gameservices.googleapis.com/", "schemas": { "AuditConfig": { @@ -1512,7 +1512,7 @@ "Default non-attribute.", "Either principal or (if present) authority selector.", "The principal (even if an authority selector is present), which must only be used for attribution, not authorization.", - "Any of the security realms in the IAMContext (go/security-realms). When used with IN, the condition indicates \"any of the request's realms match one of the given values; with NOT_IN, \"none of the realms match any of the given values\". Note that a value can be: - 'self' (i.e., allow connections from clients that are in the same security realm, which is currently but not guaranteed to be campus-sized) - 'self:metro' (i.e., clients that are in the same metro) - 'self:cloud-region' (i.e., allow connections from clients that are in the same cloud region) - 'self:prod-region' (i.e., allow connections from clients that are in the same prod region) - 'guardians' (i.e., allow connections from its guardian realms. See go/security-realms-glossary#guardian for more information.) - a realm (e.g., 'campus-abc') - a realm group (e.g., 'realms-for-borg-cell-xx', see: go/realm-groups) A match is determined by a realm group membership check performed by a RealmAclRep object (go/realm-acl-howto). It is not permitted to grant access based on the *absence* of a realm, so realm conditions can only be used in a \"positive\" context (e.g., ALLOW/IN or DENY/NOT_IN).", + "Any of the security realms in the IAMContext (go/security-realms). When used with IN, the condition indicates \"any of the request's realms match one of the given values; with NOT_IN, \"none of the realms match any of the given values\". Note that a value can be: - 'self:campus' (i.e., clients that are in the same campus) - 'self:metro' (i.e., clients that are in the same metro) - 'self:cloud-region' (i.e., allow connections from clients that are in the same cloud region) - 'self:prod-region' (i.e., allow connections from clients that are in the same prod region) - 'guardians' (i.e., allow connections from its guardian realms. See go/security-realms-glossary#guardian for more information.) - 'self' [DEPRECATED] (i.e., allow connections from clients that are in the same security realm, which is currently but not guaranteed to be campus-sized) - a realm (e.g., 'campus-abc') - a realm group (e.g., 'realms-for-borg-cell-xx', see: go/realm-groups) A match is determined by a realm group membership check performed by a RealmAclRep object (go/realm-acl-howto). It is not permitted to grant access based on the *absence* of a realm, so realm conditions can only be used in a \"positive\" context (e.g., ALLOW/IN or DENY/NOT_IN).", "An approver (distinct from the requester) that has authorized this request. When used with IN, the condition indicates that one of the approvers associated with the request matches the specified principal, or is a member of the specified group. Approvers can only grant additional access, and are thus only used in a strictly positive context (e.g. ALLOW/IN or DENY/NOT_IN).", "What types of justifications have been supplied with this request. String values should match enum names from security.credentials.JustificationType, e.g. \"MANUAL_STRING\". It is not permitted to grant access based on the *absence* of a justification, so justification conditions can only be used in a \"positive\" context (e.g., ALLOW/IN or DENY/NOT_IN). Multiple justifications, e.g., a Buganizer ID and a manually-entered reason, are normal and supported.", "What type of credentials have been supplied with this request. String values should match enum names from security_loas_l2.CredentialsType - currently, only CREDS_TYPE_EMERGENCY is supported. It is not permitted to grant access based on the *absence* of a credentials type, so the conditions can only be used in a \"positive\" context (e.g., ALLOW/IN or DENY/NOT_IN).", diff --git a/gameservices/v1/gameservices-gen.go b/gameservices/v1/gameservices-gen.go index 3031f6e2644..5228652a80f 100644 --- a/gameservices/v1/gameservices-gen.go +++ b/gameservices/v1/gameservices-gen.go @@ -488,15 +488,16 @@ type Condition struct { // (go/security-realms). When used with IN, the condition indicates "any // of the request's realms match one of the given values; with NOT_IN, // "none of the realms match any of the given values". Note that a value - // can be: - 'self' (i.e., allow connections from clients that are in - // the same security realm, which is currently but not guaranteed to be - // campus-sized) - 'self:metro' (i.e., clients that are in the same - // metro) - 'self:cloud-region' (i.e., allow connections from clients - // that are in the same cloud region) - 'self:prod-region' (i.e., allow - // connections from clients that are in the same prod region) - - // 'guardians' (i.e., allow connections from its guardian realms. See - // go/security-realms-glossary#guardian for more information.) - a realm - // (e.g., 'campus-abc') - a realm group (e.g., + // can be: - 'self:campus' (i.e., clients that are in the same campus) - + // 'self:metro' (i.e., clients that are in the same metro) - + // 'self:cloud-region' (i.e., allow connections from clients that are in + // the same cloud region) - 'self:prod-region' (i.e., allow connections + // from clients that are in the same prod region) - 'guardians' (i.e., + // allow connections from its guardian realms. See + // go/security-realms-glossary#guardian for more information.) - 'self' + // [DEPRECATED] (i.e., allow connections from clients that are in the + // same security realm, which is currently but not guaranteed to be + // campus-sized) - a realm (e.g., 'campus-abc') - a realm group (e.g., // 'realms-for-borg-cell-xx', see: go/realm-groups) A match is // determined by a realm group membership check performed by a // RealmAclRep object (go/realm-acl-howto). It is not permitted to grant diff --git a/gameservices/v1beta/gameservices-api.json b/gameservices/v1beta/gameservices-api.json index 50e7f21c382..171fe086458 100644 --- a/gameservices/v1beta/gameservices-api.json +++ b/gameservices/v1beta/gameservices-api.json @@ -1357,7 +1357,7 @@ } } }, - "revision": "20220504", + "revision": "20220602", "rootUrl": "https://gameservices.googleapis.com/", "schemas": { "AuditConfig": { @@ -1512,7 +1512,7 @@ "Default non-attribute.", "Either principal or (if present) authority selector.", "The principal (even if an authority selector is present), which must only be used for attribution, not authorization.", - "Any of the security realms in the IAMContext (go/security-realms). When used with IN, the condition indicates \"any of the request's realms match one of the given values; with NOT_IN, \"none of the realms match any of the given values\". Note that a value can be: - 'self' (i.e., allow connections from clients that are in the same security realm, which is currently but not guaranteed to be campus-sized) - 'self:metro' (i.e., clients that are in the same metro) - 'self:cloud-region' (i.e., allow connections from clients that are in the same cloud region) - 'self:prod-region' (i.e., allow connections from clients that are in the same prod region) - 'guardians' (i.e., allow connections from its guardian realms. See go/security-realms-glossary#guardian for more information.) - a realm (e.g., 'campus-abc') - a realm group (e.g., 'realms-for-borg-cell-xx', see: go/realm-groups) A match is determined by a realm group membership check performed by a RealmAclRep object (go/realm-acl-howto). It is not permitted to grant access based on the *absence* of a realm, so realm conditions can only be used in a \"positive\" context (e.g., ALLOW/IN or DENY/NOT_IN).", + "Any of the security realms in the IAMContext (go/security-realms). When used with IN, the condition indicates \"any of the request's realms match one of the given values; with NOT_IN, \"none of the realms match any of the given values\". Note that a value can be: - 'self:campus' (i.e., clients that are in the same campus) - 'self:metro' (i.e., clients that are in the same metro) - 'self:cloud-region' (i.e., allow connections from clients that are in the same cloud region) - 'self:prod-region' (i.e., allow connections from clients that are in the same prod region) - 'guardians' (i.e., allow connections from its guardian realms. See go/security-realms-glossary#guardian for more information.) - 'self' [DEPRECATED] (i.e., allow connections from clients that are in the same security realm, which is currently but not guaranteed to be campus-sized) - a realm (e.g., 'campus-abc') - a realm group (e.g., 'realms-for-borg-cell-xx', see: go/realm-groups) A match is determined by a realm group membership check performed by a RealmAclRep object (go/realm-acl-howto). It is not permitted to grant access based on the *absence* of a realm, so realm conditions can only be used in a \"positive\" context (e.g., ALLOW/IN or DENY/NOT_IN).", "An approver (distinct from the requester) that has authorized this request. When used with IN, the condition indicates that one of the approvers associated with the request matches the specified principal, or is a member of the specified group. Approvers can only grant additional access, and are thus only used in a strictly positive context (e.g. ALLOW/IN or DENY/NOT_IN).", "What types of justifications have been supplied with this request. String values should match enum names from security.credentials.JustificationType, e.g. \"MANUAL_STRING\". It is not permitted to grant access based on the *absence* of a justification, so justification conditions can only be used in a \"positive\" context (e.g., ALLOW/IN or DENY/NOT_IN). Multiple justifications, e.g., a Buganizer ID and a manually-entered reason, are normal and supported.", "What type of credentials have been supplied with this request. String values should match enum names from security_loas_l2.CredentialsType - currently, only CREDS_TYPE_EMERGENCY is supported. It is not permitted to grant access based on the *absence* of a credentials type, so the conditions can only be used in a \"positive\" context (e.g., ALLOW/IN or DENY/NOT_IN).", diff --git a/gameservices/v1beta/gameservices-gen.go b/gameservices/v1beta/gameservices-gen.go index 2a04321199b..343f922498a 100644 --- a/gameservices/v1beta/gameservices-gen.go +++ b/gameservices/v1beta/gameservices-gen.go @@ -488,15 +488,16 @@ type Condition struct { // (go/security-realms). When used with IN, the condition indicates "any // of the request's realms match one of the given values; with NOT_IN, // "none of the realms match any of the given values". Note that a value - // can be: - 'self' (i.e., allow connections from clients that are in - // the same security realm, which is currently but not guaranteed to be - // campus-sized) - 'self:metro' (i.e., clients that are in the same - // metro) - 'self:cloud-region' (i.e., allow connections from clients - // that are in the same cloud region) - 'self:prod-region' (i.e., allow - // connections from clients that are in the same prod region) - - // 'guardians' (i.e., allow connections from its guardian realms. See - // go/security-realms-glossary#guardian for more information.) - a realm - // (e.g., 'campus-abc') - a realm group (e.g., + // can be: - 'self:campus' (i.e., clients that are in the same campus) - + // 'self:metro' (i.e., clients that are in the same metro) - + // 'self:cloud-region' (i.e., allow connections from clients that are in + // the same cloud region) - 'self:prod-region' (i.e., allow connections + // from clients that are in the same prod region) - 'guardians' (i.e., + // allow connections from its guardian realms. See + // go/security-realms-glossary#guardian for more information.) - 'self' + // [DEPRECATED] (i.e., allow connections from clients that are in the + // same security realm, which is currently but not guaranteed to be + // campus-sized) - a realm (e.g., 'campus-abc') - a realm group (e.g., // 'realms-for-borg-cell-xx', see: go/realm-groups) A match is // determined by a realm group membership check performed by a // RealmAclRep object (go/realm-acl-howto). It is not permitted to grant diff --git a/gkehub/v1alpha/gkehub-api.json b/gkehub/v1alpha/gkehub-api.json index 24d2571dfdc..2cddc3bcf67 100644 --- a/gkehub/v1alpha/gkehub-api.json +++ b/gkehub/v1alpha/gkehub-api.json @@ -1151,7 +1151,7 @@ } } }, - "revision": "20220530", + "revision": "20220603", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -3687,6 +3687,44 @@ }, "type": "object" }, + "ServiceMeshDataPlaneManagement": { + "description": "Status of data plane management. Only reported per-member.", + "id": "ServiceMeshDataPlaneManagement", + "properties": { + "details": { + "description": "Explanation of the status.", + "items": { + "$ref": "ServiceMeshStatusDetails" + }, + "type": "array" + }, + "state": { + "description": "Lifecycle status of data plane management.", + "enum": [ + "LIFECYCLE_STATE_UNSPECIFIED", + "DISABLED", + "FAILED_PRECONDITION", + "PROVISIONING", + "ACTIVE", + "STALLED", + "NEEDS_ATTENTION", + "DEGRADED" + ], + "enumDescriptions": [ + "Unspecified", + "DISABLED means that the component is not enabled.", + "FAILED_PRECONDITION means that provisioning cannot proceed because of some characteristic of the member cluster.", + "PROVISIONING means that provisioning is in progress.", + "ACTIVE means that the component is ready for use.", + "STALLED means that provisioning could not be done.", + "NEEDS_ATTENTION means that the component is ready, but some user intervention is required. (For example that the user should migrate workloads to a new control plane revision.)", + "DEGRADED means that the component is ready, but operating in a degraded state." + ], + "type": "string" + } + }, + "type": "object" + }, "ServiceMeshFeatureState": { "description": "**Service Mesh**: State for the whole Hub, as analyzed by the Service Mesh Hub Controller.", "id": "ServiceMeshFeatureState", @@ -3759,6 +3797,11 @@ "$ref": "ServiceMeshControlPlaneManagement", "description": "Output only. Status of control plane management", "readOnly": true + }, + "dataPlaneManagement": { + "$ref": "ServiceMeshDataPlaneManagement", + "description": "Output only. Status of data plane management.", + "readOnly": true } }, "type": "object" diff --git a/gkehub/v1alpha/gkehub-gen.go b/gkehub/v1alpha/gkehub-gen.go index 0db14497285..0c6b2a057aa 100644 --- a/gkehub/v1alpha/gkehub-gen.go +++ b/gkehub/v1alpha/gkehub-gen.go @@ -4449,6 +4449,53 @@ func (s *ServiceMeshControlPlaneManagement) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ServiceMeshDataPlaneManagement: Status of data plane management. Only +// reported per-member. +type ServiceMeshDataPlaneManagement struct { + // Details: Explanation of the status. + Details []*ServiceMeshStatusDetails `json:"details,omitempty"` + + // State: Lifecycle status of data plane management. + // + // Possible values: + // "LIFECYCLE_STATE_UNSPECIFIED" - Unspecified + // "DISABLED" - DISABLED means that the component is not enabled. + // "FAILED_PRECONDITION" - FAILED_PRECONDITION means that provisioning + // cannot proceed because of some characteristic of the member cluster. + // "PROVISIONING" - PROVISIONING means that provisioning is in + // progress. + // "ACTIVE" - ACTIVE means that the component is ready for use. + // "STALLED" - STALLED means that provisioning could not be done. + // "NEEDS_ATTENTION" - NEEDS_ATTENTION means that the component is + // ready, but some user intervention is required. (For example that the + // user should migrate workloads to a new control plane revision.) + // "DEGRADED" - DEGRADED means that the component is ready, but + // operating in a degraded state. + State string `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Details") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Details") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ServiceMeshDataPlaneManagement) MarshalJSON() ([]byte, error) { + type NoMethod ServiceMeshDataPlaneManagement + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ServiceMeshFeatureState: **Service Mesh**: State for the whole Hub, // as analyzed by the Service Mesh Hub Controller. type ServiceMeshFeatureState struct { @@ -4547,6 +4594,9 @@ type ServiceMeshMembershipState struct { // management ControlPlaneManagement *ServiceMeshControlPlaneManagement `json:"controlPlaneManagement,omitempty"` + // DataPlaneManagement: Output only. Status of data plane management. + DataPlaneManagement *ServiceMeshDataPlaneManagement `json:"dataPlaneManagement,omitempty"` + // ForceSendFields is a list of field names (e.g. "AnalysisMessages") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/localservices/v1/localservices-api.json b/localservices/v1/localservices-api.json index 21a8fc3e1b8..8c6496a2a47 100644 --- a/localservices/v1/localservices-api.json +++ b/localservices/v1/localservices-api.json @@ -3,7 +3,7 @@ "oauth2": { "scopes": { "https://www.googleapis.com/auth/adwords": { - "description": "Manage your AdWords campaigns" + "description": "See, edit, create, and delete your Google Ads accounts and data." } } } @@ -250,7 +250,7 @@ } } }, - "revision": "20211015", + "revision": "20220612", "rootUrl": "https://localservices.googleapis.com/", "schemas": { "GoogleAdsHomeservicesLocalservicesV1AccountReport": { diff --git a/localservices/v1/localservices-gen.go b/localservices/v1/localservices-gen.go index c7f3046f6ba..f2d111d99ba 100644 --- a/localservices/v1/localservices-gen.go +++ b/localservices/v1/localservices-gen.go @@ -80,7 +80,7 @@ const mtlsBasePath = "https://localservices.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( - // Manage your AdWords campaigns + // See, edit, create, and delete your Google Ads accounts and data. AdwordsScope = "https://www.googleapis.com/auth/adwords" ) diff --git a/networkmanagement/v1beta1/networkmanagement-api.json b/networkmanagement/v1beta1/networkmanagement-api.json index 2e0c8d11edb..ec96e92468c 100644 --- a/networkmanagement/v1beta1/networkmanagement-api.json +++ b/networkmanagement/v1beta1/networkmanagement-api.json @@ -591,7 +591,7 @@ } } }, - "revision": "20220526", + "revision": "20220602", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -1146,14 +1146,14 @@ "HIERARCHICAL_FIREWALL_POLICY_RULE", "VPC_FIREWALL_RULE", "IMPLIED_VPC_FIREWALL_RULE", - "SERVICE_MANAGED_FIREWALL_RULE" + "SERVERLESS_VPC_ACCESS_MANAGED_FIREWALL_RULE" ], "enumDescriptions": [ "Unspecified type.", "Hierarchical firewall policy rule. For details, see [Hierarchical firewall policies overview](https://cloud.google.com/vpc/docs/firewall-policies).", "VPC firewall rule. For details, see [VPC firewall rules overview](https://cloud.google.com/vpc/docs/firewalls).", "Implied VPC firewall rule. For details, see [Implied rules](https://cloud.google.com/vpc/docs/firewalls#default_firewall_rules).", - "Implicit firewall rules that are created by services, such as [VPC connector's implicit rule](https://cloud.google.com/functions/docs/networking/connecting-vpc#restrict-access) for allowing ingress access. These rules are managed by services and not visible in the Google Cloud console." + "Implicit firewall rules that are managed by serverless VPC access to allow ingress access. They are not visible in the Google Cloud console. For details, see [VPC connector's implicit rules](https://cloud.google.com/functions/docs/networking/connecting-vpc#restrict-access)." ], "type": "string" }, diff --git a/networkmanagement/v1beta1/networkmanagement-gen.go b/networkmanagement/v1beta1/networkmanagement-gen.go index 9ea80eef435..65f45ccc85a 100644 --- a/networkmanagement/v1beta1/networkmanagement-gen.go +++ b/networkmanagement/v1beta1/networkmanagement-gen.go @@ -1111,11 +1111,12 @@ type FirewallInfo struct { // details, see [Implied // rules](https://cloud.google.com/vpc/docs/firewalls#default_firewall_ru // les). - // "SERVICE_MANAGED_FIREWALL_RULE" - Implicit firewall rules that are - // created by services, such as [VPC connector's implicit - // rule](https://cloud.google.com/functions/docs/networking/connecting-vp - // c#restrict-access) for allowing ingress access. These rules are - // managed by services and not visible in the Google Cloud console. + // "SERVERLESS_VPC_ACCESS_MANAGED_FIREWALL_RULE" - Implicit firewall + // rules that are managed by serverless VPC access to allow ingress + // access. They are not visible in the Google Cloud console. For + // details, see [VPC connector's implicit + // rules](https://cloud.google.com/functions/docs/networking/connecting-v + // pc#restrict-access). FirewallRuleType string `json:"firewallRuleType,omitempty"` // NetworkUri: The URI of the VPC network that the firewall rule is diff --git a/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-api.json b/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-api.json index 60ccb6940b2..ebc4b645884 100644 --- a/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-api.json +++ b/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-api.json @@ -2,8 +2,8 @@ "auth": { "oauth2": { "scopes": { - "https://www.googleapis.com/auth/userinfo.email": { - "description": "See your primary Google Account email address" + "https://www.googleapis.com/auth/sasportal": { + "description": "Read, create, update, and delete your SAS Portal data." } } } @@ -129,7 +129,7 @@ "$ref": "SasPortalCustomer" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "list": { @@ -156,7 +156,7 @@ "$ref": "SasPortalListCustomersResponse" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "patch": { @@ -190,7 +190,7 @@ "$ref": "SasPortalCustomer" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] } }, @@ -222,7 +222,7 @@ "$ref": "SasPortalDeployment" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "delete": { @@ -247,7 +247,7 @@ "$ref": "SasPortalEmpty" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "get": { @@ -272,7 +272,7 @@ "$ref": "SasPortalDeployment" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "list": { @@ -313,7 +313,7 @@ "$ref": "SasPortalListDeploymentsResponse" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "move": { @@ -341,7 +341,7 @@ "$ref": "SasPortalOperation" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "patch": { @@ -375,7 +375,7 @@ "$ref": "SasPortalDeployment" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] } }, @@ -407,7 +407,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "createSigned": { @@ -435,7 +435,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "list": { @@ -476,7 +476,7 @@ "$ref": "SasPortalListDevicesResponse" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] } } @@ -510,7 +510,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "createSigned": { @@ -538,7 +538,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "delete": { @@ -563,7 +563,7 @@ "$ref": "SasPortalEmpty" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "get": { @@ -588,7 +588,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "list": { @@ -629,7 +629,7 @@ "$ref": "SasPortalListDevicesResponse" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "move": { @@ -657,7 +657,7 @@ "$ref": "SasPortalOperation" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "patch": { @@ -691,7 +691,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "signDevice": { @@ -719,7 +719,7 @@ "$ref": "SasPortalEmpty" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "updateSigned": { @@ -747,7 +747,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] } } @@ -779,7 +779,7 @@ "$ref": "SasPortalNode" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "delete": { @@ -804,7 +804,7 @@ "$ref": "SasPortalEmpty" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "get": { @@ -829,7 +829,7 @@ "$ref": "SasPortalNode" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "list": { @@ -870,7 +870,7 @@ "$ref": "SasPortalListNodesResponse" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "move": { @@ -898,7 +898,7 @@ "$ref": "SasPortalOperation" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "patch": { @@ -932,7 +932,7 @@ "$ref": "SasPortalNode" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] } }, @@ -964,7 +964,7 @@ "$ref": "SasPortalDeployment" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "list": { @@ -1005,7 +1005,7 @@ "$ref": "SasPortalListDeploymentsResponse" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] } } @@ -1037,7 +1037,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "createSigned": { @@ -1065,7 +1065,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "list": { @@ -1106,7 +1106,7 @@ "$ref": "SasPortalListDevicesResponse" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] } } @@ -1138,7 +1138,7 @@ "$ref": "SasPortalNode" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "list": { @@ -1179,7 +1179,7 @@ "$ref": "SasPortalListNodesResponse" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] } } @@ -1212,7 +1212,7 @@ "$ref": "SasPortalDeployment" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] } }, @@ -1241,7 +1241,7 @@ "$ref": "SasPortalEmpty" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "get": { @@ -1266,7 +1266,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "move": { @@ -1294,7 +1294,7 @@ "$ref": "SasPortalOperation" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "patch": { @@ -1328,7 +1328,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "signDevice": { @@ -1356,7 +1356,7 @@ "$ref": "SasPortalEmpty" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "updateSigned": { @@ -1384,7 +1384,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] } } @@ -1408,7 +1408,7 @@ "$ref": "SasPortalGenerateSecretResponse" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "validate": { @@ -1426,7 +1426,7 @@ "$ref": "SasPortalValidateInstallerResponse" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] } } @@ -1455,7 +1455,7 @@ "$ref": "SasPortalNode" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] } }, @@ -1484,7 +1484,7 @@ "$ref": "SasPortalEmpty" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "get": { @@ -1509,7 +1509,7 @@ "$ref": "SasPortalDeployment" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "list": { @@ -1550,7 +1550,7 @@ "$ref": "SasPortalListDeploymentsResponse" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "move": { @@ -1578,7 +1578,7 @@ "$ref": "SasPortalOperation" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "patch": { @@ -1612,7 +1612,7 @@ "$ref": "SasPortalDeployment" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] } }, @@ -1644,7 +1644,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "createSigned": { @@ -1672,7 +1672,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "list": { @@ -1713,7 +1713,7 @@ "$ref": "SasPortalListDevicesResponse" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] } } @@ -1747,7 +1747,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "createSigned": { @@ -1775,7 +1775,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "delete": { @@ -1800,7 +1800,7 @@ "$ref": "SasPortalEmpty" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "get": { @@ -1825,7 +1825,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "list": { @@ -1866,7 +1866,7 @@ "$ref": "SasPortalListDevicesResponse" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "move": { @@ -1894,7 +1894,7 @@ "$ref": "SasPortalOperation" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "patch": { @@ -1928,7 +1928,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "signDevice": { @@ -1956,7 +1956,7 @@ "$ref": "SasPortalEmpty" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "updateSigned": { @@ -1984,7 +1984,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] } } @@ -2016,7 +2016,7 @@ "$ref": "SasPortalNode" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "delete": { @@ -2041,7 +2041,7 @@ "$ref": "SasPortalEmpty" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "get": { @@ -2066,7 +2066,7 @@ "$ref": "SasPortalNode" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "list": { @@ -2107,7 +2107,7 @@ "$ref": "SasPortalListNodesResponse" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "move": { @@ -2135,7 +2135,7 @@ "$ref": "SasPortalOperation" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "patch": { @@ -2169,7 +2169,7 @@ "$ref": "SasPortalNode" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] } }, @@ -2201,7 +2201,7 @@ "$ref": "SasPortalDeployment" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "list": { @@ -2242,7 +2242,7 @@ "$ref": "SasPortalListDeploymentsResponse" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] } } @@ -2274,7 +2274,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "createSigned": { @@ -2302,7 +2302,7 @@ "$ref": "SasPortalDevice" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "list": { @@ -2343,7 +2343,7 @@ "$ref": "SasPortalListDevicesResponse" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] } } @@ -2375,7 +2375,7 @@ "$ref": "SasPortalNode" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "list": { @@ -2416,7 +2416,7 @@ "$ref": "SasPortalListNodesResponse" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] } } @@ -2442,7 +2442,7 @@ "$ref": "SasPortalPolicy" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "set": { @@ -2460,7 +2460,7 @@ "$ref": "SasPortalPolicy" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] }, "test": { @@ -2478,13 +2478,13 @@ "$ref": "SasPortalTestPermissionsResponse" }, "scopes": [ - "https://www.googleapis.com/auth/userinfo.email" + "https://www.googleapis.com/auth/sasportal" ] } } } }, - "revision": "20220425", + "revision": "20220612", "rootUrl": "https://prod-tt-sasportal.googleapis.com/", "schemas": { "SasPortalAssignment": { diff --git a/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go b/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go index 3c628164280..b39f22a9721 100644 --- a/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go +++ b/prod_tt_sasportal/v1alpha1/prod_tt_sasportal-gen.go @@ -80,14 +80,14 @@ const mtlsBasePath = "https://prod-tt-sasportal.mtls.googleapis.com/" // OAuth2 scopes used by this API. const ( - // See your primary Google Account email address - UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.email" + // Read, create, update, and delete your SAS Portal data. + SasportalScope = "https://www.googleapis.com/auth/sasportal" ) // NewService creates a new Service. func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) { scopesOption := internaloption.WithDefaultScopes( - "https://www.googleapis.com/auth/userinfo.email", + "https://www.googleapis.com/auth/sasportal", ) // NOTE: prepend, so we don't override user-specified scopes. opts = append([]option.ClientOption{scopesOption}, opts...) @@ -2063,7 +2063,7 @@ func (c *CustomersGetCall) Do(opts ...googleapi.CallOption) (*SasPortalCustomer, // "$ref": "SasPortalCustomer" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -2219,7 +2219,7 @@ func (c *CustomersListCall) Do(opts ...googleapi.CallOption) (*SasPortalListCust // "$ref": "SasPortalListCustomersResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -2395,7 +2395,7 @@ func (c *CustomersPatchCall) Do(opts ...googleapi.CallOption) (*SasPortalCustome // "$ref": "SasPortalCustomer" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -2538,7 +2538,7 @@ func (c *CustomersDeploymentsCreateCall) Do(opts ...googleapi.CallOption) (*SasP // "$ref": "SasPortalDeployment" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -2670,7 +2670,7 @@ func (c *CustomersDeploymentsDeleteCall) Do(opts ...googleapi.CallOption) (*SasP // "$ref": "SasPortalEmpty" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -2816,7 +2816,7 @@ func (c *CustomersDeploymentsGetCall) Do(opts ...googleapi.CallOption) (*SasPort // "$ref": "SasPortalDeployment" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -3003,7 +3003,7 @@ func (c *CustomersDeploymentsListCall) Do(opts ...googleapi.CallOption) (*SasPor // "$ref": "SasPortalListDeploymentsResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -3166,7 +3166,7 @@ func (c *CustomersDeploymentsMoveCall) Do(opts ...googleapi.CallOption) (*SasPor // "$ref": "SasPortalOperation" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -3321,7 +3321,7 @@ func (c *CustomersDeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*SasPo // "$ref": "SasPortalDeployment" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -3463,7 +3463,7 @@ func (c *CustomersDeploymentsDevicesCreateCall) Do(opts ...googleapi.CallOption) // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -3605,7 +3605,7 @@ func (c *CustomersDeploymentsDevicesCreateSignedCall) Do(opts ...googleapi.CallO // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -3792,7 +3792,7 @@ func (c *CustomersDeploymentsDevicesListCall) Do(opts ...googleapi.CallOption) ( // "$ref": "SasPortalListDevicesResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -3955,7 +3955,7 @@ func (c *CustomersDevicesCreateCall) Do(opts ...googleapi.CallOption) (*SasPorta // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -4097,7 +4097,7 @@ func (c *CustomersDevicesCreateSignedCall) Do(opts ...googleapi.CallOption) (*Sa // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -4229,7 +4229,7 @@ func (c *CustomersDevicesDeleteCall) Do(opts ...googleapi.CallOption) (*SasPorta // "$ref": "SasPortalEmpty" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -4375,7 +4375,7 @@ func (c *CustomersDevicesGetCall) Do(opts ...googleapi.CallOption) (*SasPortalDe // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -4562,7 +4562,7 @@ func (c *CustomersDevicesListCall) Do(opts ...googleapi.CallOption) (*SasPortalL // "$ref": "SasPortalListDevicesResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -4725,7 +4725,7 @@ func (c *CustomersDevicesMoveCall) Do(opts ...googleapi.CallOption) (*SasPortalO // "$ref": "SasPortalOperation" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -4880,7 +4880,7 @@ func (c *CustomersDevicesPatchCall) Do(opts ...googleapi.CallOption) (*SasPortal // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -5022,7 +5022,7 @@ func (c *CustomersDevicesSignDeviceCall) Do(opts ...googleapi.CallOption) (*SasP // "$ref": "SasPortalEmpty" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -5164,7 +5164,7 @@ func (c *CustomersDevicesUpdateSignedCall) Do(opts ...googleapi.CallOption) (*Sa // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -5306,7 +5306,7 @@ func (c *CustomersNodesCreateCall) Do(opts ...googleapi.CallOption) (*SasPortalN // "$ref": "SasPortalNode" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -5438,7 +5438,7 @@ func (c *CustomersNodesDeleteCall) Do(opts ...googleapi.CallOption) (*SasPortalE // "$ref": "SasPortalEmpty" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -5584,7 +5584,7 @@ func (c *CustomersNodesGetCall) Do(opts ...googleapi.CallOption) (*SasPortalNode // "$ref": "SasPortalNode" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -5770,7 +5770,7 @@ func (c *CustomersNodesListCall) Do(opts ...googleapi.CallOption) (*SasPortalLis // "$ref": "SasPortalListNodesResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -5933,7 +5933,7 @@ func (c *CustomersNodesMoveCall) Do(opts ...googleapi.CallOption) (*SasPortalOpe // "$ref": "SasPortalOperation" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -6088,7 +6088,7 @@ func (c *CustomersNodesPatchCall) Do(opts ...googleapi.CallOption) (*SasPortalNo // "$ref": "SasPortalNode" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -6231,7 +6231,7 @@ func (c *CustomersNodesDeploymentsCreateCall) Do(opts ...googleapi.CallOption) ( // "$ref": "SasPortalDeployment" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -6418,7 +6418,7 @@ func (c *CustomersNodesDeploymentsListCall) Do(opts ...googleapi.CallOption) (*S // "$ref": "SasPortalListDeploymentsResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -6581,7 +6581,7 @@ func (c *CustomersNodesDevicesCreateCall) Do(opts ...googleapi.CallOption) (*Sas // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -6723,7 +6723,7 @@ func (c *CustomersNodesDevicesCreateSignedCall) Do(opts ...googleapi.CallOption) // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -6910,7 +6910,7 @@ func (c *CustomersNodesDevicesListCall) Do(opts ...googleapi.CallOption) (*SasPo // "$ref": "SasPortalListDevicesResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -7073,7 +7073,7 @@ func (c *CustomersNodesNodesCreateCall) Do(opts ...googleapi.CallOption) (*SasPo // "$ref": "SasPortalNode" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -7259,7 +7259,7 @@ func (c *CustomersNodesNodesListCall) Do(opts ...googleapi.CallOption) (*SasPort // "$ref": "SasPortalListNodesResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -7426,7 +7426,7 @@ func (c *DeploymentsGetCall) Do(opts ...googleapi.CallOption) (*SasPortalDeploym // "$ref": "SasPortalDeployment" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -7558,7 +7558,7 @@ func (c *DeploymentsDevicesDeleteCall) Do(opts ...googleapi.CallOption) (*SasPor // "$ref": "SasPortalEmpty" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -7704,7 +7704,7 @@ func (c *DeploymentsDevicesGetCall) Do(opts ...googleapi.CallOption) (*SasPortal // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -7846,7 +7846,7 @@ func (c *DeploymentsDevicesMoveCall) Do(opts ...googleapi.CallOption) (*SasPorta // "$ref": "SasPortalOperation" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -8001,7 +8001,7 @@ func (c *DeploymentsDevicesPatchCall) Do(opts ...googleapi.CallOption) (*SasPort // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -8143,7 +8143,7 @@ func (c *DeploymentsDevicesSignDeviceCall) Do(opts ...googleapi.CallOption) (*Sa // "$ref": "SasPortalEmpty" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -8285,7 +8285,7 @@ func (c *DeploymentsDevicesUpdateSignedCall) Do(opts ...googleapi.CallOption) (* // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -8411,7 +8411,7 @@ func (c *InstallerGenerateSecretCall) Do(opts ...googleapi.CallOption) (*SasPort // "$ref": "SasPortalGenerateSecretResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -8538,7 +8538,7 @@ func (c *InstallerValidateCall) Do(opts ...googleapi.CallOption) (*SasPortalVali // "$ref": "SasPortalValidateInstallerResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -8684,7 +8684,7 @@ func (c *NodesGetCall) Do(opts ...googleapi.CallOption) (*SasPortalNode, error) // "$ref": "SasPortalNode" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -8816,7 +8816,7 @@ func (c *NodesDeploymentsDeleteCall) Do(opts ...googleapi.CallOption) (*SasPorta // "$ref": "SasPortalEmpty" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -8962,7 +8962,7 @@ func (c *NodesDeploymentsGetCall) Do(opts ...googleapi.CallOption) (*SasPortalDe // "$ref": "SasPortalDeployment" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -9149,7 +9149,7 @@ func (c *NodesDeploymentsListCall) Do(opts ...googleapi.CallOption) (*SasPortalL // "$ref": "SasPortalListDeploymentsResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -9312,7 +9312,7 @@ func (c *NodesDeploymentsMoveCall) Do(opts ...googleapi.CallOption) (*SasPortalO // "$ref": "SasPortalOperation" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -9467,7 +9467,7 @@ func (c *NodesDeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*SasPortal // "$ref": "SasPortalDeployment" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -9609,7 +9609,7 @@ func (c *NodesDeploymentsDevicesCreateCall) Do(opts ...googleapi.CallOption) (*S // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -9751,7 +9751,7 @@ func (c *NodesDeploymentsDevicesCreateSignedCall) Do(opts ...googleapi.CallOptio // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -9938,7 +9938,7 @@ func (c *NodesDeploymentsDevicesListCall) Do(opts ...googleapi.CallOption) (*Sas // "$ref": "SasPortalListDevicesResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -10101,7 +10101,7 @@ func (c *NodesDevicesCreateCall) Do(opts ...googleapi.CallOption) (*SasPortalDev // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -10243,7 +10243,7 @@ func (c *NodesDevicesCreateSignedCall) Do(opts ...googleapi.CallOption) (*SasPor // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -10375,7 +10375,7 @@ func (c *NodesDevicesDeleteCall) Do(opts ...googleapi.CallOption) (*SasPortalEmp // "$ref": "SasPortalEmpty" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -10521,7 +10521,7 @@ func (c *NodesDevicesGetCall) Do(opts ...googleapi.CallOption) (*SasPortalDevice // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -10708,7 +10708,7 @@ func (c *NodesDevicesListCall) Do(opts ...googleapi.CallOption) (*SasPortalListD // "$ref": "SasPortalListDevicesResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -10871,7 +10871,7 @@ func (c *NodesDevicesMoveCall) Do(opts ...googleapi.CallOption) (*SasPortalOpera // "$ref": "SasPortalOperation" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -11026,7 +11026,7 @@ func (c *NodesDevicesPatchCall) Do(opts ...googleapi.CallOption) (*SasPortalDevi // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -11168,7 +11168,7 @@ func (c *NodesDevicesSignDeviceCall) Do(opts ...googleapi.CallOption) (*SasPorta // "$ref": "SasPortalEmpty" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -11310,7 +11310,7 @@ func (c *NodesDevicesUpdateSignedCall) Do(opts ...googleapi.CallOption) (*SasPor // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -11452,7 +11452,7 @@ func (c *NodesNodesCreateCall) Do(opts ...googleapi.CallOption) (*SasPortalNode, // "$ref": "SasPortalNode" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -11584,7 +11584,7 @@ func (c *NodesNodesDeleteCall) Do(opts ...googleapi.CallOption) (*SasPortalEmpty // "$ref": "SasPortalEmpty" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -11730,7 +11730,7 @@ func (c *NodesNodesGetCall) Do(opts ...googleapi.CallOption) (*SasPortalNode, er // "$ref": "SasPortalNode" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -11916,7 +11916,7 @@ func (c *NodesNodesListCall) Do(opts ...googleapi.CallOption) (*SasPortalListNod // "$ref": "SasPortalListNodesResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -12079,7 +12079,7 @@ func (c *NodesNodesMoveCall) Do(opts ...googleapi.CallOption) (*SasPortalOperati // "$ref": "SasPortalOperation" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -12234,7 +12234,7 @@ func (c *NodesNodesPatchCall) Do(opts ...googleapi.CallOption) (*SasPortalNode, // "$ref": "SasPortalNode" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -12377,7 +12377,7 @@ func (c *NodesNodesDeploymentsCreateCall) Do(opts ...googleapi.CallOption) (*Sas // "$ref": "SasPortalDeployment" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -12564,7 +12564,7 @@ func (c *NodesNodesDeploymentsListCall) Do(opts ...googleapi.CallOption) (*SasPo // "$ref": "SasPortalListDeploymentsResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -12727,7 +12727,7 @@ func (c *NodesNodesDevicesCreateCall) Do(opts ...googleapi.CallOption) (*SasPort // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -12869,7 +12869,7 @@ func (c *NodesNodesDevicesCreateSignedCall) Do(opts ...googleapi.CallOption) (*S // "$ref": "SasPortalDevice" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -13056,7 +13056,7 @@ func (c *NodesNodesDevicesListCall) Do(opts ...googleapi.CallOption) (*SasPortal // "$ref": "SasPortalListDevicesResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -13219,7 +13219,7 @@ func (c *NodesNodesNodesCreateCall) Do(opts ...googleapi.CallOption) (*SasPortal // "$ref": "SasPortalNode" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -13405,7 +13405,7 @@ func (c *NodesNodesNodesListCall) Do(opts ...googleapi.CallOption) (*SasPortalLi // "$ref": "SasPortalListNodesResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -13552,7 +13552,7 @@ func (c *PoliciesGetCall) Do(opts ...googleapi.CallOption) (*SasPortalPolicy, er // "$ref": "SasPortalPolicy" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -13678,7 +13678,7 @@ func (c *PoliciesSetCall) Do(opts ...googleapi.CallOption) (*SasPortalPolicy, er // "$ref": "SasPortalPolicy" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } @@ -13804,7 +13804,7 @@ func (c *PoliciesTestCall) Do(opts ...googleapi.CallOption) (*SasPortalTestPermi // "$ref": "SasPortalTestPermissionsResponse" // }, // "scopes": [ - // "https://www.googleapis.com/auth/userinfo.email" + // "https://www.googleapis.com/auth/sasportal" // ] // } diff --git a/sheets/v4/sheets-api.json b/sheets/v4/sheets-api.json index 554e9d087b7..47be067d757 100644 --- a/sheets/v4/sheets-api.json +++ b/sheets/v4/sheets-api.json @@ -870,7 +870,7 @@ } } }, - "revision": "20220411", + "revision": "20220606", "rootUrl": "https://sheets.googleapis.com/", "schemas": { "AddBandingRequest": { @@ -1232,7 +1232,7 @@ "properties": { "firstBandColor": { "$ref": "Color", - "description": "The first color that is alternating. (Required)" + "description": "The first color that is alternating. (Required) Deprecated: Use first_band_color_style." }, "firstBandColorStyle": { "$ref": "ColorStyle", @@ -1240,7 +1240,7 @@ }, "footerColor": { "$ref": "Color", - "description": "The color of the last row or column. If this field is not set, the last row or column is filled with either first_band_color or second_band_color, depending on the color of the previous row or column." + "description": "The color of the last row or column. If this field is not set, the last row or column is filled with either first_band_color or second_band_color, depending on the color of the previous row or column. Deprecated: Use footer_color_style." }, "footerColorStyle": { "$ref": "ColorStyle", @@ -1248,7 +1248,7 @@ }, "headerColor": { "$ref": "Color", - "description": "The color of the first row or column. If this field is set, the first row or column is filled with this color and the colors alternate between first_band_color and second_band_color starting from the second row or column. Otherwise, the first row or column is filled with first_band_color and the colors proceed to alternate as they normally would." + "description": "The color of the first row or column. If this field is set, the first row or column is filled with this color and the colors alternate between first_band_color and second_band_color starting from the second row or column. Otherwise, the first row or column is filled with first_band_color and the colors proceed to alternate as they normally would. Deprecated: Use header_color_style." }, "headerColorStyle": { "$ref": "ColorStyle", @@ -1256,7 +1256,7 @@ }, "secondBandColor": { "$ref": "Color", - "description": "The second color that is alternating. (Required)" + "description": "The second color that is alternating. (Required) Deprecated: Use second_band_color_style." }, "secondBandColorStyle": { "$ref": "ColorStyle", @@ -1289,7 +1289,7 @@ }, "negativeColor": { "$ref": "Color", - "description": "Color to be used, in case baseline value represents a negative change for key value. This field is optional." + "description": "Color to be used, in case baseline value represents a negative change for key value. This field is optional. Deprecated: Use negative_color_style." }, "negativeColorStyle": { "$ref": "ColorStyle", @@ -1301,7 +1301,7 @@ }, "positiveColor": { "$ref": "Color", - "description": "Color to be used, in case baseline value represents a positive change for key value. This field is optional." + "description": "Color to be used, in case baseline value represents a positive change for key value. This field is optional. Deprecated: Use positive_color_style." }, "positiveColorStyle": { "$ref": "ColorStyle", @@ -1374,7 +1374,7 @@ "properties": { "color": { "$ref": "Color", - "description": "The color for elements (such as bars, lines, and points) associated with this series. If empty, a default color is used." + "description": "The color for elements (such as bars, lines, and points) associated with this series. If empty, a default color is used. Deprecated: Use color_style." }, "colorStyle": { "$ref": "ColorStyle", @@ -1607,7 +1607,7 @@ "properties": { "color": { "$ref": "Color", - "description": "Color of the series data point. If empty, the series default is used." + "description": "Color of the series data point. If empty, the series default is used. Deprecated: Use color_style." }, "colorStyle": { "$ref": "ColorStyle", @@ -2178,7 +2178,7 @@ "properties": { "color": { "$ref": "Color", - "description": "The color of the border." + "description": "The color of the border. Deprecated: Use [color_style]." }, "colorStyle": { "$ref": "ColorStyle", @@ -2245,7 +2245,7 @@ "properties": { "bubbleBorderColor": { "$ref": "Color", - "description": "The bubble border color." + "description": "The bubble border color. Deprecated: Use bubble_border_color_style." }, "bubbleBorderColorStyle": { "$ref": "ColorStyle", @@ -2447,7 +2447,7 @@ "properties": { "backgroundColor": { "$ref": "Color", - "description": "The background color of the cell." + "description": "The background color of the cell. Deprecated: Use background_color_style." }, "backgroundColorStyle": { "$ref": "ColorStyle", @@ -2751,7 +2751,7 @@ }, "backgroundColor": { "$ref": "Color", - "description": "The background color of the entire chart. Not applicable to Org charts." + "description": "The background color of the entire chart. Not applicable to Org charts. Deprecated: Use background_color_style." }, "backgroundColorStyle": { "$ref": "ColorStyle", @@ -4342,7 +4342,7 @@ "properties": { "color": { "$ref": "Color", - "description": "The color of the border." + "description": "The color of the border. Deprecated: Use color_style." }, "colorStyle": { "$ref": "ColorStyle", @@ -4455,7 +4455,7 @@ }, "visibleBackgroundColor": { "$ref": "Color", - "description": "The background fill color to filter by; only cells with this fill color are shown. Mutually exclusive with visible_foreground_color." + "description": "The background fill color to filter by; only cells with this fill color are shown. Mutually exclusive with visible_foreground_color. Deprecated: Use visible_background_color_style." }, "visibleBackgroundColorStyle": { "$ref": "ColorStyle", @@ -4463,7 +4463,7 @@ }, "visibleForegroundColor": { "$ref": "Color", - "description": "The foreground color to filter by; only cells with this foreground color are shown. Mutually exclusive with visible_background_color." + "description": "The foreground color to filter by; only cells with this foreground color are shown. Mutually exclusive with visible_background_color. Deprecated: Use visible_foreground_color_style." }, "visibleForegroundColorStyle": { "$ref": "ColorStyle", @@ -4859,7 +4859,7 @@ "properties": { "barColor": { "$ref": "Color", - "description": "The color of the column representing this series in each bucket. This field is optional." + "description": "The color of the column representing this series in each bucket. This field is optional. Deprecated: Use bar_color_style." }, "barColorStyle": { "$ref": "ColorStyle", @@ -4918,7 +4918,7 @@ "properties": { "color": { "$ref": "Color", - "description": "The color this interpolation point should use." + "description": "The color this interpolation point should use. Deprecated: Use color_style." }, "colorStyle": { "$ref": "ColorStyle", @@ -5224,7 +5224,7 @@ }, "nodeColor": { "$ref": "Color", - "description": "The color of the org chart nodes." + "description": "The color of the org chart nodes. Deprecated: Use node_color_style." }, "nodeColorStyle": { "$ref": "ColorStyle", @@ -5252,7 +5252,7 @@ }, "selectedNodeColor": { "$ref": "Color", - "description": "The color of the selected org chart nodes." + "description": "The color of the selected org chart nodes. Deprecated: Use selected_node_color_style." }, "selectedNodeColorStyle": { "$ref": "ColorStyle", @@ -6539,7 +6539,7 @@ }, "tabColor": { "$ref": "Color", - "description": "The color of the tab in the UI." + "description": "The color of the tab in the UI. Deprecated: Use tab_color_style." }, "tabColorStyle": { "$ref": "ColorStyle", @@ -6582,7 +6582,7 @@ }, "backgroundColor": { "$ref": "Color", - "description": "The background color of the slicer." + "description": "The background color of the slicer. Deprecated: Use background_color_style." }, "backgroundColorStyle": { "$ref": "ColorStyle", @@ -6652,7 +6652,7 @@ "properties": { "backgroundColor": { "$ref": "Color", - "description": "The background fill color to sort by; cells with this fill color are sorted to the top. Mutually exclusive with foreground_color." + "description": "The background fill color to sort by; cells with this fill color are sorted to the top. Mutually exclusive with foreground_color. Deprecated: Use background_color_style." }, "backgroundColorStyle": { "$ref": "ColorStyle", @@ -6669,7 +6669,7 @@ }, "foregroundColor": { "$ref": "Color", - "description": "The foreground color to sort by; cells with this foreground color are sorted to the top. Mutually exclusive with background_color." + "description": "The foreground color to sort by; cells with this foreground color are sorted to the top. Mutually exclusive with background_color. Deprecated: Use foreground_color_style." }, "foregroundColorStyle": { "$ref": "ColorStyle", @@ -6861,7 +6861,7 @@ }, "foregroundColor": { "$ref": "Color", - "description": "The foreground color of the text." + "description": "The foreground color of the text. Deprecated: Use foreground_color_style." }, "foregroundColorStyle": { "$ref": "ColorStyle", @@ -7050,7 +7050,7 @@ "properties": { "maxValueColor": { "$ref": "Color", - "description": "The background color for cells with a color value greater than or equal to maxValue. Defaults to #109618 if not specified." + "description": "The background color for cells with a color value greater than or equal to maxValue. Defaults to #109618 if not specified. Deprecated: Use max_value_color_style." }, "maxValueColorStyle": { "$ref": "ColorStyle", @@ -7058,7 +7058,7 @@ }, "midValueColor": { "$ref": "Color", - "description": "The background color for cells with a color value at the midpoint between minValue and maxValue. Defaults to #efe6dc if not specified." + "description": "The background color for cells with a color value at the midpoint between minValue and maxValue. Defaults to #efe6dc if not specified. Deprecated: Use mid_value_color_style." }, "midValueColorStyle": { "$ref": "ColorStyle", @@ -7066,7 +7066,7 @@ }, "minValueColor": { "$ref": "Color", - "description": "The background color for cells with a color value less than or equal to minValue. Defaults to #dc3912 if not specified." + "description": "The background color for cells with a color value less than or equal to minValue. Defaults to #dc3912 if not specified. Deprecated: Use min_value_color_style." }, "minValueColorStyle": { "$ref": "ColorStyle", @@ -7074,7 +7074,7 @@ }, "noDataColor": { "$ref": "Color", - "description": "The background color for cells that have no color data associated with them. Defaults to #000000 if not specified." + "description": "The background color for cells that have no color data associated with them. Defaults to #000000 if not specified. Deprecated: Use no_data_color_style." }, "noDataColorStyle": { "$ref": "ColorStyle", @@ -7097,7 +7097,7 @@ }, "headerColor": { "$ref": "Color", - "description": "The background color for header cells." + "description": "The background color for header cells. Deprecated: Use header_color_style." }, "headerColorStyle": { "$ref": "ColorStyle", @@ -7696,7 +7696,7 @@ "properties": { "color": { "$ref": "Color", - "description": "The color of the column." + "description": "The color of the column. Deprecated: Use color_style." }, "colorStyle": { "$ref": "ColorStyle", diff --git a/sheets/v4/sheets-gen.go b/sheets/v4/sheets-gen.go index bf70fc951ce..2f5a2f2659e 100644 --- a/sheets/v4/sheets-gen.go +++ b/sheets/v4/sheets-gen.go @@ -1037,6 +1037,7 @@ func (s *BandedRange) MarshalJSON() ([]byte, error) { // not set. type BandingProperties struct { // FirstBandColor: The first color that is alternating. (Required) + // Deprecated: Use first_band_color_style. FirstBandColor *Color `json:"firstBandColor,omitempty"` // FirstBandColorStyle: The first color that is alternating. (Required) @@ -1046,7 +1047,7 @@ type BandingProperties struct { // FooterColor: The color of the last row or column. If this field is // not set, the last row or column is filled with either // first_band_color or second_band_color, depending on the color of the - // previous row or column. + // previous row or column. Deprecated: Use footer_color_style. FooterColor *Color `json:"footerColor,omitempty"` // FooterColorStyle: The color of the last row or column. If this field @@ -1061,7 +1062,7 @@ type BandingProperties struct { // alternate between first_band_color and second_band_color starting // from the second row or column. Otherwise, the first row or column is // filled with first_band_color and the colors proceed to alternate as - // they normally would. + // they normally would. Deprecated: Use header_color_style. HeaderColor *Color `json:"headerColor,omitempty"` // HeaderColorStyle: The color of the first row or column. If this field @@ -1074,6 +1075,7 @@ type BandingProperties struct { HeaderColorStyle *ColorStyle `json:"headerColorStyle,omitempty"` // SecondBandColor: The second color that is alternating. (Required) + // Deprecated: Use second_band_color_style. SecondBandColor *Color `json:"secondBandColor,omitempty"` // SecondBandColorStyle: The second color that is alternating. @@ -1122,7 +1124,8 @@ type BaselineValueFormat struct { Description string `json:"description,omitempty"` // NegativeColor: Color to be used, in case baseline value represents a - // negative change for key value. This field is optional. + // negative change for key value. This field is optional. Deprecated: + // Use negative_color_style. NegativeColor *Color `json:"negativeColor,omitempty"` // NegativeColorStyle: Color to be used, in case baseline value @@ -1136,7 +1139,8 @@ type BaselineValueFormat struct { Position *TextPosition `json:"position,omitempty"` // PositiveColor: Color to be used, in case baseline value represents a - // positive change for key value. This field is optional. + // positive change for key value. This field is optional. Deprecated: + // Use positive_color_style. PositiveColor *Color `json:"positiveColor,omitempty"` // PositiveColorStyle: Color to be used, in case baseline value @@ -1268,6 +1272,7 @@ func (s *BasicChartDomain) MarshalJSON() ([]byte, error) { type BasicChartSeries struct { // Color: The color for elements (such as bars, lines, and points) // associated with this series. If empty, a default color is used. + // Deprecated: Use color_style. Color *Color `json:"color,omitempty"` // ColorStyle: The color for elements (such as bars, lines, and points) @@ -1520,7 +1525,7 @@ func (s *BasicFilter) MarshalJSON() ([]byte, error) { // single series data point. type BasicSeriesDataPointStyleOverride struct { // Color: Color of the series data point. If empty, the series default - // is used. + // is used. Deprecated: Use color_style. Color *Color `json:"color,omitempty"` // ColorStyle: Color of the series data point. If empty, the series @@ -2510,7 +2515,7 @@ func (s *BooleanRule) MarshalJSON() ([]byte, error) { // Border: A border along a cell. type Border struct { - // Color: The color of the border. + // Color: The color of the border. Deprecated: Use [color_style]. Color *Color `json:"color,omitempty"` // ColorStyle: The color of the border. If color is also set, this field @@ -2597,7 +2602,8 @@ func (s *Borders) MarshalJSON() ([]byte, error) { // BubbleChartSpec: A bubble chart. type BubbleChartSpec struct { - // BubbleBorderColor: The bubble border color. + // BubbleBorderColor: The bubble border color. Deprecated: Use + // bubble_border_color_style. BubbleBorderColor *Color `json:"bubbleBorderColor,omitempty"` // BubbleBorderColorStyle: The bubble border color. If @@ -2936,7 +2942,8 @@ func (s *CellData) MarshalJSON() ([]byte, error) { // CellFormat: The format of a cell. type CellFormat struct { - // BackgroundColor: The background color of the cell. + // BackgroundColor: The background color of the cell. Deprecated: Use + // background_color_style. BackgroundColor *Color `json:"backgroundColor,omitempty"` // BackgroundColorStyle: The background color of the cell. If @@ -3403,7 +3410,7 @@ type ChartSpec struct { AltText string `json:"altText,omitempty"` // BackgroundColor: The background color of the entire chart. Not - // applicable to Org charts. + // applicable to Org charts. Deprecated: Use background_color_style. BackgroundColor *Color `json:"backgroundColor,omitempty"` // BackgroundColorStyle: The background color of the entire chart. Not @@ -6106,7 +6113,7 @@ func (s *EmbeddedChart) MarshalJSON() ([]byte, error) { // EmbeddedObjectBorder: A border along an embedded object. type EmbeddedObjectBorder struct { - // Color: The color of the border. + // Color: The color of the border. Deprecated: Use color_style. Color *Color `json:"color,omitempty"` // ColorStyle: The color of the border. If color is also set, this field @@ -6291,7 +6298,8 @@ type FilterCriteria struct { // VisibleBackgroundColor: The background fill color to filter by; only // cells with this fill color are shown. Mutually exclusive with - // visible_foreground_color. + // visible_foreground_color. Deprecated: Use + // visible_background_color_style. VisibleBackgroundColor *Color `json:"visibleBackgroundColor,omitempty"` // VisibleBackgroundColorStyle: The background fill color to filter by; @@ -6303,7 +6311,8 @@ type FilterCriteria struct { // VisibleForegroundColor: The foreground color to filter by; only cells // with this foreground color are shown. Mutually exclusive with - // visible_background_color. + // visible_background_color. Deprecated: Use + // visible_foreground_color_style. VisibleForegroundColor *Color `json:"visibleForegroundColor,omitempty"` // VisibleForegroundColorStyle: The foreground color to filter by; only @@ -6948,7 +6957,7 @@ func (s *HistogramRule) UnmarshalJSON(data []byte) error { // data. type HistogramSeries struct { // BarColor: The color of the column representing this series in each - // bucket. This field is optional. + // bucket. This field is optional. Deprecated: Use bar_color_style. BarColor *Color `json:"barColor,omitempty"` // BarColorStyle: The color of the column representing this series in @@ -7069,7 +7078,8 @@ func (s *InsertRangeRequest) MarshalJSON() ([]byte, error) { // conditional format. These pin the gradient color scale according to // the color, type and value chosen. type InterpolationPoint struct { - // Color: The color this interpolation point should use. + // Color: The color this interpolation point should use. Deprecated: Use + // color_style. Color *Color `json:"color,omitempty"` // ColorStyle: The color this interpolation point should use. If color @@ -7642,7 +7652,8 @@ type OrgChartSpec struct { // chart. Labels must be unique. Labels *ChartData `json:"labels,omitempty"` - // NodeColor: The color of the org chart nodes. + // NodeColor: The color of the org chart nodes. Deprecated: Use + // node_color_style. NodeColor *Color `json:"nodeColor,omitempty"` // NodeColorStyle: The color of the org chart nodes. If node_color is @@ -7664,6 +7675,7 @@ type OrgChartSpec struct { ParentLabels *ChartData `json:"parentLabels,omitempty"` // SelectedNodeColor: The color of the selected org chart nodes. + // Deprecated: Use selected_node_color_style. SelectedNodeColor *Color `json:"selectedNodeColor,omitempty"` // SelectedNodeColorStyle: The color of the selected org chart nodes. If @@ -9388,7 +9400,8 @@ type SheetProperties struct { // shows the preview of data. SheetType string `json:"sheetType,omitempty"` - // TabColor: The color of the tab in the UI. + // TabColor: The color of the tab in the UI. Deprecated: Use + // tab_color_style. TabColor *Color `json:"tabColor,omitempty"` // TabColorStyle: The color of the tab in the UI. If tab_color is also @@ -9469,7 +9482,8 @@ type SlicerSpec struct { // If not set, default to `True`. ApplyToPivotTables bool `json:"applyToPivotTables,omitempty"` - // BackgroundColor: The background color of the slicer. + // BackgroundColor: The background color of the slicer. Deprecated: Use + // background_color_style. BackgroundColor *Color `json:"backgroundColor,omitempty"` // BackgroundColorStyle: The background color of the slicer. If @@ -9566,7 +9580,7 @@ func (s *SortRangeRequest) MarshalJSON() ([]byte, error) { type SortSpec struct { // BackgroundColor: The background fill color to sort by; cells with // this fill color are sorted to the top. Mutually exclusive with - // foreground_color. + // foreground_color. Deprecated: Use background_color_style. BackgroundColor *Color `json:"backgroundColor,omitempty"` // BackgroundColorStyle: The background fill color to sort by; cells @@ -9583,7 +9597,7 @@ type SortSpec struct { // ForegroundColor: The foreground color to sort by; cells with this // foreground color are sorted to the top. Mutually exclusive with - // background_color. + // background_color. Deprecated: Use foreground_color_style. ForegroundColor *Color `json:"foregroundColor,omitempty"` // ForegroundColorStyle: The foreground color to sort by; cells with @@ -9835,7 +9849,8 @@ type TextFormat struct { // FontSize: The size of the font. FontSize int64 `json:"fontSize,omitempty"` - // ForegroundColor: The foreground color of the text. + // ForegroundColor: The foreground color of the text. Deprecated: Use + // foreground_color_style. ForegroundColor *Color `json:"foregroundColor,omitempty"` // ForegroundColorStyle: The foreground color of the text. If @@ -10130,7 +10145,7 @@ func (s *TimeOfDay) MarshalJSON() ([]byte, error) { type TreemapChartColorScale struct { // MaxValueColor: The background color for cells with a color value // greater than or equal to maxValue. Defaults to #109618 if not - // specified. + // specified. Deprecated: Use max_value_color_style. MaxValueColor *Color `json:"maxValueColor,omitempty"` // MaxValueColorStyle: The background color for cells with a color value @@ -10141,7 +10156,7 @@ type TreemapChartColorScale struct { // MidValueColor: The background color for cells with a color value at // the midpoint between minValue and maxValue. Defaults to #efe6dc if - // not specified. + // not specified. Deprecated: Use mid_value_color_style. MidValueColor *Color `json:"midValueColor,omitempty"` // MidValueColorStyle: The background color for cells with a color value @@ -10152,6 +10167,7 @@ type TreemapChartColorScale struct { // MinValueColor: The background color for cells with a color value less // than or equal to minValue. Defaults to #dc3912 if not specified. + // Deprecated: Use min_value_color_style. MinValueColor *Color `json:"minValueColor,omitempty"` // MinValueColorStyle: The background color for cells with a color value @@ -10161,6 +10177,7 @@ type TreemapChartColorScale struct { // NoDataColor: The background color for cells that have no color data // associated with them. Defaults to #000000 if not specified. + // Deprecated: Use no_data_color_style. NoDataColor *Color `json:"noDataColor,omitempty"` // NoDataColorStyle: The background color for cells that have no color @@ -10213,7 +10230,8 @@ type TreemapChartSpec struct { // have noDataColor as their background color. ColorScale *TreemapChartColorScale `json:"colorScale,omitempty"` - // HeaderColor: The background color for header cells. + // HeaderColor: The background color for header cells. Deprecated: Use + // header_color_style. HeaderColor *Color `json:"headerColor,omitempty"` // HeaderColorStyle: The background color for header cells. If @@ -11355,7 +11373,7 @@ func (s *ValueRange) MarshalJSON() ([]byte, error) { // WaterfallChartColumnStyle: Styles for a waterfall chart column. type WaterfallChartColumnStyle struct { - // Color: The color of the column. + // Color: The color of the column. Deprecated: Use color_style. Color *Color `json:"color,omitempty"` // ColorStyle: The color of the column. If color is also set, this field diff --git a/storage/v1/storage-api.json b/storage/v1/storage-api.json index f0f14daeab3..5f73a6eab87 100644 --- a/storage/v1/storage-api.json +++ b/storage/v1/storage-api.json @@ -26,7 +26,7 @@ "description": "Stores and retrieves potentially large, immutable data objects.", "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/storage/docs/json_api/", - "etag": "\"36393739333139343137383533323639333531\"", + "etag": "\"3130353432333136333236323133333532323835\"", "icons": { "x16": "https://www.google.com/images/icons/product/cloud_storage-16.png", "x32": "https://www.google.com/images/icons/product/cloud_storage-32.png" @@ -3005,7 +3005,7 @@ } } }, - "revision": "20220604", + "revision": "20220608", "rootUrl": "https://storage.googleapis.com/", "schemas": { "Bucket": { @@ -3084,6 +3084,19 @@ }, "type": "array" }, + "customPlacementConfig": { + "description": "The bucket's custom placement configuration for Custom Dual Regions.", + "properties": { + "dataLocations": { + "description": "The list of regional locations in which data is placed.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "defaultEventBasedHold": { "description": "The default value for event-based hold on newly created objects in this bucket. Event-based hold is a way to retain objects indefinitely until an event occurs, signified by the hold's release. After being released, such objects will be subject to bucket-level retention (if any). One sample use case of this flag is for banks to hold loan documents for at least 3 years after loan is paid in full. Here, bucket-level retention is 3 years and the event is loan being paid in full. In this example, these objects will be held intact for any number of years until the event has occurred (event-based hold on the object is released) and then 3 more years after that. That means retention duration of the objects begins from the moment event-based hold transitioned from true to false. Objects under event-based hold cannot be deleted, overwritten or archived until the hold is removed.", "type": "boolean" diff --git a/storage/v1/storage-gen.go b/storage/v1/storage-gen.go index fe76c55eb76..0b01f8557c3 100644 --- a/storage/v1/storage-gen.go +++ b/storage/v1/storage-gen.go @@ -291,6 +291,10 @@ type Bucket struct { // configuration. Cors []*BucketCors `json:"cors,omitempty"` + // CustomPlacementConfig: The bucket's custom placement configuration + // for Custom Dual Regions. + CustomPlacementConfig *BucketCustomPlacementConfig `json:"customPlacementConfig,omitempty"` + // DefaultEventBasedHold: The default value for event-based hold on // newly created objects in this bucket. Event-based hold is a way to // retain objects indefinitely until an event occurs, signified by the @@ -538,6 +542,36 @@ func (s *BucketCors) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// BucketCustomPlacementConfig: The bucket's custom placement +// configuration for Custom Dual Regions. +type BucketCustomPlacementConfig struct { + // DataLocations: The list of regional locations in which data is + // placed. + DataLocations []string `json:"dataLocations,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DataLocations") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DataLocations") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *BucketCustomPlacementConfig) MarshalJSON() ([]byte, error) { + type NoMethod BucketCustomPlacementConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // BucketEncryption: Encryption configuration for a bucket. type BucketEncryption struct { // DefaultKmsKeyName: A Cloud KMS key that will be used to encrypt diff --git a/youtube/v3/youtube-api.json b/youtube/v3/youtube-api.json index a1ef1ad6cde..8be34bb5829 100644 --- a/youtube/v3/youtube-api.json +++ b/youtube/v3/youtube-api.json @@ -3155,7 +3155,7 @@ }, "path": "youtube/v3/thirdPartyLinks", "response": { - "$ref": "ThirdPartyLink" + "$ref": "ThirdPartyLinkListResponse" } }, "update": { @@ -3868,7 +3868,7 @@ } } }, - "revision": "20220608", + "revision": "20220612", "rootUrl": "https://youtube.googleapis.com/", "schemas": { "AbuseReport": { @@ -10271,6 +10271,27 @@ }, "type": "object" }, + "ThirdPartyLinkListResponse": { + "id": "ThirdPartyLinkListResponse", + "properties": { + "etag": { + "description": "Etag of this resource.", + "type": "string" + }, + "items": { + "items": { + "$ref": "ThirdPartyLink" + }, + "type": "array" + }, + "kind": { + "default": "youtube#thirdPartyLinkListResponse", + "description": "Identifies what kind of resource this is. Value: the fixed string \"youtube#thirdPartyLinkListResponse\".", + "type": "string" + } + }, + "type": "object" + }, "ThirdPartyLinkSnippet": { "description": "Basic information about a third party account link, including its type and type-specific information.", "id": "ThirdPartyLinkSnippet", diff --git a/youtube/v3/youtube-gen.go b/youtube/v3/youtube-gen.go index c106655b041..3872da55d40 100644 --- a/youtube/v3/youtube-gen.go +++ b/youtube/v3/youtube-gen.go @@ -8442,6 +8442,43 @@ func (s *ThirdPartyLink) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type ThirdPartyLinkListResponse struct { + // Etag: Etag of this resource. + Etag string `json:"etag,omitempty"` + + Items []*ThirdPartyLink `json:"items,omitempty"` + + // Kind: Identifies what kind of resource this is. Value: the fixed + // string "youtube#thirdPartyLinkListResponse". + Kind string `json:"kind,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Etag") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Etag") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ThirdPartyLinkListResponse) MarshalJSON() ([]byte, error) { + type NoMethod ThirdPartyLinkListResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ThirdPartyLinkSnippet: Basic information about a third party account // link, including its type and type-specific information. type ThirdPartyLinkSnippet struct { @@ -22350,13 +22387,13 @@ func (c *ThirdPartyLinksListCall) doRequest(alt string) (*http.Response, error) } // Do executes the "youtube.thirdPartyLinks.list" call. -// Exactly one of *ThirdPartyLink or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *ThirdPartyLink.ServerResponse.Header or (if a response was returned -// at all) in error.(*googleapi.Error).Header. Use +// Exactly one of *ThirdPartyLinkListResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ThirdPartyLinkListResponse.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 *ThirdPartyLinksListCall) Do(opts ...googleapi.CallOption) (*ThirdPartyLink, error) { +func (c *ThirdPartyLinksListCall) Do(opts ...googleapi.CallOption) (*ThirdPartyLinkListResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -22375,7 +22412,7 @@ func (c *ThirdPartyLinksListCall) Do(opts ...googleapi.CallOption) (*ThirdPartyL if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &ThirdPartyLink{ + ret := &ThirdPartyLinkListResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -22428,7 +22465,7 @@ func (c *ThirdPartyLinksListCall) Do(opts ...googleapi.CallOption) (*ThirdPartyL // }, // "path": "youtube/v3/thirdPartyLinks", // "response": { - // "$ref": "ThirdPartyLink" + // "$ref": "ThirdPartyLinkListResponse" // } // }