From ca07ad54e10df0fc93cf10f00a9a46c1a0ebb147 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 26 Mar 2024 07:14:08 +0000 Subject: [PATCH] feat(all): auto-regenerate discovery clients --- adsense/v2/adsense-api.json | 192 +++++- adsense/v2/adsense-gen.go | 555 ++++++++++++++++++ .../v1/androidmanagement-api.json | 10 +- androidmanagement/v1/androidmanagement-gen.go | 4 + .../v1/bigqueryreservation-api.json | 49 +- .../v1/bigqueryreservation-gen.go | 178 ++++++ .../v1/blockchainnodeengine-api.json | 11 +- .../v1/blockchainnodeengine-gen.go | 5 +- .../v1beta1/clouderrorreporting-api.json | 4 +- .../v1beta1/clouderrorreporting-gen.go | 11 +- sheets/v4/sheets-api.json | 10 +- sheets/v4/sheets-gen.go | 2 + tasks/v1/tasks-api.json | 18 +- tasks/v1/tasks-gen.go | 34 +- 14 files changed, 1044 insertions(+), 39 deletions(-) diff --git a/adsense/v2/adsense-api.json b/adsense/v2/adsense-api.json index 6bfb640d96..97998edb94 100644 --- a/adsense/v2/adsense-api.json +++ b/adsense/v2/adsense-api.json @@ -838,6 +838,73 @@ } } }, + "policyIssues": { + "methods": { + "get": { + "description": "Gets information about the selected policy issue.", + "flatPath": "v2/accounts/{accountsId}/policyIssues/{policyIssuesId}", + "httpMethod": "GET", + "id": "adsense.accounts.policyIssues.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the policy issue. Format: accounts/{account}/policyIssues/{policy_issue}", + "location": "path", + "pattern": "^accounts/[^/]+/policyIssues/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "PolicyIssue" + }, + "scopes": [ + "https://www.googleapis.com/auth/adsense", + "https://www.googleapis.com/auth/adsense.readonly" + ] + }, + "list": { + "description": "Lists all the policy issues for the specified account.", + "flatPath": "v2/accounts/{accountsId}/policyIssues", + "httpMethod": "GET", + "id": "adsense.accounts.policyIssues.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of policy issues to include in the response, used for paging. If unspecified, at most 10000 policy issues will be returned. The maximum value is 10000; values above 10000 will be coerced to 10000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListPolicyIssues` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPolicyIssues` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The account for which policy issues are being retrieved. Format: accounts/{account}", + "location": "path", + "pattern": "^accounts/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+parent}/policyIssues", + "response": { + "$ref": "ListPolicyIssuesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/adsense", + "https://www.googleapis.com/auth/adsense.readonly" + ] + } + } + }, "reports": { "methods": { "generate": { @@ -1845,7 +1912,7 @@ } } }, - "revision": "20240320", + "revision": "20240324", "rootUrl": "https://adsense.googleapis.com/", "schemas": { "Account": { @@ -2392,6 +2459,24 @@ }, "type": "object" }, + "ListPolicyIssuesResponse": { + "description": "Response definition for the policy issues list rpc. Policy issues are reported only if the publisher has at least one AFC ad client in READY or GETTING_READY state. If the publisher has no such AFC ad client, the response will be an empty list.", + "id": "ListPolicyIssuesResponse", + "properties": { + "nextPageToken": { + "description": "Continuation token used to page through policy issues. To retrieve the next page of the results, set the next request's \"page_token\" value to this.", + "type": "string" + }, + "policyIssues": { + "description": "The policy issues returned in the list response.", + "items": { + "$ref": "PolicyIssue" + }, + "type": "array" + } + }, + "type": "object" + }, "ListSavedReportsResponse": { "description": "Response definition for the saved reports list rpc.", "id": "ListSavedReportsResponse", @@ -2468,6 +2553,111 @@ }, "type": "object" }, + "PolicyIssue": { + "description": "Representation of a policy issue for a single entity (site, site-section, or page). All issues for a single entity are represented by a single PolicyIssue resource, though that PolicyIssue can have multiple causes (or \"topics\") that can change over time. Policy issues are removed if there are no issues detected recently or if there's a recent successful appeal for the entity.", + "id": "PolicyIssue", + "properties": { + "action": { + "description": "Required. The most severe action taken on the entity over the past seven days.", + "enum": [ + "ENFORCEMENT_ACTION_UNSPECIFIED", + "WARNED", + "AD_SERVING_RESTRICTED", + "AD_SERVING_DISABLED", + "AD_SERVED_WITH_CLICK_CONFIRMATION", + "AD_PERSONALIZATION_RESTRICTED" + ], + "enumDescriptions": [ + "The action is unspecified.", + "No ad serving enforcement is currently present, but enforcement will start on the `warning_escalation_date` if the issue is not resolved.", + "Ad serving demand has been restricted on the entity.", + "Ad serving has been disabled on the entity.", + "Ads are being served for the entity but Confirmed Click is being applied to the ads. See https://support.google.com/adsense/answer/10025624.", + "Ad personalization is restricted because the ad requests coming from the EEA and UK do not have a TCF string or the Consent Management Platform (CMP) indicated by the TCF string is not Google certified. As a result, basic/limited ads will be served. See https://support.google.com/adsense/answer/13554116" + ], + "type": "string" + }, + "adClients": { + "description": "Optional. List of ad clients associated with the policy issue (either as the primary ad client or an associated host/secondary ad client). In the latter case, this will be an ad client that is not owned by the current account.", + "items": { + "type": "string" + }, + "type": "array" + }, + "adRequestCount": { + "description": "Required. Total number of ad requests affected by the policy violations over the past seven days.", + "format": "int64", + "type": "string" + }, + "entityType": { + "description": "Required. Type of the entity indicating if the entity is a site, site-section, or page.", + "enum": [ + "ENTITY_TYPE_UNSPECIFIED", + "SITE", + "SITE_SECTION", + "PAGE" + ], + "enumDescriptions": [ + "The entity type is unspecified.", + "The enforced entity is an entire website.", + "The enforced entity is a particular section of a website. All the pages with this prefix are enforced.", + "The enforced entity is a single web page." + ], + "type": "string" + }, + "firstDetectedDate": { + "$ref": "Date", + "description": "Required. The date (in the America/Los_Angeles timezone) when policy violations were first detected on the entity." + }, + "lastDetectedDate": { + "$ref": "Date", + "description": "Required. The date (in the America/Los_Angeles timezone) when policy violations were last detected on the entity." + }, + "name": { + "description": "Required. Resource name of the entity with policy issues. Format: accounts/{account}/policyIssues/{policy_issue}", + "type": "string" + }, + "policyTopics": { + "description": "Required. Unordered list. The policy topics that this entity was found to violate over the past seven days.", + "items": { + "$ref": "PolicyTopic" + }, + "type": "array" + }, + "site": { + "description": "Required. Hostname/domain of the entity (for example \"foo.com\" or \"www.foo.com\"). This _should_ be a bare domain/host name without any protocol. This will be present for all policy issues.", + "type": "string" + }, + "siteSection": { + "description": "Optional. Prefix of the site-section having policy issues (For example \"foo.com/bar-section\"). This will be present if the `entity_type` is `SITE_SECTION` and will be absent for other entity types.", + "type": "string" + }, + "uri": { + "description": "Optional. URI of the page having policy violations (for example \"foo.com/bar\" or \"www.foo.com/bar\"). This will be present if the `entity_type` is `PAGE` and will be absent for other entity types.", + "type": "string" + }, + "warningEscalationDate": { + "$ref": "Date", + "description": "Optional. The date (in the America/Los_Angeles timezone) when the entity will have ad serving demand restricted or ad serving disabled. This is present only for issues with a `WARNED` enforcement action. See https://support.google.com/adsense/answer/11066888." + } + }, + "type": "object" + }, + "PolicyTopic": { + "description": "Information about a particular policy topic. A policy topic represents a single class of policy issue that can impact ad serving for your site. For example, sexual content or having ads that obscure your content. A single policy issue can have multiple policy topics for a single entity.", + "id": "PolicyTopic", + "properties": { + "mustFix": { + "description": "Required. Indicates if this is a policy violation or not. When the value is true, issues that are instances of this topic must be addressed to remain in compliance with the partner's agreements with Google. A false value indicates that it's not mandatory to fix the issues but advertising demand might be restricted.", + "type": "boolean" + }, + "topic": { + "description": "Required. The policy topic. For example, \"sexual-content\" or \"ads-obscuring-content\".\"", + "type": "string" + } + }, + "type": "object" + }, "ReportResult": { "description": "Result of a generated report.", "id": "ReportResult", diff --git a/adsense/v2/adsense-gen.go b/adsense/v2/adsense-gen.go index 1256b3176a..1e9cf69c5e 100644 --- a/adsense/v2/adsense-gen.go +++ b/adsense/v2/adsense-gen.go @@ -168,6 +168,7 @@ func NewAccountsService(s *Service) *AccountsService { rs.Adclients = NewAccountsAdclientsService(s) rs.Alerts = NewAccountsAlertsService(s) rs.Payments = NewAccountsPaymentsService(s) + rs.PolicyIssues = NewAccountsPolicyIssuesService(s) rs.Reports = NewAccountsReportsService(s) rs.Sites = NewAccountsSitesService(s) return rs @@ -182,6 +183,8 @@ type AccountsService struct { Payments *AccountsPaymentsService + PolicyIssues *AccountsPolicyIssuesService + Reports *AccountsReportsService Sites *AccountsSitesService @@ -250,6 +253,15 @@ type AccountsPaymentsService struct { s *Service } +func NewAccountsPolicyIssuesService(s *Service) *AccountsPolicyIssuesService { + rs := &AccountsPolicyIssuesService{s: s} + return rs +} + +type AccountsPolicyIssuesService struct { + s *Service +} + func NewAccountsReportsService(s *Service) *AccountsReportsService { rs := &AccountsReportsService{s: s} rs.Saved = NewAccountsReportsSavedService(s) @@ -1230,6 +1242,47 @@ func (s *ListPaymentsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListPolicyIssuesResponse: Response definition for the policy issues +// list rpc. Policy issues are reported only if the publisher has at +// least one AFC ad client in READY or GETTING_READY state. If the +// publisher has no such AFC ad client, the response will be an empty +// list. +type ListPolicyIssuesResponse struct { + // NextPageToken: Continuation token used to page through policy issues. + // To retrieve the next page of the results, set the next request's + // "page_token" value to this. + NextPageToken string `json:"nextPageToken,omitempty"` + + // PolicyIssues: The policy issues returned in the list response. + PolicyIssues []*PolicyIssue `json:"policyIssues,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 *ListPolicyIssuesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListPolicyIssuesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListSavedReportsResponse: Response definition for the saved reports // list rpc. type ListSavedReportsResponse struct { @@ -1392,6 +1445,161 @@ func (s *Payment) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// PolicyIssue: Representation of a policy issue for a single entity +// (site, site-section, or page). All issues for a single entity are +// represented by a single PolicyIssue resource, though that PolicyIssue +// can have multiple causes (or "topics") that can change over time. +// Policy issues are removed if there are no issues detected recently or +// if there's a recent successful appeal for the entity. +type PolicyIssue struct { + // Action: Required. The most severe action taken on the entity over the + // past seven days. + // + // Possible values: + // "ENFORCEMENT_ACTION_UNSPECIFIED" - The action is unspecified. + // "WARNED" - No ad serving enforcement is currently present, but + // enforcement will start on the `warning_escalation_date` if the issue + // is not resolved. + // "AD_SERVING_RESTRICTED" - Ad serving demand has been restricted on + // the entity. + // "AD_SERVING_DISABLED" - Ad serving has been disabled on the entity. + // "AD_SERVED_WITH_CLICK_CONFIRMATION" - Ads are being served for the + // entity but Confirmed Click is being applied to the ads. See + // https://support.google.com/adsense/answer/10025624. + // "AD_PERSONALIZATION_RESTRICTED" - Ad personalization is restricted + // because the ad requests coming from the EEA and UK do not have a TCF + // string or the Consent Management Platform (CMP) indicated by the TCF + // string is not Google certified. As a result, basic/limited ads will + // be served. See https://support.google.com/adsense/answer/13554116 + Action string `json:"action,omitempty"` + + // AdClients: Optional. List of ad clients associated with the policy + // issue (either as the primary ad client or an associated + // host/secondary ad client). In the latter case, this will be an ad + // client that is not owned by the current account. + AdClients []string `json:"adClients,omitempty"` + + // AdRequestCount: Required. Total number of ad requests affected by the + // policy violations over the past seven days. + AdRequestCount int64 `json:"adRequestCount,omitempty,string"` + + // EntityType: Required. Type of the entity indicating if the entity is + // a site, site-section, or page. + // + // Possible values: + // "ENTITY_TYPE_UNSPECIFIED" - The entity type is unspecified. + // "SITE" - The enforced entity is an entire website. + // "SITE_SECTION" - The enforced entity is a particular section of a + // website. All the pages with this prefix are enforced. + // "PAGE" - The enforced entity is a single web page. + EntityType string `json:"entityType,omitempty"` + + // FirstDetectedDate: Required. The date (in the America/Los_Angeles + // timezone) when policy violations were first detected on the entity. + FirstDetectedDate *Date `json:"firstDetectedDate,omitempty"` + + // LastDetectedDate: Required. The date (in the America/Los_Angeles + // timezone) when policy violations were last detected on the entity. + LastDetectedDate *Date `json:"lastDetectedDate,omitempty"` + + // Name: Required. Resource name of the entity with policy issues. + // Format: accounts/{account}/policyIssues/{policy_issue} + Name string `json:"name,omitempty"` + + // PolicyTopics: Required. Unordered list. The policy topics that this + // entity was found to violate over the past seven days. + PolicyTopics []*PolicyTopic `json:"policyTopics,omitempty"` + + // Site: Required. Hostname/domain of the entity (for example "foo.com" + // or "www.foo.com"). This _should_ be a bare domain/host name without + // any protocol. This will be present for all policy issues. + Site string `json:"site,omitempty"` + + // SiteSection: Optional. Prefix of the site-section having policy + // issues (For example "foo.com/bar-section"). This will be present if + // the `entity_type` is `SITE_SECTION` and will be absent for other + // entity types. + SiteSection string `json:"siteSection,omitempty"` + + // Uri: Optional. URI of the page having policy violations (for example + // "foo.com/bar" or "www.foo.com/bar"). This will be present if the + // `entity_type` is `PAGE` and will be absent for other entity types. + Uri string `json:"uri,omitempty"` + + // WarningEscalationDate: Optional. The date (in the America/Los_Angeles + // timezone) when the entity will have ad serving demand restricted or + // ad serving disabled. This is present only for issues with a `WARNED` + // enforcement action. See + // https://support.google.com/adsense/answer/11066888. + WarningEscalationDate *Date `json:"warningEscalationDate,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Action") 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. "Action") 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 *PolicyIssue) MarshalJSON() ([]byte, error) { + type NoMethod PolicyIssue + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PolicyTopic: Information about a particular policy topic. A policy +// topic represents a single class of policy issue that can impact ad +// serving for your site. For example, sexual content or having ads that +// obscure your content. A single policy issue can have multiple policy +// topics for a single entity. +type PolicyTopic struct { + // MustFix: Required. Indicates if this is a policy violation or not. + // When the value is true, issues that are instances of this topic must + // be addressed to remain in compliance with the partner's agreements + // with Google. A false value indicates that it's not mandatory to fix + // the issues but advertising demand might be restricted. + MustFix bool `json:"mustFix,omitempty"` + + // Topic: Required. The policy topic. For example, "sexual-content" or + // "ads-obscuring-content"." + Topic string `json:"topic,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MustFix") 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. "MustFix") 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 *PolicyTopic) MarshalJSON() ([]byte, error) { + type NoMethod PolicyTopic + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ReportResult: Result of a generated report. type ReportResult struct { // Averages: The averages of the report. This is the same length as any @@ -5501,6 +5709,353 @@ func (c *AccountsPaymentsListCall) Do(opts ...googleapi.CallOption) (*ListPaymen } +// method id "adsense.accounts.policyIssues.get": + +type AccountsPolicyIssuesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information about the selected policy issue. +// +// - name: Name of the policy issue. Format: +// accounts/{account}/policyIssues/{policy_issue}. +func (r *AccountsPolicyIssuesService) Get(name string) *AccountsPolicyIssuesGetCall { + c := &AccountsPolicyIssuesGetCall{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 *AccountsPolicyIssuesGetCall) Fields(s ...googleapi.Field) *AccountsPolicyIssuesGetCall { + 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 *AccountsPolicyIssuesGetCall) IfNoneMatch(entityTag string) *AccountsPolicyIssuesGetCall { + 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 *AccountsPolicyIssuesGetCall) Context(ctx context.Context) *AccountsPolicyIssuesGetCall { + 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 *AccountsPolicyIssuesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsPolicyIssuesGetCall) 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, "v2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "adsense.accounts.policyIssues.get" call. +// Exactly one of *PolicyIssue or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *PolicyIssue.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 *AccountsPolicyIssuesGetCall) Do(opts ...googleapi.CallOption) (*PolicyIssue, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &PolicyIssue{ + 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": "Gets information about the selected policy issue.", + // "flatPath": "v2/accounts/{accountsId}/policyIssues/{policyIssuesId}", + // "httpMethod": "GET", + // "id": "adsense.accounts.policyIssues.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the policy issue. Format: accounts/{account}/policyIssues/{policy_issue}", + // "location": "path", + // "pattern": "^accounts/[^/]+/policyIssues/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+name}", + // "response": { + // "$ref": "PolicyIssue" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/adsense", + // "https://www.googleapis.com/auth/adsense.readonly" + // ] + // } + +} + +// method id "adsense.accounts.policyIssues.list": + +type AccountsPolicyIssuesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all the policy issues for the specified account. +// +// - parent: The account for which policy issues are being retrieved. +// Format: accounts/{account}. +func (r *AccountsPolicyIssuesService) List(parent string) *AccountsPolicyIssuesListCall { + c := &AccountsPolicyIssuesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of policy issues to include in the response, used for paging. If +// unspecified, at most 10000 policy issues will be returned. The +// maximum value is 10000; values above 10000 will be coerced to 10000. +func (c *AccountsPolicyIssuesListCall) PageSize(pageSize int64) *AccountsPolicyIssuesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListPolicyIssues` call. Provide this to +// retrieve the subsequent page. When paginating, all other parameters +// provided to `ListPolicyIssues` must match the call that provided the +// page token. +func (c *AccountsPolicyIssuesListCall) PageToken(pageToken string) *AccountsPolicyIssuesListCall { + 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 *AccountsPolicyIssuesListCall) Fields(s ...googleapi.Field) *AccountsPolicyIssuesListCall { + 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 *AccountsPolicyIssuesListCall) IfNoneMatch(entityTag string) *AccountsPolicyIssuesListCall { + 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 *AccountsPolicyIssuesListCall) Context(ctx context.Context) *AccountsPolicyIssuesListCall { + 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 *AccountsPolicyIssuesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *AccountsPolicyIssuesListCall) 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, "v2/{+parent}/policyIssues") + 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 "adsense.accounts.policyIssues.list" call. +// Exactly one of *ListPolicyIssuesResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListPolicyIssuesResponse.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 *AccountsPolicyIssuesListCall) Do(opts ...googleapi.CallOption) (*ListPolicyIssuesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListPolicyIssuesResponse{ + 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 all the policy issues for the specified account.", + // "flatPath": "v2/accounts/{accountsId}/policyIssues", + // "httpMethod": "GET", + // "id": "adsense.accounts.policyIssues.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of policy issues to include in the response, used for paging. If unspecified, at most 10000 policy issues will be returned. The maximum value is 10000; values above 10000 will be coerced to 10000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `ListPolicyIssues` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPolicyIssues` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The account for which policy issues are being retrieved. Format: accounts/{account}", + // "location": "path", + // "pattern": "^accounts/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v2/{+parent}/policyIssues", + // "response": { + // "$ref": "ListPolicyIssuesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/adsense", + // "https://www.googleapis.com/auth/adsense.readonly" + // ] + // } + +} + +// 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 *AccountsPolicyIssuesListCall) Pages(ctx context.Context, f func(*ListPolicyIssuesResponse) 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 "adsense.accounts.reports.generate": type AccountsReportsGenerateCall struct { diff --git a/androidmanagement/v1/androidmanagement-api.json b/androidmanagement/v1/androidmanagement-api.json index 23234df2ea..9273361782 100644 --- a/androidmanagement/v1/androidmanagement-api.json +++ b/androidmanagement/v1/androidmanagement-api.json @@ -1163,7 +1163,7 @@ } } }, - "revision": "20240320", + "revision": "20240321", "rootUrl": "https://androidmanagement.googleapis.com/", "schemas": { "AdbShellCommandEvent": { @@ -6113,7 +6113,9 @@ "STOP_LOST_MODE_USER_ATTEMPT", "LOST_MODE_OUTGOING_PHONE_CALL", "LOST_MODE_LOCATION", - "ENROLLMENT_COMPLETE" + "ENROLLMENT_COMPLETE", + "MAX_DEVICES_REGISTRATION_QUOTA_WARNING", + "MAX_DEVICES_REGISTRATION_QUOTA_EXHAUSTED" ], "enumDescriptions": [ "This value is not used", @@ -6147,7 +6149,9 @@ "Indicates stopLostModeUserAttemptEvent has been set.", "Indicates lostModeOutgoingPhoneCallEvent has been set.", "Indicates lostModeLocationEvent has been set.", - "Indicates enrollment_complete_event has been set." + "Indicates enrollment_complete_event has been set.", + "Indicates max_devices_registration_quota_warning_event has been set.", + "Indicates max_devices_registration_quota_exhausted_event has been set." ], "type": "string" }, diff --git a/androidmanagement/v1/androidmanagement-gen.go b/androidmanagement/v1/androidmanagement-gen.go index f04d58fd7d..c353adb622 100644 --- a/androidmanagement/v1/androidmanagement-gen.go +++ b/androidmanagement/v1/androidmanagement-gen.go @@ -7520,6 +7520,10 @@ type UsageLogEvent struct { // set. // "ENROLLMENT_COMPLETE" - Indicates enrollment_complete_event has // been set. + // "MAX_DEVICES_REGISTRATION_QUOTA_WARNING" - Indicates + // max_devices_registration_quota_warning_event has been set. + // "MAX_DEVICES_REGISTRATION_QUOTA_EXHAUSTED" - Indicates + // max_devices_registration_quota_exhausted_event has been set. EventType string `json:"eventType,omitempty"` // FilePulledEvent: A file was downloaded from the device. Part of diff --git a/bigqueryreservation/v1/bigqueryreservation-api.json b/bigqueryreservation/v1/bigqueryreservation-api.json index aae2e6309f..c0432bc1af 100644 --- a/bigqueryreservation/v1/bigqueryreservation-api.json +++ b/bigqueryreservation/v1/bigqueryreservation-api.json @@ -579,6 +579,35 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "failoverReservation": { + "description": "Failover a reservation to the secondary location. The operation should be done in the current secondary location, which will be promoted to the new primary location for the reservation. Attempting to failover a reservation in the current primary location will fail with the error code `google.rpc.Code.FAILED_PRECONDITION`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/reservations/{reservationsId}:failoverReservation", + "httpMethod": "POST", + "id": "bigqueryreservation.projects.locations.reservations.failoverReservation", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Resource name of the reservation to failover. E.g., `projects/myproject/locations/US/reservations/team1-prod`", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/reservations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:failoverReservation", + "request": { + "$ref": "FailoverReservationRequest" + }, + "response": { + "$ref": "Reservation" + }, + "scopes": [ + "https://www.googleapis.com/auth/bigquery", + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "get": { "description": "Returns information about the reservation.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/reservations/{reservationsId}", @@ -851,7 +880,7 @@ } } }, - "revision": "20240306", + "revision": "20240321", "rootUrl": "https://bigqueryreservation.googleapis.com/", "schemas": { "Assignment": { @@ -1114,6 +1143,12 @@ "properties": {}, "type": "object" }, + "FailoverReservationRequest": { + "description": "The request for ReservationService.FailoverReservation.", + "id": "FailoverReservationRequest", + "properties": {}, + "type": "object" + }, "ListAssignmentsResponse": { "description": "The response for ReservationService.ListAssignments.", "id": "ListAssignmentsResponse", @@ -1244,6 +1279,18 @@ "description": "The resource name of the reservation, e.g., `projects/*/locations/*/reservations/team1-prod`. The reservation_id must only contain lower case alphanumeric characters or dashes. It must start with a letter and must not end with a dash. Its maximum length is 64 characters.", "type": "string" }, + "originalPrimaryLocation": { + "description": "Optional. The original primary location of the reservation which is set only during its creation and remains unchanged afterwards. It can be used by the customer to answer questions about disaster recovery billing. The field is output only for customers and should not be specified, however, the google.api.field_behavior is not set to OUTPUT_ONLY since these fields are set in rerouted requests sent across regions.", + "type": "string" + }, + "primaryLocation": { + "description": "Optional. The primary location of the reservation. The field is only meaningful for reservation used for cross region disaster recovery. The field is output only for customers and should not be specified, however, the google.api.field_behavior is not set to OUTPUT_ONLY since these fields are set in rerouted requests sent across regions.", + "type": "string" + }, + "secondaryLocation": { + "description": "Optional. The secondary location of the reservation which is used for cross region disaster recovery purposes. Customer can set this in create/update reservation calls to create a failover reservation or convert a non-failover reservation to a failover reservation.", + "type": "string" + }, "slotCapacity": { "description": "Baseline slots available to this reservation. A slot is a unit of computational power in BigQuery, and serves as the unit of parallelism. Queries using this reservation might use more slots during runtime if ignore_idle_slots is set to false, or autoscaling is enabled. If edition is EDITION_UNSPECIFIED and total slot_capacity of the reservation and its siblings exceeds the total slot_count of all capacity commitments, the request will fail with `google.rpc.Code.RESOURCE_EXHAUSTED`. If edition is any value but EDITION_UNSPECIFIED, then the above requirement is not needed. The total slot_capacity of the reservation and its siblings may exceed the total slot_count of capacity commitments. In that case, the exceeding slots will be charged with the autoscale SKU. You can increase the number of baseline slots in a reservation every few minutes. If you want to decrease your baseline slots, you are limited to once an hour if you have recently changed your baseline slot capacity and your baseline slots exceed your committed slots. Otherwise, you can decrease your baseline slots every few minutes.", "format": "int64", diff --git a/bigqueryreservation/v1/bigqueryreservation-gen.go b/bigqueryreservation/v1/bigqueryreservation-gen.go index 10287bed9d..8860bda067 100644 --- a/bigqueryreservation/v1/bigqueryreservation-gen.go +++ b/bigqueryreservation/v1/bigqueryreservation-gen.go @@ -548,6 +548,11 @@ type Empty struct { googleapi.ServerResponse `json:"-"` } +// FailoverReservationRequest: The request for +// ReservationService.FailoverReservation. +type FailoverReservationRequest struct { +} + // ListAssignmentsResponse: The response for // ReservationService.ListAssignments. type ListAssignmentsResponse struct { @@ -788,6 +793,30 @@ type Reservation struct { // length is 64 characters. Name string `json:"name,omitempty"` + // OriginalPrimaryLocation: Optional. The original primary location of + // the reservation which is set only during its creation and remains + // unchanged afterwards. It can be used by the customer to answer + // questions about disaster recovery billing. The field is output only + // for customers and should not be specified, however, the + // google.api.field_behavior is not set to OUTPUT_ONLY since these + // fields are set in rerouted requests sent across regions. + OriginalPrimaryLocation string `json:"originalPrimaryLocation,omitempty"` + + // PrimaryLocation: Optional. The primary location of the reservation. + // The field is only meaningful for reservation used for cross region + // disaster recovery. The field is output only for customers and should + // not be specified, however, the google.api.field_behavior is not set + // to OUTPUT_ONLY since these fields are set in rerouted requests sent + // across regions. + PrimaryLocation string `json:"primaryLocation,omitempty"` + + // SecondaryLocation: Optional. The secondary location of the + // reservation which is used for cross region disaster recovery + // purposes. Customer can set this in create/update reservation calls to + // create a failover reservation or convert a non-failover reservation + // to a failover reservation. + SecondaryLocation string `json:"secondaryLocation,omitempty"` + // SlotCapacity: Baseline slots available to this reservation. A slot is // a unit of computational power in BigQuery, and serves as the unit of // parallelism. Queries using this reservation might use more slots @@ -3228,6 +3257,155 @@ func (c *ProjectsLocationsReservationsDeleteCall) Do(opts ...googleapi.CallOptio } +// method id "bigqueryreservation.projects.locations.reservations.failoverReservation": + +type ProjectsLocationsReservationsFailoverReservationCall struct { + s *Service + name string + failoverreservationrequest *FailoverReservationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// FailoverReservation: Failover a reservation to the secondary +// location. The operation should be done in the current secondary +// location, which will be promoted to the new primary location for the +// reservation. Attempting to failover a reservation in the current +// primary location will fail with the error code +// `google.rpc.Code.FAILED_PRECONDITION`. +// +// - name: Resource name of the reservation to failover. E.g., +// `projects/myproject/locations/US/reservations/team1-prod`. +func (r *ProjectsLocationsReservationsService) FailoverReservation(name string, failoverreservationrequest *FailoverReservationRequest) *ProjectsLocationsReservationsFailoverReservationCall { + c := &ProjectsLocationsReservationsFailoverReservationCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.failoverreservationrequest = failoverreservationrequest + 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 *ProjectsLocationsReservationsFailoverReservationCall) Fields(s ...googleapi.Field) *ProjectsLocationsReservationsFailoverReservationCall { + 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 *ProjectsLocationsReservationsFailoverReservationCall) Context(ctx context.Context) *ProjectsLocationsReservationsFailoverReservationCall { + 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 *ProjectsLocationsReservationsFailoverReservationCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsReservationsFailoverReservationCall) 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.failoverreservationrequest) + 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/{+name}:failoverReservation") + 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{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "bigqueryreservation.projects.locations.reservations.failoverReservation" call. +// Exactly one of *Reservation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Reservation.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 *ProjectsLocationsReservationsFailoverReservationCall) Do(opts ...googleapi.CallOption) (*Reservation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Reservation{ + 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": "Failover a reservation to the secondary location. The operation should be done in the current secondary location, which will be promoted to the new primary location for the reservation. Attempting to failover a reservation in the current primary location will fail with the error code `google.rpc.Code.FAILED_PRECONDITION`.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/reservations/{reservationsId}:failoverReservation", + // "httpMethod": "POST", + // "id": "bigqueryreservation.projects.locations.reservations.failoverReservation", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Resource name of the reservation to failover. E.g., `projects/myproject/locations/US/reservations/team1-prod`", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/reservations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:failoverReservation", + // "request": { + // "$ref": "FailoverReservationRequest" + // }, + // "response": { + // "$ref": "Reservation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/bigquery", + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "bigqueryreservation.projects.locations.reservations.get": type ProjectsLocationsReservationsGetCall struct { diff --git a/blockchainnodeengine/v1/blockchainnodeengine-api.json b/blockchainnodeengine/v1/blockchainnodeengine-api.json index fc971e3559..63b36816c5 100644 --- a/blockchainnodeengine/v1/blockchainnodeengine-api.json +++ b/blockchainnodeengine/v1/blockchainnodeengine-api.json @@ -487,7 +487,7 @@ } } }, - "revision": "20240207", + "revision": "20240320", "rootUrl": "https://blockchainnodeengine.googleapis.com/", "schemas": { "BlockchainNode": { @@ -674,10 +674,17 @@ "TESTNET_SEPOLIA", "TESTNET_HOLESKY" ], + "enumDeprecated": [ + false, + false, + true, + false, + false + ], "enumDescriptions": [ "The network has not been specified, but should be.", "The Ethereum Mainnet.", - "The Ethereum Testnet based on Goerli protocol.", + "Deprecated: The Ethereum Testnet based on Goerli protocol. Holesky (TESTNET_HOLESKY) is the recommended testnet to replace Goerli.", "The Ethereum Testnet based on Sepolia/Bepolia protocol. See https://github.com/eth-clients/sepolia.", "The Ethereum Testnet based on Holesky specification. See https://github.com/eth-clients/holesky." ], diff --git a/blockchainnodeengine/v1/blockchainnodeengine-gen.go b/blockchainnodeengine/v1/blockchainnodeengine-gen.go index ecc6040b98..811875625d 100644 --- a/blockchainnodeengine/v1/blockchainnodeengine-gen.go +++ b/blockchainnodeengine/v1/blockchainnodeengine-gen.go @@ -413,8 +413,9 @@ type EthereumDetails struct { // "NETWORK_UNSPECIFIED" - The network has not been specified, but // should be. // "MAINNET" - The Ethereum Mainnet. - // "TESTNET_GOERLI_PRATER" - The Ethereum Testnet based on Goerli - // protocol. + // "TESTNET_GOERLI_PRATER" - Deprecated: The Ethereum Testnet based on + // Goerli protocol. Holesky (TESTNET_HOLESKY) is the recommended testnet + // to replace Goerli. // "TESTNET_SEPOLIA" - The Ethereum Testnet based on Sepolia/Bepolia // protocol. See https://github.com/eth-clients/sepolia. // "TESTNET_HOLESKY" - The Ethereum Testnet based on Holesky diff --git a/clouderrorreporting/v1beta1/clouderrorreporting-api.json b/clouderrorreporting/v1beta1/clouderrorreporting-api.json index 4d0e65484c..2dfaefde4b 100644 --- a/clouderrorreporting/v1beta1/clouderrorreporting-api.json +++ b/clouderrorreporting/v1beta1/clouderrorreporting-api.json @@ -214,7 +214,7 @@ ] }, "report": { - "description": "Report an individual error event and record the event to a log. This endpoint accepts **either** an OAuth token, **or** an [API key](https://support.google.com/cloud/answer/6158862) for authentication. To use an API key, append it to the URL as the value of a `key` parameter. For example: `POST https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456` **Note:** [Error Reporting] (https://cloud.google.com/error-reporting) is a global service built on Cloud Logging and doesn't analyze logs stored in regional log buckets.", + "description": "Report an individual error event and record the event to a log. This endpoint accepts **either** an OAuth token, **or** an [API key](https://support.google.com/cloud/answer/6158862) for authentication. To use an API key, append it to the URL as the value of a `key` parameter. For example: `POST https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456` **Note:** [Error Reporting] (https://cloud.google.com/error-reporting) is a global service built on Cloud Logging and can analyze log entries when all of the following are true: * The log entries are stored in a log bucket in the `global` location. * Customer-managed encryption keys (CMEK) are disabled on the log bucket. * The log bucket satisfies one of the following: * The log bucket is stored in the same project where the logs originated. * The logs were routed to a project, and then that project stored those logs in a log bucket that it owns.", "flatPath": "v1beta1/projects/{projectsId}/events:report", "httpMethod": "POST", "id": "clouderrorreporting.projects.events.report", @@ -431,7 +431,7 @@ } } }, - "revision": "20240315", + "revision": "20240322", "rootUrl": "https://clouderrorreporting.googleapis.com/", "schemas": { "DeleteEventsResponse": { diff --git a/clouderrorreporting/v1beta1/clouderrorreporting-gen.go b/clouderrorreporting/v1beta1/clouderrorreporting-gen.go index 4d67d835d7..fc26ffd4d2 100644 --- a/clouderrorreporting/v1beta1/clouderrorreporting-gen.go +++ b/clouderrorreporting/v1beta1/clouderrorreporting-gen.go @@ -1307,8 +1307,13 @@ type ProjectsEventsReportCall struct { // https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456` // **Note:** [Error Reporting] // (https://cloud.google.com/error-reporting) is a global service built -// on Cloud Logging and doesn't analyze logs stored in regional log -// buckets. +// on Cloud Logging and can analyze log entries when all of the +// following are true: * The log entries are stored in a log bucket in +// the `global` location. * Customer-managed encryption keys (CMEK) are +// disabled on the log bucket. * The log bucket satisfies one of the +// following: * The log bucket is stored in the same project where the +// logs originated. * The logs were routed to a project, and then that +// project stored those logs in a log bucket that it owns. // // - projectName: The resource name of the Google Cloud Platform // project. Written as `projects/{projectId}`, where `{projectId}` is @@ -1413,7 +1418,7 @@ func (c *ProjectsEventsReportCall) Do(opts ...googleapi.CallOption) (*ReportErro } return ret, nil // { - // "description": "Report an individual error event and record the event to a log. This endpoint accepts **either** an OAuth token, **or** an [API key](https://support.google.com/cloud/answer/6158862) for authentication. To use an API key, append it to the URL as the value of a `key` parameter. For example: `POST https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456` **Note:** [Error Reporting] (https://cloud.google.com/error-reporting) is a global service built on Cloud Logging and doesn't analyze logs stored in regional log buckets.", + // "description": "Report an individual error event and record the event to a log. This endpoint accepts **either** an OAuth token, **or** an [API key](https://support.google.com/cloud/answer/6158862) for authentication. To use an API key, append it to the URL as the value of a `key` parameter. For example: `POST https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456` **Note:** [Error Reporting] (https://cloud.google.com/error-reporting) is a global service built on Cloud Logging and can analyze log entries when all of the following are true: * The log entries are stored in a log bucket in the `global` location. * Customer-managed encryption keys (CMEK) are disabled on the log bucket. * The log bucket satisfies one of the following: * The log bucket is stored in the same project where the logs originated. * The logs were routed to a project, and then that project stored those logs in a log bucket that it owns.", // "flatPath": "v1beta1/projects/{projectsId}/events:report", // "httpMethod": "POST", // "id": "clouderrorreporting.projects.events.report", diff --git a/sheets/v4/sheets-api.json b/sheets/v4/sheets-api.json index 50698fd5e6..000ba8936d 100644 --- a/sheets/v4/sheets-api.json +++ b/sheets/v4/sheets-api.json @@ -870,7 +870,7 @@ } } }, - "revision": "20240318", + "revision": "20240319", "rootUrl": "https://sheets.googleapis.com/", "schemas": { "AddBandingRequest": { @@ -3178,7 +3178,8 @@ "MISSING_COLUMN_ALIAS", "OBJECT_NOT_FOUND", "OBJECT_IN_ERROR_STATE", - "OBJECT_SPEC_INVALID" + "OBJECT_SPEC_INVALID", + "DATA_EXECUTION_CANCELLED" ], "enumDescriptions": [ "Default value, do not use.", @@ -3199,7 +3200,8 @@ "The data execution returns columns with missing aliases.", "The data source object does not exist.", "The data source object is currently in error state. To force refresh, set force in RefreshDataSourceRequest.", - "The data source object specification is invalid." + "The data source object specification is invalid.", + "The data execution has been cancelled." ], "type": "string" }, @@ -3218,6 +3220,7 @@ "DATA_EXECUTION_STATE_UNSPECIFIED", "NOT_STARTED", "RUNNING", + "CANCELLING", "SUCCEEDED", "FAILED" ], @@ -3225,6 +3228,7 @@ "Default value, do not use.", "The data execution has not started.", "The data execution has started and is running.", + "The data execution is currently being cancelled.", "The data execution has completed successfully.", "The data execution has completed with errors." ], diff --git a/sheets/v4/sheets-gen.go b/sheets/v4/sheets-gen.go index ca9e486339..61ad6d29e0 100644 --- a/sheets/v4/sheets-gen.go +++ b/sheets/v4/sheets-gen.go @@ -4129,6 +4129,7 @@ type DataExecutionStatus struct { // error state. To force refresh, set force in RefreshDataSourceRequest. // "OBJECT_SPEC_INVALID" - The data source object specification is // invalid. + // "DATA_EXECUTION_CANCELLED" - The data execution has been cancelled. ErrorCode string `json:"errorCode,omitempty"` // ErrorMessage: The error message, which may be empty. @@ -4143,6 +4144,7 @@ type DataExecutionStatus struct { // "DATA_EXECUTION_STATE_UNSPECIFIED" - Default value, do not use. // "NOT_STARTED" - The data execution has not started. // "RUNNING" - The data execution has started and is running. + // "CANCELLING" - The data execution is currently being cancelled. // "SUCCEEDED" - The data execution has completed successfully. // "FAILED" - The data execution has completed with errors. State string `json:"state,omitempty"` diff --git a/tasks/v1/tasks-api.json b/tasks/v1/tasks-api.json index ae68e84ff6..bc65e56b67 100644 --- a/tasks/v1/tasks-api.json +++ b/tasks/v1/tasks-api.json @@ -157,7 +157,7 @@ ] }, "insert": { - "description": "Creates a new task list and adds it to the authenticated user's task lists.", + "description": "Creates a new task list and adds it to the authenticated user's task lists. A user can have up to 2000 lists at a time.", "flatPath": "tasks/v1/users/@me/lists", "httpMethod": "POST", "id": "tasks.tasklists.insert", @@ -175,7 +175,7 @@ ] }, "list": { - "description": "Returns all the authenticated user's task lists.", + "description": "Returns all the authenticated user's task lists. A user can have up to 2000 lists at a time.", "flatPath": "tasks/v1/users/@me/lists", "httpMethod": "GET", "id": "tasks.tasklists.list", @@ -342,7 +342,7 @@ ] }, "insert": { - "description": "Creates a new task on the specified task list.", + "description": "Creates a new task on the specified task list. A user can have up to 20,000 uncompleted tasks per list and up to 100,000 tasks in total at a time.", "flatPath": "tasks/v1/lists/{tasklist}/tasks", "httpMethod": "POST", "id": "tasks.tasks.insert", @@ -379,7 +379,7 @@ ] }, "list": { - "description": "Returns all tasks in the specified task list.", + "description": "Returns all tasks in the specified task list. A user can have up to 20,000 uncompleted tasks per list and up to 100,000 tasks in total at a time.", "flatPath": "tasks/v1/lists/{tasklist}/tasks", "httpMethod": "GET", "id": "tasks.tasks.list", @@ -455,7 +455,7 @@ ] }, "move": { - "description": "Moves the specified task to another position in the task list. This can include putting it as a child task under a new parent and/or move it to a different position among its sibling tasks.", + "description": "Moves the specified task to another position in the task list. This can include putting it as a child task under a new parent and/or move it to a different position among its sibling tasks. A user can have up to 2,000 subtasks per task.", "flatPath": "tasks/v1/lists/{tasklist}/tasks/{task}/move", "httpMethod": "POST", "id": "tasks.tasks.move", @@ -566,7 +566,7 @@ } } }, - "revision": "20240312", + "revision": "20240324", "rootUrl": "https://tasks.googleapis.com/", "schemas": { "Task": { @@ -622,7 +622,7 @@ "type": "array" }, "notes": { - "description": "Notes describing the task. Optional.", + "description": "Notes describing the task. Optional. Maximum length allowed: 8192 characters.", "type": "string" }, "parent": { @@ -642,7 +642,7 @@ "type": "string" }, "title": { - "description": "Title of the task.", + "description": "Title of the task. Maximum length allowed: 1024 characters.", "type": "string" }, "updated": { @@ -676,7 +676,7 @@ "type": "string" }, "title": { - "description": "Title of the task list.", + "description": "Title of the task list. Maximum length allowed: 1024 characters.", "type": "string" }, "updated": { diff --git a/tasks/v1/tasks-gen.go b/tasks/v1/tasks-gen.go index 449116749b..a5bb539e31 100644 --- a/tasks/v1/tasks-gen.go +++ b/tasks/v1/tasks-gen.go @@ -216,7 +216,8 @@ type Task struct { // Links: Collection of links. This collection is read-only. Links []*TaskLinks `json:"links,omitempty"` - // Notes: Notes describing the task. Optional. + // Notes: Notes describing the task. Optional. Maximum length allowed: + // 8192 characters. Notes string `json:"notes,omitempty"` // Parent: Parent task identifier. This field is omitted if it is a @@ -241,7 +242,7 @@ type Task struct { // "completed". Status string `json:"status,omitempty"` - // Title: Title of the task. + // Title: Title of the task. Maximum length allowed: 1024 characters. Title string `json:"title,omitempty"` // Updated: Last modification time of the task (as a RFC 3339 @@ -327,7 +328,8 @@ type TaskList struct { // or delete this task list. SelfLink string `json:"selfLink,omitempty"` - // Title: Title of the task list. + // Title: Title of the task list. Maximum length allowed: 1024 + // characters. Title string `json:"title,omitempty"` // Updated: Last modification time of the task list (as a RFC 3339 @@ -702,7 +704,7 @@ type TasklistsInsertCall struct { } // Insert: Creates a new task list and adds it to the authenticated -// user's task lists. +// user's task lists. A user can have up to 2000 lists at a time. func (r *TasklistsService) Insert(tasklist *TaskList) *TasklistsInsertCall { c := &TasklistsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.tasklist = tasklist @@ -797,7 +799,7 @@ func (c *TasklistsInsertCall) Do(opts ...googleapi.CallOption) (*TaskList, error } return ret, nil // { - // "description": "Creates a new task list and adds it to the authenticated user's task lists.", + // "description": "Creates a new task list and adds it to the authenticated user's task lists. A user can have up to 2000 lists at a time.", // "flatPath": "tasks/v1/users/@me/lists", // "httpMethod": "POST", // "id": "tasks.tasklists.insert", @@ -827,7 +829,8 @@ type TasklistsListCall struct { header_ http.Header } -// List: Returns all the authenticated user's task lists. +// List: Returns all the authenticated user's task lists. A user can +// have up to 2000 lists at a time. func (r *TasklistsService) List() *TasklistsListCall { c := &TasklistsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} return c @@ -944,7 +947,7 @@ func (c *TasklistsListCall) Do(opts ...googleapi.CallOption) (*TaskLists, error) } return ret, nil // { - // "description": "Returns all the authenticated user's task lists.", + // "description": "Returns all the authenticated user's task lists. A user can have up to 2000 lists at a time.", // "flatPath": "tasks/v1/users/@me/lists", // "httpMethod": "GET", // "id": "tasks.tasklists.list", @@ -1665,7 +1668,9 @@ type TasksInsertCall struct { header_ http.Header } -// Insert: Creates a new task on the specified task list. +// Insert: Creates a new task on the specified task list. A user can +// have up to 20,000 uncompleted tasks per list and up to 100,000 tasks +// in total at a time. // // - tasklist: Task list identifier. func (r *TasksService) Insert(tasklistid string, task *Task) *TasksInsertCall { @@ -1781,7 +1786,7 @@ func (c *TasksInsertCall) Do(opts ...googleapi.CallOption) (*Task, error) { } return ret, nil // { - // "description": "Creates a new task on the specified task list.", + // "description": "Creates a new task on the specified task list. A user can have up to 20,000 uncompleted tasks per list and up to 100,000 tasks in total at a time.", // "flatPath": "tasks/v1/lists/{tasklist}/tasks", // "httpMethod": "POST", // "id": "tasks.tasks.insert", @@ -1831,7 +1836,9 @@ type TasksListCall struct { header_ http.Header } -// List: Returns all tasks in the specified task list. +// List: Returns all tasks in the specified task list. A user can have +// up to 20,000 uncompleted tasks per list and up to 100,000 tasks in +// total at a time. // // - tasklist: Task list identifier. func (r *TasksService) List(tasklistid string) *TasksListCall { @@ -2019,7 +2026,7 @@ func (c *TasksListCall) Do(opts ...googleapi.CallOption) (*Tasks, error) { } return ret, nil // { - // "description": "Returns all tasks in the specified task list.", + // "description": "Returns all tasks in the specified task list. A user can have up to 20,000 uncompleted tasks per list and up to 100,000 tasks in total at a time.", // "flatPath": "tasks/v1/lists/{tasklist}/tasks", // "httpMethod": "GET", // "id": "tasks.tasks.list", @@ -2131,7 +2138,8 @@ type TasksMoveCall struct { // Move: Moves the specified task to another position in the task list. // This can include putting it as a child task under a new parent and/or -// move it to a different position among its sibling tasks. +// move it to a different position among its sibling tasks. A user can +// have up to 2,000 subtasks per task. // // - task: Task identifier. // - tasklist: Task list identifier. @@ -2245,7 +2253,7 @@ func (c *TasksMoveCall) Do(opts ...googleapi.CallOption) (*Task, error) { } return ret, nil // { - // "description": "Moves the specified task to another position in the task list. This can include putting it as a child task under a new parent and/or move it to a different position among its sibling tasks.", + // "description": "Moves the specified task to another position in the task list. This can include putting it as a child task under a new parent and/or move it to a different position among its sibling tasks. A user can have up to 2,000 subtasks per task.", // "flatPath": "tasks/v1/lists/{tasklist}/tasks/{task}/move", // "httpMethod": "POST", // "id": "tasks.tasks.move",