diff --git a/accessapproval/v1/accessapproval-api.json b/accessapproval/v1/accessapproval-api.json index 5d947ae25cb..8f62b6513f5 100644 --- a/accessapproval/v1/accessapproval-api.json +++ b/accessapproval/v1/accessapproval-api.json @@ -157,6 +157,31 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "getServiceAccount": { + "description": "Retrieves the service account that is used by Access Approval to access KMS keys for signing approved approval requests.", + "flatPath": "v1/folders/{foldersId}/serviceAccount", + "httpMethod": "GET", + "id": "accessapproval.folders.getServiceAccount", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Name of the AccessApprovalServiceAccount to retrieve.", + "location": "path", + "pattern": "^folders/[^/]+/serviceAccount$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "AccessApprovalServiceAccount" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "updateAccessApprovalSettings": { "description": "Updates the settings associated with a project, folder, or organization. Settings to update are determined by the value of field_mask.", "flatPath": "v1/folders/{foldersId}/accessApprovalSettings", @@ -373,6 +398,31 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "getServiceAccount": { + "description": "Retrieves the service account that is used by Access Approval to access KMS keys for signing approved approval requests.", + "flatPath": "v1/organizations/{organizationsId}/serviceAccount", + "httpMethod": "GET", + "id": "accessapproval.organizations.getServiceAccount", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Name of the AccessApprovalServiceAccount to retrieve.", + "location": "path", + "pattern": "^organizations/[^/]+/serviceAccount$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "AccessApprovalServiceAccount" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "updateAccessApprovalSettings": { "description": "Updates the settings associated with a project, folder, or organization. Settings to update are determined by the value of field_mask.", "flatPath": "v1/organizations/{organizationsId}/accessApprovalSettings", @@ -589,6 +639,31 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "getServiceAccount": { + "description": "Retrieves the service account that is used by Access Approval to access KMS keys for signing approved approval requests.", + "flatPath": "v1/projects/{projectsId}/serviceAccount", + "httpMethod": "GET", + "id": "accessapproval.projects.getServiceAccount", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Name of the AccessApprovalServiceAccount to retrieve.", + "location": "path", + "pattern": "^projects/[^/]+/serviceAccount$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "AccessApprovalServiceAccount" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "updateAccessApprovalSettings": { "description": "Updates the settings associated with a project, folder, or organization. Settings to update are determined by the value of field_mask.", "flatPath": "v1/projects/{projectsId}/accessApprovalSettings", @@ -754,13 +829,37 @@ } } }, - "revision": "20220212", + "revision": "20220304", "rootUrl": "https://accessapproval.googleapis.com/", "schemas": { + "AccessApprovalServiceAccount": { + "description": "Access Approval service account related to a project/folder/organization.", + "id": "AccessApprovalServiceAccount", + "properties": { + "accountEmail": { + "description": "Email address of the service account.", + "type": "string" + }, + "name": { + "description": "The resource name of the Access Approval service account. Format is one of: * \"projects/{project}/serviceAccount\" * \"folders/{folder}/serviceAccount\" * \"organizations/{organization}/serviceAccount\"", + "type": "string" + } + }, + "type": "object" + }, "AccessApprovalSettings": { "description": "Settings on a Project/Folder/Organization related to Access Approval.", "id": "AccessApprovalSettings", "properties": { + "activeKeyVersion": { + "description": "The asymmetric crypto key version to use for signing approval requests. Empty active_key_version indicates that a Google-managed key should be used for signing. This property will be ignored if set by an ancestor of this resource, and new non-empty values may not be set.", + "type": "string" + }, + "ancestorHasActiveKeyVersion": { + "description": "Output only. This field is read only (not settable via UpdateAccessApprovalSettings method). If the field is true, that indicates that an ancestor of this Project or Folder has set active_key_version (this field will always be unset for the organization since organizations do not have ancestors).", + "readOnly": true, + "type": "boolean" + }, "enrolledAncestor": { "description": "Output only. This field is read only (not settable via UpdateAccessApprovalSettings method). If the field is true, that indicates that at least one service is enrolled for Access Approval in one or more ancestors of the Project or Folder (this field will always be unset for the organization since organizations do not have ancestors).", "readOnly": true, @@ -773,6 +872,11 @@ }, "type": "array" }, + "invalidKeyVersion": { + "description": "Output only. This field is read only (not settable via UpdateAccessApprovalSettings method). If the field is true, that indicates that there is some configuration issue with the active_key_version configured at this level in the resource hierarchy (e.g. it doesn't exist or the Access Approval service account doesn't have the correct permissions on it, etc.) This key version is not necessarily the effective key version at this level, as key versions are inherited top-down.", + "readOnly": true, + "type": "boolean" + }, "name": { "description": "The resource name of the settings. Format is one of: * \"projects/{project}/accessApprovalSettings\" * \"folders/{folder}/accessApprovalSettings\" * \"organizations/{organization}/accessApprovalSettings\"", "type": "string" @@ -815,13 +919,15 @@ "TYPE_UNSPECIFIED", "CUSTOMER_INITIATED_SUPPORT", "GOOGLE_INITIATED_SERVICE", - "GOOGLE_INITIATED_REVIEW" + "GOOGLE_INITIATED_REVIEW", + "THIRD_PARTY_DATA_REQUEST" ], "enumDescriptions": [ "Default value for proto, shouldn't be used.", "Customer made a request or raised an issue that required the principal to access customer data. `detail` is of the form (\"#####\" is the issue ID): * \"Feedback Report: #####\" * \"Case Number: #####\" * \"Case ID: #####\" * \"E-PIN Reference: #####\" * \"Google-#####\" * \"T-#####\"", "The principal accessed customer data in order to diagnose or resolve a suspected issue in services or a known outage. Often this access is used to confirm that customers are not affected by a suspected service issue or to remediate a reversible system issue.", - "Google initiated service for security, fraud, abuse, or compliance purposes." + "Google initiated service for security, fraud, abuse, or compliance purposes.", + "The principal was compelled to access customer data in order to respond to a legal third party data request or process, including legal processes from customers themselves." ], "type": "string" } @@ -894,10 +1000,18 @@ "format": "google-datetime", "type": "string" }, + "autoApproved": { + "description": "True when the request has been auto-approved.", + "type": "boolean" + }, "expireTime": { "description": "The time at which the approval expires.", "format": "google-datetime", "type": "string" + }, + "signatureInfo": { + "$ref": "SignatureInfo", + "description": "The signature for the ApprovalRequest and details on how it was signed." } }, "type": "object" @@ -981,6 +1095,26 @@ } }, "type": "object" + }, + "SignatureInfo": { + "description": "Information about the digital signature of the resource.", + "id": "SignatureInfo", + "properties": { + "customerKmsKeyVersion": { + "description": "The resource name of the customer CryptoKeyVersion used for signing.", + "type": "string" + }, + "googlePublicKeyPem": { + "description": "The public key for the Google default signing, encoded in PEM format. The signature was created using a private key which may be verified using this public key.", + "type": "string" + }, + "signature": { + "description": "The digital signature.", + "format": "byte", + "type": "string" + } + }, + "type": "object" } }, "servicePath": "", diff --git a/accessapproval/v1/accessapproval-gen.go b/accessapproval/v1/accessapproval-gen.go index 54c36e37992..6602428d372 100644 --- a/accessapproval/v1/accessapproval-gen.go +++ b/accessapproval/v1/accessapproval-gen.go @@ -206,9 +206,62 @@ type ProjectsApprovalRequestsService struct { s *Service } +// AccessApprovalServiceAccount: Access Approval service account related +// to a project/folder/organization. +type AccessApprovalServiceAccount struct { + // AccountEmail: Email address of the service account. + AccountEmail string `json:"accountEmail,omitempty"` + + // Name: The resource name of the Access Approval service account. + // Format is one of: * "projects/{project}/serviceAccount" * + // "folders/{folder}/serviceAccount" * + // "organizations/{organization}/serviceAccount" + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AccountEmail") 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. "AccountEmail") 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 *AccessApprovalServiceAccount) MarshalJSON() ([]byte, error) { + type NoMethod AccessApprovalServiceAccount + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AccessApprovalSettings: Settings on a Project/Folder/Organization // related to Access Approval. type AccessApprovalSettings struct { + // ActiveKeyVersion: The asymmetric crypto key version to use for + // signing approval requests. Empty active_key_version indicates that a + // Google-managed key should be used for signing. This property will be + // ignored if set by an ancestor of this resource, and new non-empty + // values may not be set. + ActiveKeyVersion string `json:"activeKeyVersion,omitempty"` + + // AncestorHasActiveKeyVersion: Output only. This field is read only + // (not settable via UpdateAccessApprovalSettings method). If the field + // is true, that indicates that an ancestor of this Project or Folder + // has set active_key_version (this field will always be unset for the + // organization since organizations do not have ancestors). + AncestorHasActiveKeyVersion bool `json:"ancestorHasActiveKeyVersion,omitempty"` + // EnrolledAncestor: Output only. This field is read only (not settable // via UpdateAccessApprovalSettings method). If the field is true, that // indicates that at least one service is enrolled for Access Approval @@ -229,6 +282,16 @@ type AccessApprovalSettings struct { // expanded as the set of supported services is expanded. EnrolledServices []*EnrolledService `json:"enrolledServices,omitempty"` + // InvalidKeyVersion: Output only. This field is read only (not settable + // via UpdateAccessApprovalSettings method). If the field is true, that + // indicates that there is some configuration issue with the + // active_key_version configured at this level in the resource hierarchy + // (e.g. it doesn't exist or the Access Approval service account doesn't + // have the correct permissions on it, etc.) This key version is not + // necessarily the effective key version at this level, as key versions + // are inherited top-down. + InvalidKeyVersion bool `json:"invalidKeyVersion,omitempty"` + // Name: The resource name of the settings. Format is one of: * // "projects/{project}/accessApprovalSettings" * // "folders/{folder}/accessApprovalSettings" * @@ -246,7 +309,7 @@ type AccessApprovalSettings struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "EnrolledAncestor") to + // ForceSendFields is a list of field names (e.g. "ActiveKeyVersion") 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 @@ -254,7 +317,7 @@ type AccessApprovalSettings struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "EnrolledAncestor") to + // NullFields is a list of field names (e.g. "ActiveKeyVersion") 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 @@ -336,6 +399,9 @@ type AccessReason struct { // reversible system issue. // "GOOGLE_INITIATED_REVIEW" - Google initiated service for security, // fraud, abuse, or compliance purposes. + // "THIRD_PARTY_DATA_REQUEST" - The principal was compelled to access + // customer data in order to respond to a legal third party data request + // or process, including legal processes from customers themselves. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Detail") to @@ -465,9 +531,16 @@ type ApproveDecision struct { // ApproveTime: The time at which approval was granted. ApproveTime string `json:"approveTime,omitempty"` + // AutoApproved: True when the request has been auto-approved. + AutoApproved bool `json:"autoApproved,omitempty"` + // ExpireTime: The time at which the approval expires. ExpireTime string `json:"expireTime,omitempty"` + // SignatureInfo: The signature for the ApprovalRequest and details on + // how it was signed. + SignatureInfo *SignatureInfo `json:"signatureInfo,omitempty"` + // ForceSendFields is a list of field names (e.g. "ApproveTime") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -672,6 +745,46 @@ func (s *ResourceProperties) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SignatureInfo: Information about the digital signature of the +// resource. +type SignatureInfo struct { + // CustomerKmsKeyVersion: The resource name of the customer + // CryptoKeyVersion used for signing. + CustomerKmsKeyVersion string `json:"customerKmsKeyVersion,omitempty"` + + // GooglePublicKeyPem: The public key for the Google default signing, + // encoded in PEM format. The signature was created using a private key + // which may be verified using this public key. + GooglePublicKeyPem string `json:"googlePublicKeyPem,omitempty"` + + // Signature: The digital signature. + Signature string `json:"signature,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "CustomerKmsKeyVersion") 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. "CustomerKmsKeyVersion") 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 *SignatureInfo) MarshalJSON() ([]byte, error) { + type NoMethod SignatureInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // method id "accessapproval.folders.deleteAccessApprovalSettings": type FoldersDeleteAccessApprovalSettingsCall struct { @@ -958,6 +1071,154 @@ func (c *FoldersGetAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) } +// method id "accessapproval.folders.getServiceAccount": + +type FoldersGetServiceAccountCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetServiceAccount: Retrieves the service account that is used by +// Access Approval to access KMS keys for signing approved approval +// requests. +// +// - name: Name of the AccessApprovalServiceAccount to retrieve. +func (r *FoldersService) GetServiceAccount(name string) *FoldersGetServiceAccountCall { + c := &FoldersGetServiceAccountCall{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 *FoldersGetServiceAccountCall) Fields(s ...googleapi.Field) *FoldersGetServiceAccountCall { + 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 *FoldersGetServiceAccountCall) IfNoneMatch(entityTag string) *FoldersGetServiceAccountCall { + 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 *FoldersGetServiceAccountCall) Context(ctx context.Context) *FoldersGetServiceAccountCall { + 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 *FoldersGetServiceAccountCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersGetServiceAccountCall) 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}") + 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 "accessapproval.folders.getServiceAccount" call. +// Exactly one of *AccessApprovalServiceAccount or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *AccessApprovalServiceAccount.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 *FoldersGetServiceAccountCall) Do(opts ...googleapi.CallOption) (*AccessApprovalServiceAccount, 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 := &AccessApprovalServiceAccount{ + 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": "Retrieves the service account that is used by Access Approval to access KMS keys for signing approved approval requests.", + // "flatPath": "v1/folders/{foldersId}/serviceAccount", + // "httpMethod": "GET", + // "id": "accessapproval.folders.getServiceAccount", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Name of the AccessApprovalServiceAccount to retrieve.", + // "location": "path", + // "pattern": "^folders/[^/]+/serviceAccount$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "AccessApprovalServiceAccount" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "accessapproval.folders.updateAccessApprovalSettings": type FoldersUpdateAccessApprovalSettingsCall struct { @@ -2065,6 +2326,154 @@ func (c *OrganizationsGetAccessApprovalSettingsCall) Do(opts ...googleapi.CallOp } +// method id "accessapproval.organizations.getServiceAccount": + +type OrganizationsGetServiceAccountCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetServiceAccount: Retrieves the service account that is used by +// Access Approval to access KMS keys for signing approved approval +// requests. +// +// - name: Name of the AccessApprovalServiceAccount to retrieve. +func (r *OrganizationsService) GetServiceAccount(name string) *OrganizationsGetServiceAccountCall { + c := &OrganizationsGetServiceAccountCall{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 *OrganizationsGetServiceAccountCall) Fields(s ...googleapi.Field) *OrganizationsGetServiceAccountCall { + 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 *OrganizationsGetServiceAccountCall) IfNoneMatch(entityTag string) *OrganizationsGetServiceAccountCall { + 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 *OrganizationsGetServiceAccountCall) Context(ctx context.Context) *OrganizationsGetServiceAccountCall { + 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 *OrganizationsGetServiceAccountCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsGetServiceAccountCall) 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}") + 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 "accessapproval.organizations.getServiceAccount" call. +// Exactly one of *AccessApprovalServiceAccount or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *AccessApprovalServiceAccount.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 *OrganizationsGetServiceAccountCall) Do(opts ...googleapi.CallOption) (*AccessApprovalServiceAccount, 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 := &AccessApprovalServiceAccount{ + 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": "Retrieves the service account that is used by Access Approval to access KMS keys for signing approved approval requests.", + // "flatPath": "v1/organizations/{organizationsId}/serviceAccount", + // "httpMethod": "GET", + // "id": "accessapproval.organizations.getServiceAccount", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Name of the AccessApprovalServiceAccount to retrieve.", + // "location": "path", + // "pattern": "^organizations/[^/]+/serviceAccount$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "AccessApprovalServiceAccount" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "accessapproval.organizations.updateAccessApprovalSettings": type OrganizationsUpdateAccessApprovalSettingsCall struct { @@ -3172,6 +3581,154 @@ func (c *ProjectsGetAccessApprovalSettingsCall) Do(opts ...googleapi.CallOption) } +// method id "accessapproval.projects.getServiceAccount": + +type ProjectsGetServiceAccountCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetServiceAccount: Retrieves the service account that is used by +// Access Approval to access KMS keys for signing approved approval +// requests. +// +// - name: Name of the AccessApprovalServiceAccount to retrieve. +func (r *ProjectsService) GetServiceAccount(name string) *ProjectsGetServiceAccountCall { + c := &ProjectsGetServiceAccountCall{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 *ProjectsGetServiceAccountCall) Fields(s ...googleapi.Field) *ProjectsGetServiceAccountCall { + 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 *ProjectsGetServiceAccountCall) IfNoneMatch(entityTag string) *ProjectsGetServiceAccountCall { + 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 *ProjectsGetServiceAccountCall) Context(ctx context.Context) *ProjectsGetServiceAccountCall { + 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 *ProjectsGetServiceAccountCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsGetServiceAccountCall) 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}") + 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 "accessapproval.projects.getServiceAccount" call. +// Exactly one of *AccessApprovalServiceAccount or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *AccessApprovalServiceAccount.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 *ProjectsGetServiceAccountCall) Do(opts ...googleapi.CallOption) (*AccessApprovalServiceAccount, 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 := &AccessApprovalServiceAccount{ + 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": "Retrieves the service account that is used by Access Approval to access KMS keys for signing approved approval requests.", + // "flatPath": "v1/projects/{projectsId}/serviceAccount", + // "httpMethod": "GET", + // "id": "accessapproval.projects.getServiceAccount", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Name of the AccessApprovalServiceAccount to retrieve.", + // "location": "path", + // "pattern": "^projects/[^/]+/serviceAccount$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "AccessApprovalServiceAccount" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "accessapproval.projects.updateAccessApprovalSettings": type ProjectsUpdateAccessApprovalSettingsCall struct { diff --git a/androidmanagement/v1/androidmanagement-api.json b/androidmanagement/v1/androidmanagement-api.json index f5ceabbab8b..323da27d188 100644 --- a/androidmanagement/v1/androidmanagement-api.json +++ b/androidmanagement/v1/androidmanagement-api.json @@ -1004,7 +1004,7 @@ } } }, - "revision": "20220221", + "revision": "20220302", "rootUrl": "https://androidmanagement.googleapis.com/", "schemas": { "AdvancedSecurityOverrides": { @@ -1121,10 +1121,53 @@ }, "type": "object" }, + "AppVersion": { + "description": "This represents a single version of the app.", + "id": "AppVersion", + "properties": { + "production": { + "description": "True if this version is a production track.", + "type": "boolean" + }, + "trackIds": { + "description": "Track ids that the app version is published in. This doesn't include the production track (see production instead).", + "items": { + "type": "string" + }, + "type": "array" + }, + "versionCode": { + "description": "Unique increasing identifier for the app version.", + "format": "int32", + "type": "integer" + }, + "versionString": { + "description": "The string used in the Play store by the app developer to identify the version. The string is not necessarily unique or localized (for example, the string could be \"1.4\").", + "type": "string" + } + }, + "type": "object" + }, "Application": { "description": "Information about an app.", "id": "Application", "properties": { + "appPricing": { + "description": "Whether this app is free, free with in-app purchases, or paid. If the pricing is unspecified, this means the app is not generally available anymore (even though it might still be available to people who own it).", + "enum": [ + "APP_PRICING_UNSPECIFIED", + "FREE", + "FREE_WITH_IN_APP_PURCHASE", + "PAID" + ], + "enumDescriptions": [ + "Unknown pricing, used to denote an approved app that is not generally available.", + "The app is free.", + "The app is free, but offers in-app purchases.", + "The app is paid." + ], + "type": "string" + }, "appTracks": { "description": "Application tracks visible to the enterprise.", "items": { @@ -1132,6 +1175,91 @@ }, "type": "array" }, + "appVersions": { + "description": "Versions currently available for this app.", + "items": { + "$ref": "AppVersion" + }, + "type": "array" + }, + "author": { + "description": "The name of the author of the apps (for example, the app developer).", + "type": "string" + }, + "availableCountries": { + "description": "The countries which this app is available in as per ISO 3166-1 alpha-2.", + "items": { + "type": "string" + }, + "type": "array" + }, + "category": { + "description": "The app category (e.g. RACING, SOCIAL, etc.)", + "type": "string" + }, + "contentRating": { + "description": "The content rating for this app.", + "enum": [ + "CONTENT_RATING_UNSPECIFIED", + "THREE_YEARS", + "SEVEN_YEARS", + "TWELVE_YEARS", + "SIXTEEN_YEARS", + "EIGHTEEN_YEARS" + ], + "enumDescriptions": [ + "Unspecified.", + "Content suitable for ages 3 and above only.", + "Content suitable for ages 7 and above only.", + "Content suitable for ages 12 and above only.", + "Content suitable for ages 16 and above only.", + "Content suitable for ages 18 and above only." + ], + "type": "string" + }, + "description": { + "description": "The localized promotional description, if available.", + "type": "string" + }, + "distributionChannel": { + "description": "How and to whom the package is made available.", + "enum": [ + "DISTRIBUTION_CHANNEL_UNSPECIFIED", + "PUBLIC_GOOGLE_HOSTED", + "PRIVATE_GOOGLE_HOSTED", + "PRIVATE_SELF_HOSTED" + ], + "enumDescriptions": [ + "Unspecified.", + "Package is available through the Play store and not restricted to a specific enterprise.", + "Package is a private app (restricted to an enterprise) but hosted by Google.", + "Private app (restricted to an enterprise) and is privately hosted." + ], + "type": "string" + }, + "features": { + "description": "Noteworthy features (if any) of this app.", + "items": { + "enum": [ + "APP_FEATURE_UNSPECIFIED", + "VPN_APP" + ], + "enumDescriptions": [ + "Unspecified.", + "The app is a VPN." + ], + "type": "string" + }, + "type": "array" + }, + "fullDescription": { + "description": "Full app description, if available.", + "type": "string" + }, + "iconUrl": { + "description": "A link to an image that can be used as an icon for the app. This image is suitable for use at up to 512px x 512px", + "type": "string" + }, "managedProperties": { "description": "The set of managed properties available to be pre-configured for the app.", "items": { @@ -1139,6 +1267,11 @@ }, "type": "array" }, + "minAndroidSdkVersion": { + "description": "The minimum Android SDK necessary to run the app.", + "format": "int32", + "type": "integer" + }, "name": { "description": "The name of the app in the form enterprises/{enterprise}/applications/{package_name}.", "type": "string" @@ -1150,9 +1283,34 @@ }, "type": "array" }, + "playStoreUrl": { + "description": "A link to the (consumer) Google Play details page for the app.", + "type": "string" + }, + "recentChanges": { + "description": "A localised description of the recent changes made to the app.", + "type": "string" + }, + "screenshotUrls": { + "description": "A list of screenshot links representing the app.", + "items": { + "type": "string" + }, + "type": "array" + }, + "smallIconUrl": { + "description": "A link to a smaller image that can be used as an icon for the app. This image is suitable for use at up to 128px x 128px.", + "type": "string" + }, "title": { "description": "The title of the app. Localized.", "type": "string" + }, + "updateTime": { + "description": "Output only. The approximate time (within 7 days) the app was last published.", + "format": "google-datetime", + "readOnly": true, + "type": "string" } }, "type": "object" @@ -3158,6 +3316,20 @@ "The timeout period is set to 24 hours." ], "type": "string" + }, + "unifiedLockSettings": { + "description": "Controls whether a unified lock is allowed for the device and the work profile, on devices running Android 9 and above with a work profile. This has no effect on other devices. This can be set only if password_scope is set to SCOPE_PROFILE, the policy will be rejected otherwise. If user has not set a separate work lock and this field is set to REQUIRE_SEPARATE_WORK_LOCK, a NonComplianceDetail is reported with nonComplianceReason set to USER_ACTION.", + "enum": [ + "UNIFIED_LOCK_SETTINGS_UNSPECIFIED", + "ALLOW_UNIFIED_WORK_AND_PERSONAL_LOCK", + "REQUIRE_SEPARATE_WORK_LOCK" + ], + "enumDescriptions": [ + "Unspecified. Defaults to ALLOW_UNIFIED_WORK_AND_PERSONAL_LOCK.", + "A common lock for the device and the work profile is allowed.", + "A separate lock for the work profile is required." + ], + "type": "string" } }, "type": "object" @@ -3402,14 +3574,14 @@ ], "enumDescriptions": [ "If camera_disabled is true, this is equivalent to CAMERA_ACCESS_DISABLED. Otherwise, this is equivalent to CAMERA_ACCESS_USER_CHOICE.", - "The field camera_disabled(google.android.devicemanagement.v1.Policy.camera_disabled] is ignored. This is the default device behaviour: all cameras on the device are available. On Android 12 and above, the user can use the camera access toggle.", - "The field camera_disabled(google.android.devicemanagement.v1.Policy.camera_disabled] is ignored. All cameras on the device are disabled (for fully managed devices, this applies device-wide and for work profiles this applies only to the work profile).There are no explicit restrictions placed on the camera access toggle on Android 12 and above: on fully managed devices, the camera access toggle has no effect as all cameras are disabled. On devices with a work profile, this toggle has no effect on apps in the work profile, but it affects apps outside the work profile.", - "The field camera_disabled(google.android.devicemanagement.v1.Policy.camera_disabled] is ignored. All cameras on the device are available. On fully managed devices running Android 12 and above, the user is unable to use the camera access toggle. On devices which are not fully managed or which run Android 11 or below, this is equivalent to CAMERA_ACCESS_USER_CHOICE." + "The field camera_disabled is ignored. This is the default device behaviour: all cameras on the device are available. On Android 12 and above, the user can use the camera access toggle.", + "The field camera_disabled is ignored. All cameras on the device are disabled (for fully managed devices, this applies device-wide and for work profiles this applies only to the work profile).There are no explicit restrictions placed on the camera access toggle on Android 12 and above: on fully managed devices, the camera access toggle has no effect as all cameras are disabled. On devices with a work profile, this toggle has no effect on apps in the work profile, but it affects apps outside the work profile.", + "The field camera_disabled is ignored. All cameras on the device are available. On fully managed devices running Android 12 and above, the user is unable to use the camera access toggle. On devices which are not fully managed or which run Android 11 or below, this is equivalent to CAMERA_ACCESS_USER_CHOICE." ], "type": "string" }, "cameraDisabled": { - "description": "Whether all cameras on the device are disabled.", + "description": "If camera_access is set to any value other than CAMERA_ACCESS_UNSPECIFIED, this has no effect. Otherwise this field controls whether cameras are disabled: If true, all cameras are disabled, otherwise they are available. For fully managed devices this field applies for all apps on the device. For work profiles, this field applies only to apps in the work profile, and the camera access of apps outside the work profile is unaffected.", "type": "boolean" }, "cellBroadcastsConfigDisabled": { @@ -3599,9 +3771,9 @@ ], "enumDescriptions": [ "If unmute_microphone_disabled is true, this is equivalent to MICROPHONE_ACCESS_DISABLED. Otherwise, this is equivalent to MICROPHONE_ACCESS_USER_CHOICE.", - "The field unmute_microphone_disabled(google.android.devicemanagement.v1.Policy.unmute_microphone_disabled] is ignored. This is the default device behaviour: the microphone on the device is available. On Android 12 and above, the user can use the microphone access toggle.", - "The field unmute_microphone_disabled(google.android.devicemanagement.v1.Policy.unmute_microphone_disabled] is ignored. The microphone on the device is disabled (for fully managed devices, this applies device-wide).The microphone access toggle has no effect as the microphone is disabled.", - "The field unmute_microphone_disabled(google.android.devicemanagement.v1.Policy.unmute_microphone_disabled] is ignored. The microphone on the device is available. On devices running Android 12 and above, the user is unable to use the microphone access toggle. On devices which run Android 11 or below, this is equivalent to MICROPHONE_ACCESS_USER_CHOICE." + "The field unmute_microphone_disabled is ignored. This is the default device behaviour: the microphone on the device is available. On Android 12 and above, the user can use the microphone access toggle.", + "The field unmute_microphone_disabled is ignored. The microphone on the device is disabled (for fully managed devices, this applies device-wide).The microphone access toggle has no effect as the microphone is disabled.", + "The field unmute_microphone_disabled is ignored. The microphone on the device is available. On devices running Android 12 and above, the user is unable to use the microphone access toggle. On devices which run Android 11 or below, this is equivalent to MICROPHONE_ACCESS_USER_CHOICE." ], "type": "string" }, @@ -3666,7 +3838,7 @@ }, "passwordRequirements": { "$ref": "PasswordRequirements", - "description": "Password requirements. The field password_requirements.require_password_unlock must not be set. DEPRECATED - Use password_policies.Note:Complexity-based values of PasswordQuality, that is, COMPLEXITY_LOW, COMPLEXITY_MEDIUM, and COMPLEXITY_HIGH, cannot be used here." + "description": "Password requirements. The field password_requirements.require_password_unlock must not be set. DEPRECATED - Use passwordPolicies.Note:Complexity-based values of PasswordQuality, that is, COMPLEXITY_LOW, COMPLEXITY_MEDIUM, and COMPLEXITY_HIGH, cannot be used here. unified_lock_settings cannot be used here" }, "permissionGrants": { "description": "Explicit permission or group grants or denials for all apps. These values override the default_permission_policy.", @@ -3758,7 +3930,7 @@ "type": "boolean" }, "setupActions": { - "description": "Actions to take during the setup process.", + "description": "Action to take during the setup process. At most one action may be specified.", "items": { "$ref": "SetupAction" }, @@ -3820,7 +3992,7 @@ "type": "boolean" }, "unmuteMicrophoneDisabled": { - "description": "Whether the microphone is muted and adjusting microphone volume is disabled.", + "description": "If microphone_access is set to any value other than MICROPHONE_ACCESS_UNSPECIFIED, this has no effect. Otherwise this field controls whether microphones are disabled: If true, all microphones are disabled, otherwise they are available. This is available only on fully managed devices.", "type": "boolean" }, "usbFileTransferDisabled": { diff --git a/androidmanagement/v1/androidmanagement-gen.go b/androidmanagement/v1/androidmanagement-gen.go index b23df2d4bbc..3c8cfb1c1eb 100644 --- a/androidmanagement/v1/androidmanagement-gen.go +++ b/androidmanagement/v1/androidmanagement-gen.go @@ -435,15 +435,127 @@ func (s *AppTrackInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AppVersion: This represents a single version of the app. +type AppVersion struct { + // Production: True if this version is a production track. + Production bool `json:"production,omitempty"` + + // TrackIds: Track ids that the app version is published in. This + // doesn't include the production track (see production instead). + TrackIds []string `json:"trackIds,omitempty"` + + // VersionCode: Unique increasing identifier for the app version. + VersionCode int64 `json:"versionCode,omitempty"` + + // VersionString: The string used in the Play store by the app developer + // to identify the version. The string is not necessarily unique or + // localized (for example, the string could be "1.4"). + VersionString string `json:"versionString,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Production") 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. "Production") 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 *AppVersion) MarshalJSON() ([]byte, error) { + type NoMethod AppVersion + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Application: Information about an app. type Application struct { + // AppPricing: Whether this app is free, free with in-app purchases, or + // paid. If the pricing is unspecified, this means the app is not + // generally available anymore (even though it might still be available + // to people who own it). + // + // Possible values: + // "APP_PRICING_UNSPECIFIED" - Unknown pricing, used to denote an + // approved app that is not generally available. + // "FREE" - The app is free. + // "FREE_WITH_IN_APP_PURCHASE" - The app is free, but offers in-app + // purchases. + // "PAID" - The app is paid. + AppPricing string `json:"appPricing,omitempty"` + // AppTracks: Application tracks visible to the enterprise. AppTracks []*AppTrackInfo `json:"appTracks,omitempty"` + // AppVersions: Versions currently available for this app. + AppVersions []*AppVersion `json:"appVersions,omitempty"` + + // Author: The name of the author of the apps (for example, the app + // developer). + Author string `json:"author,omitempty"` + + // AvailableCountries: The countries which this app is available in as + // per ISO 3166-1 alpha-2. + AvailableCountries []string `json:"availableCountries,omitempty"` + + // Category: The app category (e.g. RACING, SOCIAL, etc.) + Category string `json:"category,omitempty"` + + // ContentRating: The content rating for this app. + // + // Possible values: + // "CONTENT_RATING_UNSPECIFIED" - Unspecified. + // "THREE_YEARS" - Content suitable for ages 3 and above only. + // "SEVEN_YEARS" - Content suitable for ages 7 and above only. + // "TWELVE_YEARS" - Content suitable for ages 12 and above only. + // "SIXTEEN_YEARS" - Content suitable for ages 16 and above only. + // "EIGHTEEN_YEARS" - Content suitable for ages 18 and above only. + ContentRating string `json:"contentRating,omitempty"` + + // Description: The localized promotional description, if available. + Description string `json:"description,omitempty"` + + // DistributionChannel: How and to whom the package is made available. + // + // Possible values: + // "DISTRIBUTION_CHANNEL_UNSPECIFIED" - Unspecified. + // "PUBLIC_GOOGLE_HOSTED" - Package is available through the Play + // store and not restricted to a specific enterprise. + // "PRIVATE_GOOGLE_HOSTED" - Package is a private app (restricted to + // an enterprise) but hosted by Google. + // "PRIVATE_SELF_HOSTED" - Private app (restricted to an enterprise) + // and is privately hosted. + DistributionChannel string `json:"distributionChannel,omitempty"` + + // Features: Noteworthy features (if any) of this app. + // + // Possible values: + // "APP_FEATURE_UNSPECIFIED" - Unspecified. + // "VPN_APP" - The app is a VPN. + Features []string `json:"features,omitempty"` + + // FullDescription: Full app description, if available. + FullDescription string `json:"fullDescription,omitempty"` + + // IconUrl: A link to an image that can be used as an icon for the app. + // This image is suitable for use at up to 512px x 512px + IconUrl string `json:"iconUrl,omitempty"` + // ManagedProperties: The set of managed properties available to be // pre-configured for the app. ManagedProperties []*ManagedProperty `json:"managedProperties,omitempty"` + // MinAndroidSdkVersion: The minimum Android SDK necessary to run the + // app. + MinAndroidSdkVersion int64 `json:"minAndroidSdkVersion,omitempty"` + // Name: The name of the app in the form // enterprises/{enterprise}/applications/{package_name}. Name string `json:"name,omitempty"` @@ -451,14 +563,33 @@ type Application struct { // Permissions: The permissions required by the app. Permissions []*ApplicationPermission `json:"permissions,omitempty"` + // PlayStoreUrl: A link to the (consumer) Google Play details page for + // the app. + PlayStoreUrl string `json:"playStoreUrl,omitempty"` + + // RecentChanges: A localised description of the recent changes made to + // the app. + RecentChanges string `json:"recentChanges,omitempty"` + + // ScreenshotUrls: A list of screenshot links representing the app. + ScreenshotUrls []string `json:"screenshotUrls,omitempty"` + + // SmallIconUrl: A link to a smaller image that can be used as an icon + // for the app. This image is suitable for use at up to 128px x 128px. + SmallIconUrl string `json:"smallIconUrl,omitempty"` + // Title: The title of the app. Localized. Title string `json:"title,omitempty"` + // UpdateTime: Output only. The approximate time (within 7 days) the app + // was last published. + 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. "AppTracks") to + // ForceSendFields is a list of field names (e.g. "AppPricing") 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 @@ -466,7 +597,7 @@ type Application struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AppTracks") to include in + // NullFields is a list of field names (e.g. "AppPricing") 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 @@ -3218,6 +3349,24 @@ type PasswordRequirements struct { // "REQUIRE_EVERY_DAY" - The timeout period is set to 24 hours. RequirePasswordUnlock string `json:"requirePasswordUnlock,omitempty"` + // UnifiedLockSettings: Controls whether a unified lock is allowed for + // the device and the work profile, on devices running Android 9 and + // above with a work profile. This has no effect on other devices. This + // can be set only if password_scope is set to SCOPE_PROFILE, the policy + // will be rejected otherwise. If user has not set a separate work lock + // and this field is set to REQUIRE_SEPARATE_WORK_LOCK, a + // NonComplianceDetail is reported with nonComplianceReason set to + // USER_ACTION. + // + // Possible values: + // "UNIFIED_LOCK_SETTINGS_UNSPECIFIED" - Unspecified. Defaults to + // ALLOW_UNIFIED_WORK_AND_PERSONAL_LOCK. + // "ALLOW_UNIFIED_WORK_AND_PERSONAL_LOCK" - A common lock for the + // device and the work profile is allowed. + // "REQUIRE_SEPARATE_WORK_LOCK" - A separate lock for the work profile + // is required. + UnifiedLockSettings string `json:"unifiedLockSettings,omitempty"` + // ForceSendFields is a list of field names (e.g. // "MaximumFailedPasswordsForWipe") to unconditionally include in API // requests. By default, fields with empty or default values are omitted @@ -3530,31 +3679,33 @@ type Policy struct { // "CAMERA_ACCESS_UNSPECIFIED" - If camera_disabled is true, this is // equivalent to CAMERA_ACCESS_DISABLED. Otherwise, this is equivalent // to CAMERA_ACCESS_USER_CHOICE. - // "CAMERA_ACCESS_USER_CHOICE" - The field - // camera_disabled(google.android.devicemanagement.v1.Policy.camera_disab - // led] is ignored. This is the default device behaviour: all cameras on - // the device are available. On Android 12 and above, the user can use - // the camera access toggle. - // "CAMERA_ACCESS_DISABLED" - The field - // camera_disabled(google.android.devicemanagement.v1.Policy.camera_disab - // led] is ignored. All cameras on the device are disabled (for fully - // managed devices, this applies device-wide and for work profiles this - // applies only to the work profile).There are no explicit restrictions - // placed on the camera access toggle on Android 12 and above: on fully - // managed devices, the camera access toggle has no effect as all - // cameras are disabled. On devices with a work profile, this toggle has - // no effect on apps in the work profile, but it affects apps outside - // the work profile. - // "CAMERA_ACCESS_ENFORCED" - The field - // camera_disabled(google.android.devicemanagement.v1.Policy.camera_disab - // led] is ignored. All cameras on the device are available. On fully - // managed devices running Android 12 and above, the user is unable to - // use the camera access toggle. On devices which are not fully managed - // or which run Android 11 or below, this is equivalent to - // CAMERA_ACCESS_USER_CHOICE. + // "CAMERA_ACCESS_USER_CHOICE" - The field camera_disabled is ignored. + // This is the default device behaviour: all cameras on the device are + // available. On Android 12 and above, the user can use the camera + // access toggle. + // "CAMERA_ACCESS_DISABLED" - The field camera_disabled is ignored. + // All cameras on the device are disabled (for fully managed devices, + // this applies device-wide and for work profiles this applies only to + // the work profile).There are no explicit restrictions placed on the + // camera access toggle on Android 12 and above: on fully managed + // devices, the camera access toggle has no effect as all cameras are + // disabled. On devices with a work profile, this toggle has no effect + // on apps in the work profile, but it affects apps outside the work + // profile. + // "CAMERA_ACCESS_ENFORCED" - The field camera_disabled is ignored. + // All cameras on the device are available. On fully managed devices + // running Android 12 and above, the user is unable to use the camera + // access toggle. On devices which are not fully managed or which run + // Android 11 or below, this is equivalent to CAMERA_ACCESS_USER_CHOICE. CameraAccess string `json:"cameraAccess,omitempty"` - // CameraDisabled: Whether all cameras on the device are disabled. + // CameraDisabled: If camera_access is set to any value other than + // CAMERA_ACCESS_UNSPECIFIED, this has no effect. Otherwise this field + // controls whether cameras are disabled: If true, all cameras are + // disabled, otherwise they are available. For fully managed devices + // this field applies for all apps on the device. For work profiles, + // this field applies only to apps in the work profile, and the camera + // access of apps outside the work profile is unaffected. CameraDisabled bool `json:"cameraDisabled,omitempty"` // CellBroadcastsConfigDisabled: Whether configuring cell broadcast is @@ -3721,22 +3872,18 @@ type Policy struct { // true, this is equivalent to MICROPHONE_ACCESS_DISABLED. Otherwise, // this is equivalent to MICROPHONE_ACCESS_USER_CHOICE. // "MICROPHONE_ACCESS_USER_CHOICE" - The field - // unmute_microphone_disabled(google.android.devicemanagement.v1.Policy.u - // nmute_microphone_disabled] is ignored. This is the default device + // unmute_microphone_disabled is ignored. This is the default device // behaviour: the microphone on the device is available. On Android 12 // and above, the user can use the microphone access toggle. - // "MICROPHONE_ACCESS_DISABLED" - The field - // unmute_microphone_disabled(google.android.devicemanagement.v1.Policy.u - // nmute_microphone_disabled] is ignored. The microphone on the device - // is disabled (for fully managed devices, this applies device-wide).The - // microphone access toggle has no effect as the microphone is disabled. - // "MICROPHONE_ACCESS_ENFORCED" - The field - // unmute_microphone_disabled(google.android.devicemanagement.v1.Policy.u - // nmute_microphone_disabled] is ignored. The microphone on the device - // is available. On devices running Android 12 and above, the user is - // unable to use the microphone access toggle. On devices which run - // Android 11 or below, this is equivalent to - // MICROPHONE_ACCESS_USER_CHOICE. + // "MICROPHONE_ACCESS_DISABLED" - The field unmute_microphone_disabled + // is ignored. The microphone on the device is disabled (for fully + // managed devices, this applies device-wide).The microphone access + // toggle has no effect as the microphone is disabled. + // "MICROPHONE_ACCESS_ENFORCED" - The field unmute_microphone_disabled + // is ignored. The microphone on the device is available. On devices + // running Android 12 and above, the user is unable to use the + // microphone access toggle. On devices which run Android 11 or below, + // this is equivalent to MICROPHONE_ACCESS_USER_CHOICE. MicrophoneAccess string `json:"microphoneAccess,omitempty"` // MinimumApiLevel: The minimum allowed Android API level. @@ -3795,9 +3942,10 @@ type Policy struct { // PasswordRequirements: Password requirements. The field // password_requirements.require_password_unlock must not be set. - // DEPRECATED - Use password_policies.Note:Complexity-based values of + // DEPRECATED - Use passwordPolicies.Note:Complexity-based values of // PasswordQuality, that is, COMPLEXITY_LOW, COMPLEXITY_MEDIUM, and - // COMPLEXITY_HIGH, cannot be used here. + // COMPLEXITY_HIGH, cannot be used here. unified_lock_settings cannot be + // used here PasswordRequirements *PasswordRequirements `json:"passwordRequirements,omitempty"` // PermissionGrants: Explicit permission or group grants or denials for @@ -3889,7 +4037,8 @@ type Policy struct { // SetWallpaperDisabled: Whether changing the wallpaper is disabled. SetWallpaperDisabled bool `json:"setWallpaperDisabled,omitempty"` - // SetupActions: Actions to take during the setup process. + // SetupActions: Action to take during the setup process. At most one + // action may be specified. SetupActions []*SetupAction `json:"setupActions,omitempty"` // ShareLocationDisabled: Whether location sharing is disabled. @@ -3944,8 +4093,11 @@ type Policy struct { // disabled. UninstallAppsDisabled bool `json:"uninstallAppsDisabled,omitempty"` - // UnmuteMicrophoneDisabled: Whether the microphone is muted and - // adjusting microphone volume is disabled. + // UnmuteMicrophoneDisabled: If microphone_access is set to any value + // other than MICROPHONE_ACCESS_UNSPECIFIED, this has no effect. + // Otherwise this field controls whether microphones are disabled: If + // true, all microphones are disabled, otherwise they are available. + // This is available only on fully managed devices. UnmuteMicrophoneDisabled bool `json:"unmuteMicrophoneDisabled,omitempty"` // UsbFileTransferDisabled: Whether transferring files over USB is diff --git a/apigee/v1/apigee-api.json b/apigee/v1/apigee-api.json index d2db32ce4f5..e7faac22cc7 100644 --- a/apigee/v1/apigee-api.json +++ b/apigee/v1/apigee-api.json @@ -5083,6 +5083,31 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "getResulturl": { + "description": "After the query is completed, use this API to retrieve the results. If the request succeeds, and there is a non-zero result set, the result is sent to the client as a list of urls to JSON files.", + "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries/{queriesId}/resulturl", + "httpMethod": "GET", + "id": "apigee.organizations.environments.queries.getResulturl", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the asynchronous query result to get. Must be of the form `organizations/{org}/environments/{env}/queries/{queryId}/resulturl`.", + "location": "path", + "pattern": "^organizations/[^/]+/environments/[^/]+/queries/[^/]+/resulturl$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleCloudApigeeV1GetAsyncQueryResultUrlResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "list": { "description": "Return a list of Asynchronous Queries", "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries", @@ -7563,7 +7588,7 @@ } } }, - "revision": "20220301", + "revision": "20220303", "rootUrl": "https://apigee.googleapis.com/", "schemas": { "EdgeConfigstoreBundleBadBundle": { @@ -10124,6 +10149,40 @@ }, "type": "object" }, + "GoogleCloudApigeeV1GetAsyncQueryResultUrlResponse": { + "description": "The response for GetAsyncQueryResultUrl", + "id": "GoogleCloudApigeeV1GetAsyncQueryResultUrlResponse", + "properties": { + "urls": { + "description": "The list of Signed URLs generated by the CreateAsyncQuery request", + "items": { + "$ref": "GoogleCloudApigeeV1GetAsyncQueryResultUrlResponseURLInfo" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudApigeeV1GetAsyncQueryResultUrlResponseURLInfo": { + "description": "A Signed URL and the relevant metadata associated with it.", + "id": "GoogleCloudApigeeV1GetAsyncQueryResultUrlResponseURLInfo", + "properties": { + "md5": { + "description": "The MD5 Hash of the JSON data", + "type": "string" + }, + "sizeBytes": { + "description": "The size of the returned file in bytes", + "format": "int64", + "type": "string" + }, + "uri": { + "description": "The signed URL of the JSON data. Will be of the form `https://storage.googleapis.com/example-bucket/cat.jpeg?X-Goog-Algorithm= GOOG4-RSA-SHA256\u0026X-Goog-Credential=example%40example-project.iam.gserviceaccount .com%2F20181026%2Fus-central1%2Fstorage%2Fgoog4_request\u0026X-Goog-Date=20181026T18 1309Z\u0026X-Goog-Expires=900\u0026X-Goog-SignedHeaders=host\u0026X-Goog-Signature=247a2aa45f16 9edf4d187d54e7cc46e4731b1e6273242c4f4c39a1d2507a0e58706e25e3a85a7dbb891d62afa849 6def8e260c1db863d9ace85ff0a184b894b117fe46d1225c82f2aa19efd52cf21d3e2022b3b868dc c1aca2741951ed5bf3bb25a34f5e9316a2841e8ff4c530b22ceaa1c5ce09c7cbb5732631510c2058 0e61723f5594de3aea497f195456a2ff2bdd0d13bad47289d8611b6f9cfeef0c46c91a455b94e90a 66924f722292d21e24d31dcfb38ce0c0f353ffa5a9756fc2a9f2b40bc2113206a81e324fc4fd6823 a29163fa845c8ae7eca1fcf6e5bb48b3200983c56c5ca81fffb151cca7402beddfc4a76b13344703 2ea7abedc098d2eb14a7`", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudApigeeV1GetSyncAuthorizationRequest": { "description": "Request for GetSyncAuthorization.", "id": "GoogleCloudApigeeV1GetSyncAuthorizationRequest", @@ -10230,6 +10289,13 @@ "description": "Apigee runtime instance.", "id": "GoogleCloudApigeeV1Instance", "properties": { + "consumerAcceptList": { + "description": "Optional. Customer accept list represents the list of projects (id/number) on customer side that can privately connect to the service attachment. It is an optional field which the customers can provide during the instance creation. By default, the customer project associated with the Apigee organization will be included to the list.", + "items": { + "type": "string" + }, + "type": "array" + }, "createdAt": { "description": "Output only. Time the instance was created in milliseconds since epoch.", "format": "int64", @@ -10305,6 +10371,11 @@ "readOnly": true, "type": "string" }, + "serviceAttachment": { + "description": "Output only. Resource name of the service attachment created for the instance in the format: `projects/*/regions/*/serviceAttachments/*` Apigee customers can privately forward traffic to this service attachment using the PSC endpoints.", + "readOnly": true, + "type": "string" + }, "state": { "description": "Output only. State of the instance. Values other than `ACTIVE` means the resource is not ready to use.", "enum": [ @@ -11211,7 +11282,7 @@ "description": "Addon configurations of the Apigee organization." }, "analyticsRegion": { - "description": "Required. Primary GCP region for analytics data storage. For valid values, see [Create an Apigee organization](https://cloud.google.com/apigee/docs/api-platform/get-started/create-org).", + "description": "Required. DEPRECATED: This field will be deprecated once Apigee supports DRZ. Primary GCP region for analytics data storage. For valid values, see [Create an Apigee organization](https://cloud.google.com/apigee/docs/api-platform/get-started/create-org).", "type": "string" }, "attributes": { @@ -12651,7 +12722,7 @@ "id": "GoogleCloudApigeeV1TlsInfo", "properties": { "ciphers": { - "description": "The SSL/TLS cipher suites to be used. Must be one of the cipher suite names listed in: http://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#ciphersuites", + "description": "The SSL/TLS cipher suites to be used. For programmable proxies, it must be one of the cipher suite names listed in: http://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#ciphersuites. For configurable proxies, it must follow the configuration specified in: https://commondatastorage.googleapis.com/chromium-boringssl-docs/ssl.h.html#Cipher-suite-configuration. This setting has no effect for configurable proxies when negotiating TLS 1.3.", "items": { "type": "string" }, diff --git a/apigee/v1/apigee-gen.go b/apigee/v1/apigee-gen.go index 8436ef8369a..8d75318e241 100644 --- a/apigee/v1/apigee-gen.go +++ b/apigee/v1/apigee-gen.go @@ -4696,6 +4696,95 @@ func (s *GoogleCloudApigeeV1GenerateUploadUrlResponse) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudApigeeV1GetAsyncQueryResultUrlResponse: The response for +// GetAsyncQueryResultUrl +type GoogleCloudApigeeV1GetAsyncQueryResultUrlResponse struct { + // Urls: The list of Signed URLs generated by the CreateAsyncQuery + // request + Urls []*GoogleCloudApigeeV1GetAsyncQueryResultUrlResponseURLInfo `json:"urls,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Urls") 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. "Urls") 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 *GoogleCloudApigeeV1GetAsyncQueryResultUrlResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudApigeeV1GetAsyncQueryResultUrlResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudApigeeV1GetAsyncQueryResultUrlResponseURLInfo: A Signed +// URL and the relevant metadata associated with it. +type GoogleCloudApigeeV1GetAsyncQueryResultUrlResponseURLInfo struct { + // Md5: The MD5 Hash of the JSON data + Md5 string `json:"md5,omitempty"` + + // SizeBytes: The size of the returned file in bytes + SizeBytes int64 `json:"sizeBytes,omitempty,string"` + + // Uri: The signed URL of the JSON data. Will be of the form + // `https://storage.googleapis.com/example-bucket/cat.jpeg?X-Goog-Algorit + // hm= + // GOOG4-RSA-SHA256&X-Goog-Credential=example%40example-project.iam.gserv + // iceaccount + // .com%2F20181026%2Fus-central1%2Fstorage%2Fgoog4_request&X-Goog-Date=20 + // 181026T18 + // 1309Z&X-Goog-Expires=900&X-Goog-SignedHeaders=host&X-Goog-Signature=24 + // 7a2aa45f16 + // 9edf4d187d54e7cc46e4731b1e6273242c4f4c39a1d2507a0e58706e25e3a85a7dbb89 + // 1d62afa849 + // 6def8e260c1db863d9ace85ff0a184b894b117fe46d1225c82f2aa19efd52cf21d3e20 + // 22b3b868dc + // c1aca2741951ed5bf3bb25a34f5e9316a2841e8ff4c530b22ceaa1c5ce09c7cbb57326 + // 31510c2058 + // 0e61723f5594de3aea497f195456a2ff2bdd0d13bad47289d8611b6f9cfeef0c46c91a + // 455b94e90a + // 66924f722292d21e24d31dcfb38ce0c0f353ffa5a9756fc2a9f2b40bc2113206a81e32 + // 4fc4fd6823 + // a29163fa845c8ae7eca1fcf6e5bb48b3200983c56c5ca81fffb151cca7402beddfc4a7 + // 6b13344703 2ea7abedc098d2eb14a7` + Uri string `json:"uri,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Md5") 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. "Md5") 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 *GoogleCloudApigeeV1GetAsyncQueryResultUrlResponseURLInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudApigeeV1GetAsyncQueryResultUrlResponseURLInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudApigeeV1GetSyncAuthorizationRequest: Request for // GetSyncAuthorization. type GoogleCloudApigeeV1GetSyncAuthorizationRequest struct { @@ -4878,6 +4967,14 @@ func (s *GoogleCloudApigeeV1IngressConfig) MarshalJSON() ([]byte, error) { // GoogleCloudApigeeV1Instance: Apigee runtime instance. type GoogleCloudApigeeV1Instance struct { + // ConsumerAcceptList: Optional. Customer accept list represents the + // list of projects (id/number) on customer side that can privately + // connect to the service attachment. It is an optional field which the + // customers can provide during the instance creation. By default, the + // customer project associated with the Apigee organization will be + // included to the list. + ConsumerAcceptList []string `json:"consumerAcceptList,omitempty"` + // CreatedAt: Output only. Time the instance was created in milliseconds // since epoch. CreatedAt int64 `json:"createdAt,omitempty,string"` @@ -4946,6 +5043,13 @@ type GoogleCloudApigeeV1Instance struct { // the API Proxy traffic in your Environments. RuntimeVersion string `json:"runtimeVersion,omitempty"` + // ServiceAttachment: Output only. Resource name of the service + // attachment created for the instance in the format: + // `projects/*/regions/*/serviceAttachments/*` Apigee customers can + // privately forward traffic to this service attachment using the PSC + // endpoints. + ServiceAttachment string `json:"serviceAttachment,omitempty"` + // State: Output only. State of the instance. Values other than `ACTIVE` // means the resource is not ready to use. // @@ -4961,20 +5065,21 @@ type GoogleCloudApigeeV1Instance struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreatedAt") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "ConsumerAcceptList") + // 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. "CreatedAt") 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 is a list of field names (e.g. "ConsumerAcceptList") 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:"-"` } @@ -6727,7 +6832,8 @@ type GoogleCloudApigeeV1Organization struct { // AddonsConfig: Addon configurations of the Apigee organization. AddonsConfig *GoogleCloudApigeeV1AddonsConfig `json:"addonsConfig,omitempty"` - // AnalyticsRegion: Required. Primary GCP region for analytics data + // AnalyticsRegion: Required. DEPRECATED: This field will be deprecated + // once Apigee supports DRZ. Primary GCP region for analytics data // storage. For valid values, see Create an Apigee organization // (https://cloud.google.com/apigee/docs/api-platform/get-started/create-org). AnalyticsRegion string `json:"analyticsRegion,omitempty"` @@ -8990,9 +9096,14 @@ func (s *GoogleCloudApigeeV1TestDatastoreResponse) MarshalJSON() ([]byte, error) // GoogleCloudApigeeV1TlsInfo: TLS configuration information for virtual // hosts and TargetServers. type GoogleCloudApigeeV1TlsInfo struct { - // Ciphers: The SSL/TLS cipher suites to be used. Must be one of the - // cipher suite names listed in: - // http://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#ciphersuites + // Ciphers: The SSL/TLS cipher suites to be used. For programmable + // proxies, it must be one of the cipher suite names listed in: + // http://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#ciphersuites. + // For configurable proxies, it must follow the configuration specified + // in: + // https://commondatastorage.googleapis.com/chromium-boringssl-docs/ssl.h.html#Cipher-suite-configuration. + // This setting has no effect for configurable proxies when negotiating + // TLS 1.3. Ciphers []string `json:"ciphers,omitempty"` // ClientAuthEnabled: Optional. Enables two-way TLS. @@ -35316,6 +35427,160 @@ func (c *OrganizationsEnvironmentsQueriesGetResultCall) Do(opts ...googleapi.Cal } +// method id "apigee.organizations.environments.queries.getResulturl": + +type OrganizationsEnvironmentsQueriesGetResulturlCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetResulturl: After the query is completed, use this API to retrieve +// the results. If the request succeeds, and there is a non-zero result +// set, the result is sent to the client as a list of urls to JSON +// files. +// +// - name: Name of the asynchronous query result to get. Must be of the +// form +// `organizations/{org}/environments/{env}/queries/{queryId}/resulturl` +// . +func (r *OrganizationsEnvironmentsQueriesService) GetResulturl(name string) *OrganizationsEnvironmentsQueriesGetResulturlCall { + c := &OrganizationsEnvironmentsQueriesGetResulturlCall{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 *OrganizationsEnvironmentsQueriesGetResulturlCall) Fields(s ...googleapi.Field) *OrganizationsEnvironmentsQueriesGetResulturlCall { + 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 *OrganizationsEnvironmentsQueriesGetResulturlCall) IfNoneMatch(entityTag string) *OrganizationsEnvironmentsQueriesGetResulturlCall { + 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 *OrganizationsEnvironmentsQueriesGetResulturlCall) Context(ctx context.Context) *OrganizationsEnvironmentsQueriesGetResulturlCall { + 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 *OrganizationsEnvironmentsQueriesGetResulturlCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsEnvironmentsQueriesGetResulturlCall) 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}") + 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 "apigee.organizations.environments.queries.getResulturl" call. +// Exactly one of *GoogleCloudApigeeV1GetAsyncQueryResultUrlResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleCloudApigeeV1GetAsyncQueryResultUrlResponse.ServerResponse.Head +// er 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 *OrganizationsEnvironmentsQueriesGetResulturlCall) Do(opts ...googleapi.CallOption) (*GoogleCloudApigeeV1GetAsyncQueryResultUrlResponse, 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 := &GoogleCloudApigeeV1GetAsyncQueryResultUrlResponse{ + 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": "After the query is completed, use this API to retrieve the results. If the request succeeds, and there is a non-zero result set, the result is sent to the client as a list of urls to JSON files.", + // "flatPath": "v1/organizations/{organizationsId}/environments/{environmentsId}/queries/{queriesId}/resulturl", + // "httpMethod": "GET", + // "id": "apigee.organizations.environments.queries.getResulturl", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the asynchronous query result to get. Must be of the form `organizations/{org}/environments/{env}/queries/{queryId}/resulturl`.", + // "location": "path", + // "pattern": "^organizations/[^/]+/environments/[^/]+/queries/[^/]+/resulturl$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleCloudApigeeV1GetAsyncQueryResultUrlResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "apigee.organizations.environments.queries.list": type OrganizationsEnvironmentsQueriesListCall struct { diff --git a/billingbudgets/v1/billingbudgets-api.json b/billingbudgets/v1/billingbudgets-api.json index d4e08c2e359..1e57d72c07d 100644 --- a/billingbudgets/v1/billingbudgets-api.json +++ b/billingbudgets/v1/billingbudgets-api.json @@ -270,7 +270,7 @@ } } }, - "revision": "20220205", + "revision": "20220305", "rootUrl": "https://billingbudgets.googleapis.com/", "schemas": { "GoogleCloudBillingBudgetsV1Budget": { @@ -506,7 +506,7 @@ "type": "object" }, "GoogleTypeDate": { - "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "GoogleTypeDate", "properties": { "day": { diff --git a/billingbudgets/v1/billingbudgets-gen.go b/billingbudgets/v1/billingbudgets-gen.go index 03edbae13d7..e2ae3b03541 100644 --- a/billingbudgets/v1/billingbudgets-gen.go +++ b/billingbudgets/v1/billingbudgets-gen.go @@ -632,11 +632,12 @@ type GoogleProtobufEmpty struct { // a birthday. The time of day and time zone are either specified // elsewhere or are insignificant. The date is relative to the Gregorian // Calendar. This can represent one of the following: * A full date, -// with non-zero year, month, and day values * A month and day, with a -// zero year (e.g., an anniversary) * A year on its own, with a zero -// month and a zero day * A year and month, with a zero day (e.g., a -// credit card expiration date) Related types: * google.type.TimeOfDay * -// google.type.DateTime * google.protobuf.Timestamp +// with non-zero year, month, and day values. * A month and day, with a +// zero year (for example, an anniversary). * A year on its own, with a +// zero month and a zero day. * A year and month, with a zero day (for +// example, a credit card expiration date). Related types: * +// google.type.TimeOfDay * google.type.DateTime * +// google.protobuf.Timestamp type GoogleTypeDate struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the diff --git a/billingbudgets/v1beta1/billingbudgets-api.json b/billingbudgets/v1beta1/billingbudgets-api.json index e5579ac3d3d..3235cda4510 100644 --- a/billingbudgets/v1beta1/billingbudgets-api.json +++ b/billingbudgets/v1beta1/billingbudgets-api.json @@ -264,7 +264,7 @@ } } }, - "revision": "20220205", + "revision": "20220305", "rootUrl": "https://billingbudgets.googleapis.com/", "schemas": { "GoogleCloudBillingBudgetsV1beta1AllUpdatesRule": { @@ -527,7 +527,7 @@ "type": "object" }, "GoogleTypeDate": { - "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "GoogleTypeDate", "properties": { "day": { diff --git a/billingbudgets/v1beta1/billingbudgets-gen.go b/billingbudgets/v1beta1/billingbudgets-gen.go index 679238cb59d..edd63751e96 100644 --- a/billingbudgets/v1beta1/billingbudgets-gen.go +++ b/billingbudgets/v1beta1/billingbudgets-gen.go @@ -682,11 +682,12 @@ type GoogleProtobufEmpty struct { // a birthday. The time of day and time zone are either specified // elsewhere or are insignificant. The date is relative to the Gregorian // Calendar. This can represent one of the following: * A full date, -// with non-zero year, month, and day values * A month and day, with a -// zero year (e.g., an anniversary) * A year on its own, with a zero -// month and a zero day * A year and month, with a zero day (e.g., a -// credit card expiration date) Related types: * google.type.TimeOfDay * -// google.type.DateTime * google.protobuf.Timestamp +// with non-zero year, month, and day values. * A month and day, with a +// zero year (for example, an anniversary). * A year on its own, with a +// zero month and a zero day. * A year and month, with a zero day (for +// example, a credit card expiration date). Related types: * +// google.type.TimeOfDay * google.type.DateTime * +// google.protobuf.Timestamp type GoogleTypeDate struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the diff --git a/classroom/v1/classroom-api.json b/classroom/v1/classroom-api.json index f49f707aeac..c9b7f07cba8 100644 --- a/classroom/v1/classroom-api.json +++ b/classroom/v1/classroom-api.json @@ -2400,7 +2400,7 @@ } } }, - "revision": "20220209", + "revision": "20220302", "rootUrl": "https://classroom.googleapis.com/", "schemas": { "Announcement": { @@ -2965,7 +2965,7 @@ "type": "object" }, "Date": { - "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "Date", "properties": { "day": { diff --git a/classroom/v1/classroom-gen.go b/classroom/v1/classroom-gen.go index a91264c57b8..dc8a9ced80f 100644 --- a/classroom/v1/classroom-gen.go +++ b/classroom/v1/classroom-gen.go @@ -1249,11 +1249,12 @@ func (s *CourseWorkMaterial) MarshalJSON() ([]byte, error) { // birthday. The time of day and time zone are either specified // elsewhere or are insignificant. The date is relative to the Gregorian // Calendar. This can represent one of the following: * A full date, -// with non-zero year, month, and day values * A month and day, with a -// zero year (e.g., an anniversary) * A year on its own, with a zero -// month and a zero day * A year and month, with a zero day (e.g., a -// credit card expiration date) Related types: * google.type.TimeOfDay * -// google.type.DateTime * google.protobuf.Timestamp +// with non-zero year, month, and day values. * A month and day, with a +// zero year (for example, an anniversary). * A year on its own, with a +// zero month and a zero day. * A year and month, with a zero day (for +// example, a credit card expiration date). Related types: * +// google.type.TimeOfDay * google.type.DateTime * +// google.protobuf.Timestamp type Date struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the diff --git a/content/v2.1/content-api.json b/content/v2.1/content-api.json index b2564371285..c55c1bb0099 100644 --- a/content/v2.1/content-api.json +++ b/content/v2.1/content-api.json @@ -5815,7 +5815,7 @@ } } }, - "revision": "20220223", + "revision": "20220303", "rootUrl": "https://shoppingcontent.googleapis.com/", "schemas": { "Account": { @@ -7946,7 +7946,7 @@ "type": "object" }, "Date": { - "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "Date", "properties": { "day": { @@ -8131,26 +8131,28 @@ "description": "Response message for GetFreeListingsProgramStatus.", "id": "FreeListingsProgramStatus", "properties": { - "regionStatuses": { - "description": "Status of the program in each region. Regions with the same status and review eligibility are grouped together in `regionCodes`.", - "items": { - "$ref": "FreeListingsProgramStatusRegionStatus" - }, - "type": "array" - }, - "state": { - "description": "If program is successfully onboarded for at least one region.", + "globalState": { + "description": "State of the program, It is set to enabled if there are offers for at least one region.", "enum": [ "PROGRAM_STATE_UNSPECIFIED", - "ENABLED", - "NOT_ENABLED" + "NOT_ENABLED", + "NO_OFFERS_UPLOADED", + "ENABLED" ], "enumDescriptions": [ "State is not known.", - "Program is enabled for at least one country.", - "Program is not enabled for any country." + "Program is not enabled for any country.", + "Offers are not uploaded targeting even a single country for this program.", + "Program is enabled and offers are uploaded for at least one country." ], "type": "string" + }, + "regionStatuses": { + "description": "Status of the program in each region. Regions with the same status and review eligibility are grouped together in `regionCodes`.", + "items": { + "$ref": "FreeListingsProgramStatusRegionStatus" + }, + "type": "array" } }, "type": "object" @@ -8160,7 +8162,7 @@ "id": "FreeListingsProgramStatusRegionStatus", "properties": { "disapprovalDate": { - "description": "Date by which `eligibility_status` will go from `WARNING` to `DISAPPROVED`. It will be present when `eligibility_status` is `WARNING`. Date will be provided in ISO 8601 format i.e. YYYY-MM-DD", + "description": "Date by which `eligibility_status` will go from `WARNING` to `DISAPPROVED`. It will be present when `eligibility_status` is `WARNING`. Date will be provided in ISO 8601 format: YYYY-MM-DD", "type": "string" }, "eligibilityStatus": { @@ -8179,37 +8181,18 @@ "If the account has no issues and review is completed successfully.", "There are one or more issues that needs to be resolved for account to be active for the program. Detailed list of account issues are available in [accountstatuses](https://developers.google.com/shopping-content/reference/rest/v2.1/accountstatuses) API.", "If account has issues but offers are servable. Some of the issue can make account DISAPPROVED after a certain deadline.", - "Account is under review.", + "Account is under review. Deprecated: This state is not created.", "Account is waiting for review to start.", - "Program is currently onboarding." + "Program is currently onboarding. Upload valid offers to complete onboarding." ], "type": "string" }, - "enhancedEligibilityStatus": { - "description": "Eligibility status of the enhanced free listing program.", - "enum": [ - "STATE_UNSPECIFIED", - "APPROVED", - "DISAPPROVED", - "WARNING", - "UNDER_REVIEW", - "PENDING_REVIEW", - "ONBOARDING" - ], - "enumDescriptions": [ - "State is not known.", - "If the account has no issues and review is completed successfully.", - "There are one or more issues that needs to be resolved for account to be active for the program. Detailed list of account issues are available in [accountstatuses](https://developers.google.com/shopping-content/reference/rest/v2.1/accountstatuses) API.", - "If account has issues but offers are servable. Some of the issue can make account DISAPPROVED after a certain deadline.", - "Account is under review.", - "Account is waiting for review to start.", - "Program is currently onboarding." - ], - "type": "string" - }, - "ineligibilityReason": { - "description": "Reason if a program in a given country is not eligible for review. Populated only if `review_eligibility_status` is `INELIGIBLE`.", - "type": "string" + "onboardingIssues": { + "description": "These issues must be fixed to become eligible for the review.", + "items": { + "type": "string" + }, + "type": "array" }, "regionCodes": { "description": "The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) codes for all the regions with the same `eligibilityStatus` and `reviewEligibility`.", @@ -8226,12 +8209,40 @@ "INELIGIBLE" ], "enumDescriptions": [ - "Review eligibility state is unknown.", - "Account for a region code is eligible for review.", - "Account for a region code is not eligible for review." + "Review eligibility reason state is unknown.", + "Account is eligible for review for a specified region code.", + "Account is not eligible for review for a specified region code." ], "type": "string" }, + "reviewIneligibilityReason": { + "description": "Review ineligibility reason if account is not eligible for review.", + "enum": [ + "REVIEW_INELIGIBILITY_REASON_UNSPECIFIED", + "ONBOARDING_ISSUES", + "NOT_ENOUGH_OFFERS", + "IN_COOLDOWN_PERIOD", + "ALREADY_UNDER_REVIEW", + "NO_REVIEW_REQUIRED" + ], + "enumDescriptions": [ + "Requesting a review from Google is not possible.", + "All onboarding issues needs to be fixed.", + "Not enough offers uploaded for this country.", + "Cooldown period applies. Wait until cooldown period ends.", + "Account is already under review.", + "No issues available to review." + ], + "type": "string" + }, + "reviewIneligibilityReasonDescription": { + "description": "Reason if a program in a given country is not eligible for review. Populated only if `review_eligibility_status` is `INELIGIBLE`.", + "type": "string" + }, + "reviewIneligibilityReasonDetails": { + "$ref": "FreeListingsProgramStatusReviewIneligibilityReasonDetails", + "description": "This contains additional information specific to review ineligibility reasons. If review is ineligible because of `IN_COOLDOWN_PERIOD`, it will contain timestamp for cooldown period." + }, "reviewIssues": { "description": "These issues will be evaluated in review process. Fix all the issues before requesting the review.", "items": { @@ -8242,6 +8253,18 @@ }, "type": "object" }, + "FreeListingsProgramStatusReviewIneligibilityReasonDetails": { + "description": "Additional details for review ineligibility reasons.", + "id": "FreeListingsProgramStatusReviewIneligibilityReasonDetails", + "properties": { + "cooldownTime": { + "description": "This timestamp represents end of cooldown period for review ineligbility reason `IN_COOLDOWN_PERIOD`.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "GmbAccounts": { "id": "GmbAccounts", "properties": { @@ -13242,7 +13265,7 @@ "type": "object" }, "Promotion": { - "description": " The Promotions feature is currently in alpha and is not yet publicly available via Content API for Shopping. This documentation is provided for reference only may be subject to change. Represents a promotion. See the following articles for more details. * [Promotions feed specification](https://support.google.com/merchants/answer/2906014) * [Local promotions feed specification](https://support.google.com/merchants/answer/10146130) * [Promotions on Buy on Google product data specification](https://support.google.com/merchants/answer/9173673)", + "description": " The Promotions feature is currently in alpha and is not yet publicly available in Content API for Shopping. This documentation is provided for reference only may be subject to change. Represents a promotion. See the following articles for more details. * [Promotions feed specification](https://support.google.com/merchants/answer/2906014) * [Local promotions feed specification](https://support.google.com/merchants/answer/10146130) * [Promotions on Buy on Google product data specification](https://support.google.com/merchants/answer/9173673)", "id": "Promotion", "properties": { "brand": { @@ -13441,7 +13464,7 @@ "type": "array" }, "promotionDisplayDates": { - "description": "String representation of the promotion display dates.", + "description": "String representation of the promotion display dates (deprecated: Use promotion_display_time_period instead).", "type": "string" }, "promotionDisplayTimePeriod": { @@ -13449,7 +13472,7 @@ "description": "TimePeriod representation of the promotion display dates." }, "promotionEffectiveDates": { - "description": "Required. String representation of the promotion effective dates.", + "description": "String representation of the promotion effective dates (deprecated: Use promotion_effective_time_period instead).", "type": "string" }, "promotionEffectiveTimePeriod": { @@ -15518,26 +15541,28 @@ "description": "Response message for GetShoppingAdsProgramStatus.", "id": "ShoppingAdsProgramStatus", "properties": { - "regionStatuses": { - "description": "Status of the program in each region. Regions with the same status and review eligibility are grouped together in `regionCodes`.", - "items": { - "$ref": "ShoppingAdsProgramStatusRegionStatus" - }, - "type": "array" - }, - "state": { - "description": "If program is successfully onboarded for at least one region.", + "globalState": { + "description": "State of the program, It is set to enabled if there are offers for at least one region.", "enum": [ "PROGRAM_STATE_UNSPECIFIED", - "ENABLED", - "NOT_ENABLED" + "NOT_ENABLED", + "NO_OFFERS_UPLOADED", + "ENABLED" ], "enumDescriptions": [ "State is not known.", - "Program is enabled for at least one country.", - "Program is not enabled for any country." + "Program is not enabled for any country.", + "Offers are not uploaded targeting even a single country for this program.", + "Program is enabled and offers are uploaded for at least one country." ], "type": "string" + }, + "regionStatuses": { + "description": "Status of the program in each region. Regions with the same status and review eligibility are grouped together in `regionCodes`.", + "items": { + "$ref": "ShoppingAdsProgramStatusRegionStatus" + }, + "type": "array" } }, "type": "object" @@ -15547,7 +15572,7 @@ "id": "ShoppingAdsProgramStatusRegionStatus", "properties": { "disapprovalDate": { - "description": "Date by which `eligibility_status` will go from `WARNING` to `DISAPPROVED`. It will be present when `eligibility_status` is `WARNING`. Date will be provided in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format i.e. YYYY-MM-DD", + "description": "Date by which `eligibility_status` will go from `WARNING` to `DISAPPROVED`. It will be present when `eligibility_status` is `WARNING`. Date will be provided in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: YYYY-MM-DD", "type": "string" }, "eligibilityStatus": { @@ -15566,15 +15591,18 @@ "If the account has no issues and review is completed successfully.", "There are one or more issues that needs to be resolved for account to be active for the program. Detailed list of account issues are available in [accountstatuses](https://developers.google.com/shopping-content/reference/rest/v2.1/accountstatuses) API.", "If account has issues but offers are servable. Some of the issue can make account DISAPPROVED after a certain deadline.", - "Account is under review.", + "Account is under review. Deprecated: This state is not created.", "Account is waiting for review to start.", - "Program is currently onboarding." + "Program is currently onboarding. Upload valid offers to complete onboarding." ], "type": "string" }, - "ineligibilityReason": { - "description": "Reason if a program in a given country is not eligible for review. Populated only if `review_eligibility_status` is `INELIGIBLE`.", - "type": "string" + "onboardingIssues": { + "description": "These issues must be fixed to become eligible for the review.", + "items": { + "type": "string" + }, + "type": "array" }, "regionCodes": { "description": "The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) codes for all the regions with the same `eligibilityStatus` and `reviewEligibility`.", @@ -15591,12 +15619,40 @@ "INELIGIBLE" ], "enumDescriptions": [ - "Review eligibility state is unknown.", - "Account for a region code is eligible for review.", - "Account for a region code is not eligible for review." + "Review eligibility reason state is unknown.", + "Account is eligible for review for a specified region code.", + "Account is not eligible for review for a specified region code." + ], + "type": "string" + }, + "reviewIneligibilityReason": { + "description": "Review ineligibility reason if account is not eligible for review.", + "enum": [ + "REVIEW_INELIGIBILITY_REASON_UNSPECIFIED", + "ONBOARDING_ISSUES", + "NOT_ENOUGH_OFFERS", + "IN_COOLDOWN_PERIOD", + "ALREADY_UNDER_REVIEW", + "NO_REVIEW_REQUIRED" + ], + "enumDescriptions": [ + "Requesting a review from Google is not possible.", + "All onboarding issues needs to be fixed.", + "Not enough offers uploaded for this country.", + "Cooldown period applies. Wait until cooldown period ends.", + "Account is already under review.", + "No issues available to review." ], "type": "string" }, + "reviewIneligibilityReasonDescription": { + "description": "Reason if a program in a given country is not eligible for review. Populated only if `review_eligibility_status` is `INELIGIBLE`.", + "type": "string" + }, + "reviewIneligibilityReasonDetails": { + "$ref": "ShoppingAdsProgramStatusReviewIneligibilityReasonDetails", + "description": "This contains additional information specific to review ineligibility reasons. If review is ineligible because of `IN_COOLDOWN_PERIOD`, it will contain timestamp for cooldown period." + }, "reviewIssues": { "description": "These issues will be evaluated in review process. Fix all the issues before requesting the review.", "items": { @@ -15607,6 +15663,18 @@ }, "type": "object" }, + "ShoppingAdsProgramStatusReviewIneligibilityReasonDetails": { + "description": "Additional details for review ineligibility reasons.", + "id": "ShoppingAdsProgramStatusReviewIneligibilityReasonDetails", + "properties": { + "cooldownTime": { + "description": "This timestamp represents end of cooldown period for review ineligbility reason `IN_COOLDOWN_PERIOD`.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "Table": { "id": "Table", "properties": { diff --git a/content/v2.1/content-gen.go b/content/v2.1/content-gen.go index f92e1adbd96..951132eb87e 100644 --- a/content/v2.1/content-gen.go +++ b/content/v2.1/content-gen.go @@ -4179,11 +4179,12 @@ func (s *DatafeedstatusesListResponse) MarshalJSON() ([]byte, error) { // birthday. The time of day and time zone are either specified // elsewhere or are insignificant. The date is relative to the Gregorian // Calendar. This can represent one of the following: * A full date, -// with non-zero year, month, and day values * A month and day, with a -// zero year (e.g., an anniversary) * A year on its own, with a zero -// month and a zero day * A year and month, with a zero day (e.g., a -// credit card expiration date) Related types: * google.type.TimeOfDay * -// google.type.DateTime * google.protobuf.Timestamp +// with non-zero year, month, and day values. * A month and day, with a +// zero year (for example, an anniversary). * A year on its own, with a +// zero month and a zero day. * A year and month, with a zero day (for +// example, a credit card expiration date). Related types: * +// google.type.TimeOfDay * google.type.DateTime * +// google.protobuf.Timestamp type Date struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the @@ -4474,24 +4475,28 @@ func (s *Errors) MarshalJSON() ([]byte, error) { // FreeListingsProgramStatus: Response message for // GetFreeListingsProgramStatus. type FreeListingsProgramStatus struct { - // RegionStatuses: Status of the program in each region. Regions with - // the same status and review eligibility are grouped together in - // `regionCodes`. - RegionStatuses []*FreeListingsProgramStatusRegionStatus `json:"regionStatuses,omitempty"` - - // State: If program is successfully onboarded for at least one region. + // GlobalState: State of the program, It is set to enabled if there are + // offers for at least one region. // // Possible values: // "PROGRAM_STATE_UNSPECIFIED" - State is not known. - // "ENABLED" - Program is enabled for at least one country. // "NOT_ENABLED" - Program is not enabled for any country. - State string `json:"state,omitempty"` + // "NO_OFFERS_UPLOADED" - Offers are not uploaded targeting even a + // single country for this program. + // "ENABLED" - Program is enabled and offers are uploaded for at least + // one country. + GlobalState string `json:"globalState,omitempty"` + + // RegionStatuses: Status of the program in each region. Regions with + // the same status and review eligibility are grouped together in + // `regionCodes`. + RegionStatuses []*FreeListingsProgramStatusRegionStatus `json:"regionStatuses,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "RegionStatuses") to + // ForceSendFields is a list of field names (e.g. "GlobalState") 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 @@ -4499,13 +4504,12 @@ type FreeListingsProgramStatus struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RegionStatuses") 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 is a list of field names (e.g. "GlobalState") 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:"-"` } @@ -4520,7 +4524,7 @@ type FreeListingsProgramStatusRegionStatus struct { // DisapprovalDate: Date by which `eligibility_status` will go from // `WARNING` to `DISAPPROVED`. It will be present when // `eligibility_status` is `WARNING`. Date will be provided in ISO 8601 - // format i.e. YYYY-MM-DD + // format: YYYY-MM-DD DisapprovalDate string `json:"disapprovalDate,omitempty"` // EligibilityStatus: Eligibility status of the standard free listing @@ -4537,34 +4541,16 @@ type FreeListingsProgramStatusRegionStatus struct { // ence/rest/v2.1/accountstatuses) API. // "WARNING" - If account has issues but offers are servable. Some of // the issue can make account DISAPPROVED after a certain deadline. - // "UNDER_REVIEW" - Account is under review. + // "UNDER_REVIEW" - Account is under review. Deprecated: This state is + // not created. // "PENDING_REVIEW" - Account is waiting for review to start. - // "ONBOARDING" - Program is currently onboarding. + // "ONBOARDING" - Program is currently onboarding. Upload valid offers + // to complete onboarding. EligibilityStatus string `json:"eligibilityStatus,omitempty"` - // EnhancedEligibilityStatus: Eligibility status of the enhanced free - // listing program. - // - // Possible values: - // "STATE_UNSPECIFIED" - State is not known. - // "APPROVED" - If the account has no issues and review is completed - // successfully. - // "DISAPPROVED" - There are one or more issues that needs to be - // resolved for account to be active for the program. Detailed list of - // account issues are available in - // [accountstatuses](https://developers.google.com/shopping-content/refer - // ence/rest/v2.1/accountstatuses) API. - // "WARNING" - If account has issues but offers are servable. Some of - // the issue can make account DISAPPROVED after a certain deadline. - // "UNDER_REVIEW" - Account is under review. - // "PENDING_REVIEW" - Account is waiting for review to start. - // "ONBOARDING" - Program is currently onboarding. - EnhancedEligibilityStatus string `json:"enhancedEligibilityStatus,omitempty"` - - // IneligibilityReason: Reason if a program in a given country is not - // eligible for review. Populated only if `review_eligibility_status` is - // `INELIGIBLE`. - IneligibilityReason string `json:"ineligibilityReason,omitempty"` + // OnboardingIssues: These issues must be fixed to become eligible for + // the review. + OnboardingIssues []string `json:"onboardingIssues,omitempty"` // RegionCodes: The two-letter ISO 3166-1 alpha-2 // (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) codes for all the @@ -4576,13 +4562,39 @@ type FreeListingsProgramStatusRegionStatus struct { // `DISAPPROVED`. // // Possible values: - // "REVIEW_ELIGIBILITY_UNSPECIFIED" - Review eligibility state is - // unknown. - // "ELIGIBLE" - Account for a region code is eligible for review. - // "INELIGIBLE" - Account for a region code is not eligible for - // review. + // "REVIEW_ELIGIBILITY_UNSPECIFIED" - Review eligibility reason state + // is unknown. + // "ELIGIBLE" - Account is eligible for review for a specified region + // code. + // "INELIGIBLE" - Account is not eligible for review for a specified + // region code. ReviewEligibilityStatus string `json:"reviewEligibilityStatus,omitempty"` + // ReviewIneligibilityReason: Review ineligibility reason if account is + // not eligible for review. + // + // Possible values: + // "REVIEW_INELIGIBILITY_REASON_UNSPECIFIED" - Requesting a review + // from Google is not possible. + // "ONBOARDING_ISSUES" - All onboarding issues needs to be fixed. + // "NOT_ENOUGH_OFFERS" - Not enough offers uploaded for this country. + // "IN_COOLDOWN_PERIOD" - Cooldown period applies. Wait until cooldown + // period ends. + // "ALREADY_UNDER_REVIEW" - Account is already under review. + // "NO_REVIEW_REQUIRED" - No issues available to review. + ReviewIneligibilityReason string `json:"reviewIneligibilityReason,omitempty"` + + // ReviewIneligibilityReasonDescription: Reason if a program in a given + // country is not eligible for review. Populated only if + // `review_eligibility_status` is `INELIGIBLE`. + ReviewIneligibilityReasonDescription string `json:"reviewIneligibilityReasonDescription,omitempty"` + + // ReviewIneligibilityReasonDetails: This contains additional + // information specific to review ineligibility reasons. If review is + // ineligible because of `IN_COOLDOWN_PERIOD`, it will contain timestamp + // for cooldown period. + ReviewIneligibilityReasonDetails *FreeListingsProgramStatusReviewIneligibilityReasonDetails `json:"reviewIneligibilityReasonDetails,omitempty"` + // ReviewIssues: These issues will be evaluated in review process. Fix // all the issues before requesting the review. ReviewIssues []string `json:"reviewIssues,omitempty"` @@ -4611,6 +4623,36 @@ func (s *FreeListingsProgramStatusRegionStatus) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// FreeListingsProgramStatusReviewIneligibilityReasonDetails: Additional +// details for review ineligibility reasons. +type FreeListingsProgramStatusReviewIneligibilityReasonDetails struct { + // CooldownTime: This timestamp represents end of cooldown period for + // review ineligbility reason `IN_COOLDOWN_PERIOD`. + CooldownTime string `json:"cooldownTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CooldownTime") 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. "CooldownTime") 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 *FreeListingsProgramStatusReviewIneligibilityReasonDetails) MarshalJSON() ([]byte, error) { + type NoMethod FreeListingsProgramStatusReviewIneligibilityReasonDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type GmbAccounts struct { // AccountId: The ID of the Merchant Center account. AccountId uint64 `json:"accountId,omitempty,string"` @@ -13178,7 +13220,7 @@ func (s *ProductstatusesListResponse) MarshalJSON() ([]byte, error) { } // Promotion: The Promotions feature is currently in alpha and is not -// yet publicly available via Content API for Shopping. This +// yet publicly available in Content API for Shopping. This // documentation is provided for reference only may be subject to // change. Represents a promotion. See the following articles for more // details. * Promotions feed specification @@ -13323,15 +13365,16 @@ type Promotion struct { PromotionDestinationIds []string `json:"promotionDestinationIds,omitempty"` // PromotionDisplayDates: String representation of the promotion display - // dates. + // dates (deprecated: Use promotion_display_time_period instead). PromotionDisplayDates string `json:"promotionDisplayDates,omitempty"` // PromotionDisplayTimePeriod: TimePeriod representation of the // promotion display dates. PromotionDisplayTimePeriod *TimePeriod `json:"promotionDisplayTimePeriod,omitempty"` - // PromotionEffectiveDates: Required. String representation of the - // promotion effective dates. + // PromotionEffectiveDates: String representation of the promotion + // effective dates (deprecated: Use promotion_effective_time_period + // instead). PromotionEffectiveDates string `json:"promotionEffectiveDates,omitempty"` // PromotionEffectiveTimePeriod: Required. TimePeriod representation of @@ -16863,24 +16906,28 @@ func (s *ShippingsettingsListResponse) MarshalJSON() ([]byte, error) { // ShoppingAdsProgramStatus: Response message for // GetShoppingAdsProgramStatus. type ShoppingAdsProgramStatus struct { - // RegionStatuses: Status of the program in each region. Regions with - // the same status and review eligibility are grouped together in - // `regionCodes`. - RegionStatuses []*ShoppingAdsProgramStatusRegionStatus `json:"regionStatuses,omitempty"` - - // State: If program is successfully onboarded for at least one region. + // GlobalState: State of the program, It is set to enabled if there are + // offers for at least one region. // // Possible values: // "PROGRAM_STATE_UNSPECIFIED" - State is not known. - // "ENABLED" - Program is enabled for at least one country. // "NOT_ENABLED" - Program is not enabled for any country. - State string `json:"state,omitempty"` + // "NO_OFFERS_UPLOADED" - Offers are not uploaded targeting even a + // single country for this program. + // "ENABLED" - Program is enabled and offers are uploaded for at least + // one country. + GlobalState string `json:"globalState,omitempty"` + + // RegionStatuses: Status of the program in each region. Regions with + // the same status and review eligibility are grouped together in + // `regionCodes`. + RegionStatuses []*ShoppingAdsProgramStatusRegionStatus `json:"regionStatuses,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "RegionStatuses") to + // ForceSendFields is a list of field names (e.g. "GlobalState") 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 @@ -16888,13 +16935,12 @@ type ShoppingAdsProgramStatus struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RegionStatuses") 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 is a list of field names (e.g. "GlobalState") 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:"-"` } @@ -16909,7 +16955,7 @@ type ShoppingAdsProgramStatusRegionStatus struct { // DisapprovalDate: Date by which `eligibility_status` will go from // `WARNING` to `DISAPPROVED`. It will be present when // `eligibility_status` is `WARNING`. Date will be provided in ISO 8601 - // (https://en.wikipedia.org/wiki/ISO_8601) format i.e. YYYY-MM-DD + // (https://en.wikipedia.org/wiki/ISO_8601) format: YYYY-MM-DD DisapprovalDate string `json:"disapprovalDate,omitempty"` // EligibilityStatus: Eligibility status of the Shopping Ads program. @@ -16925,15 +16971,16 @@ type ShoppingAdsProgramStatusRegionStatus struct { // ence/rest/v2.1/accountstatuses) API. // "WARNING" - If account has issues but offers are servable. Some of // the issue can make account DISAPPROVED after a certain deadline. - // "UNDER_REVIEW" - Account is under review. + // "UNDER_REVIEW" - Account is under review. Deprecated: This state is + // not created. // "PENDING_REVIEW" - Account is waiting for review to start. - // "ONBOARDING" - Program is currently onboarding. + // "ONBOARDING" - Program is currently onboarding. Upload valid offers + // to complete onboarding. EligibilityStatus string `json:"eligibilityStatus,omitempty"` - // IneligibilityReason: Reason if a program in a given country is not - // eligible for review. Populated only if `review_eligibility_status` is - // `INELIGIBLE`. - IneligibilityReason string `json:"ineligibilityReason,omitempty"` + // OnboardingIssues: These issues must be fixed to become eligible for + // the review. + OnboardingIssues []string `json:"onboardingIssues,omitempty"` // RegionCodes: The two-letter ISO 3166-1 alpha-2 // (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) codes for all the @@ -16945,13 +16992,39 @@ type ShoppingAdsProgramStatusRegionStatus struct { // `DISAPPROVED`. // // Possible values: - // "REVIEW_ELIGIBILITY_UNSPECIFIED" - Review eligibility state is - // unknown. - // "ELIGIBLE" - Account for a region code is eligible for review. - // "INELIGIBLE" - Account for a region code is not eligible for - // review. + // "REVIEW_ELIGIBILITY_UNSPECIFIED" - Review eligibility reason state + // is unknown. + // "ELIGIBLE" - Account is eligible for review for a specified region + // code. + // "INELIGIBLE" - Account is not eligible for review for a specified + // region code. ReviewEligibilityStatus string `json:"reviewEligibilityStatus,omitempty"` + // ReviewIneligibilityReason: Review ineligibility reason if account is + // not eligible for review. + // + // Possible values: + // "REVIEW_INELIGIBILITY_REASON_UNSPECIFIED" - Requesting a review + // from Google is not possible. + // "ONBOARDING_ISSUES" - All onboarding issues needs to be fixed. + // "NOT_ENOUGH_OFFERS" - Not enough offers uploaded for this country. + // "IN_COOLDOWN_PERIOD" - Cooldown period applies. Wait until cooldown + // period ends. + // "ALREADY_UNDER_REVIEW" - Account is already under review. + // "NO_REVIEW_REQUIRED" - No issues available to review. + ReviewIneligibilityReason string `json:"reviewIneligibilityReason,omitempty"` + + // ReviewIneligibilityReasonDescription: Reason if a program in a given + // country is not eligible for review. Populated only if + // `review_eligibility_status` is `INELIGIBLE`. + ReviewIneligibilityReasonDescription string `json:"reviewIneligibilityReasonDescription,omitempty"` + + // ReviewIneligibilityReasonDetails: This contains additional + // information specific to review ineligibility reasons. If review is + // ineligible because of `IN_COOLDOWN_PERIOD`, it will contain timestamp + // for cooldown period. + ReviewIneligibilityReasonDetails *ShoppingAdsProgramStatusReviewIneligibilityReasonDetails `json:"reviewIneligibilityReasonDetails,omitempty"` + // ReviewIssues: These issues will be evaluated in review process. Fix // all the issues before requesting the review. ReviewIssues []string `json:"reviewIssues,omitempty"` @@ -16980,6 +17053,36 @@ func (s *ShoppingAdsProgramStatusRegionStatus) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ShoppingAdsProgramStatusReviewIneligibilityReasonDetails: Additional +// details for review ineligibility reasons. +type ShoppingAdsProgramStatusReviewIneligibilityReasonDetails struct { + // CooldownTime: This timestamp represents end of cooldown period for + // review ineligbility reason `IN_COOLDOWN_PERIOD`. + CooldownTime string `json:"cooldownTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CooldownTime") 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. "CooldownTime") 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 *ShoppingAdsProgramStatusReviewIneligibilityReasonDetails) MarshalJSON() ([]byte, error) { + type NoMethod ShoppingAdsProgramStatusReviewIneligibilityReasonDetails + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type Table struct { // ColumnHeaders: Headers of the table's columns. Optional: if not set // then the table has only one dimension. diff --git a/datamigration/v1/datamigration-api.json b/datamigration/v1/datamigration-api.json index 4fc2991e4c3..2c88d94fa27 100644 --- a/datamigration/v1/datamigration-api.json +++ b/datamigration/v1/datamigration-api.json @@ -1049,7 +1049,7 @@ } } }, - "revision": "20220119", + "revision": "20220216", "rootUrl": "https://datamigration.googleapis.com/", "schemas": { "AuditConfig": { @@ -1221,7 +1221,8 @@ "POSTGRES_10", "MYSQL_8_0", "POSTGRES_12", - "POSTGRES_13" + "POSTGRES_13", + "POSTGRES_14" ], "enumDescriptions": [ "Unspecified version.", @@ -1232,7 +1233,8 @@ "PostgreSQL 10.", "MySQL 8.0.", "PostgreSQL 12.", - "PostgreSQL 13." + "PostgreSQL 13.", + "PostgreSQL 14." ], "type": "string" }, @@ -1404,6 +1406,35 @@ }, "type": "object" }, + "DumpFlag": { + "description": "Dump flag definition.", + "id": "DumpFlag", + "properties": { + "name": { + "description": "The name of the flag", + "type": "string" + }, + "value": { + "description": "The value of the flag.", + "type": "string" + } + }, + "type": "object" + }, + "DumpFlags": { + "description": "Dump flags definition.", + "id": "DumpFlags", + "properties": { + "dumpFlags": { + "description": "The flags for the initial dump.", + "items": { + "$ref": "DumpFlag" + }, + "type": "array" + } + }, + "type": "object" + }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", "id": "Empty", @@ -1643,8 +1674,12 @@ "description": "The migration job display name.", "type": "string" }, + "dumpFlags": { + "$ref": "DumpFlags", + "description": "The initial dump flags. This field and the \"dump_path\" field are mutually exclusive." + }, "dumpPath": { - "description": "The path to the dump file in Google Cloud Storage, in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]).", + "description": "The path to the dump file in Google Cloud Storage, in the format: (gs://[BUCKET_NAME]/[OBJECT_NAME]). This field and the \"dump_flags\" field are mutually exclusive.", "type": "string" }, "duration": { diff --git a/datamigration/v1/datamigration-gen.go b/datamigration/v1/datamigration-gen.go index 497cc8307b4..fe27e43cbd2 100644 --- a/datamigration/v1/datamigration-gen.go +++ b/datamigration/v1/datamigration-gen.go @@ -468,6 +468,7 @@ type CloudSqlSettings struct { // "MYSQL_8_0" - MySQL 8.0. // "POSTGRES_12" - PostgreSQL 12. // "POSTGRES_13" - PostgreSQL 13. + // "POSTGRES_14" - PostgreSQL 14. DatabaseVersion string `json:"databaseVersion,omitempty"` // IpConfig: The settings for IP Management. This allows to enable or @@ -666,6 +667,65 @@ func (s *DatabaseType) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DumpFlag: Dump flag definition. +type DumpFlag struct { + // Name: The name of the flag + Name string `json:"name,omitempty"` + + // Value: The value of the flag. + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 *DumpFlag) MarshalJSON() ([]byte, error) { + type NoMethod DumpFlag + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DumpFlags: Dump flags definition. +type DumpFlags struct { + // DumpFlags: The flags for the initial dump. + DumpFlags []*DumpFlag `json:"dumpFlags,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DumpFlags") 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. "DumpFlags") 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 *DumpFlags) MarshalJSON() ([]byte, error) { + type NoMethod DumpFlags + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Empty: A generic empty message that you can re-use to avoid defining // duplicated empty messages in your APIs. A typical example is to use // it as the request or the response type of an API method. For @@ -1054,8 +1114,13 @@ type MigrationJob struct { // DisplayName: The migration job display name. DisplayName string `json:"displayName,omitempty"` + // DumpFlags: The initial dump flags. This field and the "dump_path" + // field are mutually exclusive. + DumpFlags *DumpFlags `json:"dumpFlags,omitempty"` + // DumpPath: The path to the dump file in Google Cloud Storage, in the - // format: (gs://[BUCKET_NAME]/[OBJECT_NAME]). + // format: (gs://[BUCKET_NAME]/[OBJECT_NAME]). This field and the + // "dump_flags" field are mutually exclusive. DumpPath string `json:"dumpPath,omitempty"` // Duration: Output only. The duration of the migration job (in diff --git a/dataplex/v1/dataplex-api.json b/dataplex/v1/dataplex-api.json index 9261627227d..76433ca9a51 100644 --- a/dataplex/v1/dataplex-api.json +++ b/dataplex/v1/dataplex-api.json @@ -2074,7 +2074,7 @@ ], "parameters": { "etag": { - "description": "Required. The etag associated with the partition if it was previously retrieved.", + "description": "Required. The etag associated with the entity, which can be retrieved with a GetEntity request.", "location": "query", "type": "string" }, @@ -2146,7 +2146,7 @@ ], "parameters": { "filter": { - "description": "Optional. The following filter parameters can be added to the URL to limit the entities returned by the API: Entity ID: ?filter=\"id=entityID\" Asset ID: ?filter=\"asset=assetID\" Data path ?filter=\"data_path=gs://my-bucket\" Is HIVE compatible: ?filter=”hive_compatible=true” Is BigQuery compatible: ?filter=”bigquery_compatible=true”", + "description": "Optional. The following filter parameters can be added to the URL to limit the entities returned by the API: Entity ID: ?filter=\"id=entityID\" Asset ID: ?filter=\"asset=assetID\" Data path ?filter=\"data_path=gs://my-bucket\" Is HIVE compatible: ?filter=\"hive_compatible=true\" Is BigQuery compatible: ?filter=\"bigquery_compatible=true\"", "location": "query", "type": "string" }, @@ -2176,7 +2176,7 @@ "FILESETS" ], "enumDescriptions": [ - "The default unset value. The API will default to the FULL view.", + "The default unset value. Return both table and fileset entities if unspecified.", "Only list table entities.", "Only list fileset entities." ], @@ -2272,7 +2272,7 @@ ], "parameters": { "etag": { - "description": "Optional. The etag associated with the partition if it was previously retrieved.", + "description": "Optional. The etag associated with the partition.", "location": "query", "type": "string" }, @@ -2327,7 +2327,7 @@ ], "parameters": { "filter": { - "description": "Optional. Filter the partitions returned to the caller using a key vslue pair expression. The filter expression supports: logical operators: AND, OR comparison operators: \u003c, \u003e, \u003e=, \u003c= ,=, != LIKE operators: The right hand of a LIKE operator supports “.” and “*” for wildcard searches, for example \"value1 LIKE \".*oo.*\" parenthetical grouping: ( )Sample filter expression: `?filter=\"key1 \u003c value1 OR key2 \u003e value2\"Notes: Keys to the left of operators are case insensitive. Partition results are sorted first by creation time, then by lexicographic order. Up to 20 key value filter pairs are allowed, but due to performance considerations, only the first 10 will be used as a filter.", + "description": "Optional. Filter the partitions returned to the caller using a key value pair expression. Supported operators and syntax: logic operators: AND, OR comparison operators: \u003c, \u003e, \u003e=, \u003c= ,=, != LIKE operators: The right hand of a LIKE operator supports \".\" and \"*\" for wildcard searches, for example \"value1 LIKE \".*oo.*\" parenthetical grouping: ( )Sample filter expression: `?filter=\"key1 \u003c value1 OR key2 \u003e value2\"Notes: Keys to the left of operators are case insensitive. Partition results are sorted first by creation time, then by lexicographic order. Up to 20 key value filter pairs are allowed, but due to performance considerations, only the first 10 will be used as a filter.", "location": "query", "type": "string" }, @@ -2494,7 +2494,7 @@ } } }, - "revision": "20220208", + "revision": "20220223", "rootUrl": "https://dataplex.googleapis.com/", "schemas": { "Empty": { @@ -3341,11 +3341,11 @@ "type": "string" }, "displayName": { - "description": "Optional. Display name must be shorter than or equal to 63 characters.", + "description": "Optional. Display name must be shorter than or equal to 256 characters.", "type": "string" }, "etag": { - "description": "Optional. The etag for this entity. Required for update and delete requests. Must match the server's etag.", + "description": "Optional. The etag associated with the entity, which can be retrieved with a GetEntity request. Required for update and delete requests.", "type": "string" }, "format": { @@ -3353,7 +3353,7 @@ "description": "Required. Identifies the storage format of the entity data. It does not apply to entities with data stored in BigQuery." }, "id": { - "description": "Required. A user-provided entity ID. It is mutable, and will be used as the published table name. Specifying a new ID in an update entity request will override the existing value. The ID must contain only letters (a-z, A-Z), numbers (0-9), and underscores. Must begin with a letter.", + "description": "Required. A user-provided entity ID. It is mutable, and will be used as the published table name. Specifying a new ID in an update entity request will override the existing value. The ID must contain only letters (a-z, A-Z), numbers (0-9), and underscores. Must begin with a letter and consist of 256 or fewer characters.", "type": "string" }, "name": { @@ -4187,7 +4187,7 @@ "type": "string" }, "name": { - "description": "Output only. The values must be HTML URL encoded two times before constructing the path. For example, if you have a value of \"US:CA\", encoded it two times and you get \"US%253ACA\". Then if you have the 2nd value is \"CA#Sunnyvale\", encoded two times and you get \"CA%2523Sunnyvale\". The partition values path is \"US%253ACA/CA%2523Sunnyvale\". The final URL will be \"https://.../partitions/US%253ACA/CA%2523Sunnyvale\". The name field in the responses will always have the encoded format.", + "description": "Output only. Partition values used in the HTTP URL must be double encoded. For example, url_encode(url_encode(value)) can be used to encode \"US:CA/CA#Sunnyvale so that the request URL ends with \"/partitions/US%253ACA/CA%2523Sunnyvale\". The name field in the response retains the encoded format.", "readOnly": true, "type": "string" }, @@ -4206,7 +4206,7 @@ "id": "GoogleCloudDataplexV1Schema", "properties": { "fields": { - "description": "Optional. The sequence of fields describing data in table entities.", + "description": "Optional. The sequence of fields describing data in table entities. Note: BigQuery SchemaFields are immutable.", "items": { "$ref": "GoogleCloudDataplexV1SchemaSchemaField" }, @@ -4232,18 +4232,18 @@ "type": "string" }, "userManaged": { - "description": "Required. Whether the schema is user-managed or managed by the service. - Set user_manage to false if you would like Dataplex to help you manage the schema. You will get the full service provided by Dataplex discovery, including new data discovery, schema inference and schema evolution. You can still provide input the schema of the entities, for example renaming a schema field, changing CSV or Json options if you think the discovered values are not as accurate. Dataplex will consider your input as the initial schema (as if they were produced by the previous discovery run), and will evolve schema or flag actions based on that. - Set user_manage to true if you would like to fully manage the entity schema by yourself. This is useful when you would like to manually specify the schema for a table. In this case, the schema defined by the user is guaranteed to be kept unchanged and would not be overwritten. But this also means Dataplex will not provide schema evolution management for you. Dataplex will still be able to manage partition registration (i.e., keeping the list of partitions up to date) when Dataplex discovery is turned on and user_managed is set to true.", + "description": "Required. Set to true if user-managed or false if managed by Dataplex. The default is false (managed by Dataplex). Set to falseto enable Dataplex discovery to update the schema. including new data discovery, schema inference, and schema evolution. Users retain the ability to input and edit the schema. Dataplex treats schema input by the user as though produced by a previous Dataplex discovery operation, and it will evolve the schema and take action based on that treatment. Set to true to fully manage the entity schema. This setting guarantees that Dataplex will not change schema fields.", "type": "boolean" } }, "type": "object" }, "GoogleCloudDataplexV1SchemaPartitionField": { - "description": "Represents a key field within the entity's partition structure. You could have up to 20 partition fields, but only the first 10 partitions have the filtering ability due to performance consideration.", + "description": "Represents a key field within the entity's partition structure. You could have up to 20 partition fields, but only the first 10 partitions have the filtering ability due to performance consideration. Note: Partition fields are immutable.", "id": "GoogleCloudDataplexV1SchemaPartitionField", "properties": { "name": { - "description": "Required. Partition name is editable if only the partition style is not HIVE compatible. The maximum length allowed is 767 characters.", + "description": "Required. Partition field name must consist of letters, numbers, and underscores only, with a maximum of length of 256 characters, and must begin with a letter or underscore..", "type": "string" }, "type": { @@ -4321,7 +4321,7 @@ "type": "string" }, "name": { - "description": "Required. The name of the field. The maximum length is 767 characters. The name must begins with a letter and not contains : and ..", + "description": "Required. The name of the field. Must contain only letters, numbers and underscores, with a maximum length of 767 characters, and must begin with a letter or underscore.", "type": "string" }, "type": { @@ -4553,7 +4553,7 @@ "description": "Optional. Additional information about CSV formatted data." }, "mimeType": { - "description": "Required. The mime type descriptor for the data. Must match the pattern {type}/{subtype}. Supported values: - application/x-parquet - application/x-avro - application/x-orc - application/x-tfrecord - application/json - application/{subtypes} - text/csv - text/ - image/{image subtype} - video/{video subtype} - audio/{audio subtype}", + "description": "Required. The mime type descriptor for the data. Must match the pattern {type}/{subtype}. Supported values: application/x-parquet application/x-avro application/x-orc application/x-tfrecord application/json application/{subtypes} text/csv text/ image/{image subtype} video/{video subtype} audio/{audio subtype}", "type": "string" } }, @@ -4577,7 +4577,7 @@ "type": "integer" }, "quote": { - "description": "Optional. The character used to quote column values. Accepts '\"' and '''. Defaults to '\"' if unspecified.", + "description": "Optional. The character used to quote column values. Accepts '\"' (double quotation mark) or ''' (single quotation mark). Defaults to '\"' (double quotation mark) if unspecified.", "type": "string" } }, diff --git a/dataplex/v1/dataplex-gen.go b/dataplex/v1/dataplex-gen.go index 1d7fe20e6a6..964444044e1 100644 --- a/dataplex/v1/dataplex-gen.go +++ b/dataplex/v1/dataplex-gen.go @@ -1511,11 +1511,12 @@ type GoogleCloudDataplexV1Entity struct { Description string `json:"description,omitempty"` // DisplayName: Optional. Display name must be shorter than or equal to - // 63 characters. + // 256 characters. DisplayName string `json:"displayName,omitempty"` - // Etag: Optional. The etag for this entity. Required for update and - // delete requests. Must match the server's etag. + // Etag: Optional. The etag associated with the entity, which can be + // retrieved with a GetEntity request. Required for update and delete + // requests. Etag string `json:"etag,omitempty"` // Format: Required. Identifies the storage format of the entity data. @@ -1526,7 +1527,7 @@ type GoogleCloudDataplexV1Entity struct { // used as the published table name. Specifying a new ID in an update // entity request will override the existing value. The ID must contain // only letters (a-z, A-Z), numbers (0-9), and underscores. Must begin - // with a letter. + // with a letter and consist of 256 or fewer characters. Id string `json:"id,omitempty"` // Name: Output only. The resource name of the entity, of the form: @@ -2731,14 +2732,11 @@ type GoogleCloudDataplexV1Partition struct { // projects//datasets//tables/ Location string `json:"location,omitempty"` - // Name: Output only. The values must be HTML URL encoded two times - // before constructing the path. For example, if you have a value of - // "US:CA", encoded it two times and you get "US%253ACA". Then if you - // have the 2nd value is "CA#Sunnyvale", encoded two times and you get - // "CA%2523Sunnyvale". The partition values path is - // "US%253ACA/CA%2523Sunnyvale". The final URL will be - // "https://.../partitions/US%253ACA/CA%2523Sunnyvale". The name field - // in the responses will always have the encoded format. + // Name: Output only. Partition values used in the HTTP URL must be + // double encoded. For example, url_encode(url_encode(value)) can be + // used to encode "US:CA/CA#Sunnyvale so that the request URL ends with + // "/partitions/US%253ACA/CA%2523Sunnyvale". The name field in the + // response retains the encoded format. Name string `json:"name,omitempty"` // Values: Required. Immutable. The set of values representing the @@ -2777,7 +2775,7 @@ func (s *GoogleCloudDataplexV1Partition) MarshalJSON() ([]byte, error) { // structure and layout of the data. type GoogleCloudDataplexV1Schema struct { // Fields: Optional. The sequence of fields describing data in table - // entities. + // entities. Note: BigQuery SchemaFields are immutable. Fields []*GoogleCloudDataplexV1SchemaSchemaField `json:"fields,omitempty"` // PartitionFields: Optional. The sequence of fields describing the @@ -2795,24 +2793,16 @@ type GoogleCloudDataplexV1Schema struct { // gs://bucket/path/to/table/dt=2019-10-31/lang=en/late. PartitionStyle string `json:"partitionStyle,omitempty"` - // UserManaged: Required. Whether the schema is user-managed or managed - // by the service. - Set user_manage to false if you would like Dataplex - // to help you manage the schema. You will get the full service provided - // by Dataplex discovery, including new data discovery, schema inference - // and schema evolution. You can still provide input the schema of the - // entities, for example renaming a schema field, changing CSV or Json - // options if you think the discovered values are not as accurate. - // Dataplex will consider your input as the initial schema (as if they - // were produced by the previous discovery run), and will evolve schema - // or flag actions based on that. - Set user_manage to true if you would - // like to fully manage the entity schema by yourself. This is useful - // when you would like to manually specify the schema for a table. In - // this case, the schema defined by the user is guaranteed to be kept - // unchanged and would not be overwritten. But this also means Dataplex - // will not provide schema evolution management for you. Dataplex will - // still be able to manage partition registration (i.e., keeping the - // list of partitions up to date) when Dataplex discovery is turned on - // and user_managed is set to true. + // UserManaged: Required. Set to true if user-managed or false if + // managed by Dataplex. The default is false (managed by Dataplex). Set + // to falseto enable Dataplex discovery to update the schema. including + // new data discovery, schema inference, and schema evolution. Users + // retain the ability to input and edit the schema. Dataplex treats + // schema input by the user as though produced by a previous Dataplex + // discovery operation, and it will evolve the schema and take action + // based on that treatment. Set to true to fully manage the entity + // schema. This setting guarantees that Dataplex will not change schema + // fields. UserManaged bool `json:"userManaged,omitempty"` // ForceSendFields is a list of field names (e.g. "Fields") to @@ -2841,11 +2831,12 @@ func (s *GoogleCloudDataplexV1Schema) MarshalJSON() ([]byte, error) { // GoogleCloudDataplexV1SchemaPartitionField: Represents a key field // within the entity's partition structure. You could have up to 20 // partition fields, but only the first 10 partitions have the filtering -// ability due to performance consideration. +// ability due to performance consideration. Note: Partition fields are +// immutable. type GoogleCloudDataplexV1SchemaPartitionField struct { - // Name: Required. Partition name is editable if only the partition - // style is not HIVE compatible. The maximum length allowed is 767 - // characters. + // Name: Required. Partition field name must consist of letters, + // numbers, and underscores only, with a maximum of length of 256 + // characters, and must begin with a letter or underscore.. Name string `json:"name,omitempty"` // Type: Required. Immutable. The type of field. @@ -2914,9 +2905,9 @@ type GoogleCloudDataplexV1SchemaSchemaField struct { // list of values. Mode string `json:"mode,omitempty"` - // Name: Required. The name of the field. The maximum length is 767 - // characters. The name must begins with a letter and not contains : and - // .. + // Name: Required. The name of the field. Must contain only letters, + // numbers and underscores, with a maximum length of 767 characters, and + // must begin with a letter or underscore. Name string `json:"name,omitempty"` // Type: Required. The type of field. @@ -3149,11 +3140,10 @@ type GoogleCloudDataplexV1StorageFormat struct { Json *GoogleCloudDataplexV1StorageFormatJsonOptions `json:"json,omitempty"` // MimeType: Required. The mime type descriptor for the data. Must match - // the pattern {type}/{subtype}. Supported values: - - // application/x-parquet - application/x-avro - application/x-orc - - // application/x-tfrecord - application/json - application/{subtypes} - - // text/csv - text/ - image/{image subtype} - video/{video subtype} - - // audio/{audio subtype} + // the pattern {type}/{subtype}. Supported values: application/x-parquet + // application/x-avro application/x-orc application/x-tfrecord + // application/json application/{subtypes} text/csv text/ image/{image + // subtype} video/{video subtype} audio/{audio subtype} MimeType string `json:"mimeType,omitempty"` // ForceSendFields is a list of field names (e.g. "CompressionFormat") @@ -3197,7 +3187,8 @@ type GoogleCloudDataplexV1StorageFormatCsvOptions struct { HeaderRows int64 `json:"headerRows,omitempty"` // Quote: Optional. The character used to quote column values. Accepts - // '"' and '''. Defaults to '"' if unspecified. + // '"' (double quotation mark) or ''' (single quotation mark). Defaults + // to '"' (double quotation mark) if unspecified. Quote string `json:"quote,omitempty"` // ForceSendFields is a list of field names (e.g. "Delimiter") to @@ -14337,7 +14328,8 @@ func (r *ProjectsLocationsLakesZonesEntitiesService) Delete(name string) *Projec } // Etag sets the optional parameter "etag": Required. The etag -// associated with the partition if it was previously retrieved. +// associated with the entity, which can be retrieved with a GetEntity +// request. func (c *ProjectsLocationsLakesZonesEntitiesDeleteCall) Etag(etag string) *ProjectsLocationsLakesZonesEntitiesDeleteCall { c.urlParams_.Set("etag", etag) return c @@ -14438,7 +14430,7 @@ func (c *ProjectsLocationsLakesZonesEntitiesDeleteCall) Do(opts ...googleapi.Cal // ], // "parameters": { // "etag": { - // "description": "Required. The etag associated with the partition if it was previously retrieved.", + // "description": "Required. The etag associated with the entity, which can be retrieved with a GetEntity request.", // "location": "query", // "type": "string" // }, @@ -14666,8 +14658,8 @@ func (r *ProjectsLocationsLakesZonesEntitiesService) List(parent string) *Projec // parameters can be added to the URL to limit the entities returned by // the API: Entity ID: ?filter="id=entityID" Asset ID: // ?filter="asset=assetID" Data path ?filter="data_path=gs://my-bucket" -// Is HIVE compatible: ?filter=”hive_compatible=true” Is BigQuery -// compatible: ?filter=”bigquery_compatible=true” +// Is HIVE compatible: ?filter="hive_compatible=true" Is BigQuery +// compatible: ?filter="bigquery_compatible=true" func (c *ProjectsLocationsLakesZonesEntitiesListCall) Filter(filter string) *ProjectsLocationsLakesZonesEntitiesListCall { c.urlParams_.Set("filter", filter) return c @@ -14695,8 +14687,8 @@ func (c *ProjectsLocationsLakesZonesEntitiesListCall) PageToken(pageToken string // view to make a partial list request. // // Possible values: -// "ENTITY_VIEW_UNSPECIFIED" - The default unset value. The API will -// default to the FULL view. +// "ENTITY_VIEW_UNSPECIFIED" - The default unset value. Return both +// table and fileset entities if unspecified. // "TABLES" - Only list table entities. // "FILESETS" - Only list fileset entities. func (c *ProjectsLocationsLakesZonesEntitiesListCall) View(view string) *ProjectsLocationsLakesZonesEntitiesListCall { @@ -14814,7 +14806,7 @@ func (c *ProjectsLocationsLakesZonesEntitiesListCall) Do(opts ...googleapi.CallO // ], // "parameters": { // "filter": { - // "description": "Optional. The following filter parameters can be added to the URL to limit the entities returned by the API: Entity ID: ?filter=\"id=entityID\" Asset ID: ?filter=\"asset=assetID\" Data path ?filter=\"data_path=gs://my-bucket\" Is HIVE compatible: ?filter=”hive_compatible=true” Is BigQuery compatible: ?filter=”bigquery_compatible=true”", + // "description": "Optional. The following filter parameters can be added to the URL to limit the entities returned by the API: Entity ID: ?filter=\"id=entityID\" Asset ID: ?filter=\"asset=assetID\" Data path ?filter=\"data_path=gs://my-bucket\" Is HIVE compatible: ?filter=\"hive_compatible=true\" Is BigQuery compatible: ?filter=\"bigquery_compatible=true\"", // "location": "query", // "type": "string" // }, @@ -14844,7 +14836,7 @@ func (c *ProjectsLocationsLakesZonesEntitiesListCall) Do(opts ...googleapi.CallO // "FILESETS" // ], // "enumDescriptions": [ - // "The default unset value. The API will default to the FULL view.", + // "The default unset value. Return both table and fileset entities if unspecified.", // "Only list table entities.", // "Only list fileset entities." // ], @@ -15223,7 +15215,7 @@ func (r *ProjectsLocationsLakesZonesEntitiesPartitionsService) Delete(name strin } // Etag sets the optional parameter "etag": The etag associated with the -// partition if it was previously retrieved. +// partition. func (c *ProjectsLocationsLakesZonesEntitiesPartitionsDeleteCall) Etag(etag string) *ProjectsLocationsLakesZonesEntitiesPartitionsDeleteCall { c.urlParams_.Set("etag", etag) return c @@ -15324,7 +15316,7 @@ func (c *ProjectsLocationsLakesZonesEntitiesPartitionsDeleteCall) Do(opts ...goo // ], // "parameters": { // "etag": { - // "description": "Optional. The etag associated with the partition if it was previously retrieved.", + // "description": "Optional. The etag associated with the partition.", // "location": "query", // "type": "string" // }, @@ -15521,16 +15513,16 @@ func (r *ProjectsLocationsLakesZonesEntitiesPartitionsService) List(parent strin } // Filter sets the optional parameter "filter": Filter the partitions -// returned to the caller using a key vslue pair expression. The filter -// expression supports: logical operators: AND, OR comparison operators: +// returned to the caller using a key value pair expression. Supported +// operators and syntax: logic operators: AND, OR comparison operators: // <, >, >=, <= ,=, != LIKE operators: The right hand of a LIKE operator -// supports “.” and “*” for wildcard searches, for example -// "value1 LIKE ".*oo.*" parenthetical grouping: ( )Sample filter -// expression: `?filter="key1 < value1 OR key2 > value2"Notes: Keys to -// the left of operators are case insensitive. Partition results are -// sorted first by creation time, then by lexicographic order. Up to 20 -// key value filter pairs are allowed, but due to performance -// considerations, only the first 10 will be used as a filter. +// supports "." and "*" for wildcard searches, for example "value1 LIKE +// ".*oo.*" parenthetical grouping: ( )Sample filter expression: +// `?filter="key1 < value1 OR key2 > value2"Notes: Keys to the left of +// operators are case insensitive. Partition results are sorted first by +// creation time, then by lexicographic order. Up to 20 key value filter +// pairs are allowed, but due to performance considerations, only the +// first 10 will be used as a filter. func (c *ProjectsLocationsLakesZonesEntitiesPartitionsListCall) Filter(filter string) *ProjectsLocationsLakesZonesEntitiesPartitionsListCall { c.urlParams_.Set("filter", filter) return c @@ -15666,7 +15658,7 @@ func (c *ProjectsLocationsLakesZonesEntitiesPartitionsListCall) Do(opts ...googl // ], // "parameters": { // "filter": { - // "description": "Optional. Filter the partitions returned to the caller using a key vslue pair expression. The filter expression supports: logical operators: AND, OR comparison operators: \u003c, \u003e, \u003e=, \u003c= ,=, != LIKE operators: The right hand of a LIKE operator supports “.” and “*” for wildcard searches, for example \"value1 LIKE \".*oo.*\" parenthetical grouping: ( )Sample filter expression: `?filter=\"key1 \u003c value1 OR key2 \u003e value2\"Notes: Keys to the left of operators are case insensitive. Partition results are sorted first by creation time, then by lexicographic order. Up to 20 key value filter pairs are allowed, but due to performance considerations, only the first 10 will be used as a filter.", + // "description": "Optional. Filter the partitions returned to the caller using a key value pair expression. Supported operators and syntax: logic operators: AND, OR comparison operators: \u003c, \u003e, \u003e=, \u003c= ,=, != LIKE operators: The right hand of a LIKE operator supports \".\" and \"*\" for wildcard searches, for example \"value1 LIKE \".*oo.*\" parenthetical grouping: ( )Sample filter expression: `?filter=\"key1 \u003c value1 OR key2 \u003e value2\"Notes: Keys to the left of operators are case insensitive. Partition results are sorted first by creation time, then by lexicographic order. Up to 20 key value filter pairs are allowed, but due to performance considerations, only the first 10 will be used as a filter.", // "location": "query", // "type": "string" // }, diff --git a/eventarc/v1/eventarc-api.json b/eventarc/v1/eventarc-api.json index f80c97d223f..a3d291f60c4 100644 --- a/eventarc/v1/eventarc-api.json +++ b/eventarc/v1/eventarc-api.json @@ -702,6 +702,11 @@ "parent" ], "parameters": { + "filter": { + "description": "Filter field. Used to filter the Triggers to be listed. Possible filters are described in https://google.aip.dev/160. For example, using \"?filter=destination:gke\" would list only Triggers with a gke destination.", + "location": "query", + "type": "string" + }, "orderBy": { "description": "The sorting order of the resources returned. Value should be a comma-separated list of fields. The default sorting order is ascending. To specify descending order for a field, append a `desc` suffix; for example: `name desc, trigger_id`.", "location": "query", @@ -841,7 +846,7 @@ } } }, - "revision": "20220205", + "revision": "20220301", "rootUrl": "https://eventarc.googleapis.com/", "schemas": { "AuditConfig": { diff --git a/eventarc/v1/eventarc-gen.go b/eventarc/v1/eventarc-gen.go index a3e4ca5a4f4..acf9c53042a 100644 --- a/eventarc/v1/eventarc-gen.go +++ b/eventarc/v1/eventarc-gen.go @@ -4477,6 +4477,16 @@ func (r *ProjectsLocationsTriggersService) List(parent string) *ProjectsLocation return c } +// Filter sets the optional parameter "filter": Filter field. Used to +// filter the Triggers to be listed. Possible filters are described in +// https://google.aip.dev/160. For example, using +// "?filter=destination:gke" would list only Triggers with a gke +// destination. +func (c *ProjectsLocationsTriggersListCall) Filter(filter string) *ProjectsLocationsTriggersListCall { + c.urlParams_.Set("filter", filter) + return c +} + // OrderBy sets the optional parameter "orderBy": The sorting order of // the resources returned. Value should be a comma-separated list of // fields. The default sorting order is ascending. To specify descending @@ -4611,6 +4621,11 @@ func (c *ProjectsLocationsTriggersListCall) Do(opts ...googleapi.CallOption) (*L // "parent" // ], // "parameters": { + // "filter": { + // "description": "Filter field. Used to filter the Triggers to be listed. Possible filters are described in https://google.aip.dev/160. For example, using \"?filter=destination:gke\" would list only Triggers with a gke destination.", + // "location": "query", + // "type": "string" + // }, // "orderBy": { // "description": "The sorting order of the resources returned. Value should be a comma-separated list of fields. The default sorting order is ascending. To specify descending order for a field, append a `desc` suffix; for example: `name desc, trigger_id`.", // "location": "query", diff --git a/osconfig/v1/osconfig-api.json b/osconfig/v1/osconfig-api.json index 54b2ec6f87e..91d9a8ee3ad 100644 --- a/osconfig/v1/osconfig-api.json +++ b/osconfig/v1/osconfig-api.json @@ -1000,7 +1000,7 @@ } } }, - "revision": "20220222", + "revision": "20220301", "rootUrl": "https://osconfig.googleapis.com/", "schemas": { "AptSettings": { @@ -1197,7 +1197,7 @@ "type": "object" }, "Date": { - "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "Date", "properties": { "day": { @@ -1259,13 +1259,15 @@ "description": "The script interpreter to use to run the script. If no interpreter is specified the script will be executed directly, which will likely only succeed for scripts with [shebang lines] (https://en.wikipedia.org/wiki/Shebang_\\(Unix\\)).", "enum": [ "INTERPRETER_UNSPECIFIED", + "NONE", "SHELL", "POWERSHELL" ], "enumDescriptions": [ - "Invalid for a Windows ExecStepConfig. For a Linux ExecStepConfig, the interpreter will be parsed from the shebang line of the script if unspecified.", - "Indicates that the script is run with `/bin/sh` on Linux and `cmd` on Windows.", - "Indicates that the file is run with PowerShell flags `-NonInteractive`, `-NoProfile`, and `-ExecutionPolicy Bypass`." + "If the interpreter is not specified, the value defaults to `NONE`.", + "Indicates that the file is run as follows on each operating system: + For Linux VMs, the file is ran as an executable and the interpreter might be parsed from the [shebang line](https://wikipedia.org/wiki/Shebang_(Unix)) of the file. + For Windows VM, this value is not supported.", + "Indicates that the file is run with `/bin/sh` on Linux and `cmd` on Windows.", + "Indicates that the file is run with PowerShell." ], "type": "string" }, diff --git a/osconfig/v1/osconfig-gen.go b/osconfig/v1/osconfig-gen.go index bb01677a76c..d6ba35fa3fc 100644 --- a/osconfig/v1/osconfig-gen.go +++ b/osconfig/v1/osconfig-gen.go @@ -508,11 +508,12 @@ type CancelPatchJobRequest struct { // birthday. The time of day and time zone are either specified // elsewhere or are insignificant. The date is relative to the Gregorian // Calendar. This can represent one of the following: * A full date, -// with non-zero year, month, and day values * A month and day, with a -// zero year (e.g., an anniversary) * A year on its own, with a zero -// month and a zero day * A year and month, with a zero day (e.g., a -// credit card expiration date) Related types: * google.type.TimeOfDay * -// google.type.DateTime * google.protobuf.Timestamp +// with non-zero year, month, and day values. * A month and day, with a +// zero year (for example, an anniversary). * A year on its own, with a +// zero month and a zero day. * A year and month, with a zero day (for +// example, a credit card expiration date). Related types: * +// google.type.TimeOfDay * google.type.DateTime * +// google.protobuf.Timestamp type Date struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the @@ -611,13 +612,16 @@ type ExecStepConfig struct { // (https://en.wikipedia.org/wiki/Shebang_\(Unix\)). // // Possible values: - // "INTERPRETER_UNSPECIFIED" - Invalid for a Windows ExecStepConfig. - // For a Linux ExecStepConfig, the interpreter will be parsed from the - // shebang line of the script if unspecified. - // "SHELL" - Indicates that the script is run with `/bin/sh` on Linux + // "INTERPRETER_UNSPECIFIED" - If the interpreter is not specified, + // the value defaults to `NONE`. + // "NONE" - Indicates that the file is run as follows on each + // operating system: + For Linux VMs, the file is ran as an executable + // and the interpreter might be parsed from the [shebang + // line](https://wikipedia.org/wiki/Shebang_(Unix)) of the file. + For + // Windows VM, this value is not supported. + // "SHELL" - Indicates that the file is run with `/bin/sh` on Linux // and `cmd` on Windows. - // "POWERSHELL" - Indicates that the file is run with PowerShell flags - // `-NonInteractive`, `-NoProfile`, and `-ExecutionPolicy Bypass`. + // "POWERSHELL" - Indicates that the file is run with PowerShell. Interpreter string `json:"interpreter,omitempty"` // LocalPath: An absolute path to the executable on the VM. diff --git a/osconfig/v1alpha/osconfig-api.json b/osconfig/v1alpha/osconfig-api.json index b2f1d8435b4..18c04932db7 100644 --- a/osconfig/v1alpha/osconfig-api.json +++ b/osconfig/v1alpha/osconfig-api.json @@ -684,7 +684,7 @@ } } }, - "revision": "20220222", + "revision": "20220301", "rootUrl": "https://osconfig.googleapis.com/", "schemas": { "CVSSv3": { @@ -840,7 +840,7 @@ "type": "object" }, "Date": { - "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "Date", "properties": { "day": { diff --git a/osconfig/v1alpha/osconfig-gen.go b/osconfig/v1alpha/osconfig-gen.go index 28e23c38247..5574e503daa 100644 --- a/osconfig/v1alpha/osconfig-gen.go +++ b/osconfig/v1alpha/osconfig-gen.go @@ -434,11 +434,12 @@ type CancelOperationRequest struct { // birthday. The time of day and time zone are either specified // elsewhere or are insignificant. The date is relative to the Gregorian // Calendar. This can represent one of the following: * A full date, -// with non-zero year, month, and day values * A month and day, with a -// zero year (e.g., an anniversary) * A year on its own, with a zero -// month and a zero day * A year and month, with a zero day (e.g., a -// credit card expiration date) Related types: * google.type.TimeOfDay * -// google.type.DateTime * google.protobuf.Timestamp +// with non-zero year, month, and day values. * A month and day, with a +// zero year (for example, an anniversary). * A year on its own, with a +// zero month and a zero day. * A year and month, with a zero day (for +// example, a credit card expiration date). Related types: * +// google.type.TimeOfDay * google.type.DateTime * +// google.protobuf.Timestamp type Date struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the diff --git a/osconfig/v1beta/osconfig-api.json b/osconfig/v1beta/osconfig-api.json index 81046d8ec8b..ade9c5ba0d0 100644 --- a/osconfig/v1beta/osconfig-api.json +++ b/osconfig/v1beta/osconfig-api.json @@ -689,7 +689,7 @@ } } }, - "revision": "20220103", + "revision": "20220301", "rootUrl": "https://osconfig.googleapis.com/", "schemas": { "AptRepository": { @@ -962,13 +962,15 @@ "description": "The script interpreter to use to run the script. If no interpreter is specified the script will be executed directly, which will likely only succeed for scripts with [shebang lines] (https://en.wikipedia.org/wiki/Shebang_\\(Unix\\)).", "enum": [ "INTERPRETER_UNSPECIFIED", + "NONE", "SHELL", "POWERSHELL" ], "enumDescriptions": [ - "Invalid for a Windows ExecStepConfig. For a Linux ExecStepConfig, the interpreter will be parsed from the shebang line of the script if unspecified.", - "Indicates that the script is run with `/bin/sh` on Linux and `cmd` on Windows.", - "Indicates that the file is run with PowerShell flags `-NonInteractive`, `-NoProfile`, and `-ExecutionPolicy Bypass`." + "If the interpreter is not specified, the value defaults to `NONE`.", + "Indicates that the file is run as follows on each operating system: + For Linux VMs, the file is ran as an executable and the interpreter might be parsed from the [shebang line](https://wikipedia.org/wiki/Shebang_(Unix)) of the file. + For Windows VM, this value is not supported.", + "Indicates that the file is run with `/bin/sh` on Linux and `cmd` on Windows.", + "Indicates that the file is run with PowerShell." ], "type": "string" }, diff --git a/osconfig/v1beta/osconfig-gen.go b/osconfig/v1beta/osconfig-gen.go index 1952cb07866..e4dafc70892 100644 --- a/osconfig/v1beta/osconfig-gen.go +++ b/osconfig/v1beta/osconfig-gen.go @@ -652,13 +652,16 @@ type ExecStepConfig struct { // (https://en.wikipedia.org/wiki/Shebang_\(Unix\)). // // Possible values: - // "INTERPRETER_UNSPECIFIED" - Invalid for a Windows ExecStepConfig. - // For a Linux ExecStepConfig, the interpreter will be parsed from the - // shebang line of the script if unspecified. - // "SHELL" - Indicates that the script is run with `/bin/sh` on Linux + // "INTERPRETER_UNSPECIFIED" - If the interpreter is not specified, + // the value defaults to `NONE`. + // "NONE" - Indicates that the file is run as follows on each + // operating system: + For Linux VMs, the file is ran as an executable + // and the interpreter might be parsed from the [shebang + // line](https://wikipedia.org/wiki/Shebang_(Unix)) of the file. + For + // Windows VM, this value is not supported. + // "SHELL" - Indicates that the file is run with `/bin/sh` on Linux // and `cmd` on Windows. - // "POWERSHELL" - Indicates that the file is run with PowerShell flags - // `-NonInteractive`, `-NoProfile`, and `-ExecutionPolicy Bypass`. + // "POWERSHELL" - Indicates that the file is run with PowerShell. Interpreter string `json:"interpreter,omitempty"` // LocalPath: An absolute path to the executable on the VM. diff --git a/policysimulator/v1/policysimulator-api.json b/policysimulator/v1/policysimulator-api.json index 3aa2847080c..f80ff9d49fe 100644 --- a/policysimulator/v1/policysimulator-api.json +++ b/policysimulator/v1/policysimulator-api.json @@ -493,7 +493,7 @@ } } }, - "revision": "20220205", + "revision": "20220305", "rootUrl": "https://policysimulator.googleapis.com/", "schemas": { "GoogleCloudPolicysimulatorV1AccessStateDiff": { @@ -1236,7 +1236,7 @@ "type": "object" }, "GoogleTypeDate": { - "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "GoogleTypeDate", "properties": { "day": { diff --git a/policysimulator/v1/policysimulator-gen.go b/policysimulator/v1/policysimulator-gen.go index 9122e5d92eb..18357d1fd6a 100644 --- a/policysimulator/v1/policysimulator-gen.go +++ b/policysimulator/v1/policysimulator-gen.go @@ -1626,11 +1626,12 @@ func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { // a birthday. The time of day and time zone are either specified // elsewhere or are insignificant. The date is relative to the Gregorian // Calendar. This can represent one of the following: * A full date, -// with non-zero year, month, and day values * A month and day, with a -// zero year (e.g., an anniversary) * A year on its own, with a zero -// month and a zero day * A year and month, with a zero day (e.g., a -// credit card expiration date) Related types: * google.type.TimeOfDay * -// google.type.DateTime * google.protobuf.Timestamp +// with non-zero year, month, and day values. * A month and day, with a +// zero year (for example, an anniversary). * A year on its own, with a +// zero month and a zero day. * A year and month, with a zero day (for +// example, a credit card expiration date). Related types: * +// google.type.TimeOfDay * google.type.DateTime * +// google.protobuf.Timestamp type GoogleTypeDate struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the diff --git a/policysimulator/v1beta1/policysimulator-api.json b/policysimulator/v1beta1/policysimulator-api.json index 31fe743e795..d9c882c65b2 100644 --- a/policysimulator/v1beta1/policysimulator-api.json +++ b/policysimulator/v1beta1/policysimulator-api.json @@ -493,7 +493,7 @@ } } }, - "revision": "20220205", + "revision": "20220305", "rootUrl": "https://policysimulator.googleapis.com/", "schemas": { "GoogleCloudPolicysimulatorV1Replay": { @@ -1236,7 +1236,7 @@ "type": "object" }, "GoogleTypeDate": { - "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "GoogleTypeDate", "properties": { "day": { diff --git a/policysimulator/v1beta1/policysimulator-gen.go b/policysimulator/v1beta1/policysimulator-gen.go index 58d1edeea4b..a99bef3a103 100644 --- a/policysimulator/v1beta1/policysimulator-gen.go +++ b/policysimulator/v1beta1/policysimulator-gen.go @@ -1627,11 +1627,12 @@ func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { // a birthday. The time of day and time zone are either specified // elsewhere or are insignificant. The date is relative to the Gregorian // Calendar. This can represent one of the following: * A full date, -// with non-zero year, month, and day values * A month and day, with a -// zero year (e.g., an anniversary) * A year on its own, with a zero -// month and a zero day * A year and month, with a zero day (e.g., a -// credit card expiration date) Related types: * google.type.TimeOfDay * -// google.type.DateTime * google.protobuf.Timestamp +// with non-zero year, month, and day values. * A month and day, with a +// zero year (for example, an anniversary). * A year on its own, with a +// zero month and a zero day. * A year and month, with a zero day (for +// example, a credit card expiration date). Related types: * +// google.type.TimeOfDay * google.type.DateTime * +// google.protobuf.Timestamp type GoogleTypeDate struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the diff --git a/privateca/v1/privateca-api.json b/privateca/v1/privateca-api.json index 3c0826bb164..d832693b7a2 100644 --- a/privateca/v1/privateca-api.json +++ b/privateca/v1/privateca-api.json @@ -567,6 +567,11 @@ "description": "Optional. An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", "location": "query", "type": "string" + }, + "skipGracePeriod": { + "description": "Optional. This field sets the CA to have a pending delete duration of 0.", + "location": "query", + "type": "boolean" } }, "path": "v1/{+name}", @@ -1590,7 +1595,7 @@ } } }, - "revision": "20220202", + "revision": "20220223", "rootUrl": "https://privateca.googleapis.com/", "schemas": { "AccessUrls": { diff --git a/privateca/v1/privateca-gen.go b/privateca/v1/privateca-gen.go index f5693faa3be..b360384e3e4 100644 --- a/privateca/v1/privateca-gen.go +++ b/privateca/v1/privateca-gen.go @@ -5613,6 +5613,13 @@ func (c *ProjectsLocationsCaPoolsCertificateAuthoritiesDeleteCall) RequestId(req return c } +// SkipGracePeriod sets the optional parameter "skipGracePeriod": This +// field sets the CA to have a pending delete duration of 0. +func (c *ProjectsLocationsCaPoolsCertificateAuthoritiesDeleteCall) SkipGracePeriod(skipGracePeriod bool) *ProjectsLocationsCaPoolsCertificateAuthoritiesDeleteCall { + c.urlParams_.Set("skipGracePeriod", fmt.Sprint(skipGracePeriod)) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -5723,6 +5730,11 @@ func (c *ProjectsLocationsCaPoolsCertificateAuthoritiesDeleteCall) Do(opts ...go // "description": "Optional. An ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", // "location": "query", // "type": "string" + // }, + // "skipGracePeriod": { + // "description": "Optional. This field sets the CA to have a pending delete duration of 0.", + // "location": "query", + // "type": "boolean" // } // }, // "path": "v1/{+name}", diff --git a/redis/v1/redis-api.json b/redis/v1/redis-api.json index 6c09dcd4b07..023021f7e4b 100644 --- a/redis/v1/redis-api.json +++ b/redis/v1/redis-api.json @@ -624,7 +624,7 @@ } } }, - "revision": "20220203", + "revision": "20220301", "rootUrl": "https://redis.googleapis.com/", "schemas": { "Empty": { @@ -881,7 +881,7 @@ "type": "integer" }, "readReplicasMode": { - "description": "Optional. Read replica mode. Can only be specified when trying to create the instance.", + "description": "Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.", "enum": [ "READ_REPLICAS_MODE_UNSPECIFIED", "READ_REPLICAS_DISABLED", @@ -915,7 +915,7 @@ "type": "string" }, "secondaryIpRange": { - "description": "Optional. Additional ip ranges for node placement, beyond those specified in reserved_ip_range. At most 1 secondary IP range is supported. The mask value must not exceed /28. Not supported for BASIC tier. Updates can only add new ranges, once added ranges cannot be changed or deleted. Values in this list cannot overlap with the reserved_ip_range. Not supported during instance creation.", + "description": "Optional. Additional IP range for node placement. Required when enabling read replicas on an existing instance. For DIRECT_PEERING mode value must be a CIDR range of size /28, or \"auto\". For PRIVATE_SERVICE_ACCESS mode value must be the name of an allocated address range associated with the private service access connection, or \"auto\".", "type": "string" }, "serverCaCerts": { diff --git a/redis/v1/redis-gen.go b/redis/v1/redis-gen.go index a01a69b16a8..e29c8104ef1 100644 --- a/redis/v1/redis-gen.go +++ b/redis/v1/redis-gen.go @@ -579,8 +579,8 @@ type Instance struct { // target 'port'. ReadEndpointPort int64 `json:"readEndpointPort,omitempty"` - // ReadReplicasMode: Optional. Read replica mode. Can only be specified - // when trying to create the instance. + // ReadReplicasMode: Optional. Read replicas mode for the instance. + // Defaults to READ_REPLICAS_DISABLED. // // Possible values: // "READ_REPLICAS_MODE_UNSPECIFIED" - If not set, Memorystore Redis @@ -625,12 +625,12 @@ type Instance struct { // READ_REPLICAS_ENABLED the default block size is /28. ReservedIpRange string `json:"reservedIpRange,omitempty"` - // SecondaryIpRange: Optional. Additional ip ranges for node placement, - // beyond those specified in reserved_ip_range. At most 1 secondary IP - // range is supported. The mask value must not exceed /28. Not supported - // for BASIC tier. Updates can only add new ranges, once added ranges - // cannot be changed or deleted. Values in this list cannot overlap with - // the reserved_ip_range. Not supported during instance creation. + // SecondaryIpRange: Optional. Additional IP range for node placement. + // Required when enabling read replicas on an existing instance. For + // DIRECT_PEERING mode value must be a CIDR range of size /28, or + // "auto". For PRIVATE_SERVICE_ACCESS mode value must be the name of an + // allocated address range associated with the private service access + // connection, or "auto". SecondaryIpRange string `json:"secondaryIpRange,omitempty"` // ServerCaCerts: Output only. List of server CA certificates for the diff --git a/redis/v1beta1/redis-api.json b/redis/v1beta1/redis-api.json index 1b4d3c74885..0fef074f06c 100644 --- a/redis/v1beta1/redis-api.json +++ b/redis/v1beta1/redis-api.json @@ -624,7 +624,7 @@ } } }, - "revision": "20220203", + "revision": "20220301", "rootUrl": "https://redis.googleapis.com/", "schemas": { "Empty": { @@ -888,7 +888,7 @@ "type": "integer" }, "readReplicasMode": { - "description": "Optional. Read replica mode. Can only be specified when trying to create the instance.", + "description": "Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.", "enum": [ "READ_REPLICAS_MODE_UNSPECIFIED", "READ_REPLICAS_DISABLED", @@ -922,7 +922,7 @@ "type": "string" }, "secondaryIpRange": { - "description": "Optional. Additional ip ranges for node placement, beyond those specified in reserved_ip_range. At most 1 secondary IP range is supported. The mask value must not exceed /28. Not supported for BASIC tier. Updates can only add new ranges, once added ranges cannot be changed or deleted. Values in this list cannot overlap with the reserved_ip_range. Not supported during instance creation.", + "description": "Optional. Additional IP range for node placement. Required when enabling read replicas on an existing instance. For DIRECT_PEERING mode value must be a CIDR range of size /28, or \"auto\". For PRIVATE_SERVICE_ACCESS mode value must be the name of an allocated address range associated with the private service access connection, or \"auto\".", "type": "string" }, "serverCaCerts": { diff --git a/redis/v1beta1/redis-gen.go b/redis/v1beta1/redis-gen.go index 876ad27ce0d..105f41edba7 100644 --- a/redis/v1beta1/redis-gen.go +++ b/redis/v1beta1/redis-gen.go @@ -584,8 +584,8 @@ type Instance struct { // target 'port'. ReadEndpointPort int64 `json:"readEndpointPort,omitempty"` - // ReadReplicasMode: Optional. Read replica mode. Can only be specified - // when trying to create the instance. + // ReadReplicasMode: Optional. Read replicas mode for the instance. + // Defaults to READ_REPLICAS_DISABLED. // // Possible values: // "READ_REPLICAS_MODE_UNSPECIFIED" - If not set, Memorystore Redis @@ -630,12 +630,12 @@ type Instance struct { // READ_REPLICAS_ENABLED the default block size is /28. ReservedIpRange string `json:"reservedIpRange,omitempty"` - // SecondaryIpRange: Optional. Additional ip ranges for node placement, - // beyond those specified in reserved_ip_range. At most 1 secondary IP - // range is supported. The mask value must not exceed /28. Not supported - // for BASIC tier. Updates can only add new ranges, once added ranges - // cannot be changed or deleted. Values in this list cannot overlap with - // the reserved_ip_range. Not supported during instance creation. + // SecondaryIpRange: Optional. Additional IP range for node placement. + // Required when enabling read replicas on an existing instance. For + // DIRECT_PEERING mode value must be a CIDR range of size /28, or + // "auto". For PRIVATE_SERVICE_ACCESS mode value must be the name of an + // allocated address range associated with the private service access + // connection, or "auto". SecondaryIpRange string `json:"secondaryIpRange,omitempty"` // ServerCaCerts: Output only. List of server CA certificates for the diff --git a/securitycenter/v1/securitycenter-api.json b/securitycenter/v1/securitycenter-api.json index 6a836867eda..05eb7eb02b8 100644 --- a/securitycenter/v1/securitycenter-api.json +++ b/securitycenter/v1/securitycenter-api.json @@ -867,7 +867,7 @@ ], "parameters": { "name": { - "description": "External System Name e.g. jira, demisto, etc. e.g.: organizations/1234/sources/5678/findings/123456/externalSystems/jira folders/1234/sources/5678/findings/123456/externalSystems/jira projects/1234/sources/5678/findings/123456/externalSystems/jira", + "description": "External System Name e.g. jira, demisto, etc. e.g.: `organizations/1234/sources/5678/findings/123456/externalSystems/jira` `folders/1234/sources/5678/findings/123456/externalSystems/jira` `projects/1234/sources/5678/findings/123456/externalSystems/jira`", "location": "path", "pattern": "^folders/[^/]+/sources/[^/]+/findings/[^/]+/externalSystems/[^/]+$", "required": true, @@ -2231,7 +2231,7 @@ ], "parameters": { "name": { - "description": "External System Name e.g. jira, demisto, etc. e.g.: organizations/1234/sources/5678/findings/123456/externalSystems/jira folders/1234/sources/5678/findings/123456/externalSystems/jira projects/1234/sources/5678/findings/123456/externalSystems/jira", + "description": "External System Name e.g. jira, demisto, etc. e.g.: `organizations/1234/sources/5678/findings/123456/externalSystems/jira` `folders/1234/sources/5678/findings/123456/externalSystems/jira` `projects/1234/sources/5678/findings/123456/externalSystems/jira`", "location": "path", "pattern": "^organizations/[^/]+/sources/[^/]+/findings/[^/]+/externalSystems/[^/]+$", "required": true, @@ -3025,7 +3025,7 @@ ], "parameters": { "name": { - "description": "External System Name e.g. jira, demisto, etc. e.g.: organizations/1234/sources/5678/findings/123456/externalSystems/jira folders/1234/sources/5678/findings/123456/externalSystems/jira projects/1234/sources/5678/findings/123456/externalSystems/jira", + "description": "External System Name e.g. jira, demisto, etc. e.g.: `organizations/1234/sources/5678/findings/123456/externalSystems/jira` `folders/1234/sources/5678/findings/123456/externalSystems/jira` `projects/1234/sources/5678/findings/123456/externalSystems/jira`", "location": "path", "pattern": "^projects/[^/]+/sources/[^/]+/findings/[^/]+/externalSystems/[^/]+$", "required": true, @@ -3058,7 +3058,7 @@ } } }, - "revision": "20220219", + "revision": "20220303", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -3723,7 +3723,7 @@ "type": "string" }, "name": { - "description": "External System Name e.g. jira, demisto, etc. e.g.: organizations/1234/sources/5678/findings/123456/externalSystems/jira folders/1234/sources/5678/findings/123456/externalSystems/jira projects/1234/sources/5678/findings/123456/externalSystems/jira", + "description": "External System Name e.g. jira, demisto, etc. e.g.: `organizations/1234/sources/5678/findings/123456/externalSystems/jira` `folders/1234/sources/5678/findings/123456/externalSystems/jira` `projects/1234/sources/5678/findings/123456/externalSystems/jira`", "type": "string" }, "status": { @@ -4630,7 +4630,7 @@ "type": "string" }, "primaryTechniques": { - "description": "The MITRE ATT\u0026CK technique most closely represented by this finding, if any. primary_techniques is a repeated field because there are multiple levels of MITRE ATT\u0026CK techniques. If the technique most closely represented by this finding is a sub-technique (e.g. SCANNING_IP_BLOCKS), both the sub-technique and its parent technique(s) will be listed (e.g. SCANNING_IP_BLOCKS, ACTIVE_SCANNING).", + "description": "The MITRE ATT\u0026CK technique most closely represented by this finding, if any. primary_techniques is a repeated field because there are multiple levels of MITRE ATT\u0026CK techniques. If the technique most closely represented by this finding is a sub-technique (e.g. `SCANNING_IP_BLOCKS`), both the sub-technique and its parent technique(s) will be listed (e.g. `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).", "items": { "enum": [ "TECHNIQUE_UNSPECIFIED", diff --git a/securitycenter/v1/securitycenter-gen.go b/securitycenter/v1/securitycenter-gen.go index 2dbe5846a24..739e9d0dd5b 100644 --- a/securitycenter/v1/securitycenter-gen.go +++ b/securitycenter/v1/securitycenter-gen.go @@ -1548,9 +1548,9 @@ type GoogleCloudSecuritycenterV1ExternalSystem struct { ExternalUid string `json:"externalUid,omitempty"` // Name: External System Name e.g. jira, demisto, etc. e.g.: - // organizations/1234/sources/5678/findings/123456/externalSystems/jira - // folders/1234/sources/5678/findings/123456/externalSystems/jira - // projects/1234/sources/5678/findings/123456/externalSystems/jira + // `organizations/1234/sources/5678/findings/123456/externalSystems/jira` + // `folders/1234/sources/5678/findings/123456/externalSystems/jira` + // `projects/1234/sources/5678/findings/123456/externalSystems/jira` Name string `json:"name,omitempty"` // Status: Most recent status of the corresponding finding's @@ -3016,9 +3016,9 @@ type MitreAttack struct { // represented by this finding, if any. primary_techniques is a repeated // field because there are multiple levels of MITRE ATT&CK techniques. // If the technique most closely represented by this finding is a - // sub-technique (e.g. SCANNING_IP_BLOCKS), both the sub-technique and - // its parent technique(s) will be listed (e.g. SCANNING_IP_BLOCKS, - // ACTIVE_SCANNING). + // sub-technique (e.g. `SCANNING_IP_BLOCKS`), both the sub-technique and + // its parent technique(s) will be listed (e.g. `SCANNING_IP_BLOCKS`, + // `ACTIVE_SCANNING`). // // Possible values: // "TECHNIQUE_UNSPECIFIED" - Unspecified value. @@ -7711,9 +7711,9 @@ type FoldersSourcesFindingsExternalSystemsPatchCall struct { // Patch: Updates external system. This is for a given finding. // // - name: External System Name e.g. jira, demisto, etc. e.g.: -// organizations/1234/sources/5678/findings/123456/externalSystems/jira -// folders/1234/sources/5678/findings/123456/externalSystems/jira -// projects/1234/sources/5678/findings/123456/externalSystems/jira. +// `organizations/1234/sources/5678/findings/123456/externalSystems/jir +// a` `folders/1234/sources/5678/findings/123456/externalSystems/jira` +// `projects/1234/sources/5678/findings/123456/externalSystems/jira`. func (r *FoldersSourcesFindingsExternalSystemsService) Patch(name string, googlecloudsecuritycenterv1externalsystem *GoogleCloudSecuritycenterV1ExternalSystem) *FoldersSourcesFindingsExternalSystemsPatchCall { c := &FoldersSourcesFindingsExternalSystemsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -7831,7 +7831,7 @@ func (c *FoldersSourcesFindingsExternalSystemsPatchCall) Do(opts ...googleapi.Ca // ], // "parameters": { // "name": { - // "description": "External System Name e.g. jira, demisto, etc. e.g.: organizations/1234/sources/5678/findings/123456/externalSystems/jira folders/1234/sources/5678/findings/123456/externalSystems/jira projects/1234/sources/5678/findings/123456/externalSystems/jira", + // "description": "External System Name e.g. jira, demisto, etc. e.g.: `organizations/1234/sources/5678/findings/123456/externalSystems/jira` `folders/1234/sources/5678/findings/123456/externalSystems/jira` `projects/1234/sources/5678/findings/123456/externalSystems/jira`", // "location": "path", // "pattern": "^folders/[^/]+/sources/[^/]+/findings/[^/]+/externalSystems/[^/]+$", // "required": true, @@ -14568,9 +14568,9 @@ type OrganizationsSourcesFindingsExternalSystemsPatchCall struct { // Patch: Updates external system. This is for a given finding. // // - name: External System Name e.g. jira, demisto, etc. e.g.: -// organizations/1234/sources/5678/findings/123456/externalSystems/jira -// folders/1234/sources/5678/findings/123456/externalSystems/jira -// projects/1234/sources/5678/findings/123456/externalSystems/jira. +// `organizations/1234/sources/5678/findings/123456/externalSystems/jir +// a` `folders/1234/sources/5678/findings/123456/externalSystems/jira` +// `projects/1234/sources/5678/findings/123456/externalSystems/jira`. func (r *OrganizationsSourcesFindingsExternalSystemsService) Patch(name string, googlecloudsecuritycenterv1externalsystem *GoogleCloudSecuritycenterV1ExternalSystem) *OrganizationsSourcesFindingsExternalSystemsPatchCall { c := &OrganizationsSourcesFindingsExternalSystemsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -14688,7 +14688,7 @@ func (c *OrganizationsSourcesFindingsExternalSystemsPatchCall) Do(opts ...google // ], // "parameters": { // "name": { - // "description": "External System Name e.g. jira, demisto, etc. e.g.: organizations/1234/sources/5678/findings/123456/externalSystems/jira folders/1234/sources/5678/findings/123456/externalSystems/jira projects/1234/sources/5678/findings/123456/externalSystems/jira", + // "description": "External System Name e.g. jira, demisto, etc. e.g.: `organizations/1234/sources/5678/findings/123456/externalSystems/jira` `folders/1234/sources/5678/findings/123456/externalSystems/jira` `projects/1234/sources/5678/findings/123456/externalSystems/jira`", // "location": "path", // "pattern": "^organizations/[^/]+/sources/[^/]+/findings/[^/]+/externalSystems/[^/]+$", // "required": true, @@ -18503,9 +18503,9 @@ type ProjectsSourcesFindingsExternalSystemsPatchCall struct { // Patch: Updates external system. This is for a given finding. // // - name: External System Name e.g. jira, demisto, etc. e.g.: -// organizations/1234/sources/5678/findings/123456/externalSystems/jira -// folders/1234/sources/5678/findings/123456/externalSystems/jira -// projects/1234/sources/5678/findings/123456/externalSystems/jira. +// `organizations/1234/sources/5678/findings/123456/externalSystems/jir +// a` `folders/1234/sources/5678/findings/123456/externalSystems/jira` +// `projects/1234/sources/5678/findings/123456/externalSystems/jira`. func (r *ProjectsSourcesFindingsExternalSystemsService) Patch(name string, googlecloudsecuritycenterv1externalsystem *GoogleCloudSecuritycenterV1ExternalSystem) *ProjectsSourcesFindingsExternalSystemsPatchCall { c := &ProjectsSourcesFindingsExternalSystemsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -18623,7 +18623,7 @@ func (c *ProjectsSourcesFindingsExternalSystemsPatchCall) Do(opts ...googleapi.C // ], // "parameters": { // "name": { - // "description": "External System Name e.g. jira, demisto, etc. e.g.: organizations/1234/sources/5678/findings/123456/externalSystems/jira folders/1234/sources/5678/findings/123456/externalSystems/jira projects/1234/sources/5678/findings/123456/externalSystems/jira", + // "description": "External System Name e.g. jira, demisto, etc. e.g.: `organizations/1234/sources/5678/findings/123456/externalSystems/jira` `folders/1234/sources/5678/findings/123456/externalSystems/jira` `projects/1234/sources/5678/findings/123456/externalSystems/jira`", // "location": "path", // "pattern": "^projects/[^/]+/sources/[^/]+/findings/[^/]+/externalSystems/[^/]+$", // "required": true, diff --git a/securitycenter/v1beta1/securitycenter-api.json b/securitycenter/v1beta1/securitycenter-api.json index 218804d8a05..22db0e64b8a 100644 --- a/securitycenter/v1beta1/securitycenter-api.json +++ b/securitycenter/v1beta1/securitycenter-api.json @@ -896,7 +896,7 @@ } } }, - "revision": "20220219", + "revision": "20220303", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -1537,7 +1537,7 @@ "type": "string" }, "name": { - "description": "External System Name e.g. jira, demisto, etc. e.g.: organizations/1234/sources/5678/findings/123456/externalSystems/jira folders/1234/sources/5678/findings/123456/externalSystems/jira projects/1234/sources/5678/findings/123456/externalSystems/jira", + "description": "External System Name e.g. jira, demisto, etc. e.g.: `organizations/1234/sources/5678/findings/123456/externalSystems/jira` `folders/1234/sources/5678/findings/123456/externalSystems/jira` `projects/1234/sources/5678/findings/123456/externalSystems/jira`", "type": "string" }, "status": { @@ -2413,7 +2413,7 @@ "type": "string" }, "primaryTechniques": { - "description": "The MITRE ATT\u0026CK technique most closely represented by this finding, if any. primary_techniques is a repeated field because there are multiple levels of MITRE ATT\u0026CK techniques. If the technique most closely represented by this finding is a sub-technique (e.g. SCANNING_IP_BLOCKS), both the sub-technique and its parent technique(s) will be listed (e.g. SCANNING_IP_BLOCKS, ACTIVE_SCANNING).", + "description": "The MITRE ATT\u0026CK technique most closely represented by this finding, if any. primary_techniques is a repeated field because there are multiple levels of MITRE ATT\u0026CK techniques. If the technique most closely represented by this finding is a sub-technique (e.g. `SCANNING_IP_BLOCKS`), both the sub-technique and its parent technique(s) will be listed (e.g. `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).", "items": { "enum": [ "TECHNIQUE_UNSPECIFIED", diff --git a/securitycenter/v1beta1/securitycenter-gen.go b/securitycenter/v1beta1/securitycenter-gen.go index adbed2c743a..26fe0a21684 100644 --- a/securitycenter/v1beta1/securitycenter-gen.go +++ b/securitycenter/v1beta1/securitycenter-gen.go @@ -1231,9 +1231,9 @@ type GoogleCloudSecuritycenterV1ExternalSystem struct { ExternalUid string `json:"externalUid,omitempty"` // Name: External System Name e.g. jira, demisto, etc. e.g.: - // organizations/1234/sources/5678/findings/123456/externalSystems/jira - // folders/1234/sources/5678/findings/123456/externalSystems/jira - // projects/1234/sources/5678/findings/123456/externalSystems/jira + // `organizations/1234/sources/5678/findings/123456/externalSystems/jira` + // `folders/1234/sources/5678/findings/123456/externalSystems/jira` + // `projects/1234/sources/5678/findings/123456/externalSystems/jira` Name string `json:"name,omitempty"` // Status: Most recent status of the corresponding finding's @@ -2570,9 +2570,9 @@ type MitreAttack struct { // represented by this finding, if any. primary_techniques is a repeated // field because there are multiple levels of MITRE ATT&CK techniques. // If the technique most closely represented by this finding is a - // sub-technique (e.g. SCANNING_IP_BLOCKS), both the sub-technique and - // its parent technique(s) will be listed (e.g. SCANNING_IP_BLOCKS, - // ACTIVE_SCANNING). + // sub-technique (e.g. `SCANNING_IP_BLOCKS`), both the sub-technique and + // its parent technique(s) will be listed (e.g. `SCANNING_IP_BLOCKS`, + // `ACTIVE_SCANNING`). // // Possible values: // "TECHNIQUE_UNSPECIFIED" - Unspecified value. diff --git a/securitycenter/v1beta2/securitycenter-api.json b/securitycenter/v1beta2/securitycenter-api.json index b7b54044c6a..3a61f3a3d2c 100644 --- a/securitycenter/v1beta2/securitycenter-api.json +++ b/securitycenter/v1beta2/securitycenter-api.json @@ -1592,7 +1592,7 @@ } } }, - "revision": "20220219", + "revision": "20220303", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -2192,7 +2192,7 @@ "type": "string" }, "name": { - "description": "External System Name e.g. jira, demisto, etc. e.g.: organizations/1234/sources/5678/findings/123456/externalSystems/jira folders/1234/sources/5678/findings/123456/externalSystems/jira projects/1234/sources/5678/findings/123456/externalSystems/jira", + "description": "External System Name e.g. jira, demisto, etc. e.g.: `organizations/1234/sources/5678/findings/123456/externalSystems/jira` `folders/1234/sources/5678/findings/123456/externalSystems/jira` `projects/1234/sources/5678/findings/123456/externalSystems/jira`", "type": "string" }, "status": { @@ -2738,7 +2738,7 @@ "type": "string" }, "primaryTechniques": { - "description": "The MITRE ATT\u0026CK technique most closely represented by this finding, if any. primary_techniques is a repeated field because there are multiple levels of MITRE ATT\u0026CK techniques. If the technique most closely represented by this finding is a sub-technique (e.g. SCANNING_IP_BLOCKS), both the sub-technique and its parent technique(s) will be listed (e.g. SCANNING_IP_BLOCKS, ACTIVE_SCANNING).", + "description": "The MITRE ATT\u0026CK technique most closely represented by this finding, if any. primary_techniques is a repeated field because there are multiple levels of MITRE ATT\u0026CK techniques. If the technique most closely represented by this finding is a sub-technique (e.g. `SCANNING_IP_BLOCKS`), both the sub-technique and its parent technique(s) will be listed (e.g. `SCANNING_IP_BLOCKS`, `ACTIVE_SCANNING`).", "items": { "enum": [ "TECHNIQUE_UNSPECIFIED", diff --git a/securitycenter/v1beta2/securitycenter-gen.go b/securitycenter/v1beta2/securitycenter-gen.go index 93fa5f7cf3e..68e8091ba5a 100644 --- a/securitycenter/v1beta2/securitycenter-gen.go +++ b/securitycenter/v1beta2/securitycenter-gen.go @@ -1212,9 +1212,9 @@ type GoogleCloudSecuritycenterV1ExternalSystem struct { ExternalUid string `json:"externalUid,omitempty"` // Name: External System Name e.g. jira, demisto, etc. e.g.: - // organizations/1234/sources/5678/findings/123456/externalSystems/jira - // folders/1234/sources/5678/findings/123456/externalSystems/jira - // projects/1234/sources/5678/findings/123456/externalSystems/jira + // `organizations/1234/sources/5678/findings/123456/externalSystems/jira` + // `folders/1234/sources/5678/findings/123456/externalSystems/jira` + // `projects/1234/sources/5678/findings/123456/externalSystems/jira` Name string `json:"name,omitempty"` // Status: Most recent status of the corresponding finding's @@ -1939,9 +1939,9 @@ type MitreAttack struct { // represented by this finding, if any. primary_techniques is a repeated // field because there are multiple levels of MITRE ATT&CK techniques. // If the technique most closely represented by this finding is a - // sub-technique (e.g. SCANNING_IP_BLOCKS), both the sub-technique and - // its parent technique(s) will be listed (e.g. SCANNING_IP_BLOCKS, - // ACTIVE_SCANNING). + // sub-technique (e.g. `SCANNING_IP_BLOCKS`), both the sub-technique and + // its parent technique(s) will be listed (e.g. `SCANNING_IP_BLOCKS`, + // `ACTIVE_SCANNING`). // // Possible values: // "TECHNIQUE_UNSPECIFIED" - Unspecified value. diff --git a/storagetransfer/v1/storagetransfer-api.json b/storagetransfer/v1/storagetransfer-api.json index eaa099d7aa3..998035f4341 100644 --- a/storagetransfer/v1/storagetransfer-api.json +++ b/storagetransfer/v1/storagetransfer-api.json @@ -600,7 +600,7 @@ } } }, - "revision": "20220216", + "revision": "20220303", "rootUrl": "https://storagetransfer.googleapis.com/", "schemas": { "AgentPool": { @@ -730,7 +730,7 @@ "type": "object" }, "Date": { - "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "Date", "properties": { "day": { diff --git a/storagetransfer/v1/storagetransfer-gen.go b/storagetransfer/v1/storagetransfer-gen.go index 77fdfd3de0d..ff9314cd50e 100644 --- a/storagetransfer/v1/storagetransfer-gen.go +++ b/storagetransfer/v1/storagetransfer-gen.go @@ -460,11 +460,12 @@ type CancelOperationRequest struct { // birthday. The time of day and time zone are either specified // elsewhere or are insignificant. The date is relative to the Gregorian // Calendar. This can represent one of the following: * A full date, -// with non-zero year, month, and day values * A month and day, with a -// zero year (e.g., an anniversary) * A year on its own, with a zero -// month and a zero day * A year and month, with a zero day (e.g., a -// credit card expiration date) Related types: * google.type.TimeOfDay * -// google.type.DateTime * google.protobuf.Timestamp +// with non-zero year, month, and day values. * A month and day, with a +// zero year (for example, an anniversary). * A year on its own, with a +// zero month and a zero day. * A year and month, with a zero day (for +// example, a credit card expiration date). Related types: * +// google.type.TimeOfDay * google.type.DateTime * +// google.protobuf.Timestamp type Date struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the diff --git a/tpu/v1/tpu-api.json b/tpu/v1/tpu-api.json index 14e3563d635..ba03d434d20 100644 --- a/tpu/v1/tpu-api.json +++ b/tpu/v1/tpu-api.json @@ -659,7 +659,7 @@ } } }, - "revision": "20210824", + "revision": "20220301", "rootUrl": "https://tpu.googleapis.com/", "schemas": { "AcceleratorType": { @@ -1043,44 +1043,37 @@ "type": "object" }, "OperationMetadata": { - "description": "Represents the metadata of the long-running operation.", + "description": "Metadata describing an Operation", "id": "OperationMetadata", "properties": { "apiVersion": { - "description": "Output only. API version used to start the operation.", - "readOnly": true, + "description": "API version.", "type": "string" }, "cancelRequested": { - "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - "readOnly": true, + "description": "Specifies if cancellation was requested for the operation.", "type": "boolean" }, "createTime": { - "description": "Output only. The time the operation was created.", + "description": "The time the operation was created.", "format": "google-datetime", - "readOnly": true, "type": "string" }, "endTime": { - "description": "Output only. The time the operation finished running.", + "description": "The time the operation finished running.", "format": "google-datetime", - "readOnly": true, "type": "string" }, "statusDetail": { - "description": "Output only. Human-readable status of the operation, if any.", - "readOnly": true, + "description": "Human-readable status of the operation, if any.", "type": "string" }, "target": { - "description": "Output only. Server-defined resource path for the target of the operation.", - "readOnly": true, + "description": "Target of the operation - for example projects/project-1/connectivityTests/test-1", "type": "string" }, "verb": { - "description": "Output only. Name of the verb executed by the operation.", - "readOnly": true, + "description": "Name of the verb executed by the operation.", "type": "string" } }, diff --git a/tpu/v1/tpu-gen.go b/tpu/v1/tpu-gen.go index 830e4e2972a..d1f4ef3d4fb 100644 --- a/tpu/v1/tpu-gen.go +++ b/tpu/v1/tpu-gen.go @@ -739,33 +739,29 @@ func (s *Operation) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// OperationMetadata: Represents the metadata of the long-running -// operation. +// OperationMetadata: Metadata describing an Operation type OperationMetadata struct { - // ApiVersion: Output only. API version used to start the operation. + // ApiVersion: API version. ApiVersion string `json:"apiVersion,omitempty"` - // CancelRequested: Output only. Identifies whether the user has - // requested cancellation of the operation. Operations that have been - // cancelled successfully have Operation.error value with a - // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + // CancelRequested: Specifies if cancellation was requested for the + // operation. CancelRequested bool `json:"cancelRequested,omitempty"` - // CreateTime: Output only. The time the operation was created. + // CreateTime: The time the operation was created. CreateTime string `json:"createTime,omitempty"` - // EndTime: Output only. The time the operation finished running. + // EndTime: The time the operation finished running. EndTime string `json:"endTime,omitempty"` - // StatusDetail: Output only. Human-readable status of the operation, if - // any. + // StatusDetail: Human-readable status of the operation, if any. StatusDetail string `json:"statusDetail,omitempty"` - // Target: Output only. Server-defined resource path for the target of - // the operation. + // Target: Target of the operation - for example + // projects/project-1/connectivityTests/test-1 Target string `json:"target,omitempty"` - // Verb: Output only. Name of the verb executed by the operation. + // Verb: Name of the verb executed by the operation. Verb string `json:"verb,omitempty"` // ForceSendFields is a list of field names (e.g. "ApiVersion") to diff --git a/tpu/v2alpha1/tpu-api.json b/tpu/v2alpha1/tpu-api.json index 5dfeea62be5..74798920117 100644 --- a/tpu/v2alpha1/tpu-api.json +++ b/tpu/v2alpha1/tpu-api.json @@ -302,6 +302,11 @@ "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, "type": "string" + }, + "requestId": { + "description": "Idempotent request UUID.", + "location": "query", + "type": "string" } }, "path": "v2alpha1/{+parent}/nodes", @@ -330,6 +335,11 @@ "pattern": "^projects/[^/]+/locations/[^/]+/nodes/[^/]+$", "required": true, "type": "string" + }, + "requestId": { + "description": "Idempotent request UUID.", + "location": "query", + "type": "string" } }, "path": "v2alpha1/{+name}", @@ -721,7 +731,7 @@ } } }, - "revision": "20211108", + "revision": "20220301", "rootUrl": "https://tpu.googleapis.com/", "schemas": { "AcceleratorType": { @@ -1278,44 +1288,37 @@ "type": "object" }, "OperationMetadata": { - "description": "Represents the metadata of the long-running operation.", + "description": "Metadata describing an Operation", "id": "OperationMetadata", "properties": { "apiVersion": { - "description": "Output only. API version used to start the operation.", - "readOnly": true, + "description": "API version.", "type": "string" }, "cancelRequested": { - "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", - "readOnly": true, + "description": "Specifies if cancellation was requested for the operation.", "type": "boolean" }, "createTime": { - "description": "Output only. The time the operation was created.", + "description": "The time the operation was created.", "format": "google-datetime", - "readOnly": true, "type": "string" }, "endTime": { - "description": "Output only. The time the operation finished running.", + "description": "The time the operation finished running.", "format": "google-datetime", - "readOnly": true, "type": "string" }, "statusDetail": { - "description": "Output only. Human-readable status of the operation, if any.", - "readOnly": true, + "description": "Human-readable status of the operation, if any.", "type": "string" }, "target": { - "description": "Output only. Server-defined resource path for the target of the operation.", - "readOnly": true, + "description": "Target of the operation - for example projects/project-1/connectivityTests/test-1", "type": "string" }, "verb": { - "description": "Output only. Name of the verb executed by the operation.", - "readOnly": true, + "description": "Name of the verb executed by the operation.", "type": "string" } }, diff --git a/tpu/v2alpha1/tpu-gen.go b/tpu/v2alpha1/tpu-gen.go index f006a314fd1..83e581a6ecd 100644 --- a/tpu/v2alpha1/tpu-gen.go +++ b/tpu/v2alpha1/tpu-gen.go @@ -1043,33 +1043,29 @@ func (s *Operation) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// OperationMetadata: Represents the metadata of the long-running -// operation. +// OperationMetadata: Metadata describing an Operation type OperationMetadata struct { - // ApiVersion: Output only. API version used to start the operation. + // ApiVersion: API version. ApiVersion string `json:"apiVersion,omitempty"` - // CancelRequested: Output only. Identifies whether the user has - // requested cancellation of the operation. Operations that have been - // cancelled successfully have Operation.error value with a - // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + // CancelRequested: Specifies if cancellation was requested for the + // operation. CancelRequested bool `json:"cancelRequested,omitempty"` - // CreateTime: Output only. The time the operation was created. + // CreateTime: The time the operation was created. CreateTime string `json:"createTime,omitempty"` - // EndTime: Output only. The time the operation finished running. + // EndTime: The time the operation finished running. EndTime string `json:"endTime,omitempty"` - // StatusDetail: Output only. Human-readable status of the operation, if - // any. + // StatusDetail: Human-readable status of the operation, if any. StatusDetail string `json:"statusDetail,omitempty"` - // Target: Output only. Server-defined resource path for the target of - // the operation. + // Target: Target of the operation - for example + // projects/project-1/connectivityTests/test-1 Target string `json:"target,omitempty"` - // Verb: Output only. Name of the verb executed by the operation. + // Verb: Name of the verb executed by the operation. Verb string `json:"verb,omitempty"` // ForceSendFields is a list of field names (e.g. "ApiVersion") to @@ -2210,6 +2206,13 @@ func (c *ProjectsLocationsNodesCreateCall) NodeId(nodeId string) *ProjectsLocati return c } +// RequestId sets the optional parameter "requestId": Idempotent request +// UUID. +func (c *ProjectsLocationsNodesCreateCall) RequestId(requestId string) *ProjectsLocationsNodesCreateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -2320,6 +2323,11 @@ func (c *ProjectsLocationsNodesCreateCall) Do(opts ...googleapi.CallOption) (*Op // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, // "type": "string" + // }, + // "requestId": { + // "description": "Idempotent request UUID.", + // "location": "query", + // "type": "string" // } // }, // "path": "v2alpha1/{+parent}/nodes", @@ -2355,6 +2363,13 @@ func (r *ProjectsLocationsNodesService) Delete(name string) *ProjectsLocationsNo return c } +// RequestId sets the optional parameter "requestId": Idempotent request +// UUID. +func (c *ProjectsLocationsNodesDeleteCall) RequestId(requestId string) *ProjectsLocationsNodesDeleteCall { + c.urlParams_.Set("requestId", requestId) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -2455,6 +2470,11 @@ func (c *ProjectsLocationsNodesDeleteCall) Do(opts ...googleapi.CallOption) (*Op // "pattern": "^projects/[^/]+/locations/[^/]+/nodes/[^/]+$", // "required": true, // "type": "string" + // }, + // "requestId": { + // "description": "Idempotent request UUID.", + // "location": "query", + // "type": "string" // } // }, // "path": "v2alpha1/{+name}",