diff --git a/bigquerydatatransfer/v1/bigquerydatatransfer-api.json b/bigquerydatatransfer/v1/bigquerydatatransfer-api.json index 3ffb6070d3c..a5f8fbdc725 100644 --- a/bigquerydatatransfer/v1/bigquerydatatransfer-api.json +++ b/bigquerydatatransfer/v1/bigquerydatatransfer-api.json @@ -1342,7 +1342,7 @@ } } }, - "revision": "20230715", + "revision": "20230722", "rootUrl": "https://bigquerydatatransfer.googleapis.com/", "schemas": { "CheckValidCredsRequest": { @@ -1601,6 +1601,17 @@ "properties": {}, "type": "object" }, + "EncryptionConfiguration": { + "description": "Represents the encryption configuration for a transfer.", + "id": "EncryptionConfiguration", + "properties": { + "kmsKeyName": { + "description": "The name of the KMS key used for encrypting BigQuery data.", + "type": "string" + } + }, + "type": "object" + }, "EnrollDataSourcesRequest": { "description": "A request to enroll a set of data sources so they are visible in the BigQuery UI's `Transfer` tab.", "id": "EnrollDataSourcesRequest", @@ -1906,6 +1917,10 @@ "$ref": "EmailPreferences", "description": "Email notifications will be sent according to these preferences to the email address of the user who owns this transfer config." }, + "encryptionConfiguration": { + "$ref": "EncryptionConfiguration", + "description": "The encryption configuration part. Currently, it is only used for the optional KMS key name. The BigQuery service account of your project must be granted permissions to use the key. Read methods will return the key name applied in effect. Write methods will apply the key if it is present, or otherwise try to apply project default keys if it is absent." + }, "name": { "description": "The resource name of the transfer config. Transfer config names have the form `projects/{project_id}/locations/{region}/transferConfigs/{config_id}`. Where `config_id` is usually a uuid, even though it is not guaranteed or required. The name is ignored when creating a transfer config.", "type": "string" diff --git a/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go b/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go index 79b66ce1a05..c2cbc67c4fd 100644 --- a/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go +++ b/bigquerydatatransfer/v1/bigquerydatatransfer-gen.go @@ -587,6 +587,36 @@ type Empty struct { googleapi.ServerResponse `json:"-"` } +// EncryptionConfiguration: Represents the encryption configuration for +// a transfer. +type EncryptionConfiguration struct { + // KmsKeyName: The name of the KMS key used for encrypting BigQuery + // data. + KmsKeyName string `json:"kmsKeyName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "KmsKeyName") 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. "KmsKeyName") 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 *EncryptionConfiguration) MarshalJSON() ([]byte, error) { + type NoMethod EncryptionConfiguration + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // EnrollDataSourcesRequest: A request to enroll a set of data sources // so they are visible in the BigQuery UI's `Transfer` tab. type EnrollDataSourcesRequest struct { @@ -1170,6 +1200,14 @@ type TransferConfig struct { // config. EmailPreferences *EmailPreferences `json:"emailPreferences,omitempty"` + // EncryptionConfiguration: The encryption configuration part. + // Currently, it is only used for the optional KMS key name. The + // BigQuery service account of your project must be granted permissions + // to use the key. Read methods will return the key name applied in + // effect. Write methods will apply the key if it is present, or + // otherwise try to apply project default keys if it is absent. + EncryptionConfiguration *EncryptionConfiguration `json:"encryptionConfiguration,omitempty"` + // Name: The resource name of the transfer config. Transfer config names // have the form // `projects/{project_id}/locations/{region}/transferConfigs/{config_id}` diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index 1cfa008be6d..269ceac4169 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -678,7 +678,7 @@ ] }, "list": { - "description": "Lists messages in a space that the caller is a member of, including messages from blocked members and spaces. For an example, see [List messages](/chat/api/guides/v1/messages/list). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.readonly` authorization scope. This method is only supported in spaces that don't allow users from outside the Workspace organization to join.", + "description": "Lists messages in a space that the caller is a member of, including messages from blocked members and spaces. For an example, see [List messages](/chat/api/guides/v1/messages/list). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.readonly` authorization scope.", "flatPath": "v1/spaces/{spacesId}/messages", "httpMethod": "GET", "id": "chat.spaces.messages.list", @@ -954,7 +954,7 @@ } } }, - "revision": "20230718", + "revision": "20230723", "rootUrl": "https://chat.googleapis.com/", "schemas": { "ActionParameter": { @@ -3379,6 +3379,10 @@ "description": "The space's display name. Required when [creating a space](https://developers.google.com/chat/api/reference/rest/v1/spaces/create). For direct messages, this field might be empty. Supports up to 128 characters.", "type": "string" }, + "externalUserAllowed": { + "description": "Immutable. Whether this space permits any Google Chat user as a member. Input when creating a space. For existing spaces, this field is output only.", + "type": "boolean" + }, "name": { "description": "Resource name of the space. Format: `spaces/{space}`", "type": "string" diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 3bde0e2fcb5..9209de29bd2 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -4504,6 +4504,11 @@ type Space struct { // characters. DisplayName string `json:"displayName,omitempty"` + // ExternalUserAllowed: Immutable. Whether this space permits any Google + // Chat user as a member. Input when creating a space. For existing + // spaces, this field is output only. + ExternalUserAllowed bool `json:"externalUserAllowed,omitempty"` + // Name: Resource name of the space. Format: `spaces/{space}` Name string `json:"name,omitempty"` @@ -8007,9 +8012,7 @@ type SpacesMessagesListCall struct { // see List messages (/chat/api/guides/v1/messages/list). Requires user // authentication // (https://developers.google.com/chat/api/guides/auth/users) and the -// `chat.messages` or `chat.messages.readonly` authorization scope. This -// method is only supported in spaces that don't allow users from -// outside the Workspace organization to join. +// `chat.messages` or `chat.messages.readonly` authorization scope. // // - parent: The resource name of the space to list messages from. // Format: `spaces/{space}`. @@ -8185,7 +8188,7 @@ func (c *SpacesMessagesListCall) Do(opts ...googleapi.CallOption) (*ListMessages } return ret, nil // { - // "description": "Lists messages in a space that the caller is a member of, including messages from blocked members and spaces. For an example, see [List messages](/chat/api/guides/v1/messages/list). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.readonly` authorization scope. This method is only supported in spaces that don't allow users from outside the Workspace organization to join.", + // "description": "Lists messages in a space that the caller is a member of, including messages from blocked members and spaces. For an example, see [List messages](/chat/api/guides/v1/messages/list). Requires [user authentication](https://developers.google.com/chat/api/guides/auth/users) and the `chat.messages` or `chat.messages.readonly` authorization scope.", // "flatPath": "v1/spaces/{spacesId}/messages", // "httpMethod": "GET", // "id": "chat.spaces.messages.list", diff --git a/checks/v1alpha/checks-api.json b/checks/v1alpha/checks-api.json index c7ec20721e7..ed259b6396e 100644 --- a/checks/v1alpha/checks-api.json +++ b/checks/v1alpha/checks-api.json @@ -355,6 +355,44 @@ "response": { "$ref": "PrivacyPolicy" } + }, + "list": { + "description": "Lists privacy policies.", + "flatPath": "v1alpha/projects/{projectsId}/privacyPolicies", + "httpMethod": "GET", + "id": "checks.projects.privacyPolicies.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. A filter string to filters results. The filter syntax is defined by AIP-160 (https://google.aip.dev/160).", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of results to return. If unspecified, at most 50 results will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous `ListPrivacyPoliciesRequest` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPrivacyPoliciesRequest` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Resource name of the parent project, in the format `projects/{projectNumber}`.", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/privacyPolicies", + "response": { + "$ref": "ListPrivacyPoliciesResponse" + } } } }, @@ -516,7 +554,7 @@ } } }, - "revision": "20230723", + "revision": "20230725", "rootUrl": "https://checks.googleapis.com/", "schemas": { "AnalyzePrivacyPolicyRequest": { @@ -658,6 +696,24 @@ }, "type": "object" }, + "ListPrivacyPoliciesResponse": { + "description": "Response message for `ListPrivacyPolicies`.", + "id": "ListPrivacyPoliciesResponse", + "properties": { + "nextPageToken": { + "description": "The pagination token to retrieve the next page of results. If the value is an empty string, it means there are no further results for the request.", + "type": "string" + }, + "privacyPolicies": { + "description": "The privacy policies.", + "items": { + "$ref": "PrivacyPolicy" + }, + "type": "array" + } + }, + "type": "object" + }, "Operation": { "description": "This resource represents a long-running operation that is the result of a network API call.", "id": "Operation", diff --git a/checks/v1alpha/checks-gen.go b/checks/v1alpha/checks-gen.go index 631d15369ae..9157aa7893c 100644 --- a/checks/v1alpha/checks-gen.go +++ b/checks/v1alpha/checks-gen.go @@ -487,6 +487,44 @@ func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListPrivacyPoliciesResponse: Response message for +// `ListPrivacyPolicies`. +type ListPrivacyPoliciesResponse struct { + // NextPageToken: The pagination token to retrieve the next page of + // results. If the value is an empty string, it means there are no + // further results for the request. + NextPageToken string `json:"nextPageToken,omitempty"` + + // PrivacyPolicies: The privacy policies. + PrivacyPolicies []*PrivacyPolicy `json:"privacyPolicies,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListPrivacyPoliciesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListPrivacyPoliciesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Operation: This resource represents a long-running operation that is // the result of a network API call. type Operation struct { @@ -2409,6 +2447,214 @@ func (c *ProjectsPrivacyPoliciesGetCall) Do(opts ...googleapi.CallOption) (*Priv } +// method id "checks.projects.privacyPolicies.list": + +type ProjectsPrivacyPoliciesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists privacy policies. +// +// - parent: Resource name of the parent project, in the format +// `projects/{projectNumber}`. +func (r *ProjectsPrivacyPoliciesService) List(parent string) *ProjectsPrivacyPoliciesListCall { + c := &ProjectsPrivacyPoliciesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": A filter string to +// filters results. The filter syntax is defined by AIP-160 +// (https://google.aip.dev/160). +func (c *ProjectsPrivacyPoliciesListCall) Filter(filter string) *ProjectsPrivacyPoliciesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return. If unspecified, at most 50 results will be +// returned. The maximum value is 1000; values above 1000 will be +// coerced to 1000. +func (c *ProjectsPrivacyPoliciesListCall) PageSize(pageSize int64) *ProjectsPrivacyPoliciesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListPrivacyPoliciesRequest` call. Provide +// this to retrieve the subsequent page. When paginating, all other +// parameters provided to `ListPrivacyPoliciesRequest` must match the +// call that provided the page token. +func (c *ProjectsPrivacyPoliciesListCall) PageToken(pageToken string) *ProjectsPrivacyPoliciesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsPrivacyPoliciesListCall) Fields(s ...googleapi.Field) *ProjectsPrivacyPoliciesListCall { + 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 *ProjectsPrivacyPoliciesListCall) IfNoneMatch(entityTag string) *ProjectsPrivacyPoliciesListCall { + 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 *ProjectsPrivacyPoliciesListCall) Context(ctx context.Context) *ProjectsPrivacyPoliciesListCall { + 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 *ProjectsPrivacyPoliciesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsPrivacyPoliciesListCall) 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, "v1alpha/{+parent}/privacyPolicies") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "checks.projects.privacyPolicies.list" call. +// Exactly one of *ListPrivacyPoliciesResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListPrivacyPoliciesResponse.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 *ProjectsPrivacyPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListPrivacyPoliciesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListPrivacyPoliciesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists privacy policies.", + // "flatPath": "v1alpha/projects/{projectsId}/privacyPolicies", + // "httpMethod": "GET", + // "id": "checks.projects.privacyPolicies.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. A filter string to filters results. The filter syntax is defined by AIP-160 (https://google.aip.dev/160).", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. The maximum number of results to return. If unspecified, at most 50 results will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. A page token, received from a previous `ListPrivacyPoliciesRequest` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPrivacyPoliciesRequest` must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Resource name of the parent project, in the format `projects/{projectNumber}`.", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/privacyPolicies", + // "response": { + // "$ref": "ListPrivacyPoliciesResponse" + // } + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsPrivacyPoliciesListCall) Pages(ctx context.Context, f func(*ListPrivacyPoliciesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + // method id "checks.projects.privacypolicy.operations.cancel": type ProjectsPrivacypolicyOperationsCancelCall struct { diff --git a/cloudbuild/v1/cloudbuild-api.json b/cloudbuild/v1/cloudbuild-api.json index 79515d82888..11cd0dd8aa8 100644 --- a/cloudbuild/v1/cloudbuild-api.json +++ b/cloudbuild/v1/cloudbuild-api.json @@ -2319,7 +2319,7 @@ } } }, - "revision": "20230713", + "revision": "20230720", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ApprovalConfig": { @@ -2974,6 +2974,10 @@ "description": "Optional arguments to enable specific features of builds.", "id": "BuildOptions", "properties": { + "automapSubstitutions": { + "description": "Option to include built-in and custom substitutions as env variables for all build steps.", + "type": "boolean" + }, "defaultLogsBucketBehavior": { "description": "Optional. Option to specify how default logs buckets are setup.", "enum": [ @@ -3156,6 +3160,10 @@ }, "type": "array" }, + "automapSubstitutions": { + "description": "Option to include built-in and custom substitutions as env variables for this build step. This option will override the global option in BuildOption.", + "type": "boolean" + }, "dir": { "description": "Working directory to use when running this step's container. If this value is a relative path, it is relative to the build's working directory. If this value is absolute, it may be outside the build's working directory, in which case the contents of the path may not be persisted across build step executions, unless a `volume` for that path is specified. If the build specifies a `RepoSource` with `dir` and a step with a `dir`, which specifies an absolute path, the `RepoSource` `dir` is ignored for the step's execution.", "type": "string" diff --git a/cloudbuild/v1/cloudbuild-gen.go b/cloudbuild/v1/cloudbuild-gen.go index 27e8d6c7578..c0157cbb5cb 100644 --- a/cloudbuild/v1/cloudbuild-gen.go +++ b/cloudbuild/v1/cloudbuild-gen.go @@ -1377,6 +1377,10 @@ func (s *BuildOperationMetadata) MarshalJSON() ([]byte, error) { // BuildOptions: Optional arguments to enable specific features of // builds. type BuildOptions struct { + // AutomapSubstitutions: Option to include built-in and custom + // substitutions as env variables for all build steps. + AutomapSubstitutions bool `json:"automapSubstitutions,omitempty"` + // DefaultLogsBucketBehavior: Optional. Option to specify how default // logs buckets are setup. // @@ -1502,21 +1506,21 @@ type BuildOptions struct { WorkerPool string `json:"workerPool,omitempty"` // ForceSendFields is a list of field names (e.g. - // "DefaultLogsBucketBehavior") 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. + // "AutomapSubstitutions") 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. - // "DefaultLogsBucketBehavior") 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. "AutomapSubstitutions") 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:"-"` } @@ -1548,6 +1552,11 @@ type BuildStep struct { // used as the entrypoint, and the remainder will be used as arguments. Args []string `json:"args,omitempty"` + // AutomapSubstitutions: Option to include built-in and custom + // substitutions as env variables for this build step. This option will + // override the global option in BuildOption. + AutomapSubstitutions bool `json:"automapSubstitutions,omitempty"` + // Dir: Working directory to use when running this step's container. If // this value is a relative path, it is relative to the build's working // directory. If this value is absolute, it may be outside the build's diff --git a/cloudsupport/v2/cloudsupport-api.json b/cloudsupport/v2/cloudsupport-api.json index 2e378c02f81..dc9fbc8aa70 100644 --- a/cloudsupport/v2/cloudsupport-api.json +++ b/cloudsupport/v2/cloudsupport-api.json @@ -144,7 +144,7 @@ "cases": { "methods": { "close": { - "description": "Close the specified case. Here is an example of calling this endpoint using cURL: ```shell case=\"projects/cloud-support-qa-premium/cases/43595344\" curl \\ --request POST \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$case:close\" ```", + "description": "Close the specified case. Here is an example of calling this endpoint using cURL: ```shell case=\"projects/some-project/cases/43595344\" curl \\ --request POST \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$case:close\" ```", "flatPath": "v2/{v2Id}/{v2Id1}/cases/{casesId}:close", "httpMethod": "POST", "id": "cloudsupport.cases.close", @@ -373,7 +373,7 @@ "attachments": { "methods": { "list": { - "description": "Retrieve all attachments associated with a support case.", + "description": "Retrieve all attachments associated with a support case. Here is an example of calling this endpoint using cURL: ```shell case=\"projects/some-project/cases/23598314\" curl \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$case/attachments\" ```", "flatPath": "v2/{v2Id}/{v2Id1}/cases/{casesId}/attachments", "httpMethod": "GET", "id": "cloudsupport.cases.attachments.list", @@ -413,7 +413,7 @@ "comments": { "methods": { "create": { - "description": "Add a new comment to the specified Case. The comment object must have the following fields set: body.", + "description": "Add a new comment to the specified Case. The comment object must have the following fields set: body. Here is an example of calling this endpoint using cURL: ```shell case=\"projects/some-project/cases/43591344\" curl \\ --request POST \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ --header 'Content-Type: application/json' \\ --data '{ \"body\": \"This is a test comment.\" }' \\ \"https://cloudsupport.googleapis.com/v2/$case/comments\" ```", "flatPath": "v2/{v2Id}/{v2Id1}/cases/{casesId}/comments", "httpMethod": "POST", "id": "cloudsupport.cases.comments.create", @@ -441,7 +441,7 @@ ] }, "list": { - "description": "Retrieve all Comments associated with the Case object.", + "description": "Retrieve all comments associated with the Case object. Here is an example of calling this endpoint using cURL: ```shell case=\"projects/cloud-support-qa-premium/cases/43595344\" curl \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$case/comments\" ```", "flatPath": "v2/{v2Id}/{v2Id1}/cases/{casesId}/comments", "httpMethod": "GET", "id": "cloudsupport.cases.comments.list", @@ -483,7 +483,7 @@ "media": { "methods": { "download": { - "description": "Download a file attachment on a case. Note: HTTP requests must append \"?alt=media\" to the URL.", + "description": "Download a file attachment on a case. Note: HTTP requests must append \"?alt=media\" to the URL. Here is an example of calling this endpoint using cURL: ```shell name=\"projects/some-project/cases/43594844/attachments/0674M00000WijAnZAJ\" curl \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$name:download?alt=media\" ```", "flatPath": "v2/{v2Id}/{v2Id1}/cases/{casesId}/attachments/{attachmentsId}:download", "httpMethod": "GET", "id": "cloudsupport.media.download", @@ -510,7 +510,7 @@ "useMediaDownloadService": true }, "upload": { - "description": "Create a file attachment on a case or Cloud resource. The attachment object must have the following fields set: filename.", + "description": "Create a file attachment on a case or Cloud resource. The attachment object must have the following fields set: filename. Here is an example of calling this endpoint using cURL: ```shell echo \"This text is in a file I'm uploading using CSAPI.\" \\ \u003e \"./example_file.txt\" case=\"projects/some-project/cases/43594844\" curl \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ --data-binary @\"./example_file.txt\" \\ \"https://cloudsupport.googleapis.com/upload/v2beta/$case/attachments?attachment.filename=uploaded_via_curl.txt\" ```", "flatPath": "v2/{v2Id}/{v2Id1}/cases/{casesId}/attachments", "httpMethod": "POST", "id": "cloudsupport.media.upload", @@ -552,7 +552,7 @@ } } }, - "revision": "20230724", + "revision": "20230725", "rootUrl": "https://cloudsupport.googleapis.com/", "schemas": { "Actor": { diff --git a/cloudsupport/v2/cloudsupport-gen.go b/cloudsupport/v2/cloudsupport-gen.go index 3cd8e9aa945..303b6c159e2 100644 --- a/cloudsupport/v2/cloudsupport-gen.go +++ b/cloudsupport/v2/cloudsupport-gen.go @@ -1621,9 +1621,8 @@ type CasesCloseCall struct { // Close: Close the specified case. Here is an example of calling this // endpoint using cURL: ```shell -// case="projects/cloud-support-qa-premium/cases/43595344" curl \ -// --request POST \ --header "Authorization: Bearer $(gcloud auth -// print-access-token)" \ +// case="projects/some-project/cases/43595344" curl \ --request POST \ +// --header "Authorization: Bearer $(gcloud auth print-access-token)" \ // "https://cloudsupport.googleapis.com/v2/$case:close" ``` // // - name: The fully qualified name of the case resource to be closed. @@ -1725,7 +1724,7 @@ func (c *CasesCloseCall) Do(opts ...googleapi.CallOption) (*Case, error) { } return ret, nil // { - // "description": "Close the specified case. Here is an example of calling this endpoint using cURL: ```shell case=\"projects/cloud-support-qa-premium/cases/43595344\" curl \\ --request POST \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$case:close\" ```", + // "description": "Close the specified case. Here is an example of calling this endpoint using cURL: ```shell case=\"projects/some-project/cases/43595344\" curl \\ --request POST \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$case:close\" ```", // "flatPath": "v2/{v2Id}/{v2Id1}/cases/{casesId}:close", // "httpMethod": "POST", // "id": "cloudsupport.cases.close", @@ -2850,7 +2849,11 @@ type CasesAttachmentsListCall struct { header_ http.Header } -// List: Retrieve all attachments associated with a support case. +// List: Retrieve all attachments associated with a support case. Here +// is an example of calling this endpoint using cURL: ```shell +// case="projects/some-project/cases/23598314" curl \ --header +// "Authorization: Bearer $(gcloud auth print-access-token)" \ +// "https://cloudsupport.googleapis.com/v2/$case/attachments" ``` // // - parent: The resource name of Case object for which attachments // should be listed. @@ -2975,7 +2978,7 @@ func (c *CasesAttachmentsListCall) Do(opts ...googleapi.CallOption) (*ListAttach } return ret, nil // { - // "description": "Retrieve all attachments associated with a support case.", + // "description": "Retrieve all attachments associated with a support case. Here is an example of calling this endpoint using cURL: ```shell case=\"projects/some-project/cases/23598314\" curl \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$case/attachments\" ```", // "flatPath": "v2/{v2Id}/{v2Id1}/cases/{casesId}/attachments", // "httpMethod": "GET", // "id": "cloudsupport.cases.attachments.list", @@ -3046,7 +3049,13 @@ type CasesCommentsCreateCall struct { } // Create: Add a new comment to the specified Case. The comment object -// must have the following fields set: body. +// must have the following fields set: body. Here is an example of +// calling this endpoint using cURL: ```shell +// case="projects/some-project/cases/43591344" curl \ --request POST \ +// --header "Authorization: Bearer $(gcloud auth print-access-token)" \ +// --header 'Content-Type: application/json' \ --data '{ "body": "This +// is a test comment." }' \ +// "https://cloudsupport.googleapis.com/v2/$case/comments" ``` // // - parent: The resource name of Case to which this comment should be // added. @@ -3148,7 +3157,7 @@ func (c *CasesCommentsCreateCall) Do(opts ...googleapi.CallOption) (*Comment, er } return ret, nil // { - // "description": "Add a new comment to the specified Case. The comment object must have the following fields set: body.", + // "description": "Add a new comment to the specified Case. The comment object must have the following fields set: body. Here is an example of calling this endpoint using cURL: ```shell case=\"projects/some-project/cases/43591344\" curl \\ --request POST \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ --header 'Content-Type: application/json' \\ --data '{ \"body\": \"This is a test comment.\" }' \\ \"https://cloudsupport.googleapis.com/v2/$case/comments\" ```", // "flatPath": "v2/{v2Id}/{v2Id1}/cases/{casesId}/comments", // "httpMethod": "POST", // "id": "cloudsupport.cases.comments.create", @@ -3189,7 +3198,11 @@ type CasesCommentsListCall struct { header_ http.Header } -// List: Retrieve all Comments associated with the Case object. +// List: Retrieve all comments associated with the Case object. Here is +// an example of calling this endpoint using cURL: ```shell +// case="projects/cloud-support-qa-premium/cases/43595344" curl \ +// --header "Authorization: Bearer $(gcloud auth print-access-token)" \ +// "https://cloudsupport.googleapis.com/v2/$case/comments" ``` // // - parent: The resource name of Case object for which comments should // be listed. @@ -3313,7 +3326,7 @@ func (c *CasesCommentsListCall) Do(opts ...googleapi.CallOption) (*ListCommentsR } return ret, nil // { - // "description": "Retrieve all Comments associated with the Case object.", + // "description": "Retrieve all comments associated with the Case object. Here is an example of calling this endpoint using cURL: ```shell case=\"projects/cloud-support-qa-premium/cases/43595344\" curl \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$case/comments\" ```", // "flatPath": "v2/{v2Id}/{v2Id1}/cases/{casesId}/comments", // "httpMethod": "GET", // "id": "cloudsupport.cases.comments.list", @@ -3384,7 +3397,12 @@ type MediaDownloadCall struct { } // Download: Download a file attachment on a case. Note: HTTP requests -// must append "?alt=media" to the URL. +// must append "?alt=media" to the URL. Here is an example of calling +// this endpoint using cURL: ```shell +// name="projects/some-project/cases/43594844/attachments/0674M00000WijAn +// ZAJ" curl \ --header "Authorization: Bearer $(gcloud auth +// print-access-token)" \ +// "https://cloudsupport.googleapis.com/v2/$name:download?alt=media" ``` // // - name: The resource name of the attachment to be downloaded. func (r *MediaService) Download(name string) *MediaDownloadCall { @@ -3508,7 +3526,7 @@ func (c *MediaDownloadCall) Do(opts ...googleapi.CallOption) (*Media, error) { } return ret, nil // { - // "description": "Download a file attachment on a case. Note: HTTP requests must append \"?alt=media\" to the URL.", + // "description": "Download a file attachment on a case. Note: HTTP requests must append \"?alt=media\" to the URL. Here is an example of calling this endpoint using cURL: ```shell name=\"projects/some-project/cases/43594844/attachments/0674M00000WijAnZAJ\" curl \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$name:download?alt=media\" ```", // "flatPath": "v2/{v2Id}/{v2Id1}/cases/{casesId}/attachments/{attachmentsId}:download", // "httpMethod": "GET", // "id": "cloudsupport.media.download", @@ -3550,7 +3568,14 @@ type MediaUploadCall struct { } // Upload: Create a file attachment on a case or Cloud resource. The -// attachment object must have the following fields set: filename. +// attachment object must have the following fields set: filename. Here +// is an example of calling this endpoint using cURL: ```shell echo +// "This text is in a file I'm uploading using CSAPI." \ > +// "./example_file.txt" case="projects/some-project/cases/43594844" curl +// \ --header "Authorization: Bearer $(gcloud auth print-access-token)" +// \ --data-binary @"./example_file.txt" \ +// "https://cloudsupport.googleapis.com/upload/v2beta/$case/attachments?a +// ttachment.filename=uploaded_via_curl.txt" ``` // // - parent: The resource name of the case (or case parent) to which the // attachment should be attached. @@ -3719,7 +3744,7 @@ func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*Attachment, error) } return ret, nil // { - // "description": "Create a file attachment on a case or Cloud resource. The attachment object must have the following fields set: filename.", + // "description": "Create a file attachment on a case or Cloud resource. The attachment object must have the following fields set: filename. Here is an example of calling this endpoint using cURL: ```shell echo \"This text is in a file I'm uploading using CSAPI.\" \\ \u003e \"./example_file.txt\" case=\"projects/some-project/cases/43594844\" curl \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ --data-binary @\"./example_file.txt\" \\ \"https://cloudsupport.googleapis.com/upload/v2beta/$case/attachments?attachment.filename=uploaded_via_curl.txt\" ```", // "flatPath": "v2/{v2Id}/{v2Id1}/cases/{casesId}/attachments", // "httpMethod": "POST", // "id": "cloudsupport.media.upload", diff --git a/cloudsupport/v2beta/cloudsupport-api.json b/cloudsupport/v2beta/cloudsupport-api.json index 5980a8cf378..148755d974e 100644 --- a/cloudsupport/v2beta/cloudsupport-api.json +++ b/cloudsupport/v2beta/cloudsupport-api.json @@ -144,7 +144,7 @@ "cases": { "methods": { "close": { - "description": "Close the specified case. Here is an example of calling this endpoint using cURL: ```shell case=\"projects/cloud-support-qa-premium/cases/43595344\" curl \\ --request POST \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$case:close\" ```", + "description": "Close the specified case. Here is an example of calling this endpoint using cURL: ```shell case=\"projects/some-project/cases/43595344\" curl \\ --request POST \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$case:close\" ```", "flatPath": "v2beta/{v2betaId}/{v2betaId1}/cases/{casesId}:close", "httpMethod": "POST", "id": "cloudsupport.cases.close", @@ -369,7 +369,7 @@ "attachments": { "methods": { "list": { - "description": "Retrieve all attachments associated with a support case.", + "description": "Retrieve all attachments associated with a support case. Here is an example of calling this endpoint using cURL: ```shell case=\"projects/some-project/cases/23598314\" curl \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$case/attachments\" ```", "flatPath": "v2beta/{v2betaId}/{v2betaId1}/cases/{casesId}/attachments", "httpMethod": "GET", "id": "cloudsupport.cases.attachments.list", @@ -409,7 +409,7 @@ "comments": { "methods": { "create": { - "description": "Add a new comment to the specified Case. The comment object must have the following fields set: body.", + "description": "Add a new comment to the specified Case. The comment object must have the following fields set: body. Here is an example of calling this endpoint using cURL: ```shell case=\"projects/some-project/cases/43591344\" curl \\ --request POST \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ --header 'Content-Type: application/json' \\ --data '{ \"body\": \"This is a test comment.\" }' \\ \"https://cloudsupport.googleapis.com/v2/$case/comments\" ```", "flatPath": "v2beta/{v2betaId}/{v2betaId1}/cases/{casesId}/comments", "httpMethod": "POST", "id": "cloudsupport.cases.comments.create", @@ -437,7 +437,7 @@ ] }, "list": { - "description": "Retrieve all Comments associated with the Case object.", + "description": "Retrieve all comments associated with the Case object. Here is an example of calling this endpoint using cURL: ```shell case=\"projects/cloud-support-qa-premium/cases/43595344\" curl \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$case/comments\" ```", "flatPath": "v2beta/{v2betaId}/{v2betaId1}/cases/{casesId}/comments", "httpMethod": "GET", "id": "cloudsupport.cases.comments.list", @@ -479,7 +479,7 @@ "media": { "methods": { "download": { - "description": "Download a file attachment on a case. Note: HTTP requests must append \"?alt=media\" to the URL.", + "description": "Download a file attachment on a case. Note: HTTP requests must append \"?alt=media\" to the URL. Here is an example of calling this endpoint using cURL: ```shell name=\"projects/some-project/cases/43594844/attachments/0674M00000WijAnZAJ\" curl \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$name:download?alt=media\" ```", "flatPath": "v2beta/{v2betaId}/{v2betaId1}/cases/{casesId}/attachments/{attachmentsId}:download", "httpMethod": "GET", "id": "cloudsupport.media.download", @@ -506,7 +506,7 @@ "useMediaDownloadService": true }, "upload": { - "description": "Create a file attachment on a case or Cloud resource. The attachment object must have the following fields set: filename.", + "description": "Create a file attachment on a case or Cloud resource. The attachment object must have the following fields set: filename. Here is an example of calling this endpoint using cURL: ```shell echo \"This text is in a file I'm uploading using CSAPI.\" \\ \u003e \"./example_file.txt\" case=\"projects/some-project/cases/43594844\" curl \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ --data-binary @\"./example_file.txt\" \\ \"https://cloudsupport.googleapis.com/upload/v2beta/$case/attachments?attachment.filename=uploaded_via_curl.txt\" ```", "flatPath": "v2beta/{v2betaId}/{v2betaId1}/cases/{casesId}/attachments", "httpMethod": "POST", "id": "cloudsupport.media.upload", @@ -548,7 +548,7 @@ } } }, - "revision": "20230724", + "revision": "20230725", "rootUrl": "https://cloudsupport.googleapis.com/", "schemas": { "Actor": { diff --git a/cloudsupport/v2beta/cloudsupport-gen.go b/cloudsupport/v2beta/cloudsupport-gen.go index b47a2c534df..6b8197136d8 100644 --- a/cloudsupport/v2beta/cloudsupport-gen.go +++ b/cloudsupport/v2beta/cloudsupport-gen.go @@ -1638,9 +1638,8 @@ type CasesCloseCall struct { // Close: Close the specified case. Here is an example of calling this // endpoint using cURL: ```shell -// case="projects/cloud-support-qa-premium/cases/43595344" curl \ -// --request POST \ --header "Authorization: Bearer $(gcloud auth -// print-access-token)" \ +// case="projects/some-project/cases/43595344" curl \ --request POST \ +// --header "Authorization: Bearer $(gcloud auth print-access-token)" \ // "https://cloudsupport.googleapis.com/v2/$case:close" ``` // // - name: The fully qualified name of the case resource to be closed. @@ -1742,7 +1741,7 @@ func (c *CasesCloseCall) Do(opts ...googleapi.CallOption) (*Case, error) { } return ret, nil // { - // "description": "Close the specified case. Here is an example of calling this endpoint using cURL: ```shell case=\"projects/cloud-support-qa-premium/cases/43595344\" curl \\ --request POST \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$case:close\" ```", + // "description": "Close the specified case. Here is an example of calling this endpoint using cURL: ```shell case=\"projects/some-project/cases/43595344\" curl \\ --request POST \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$case:close\" ```", // "flatPath": "v2beta/{v2betaId}/{v2betaId1}/cases/{casesId}:close", // "httpMethod": "POST", // "id": "cloudsupport.cases.close", @@ -2862,7 +2861,11 @@ type CasesAttachmentsListCall struct { header_ http.Header } -// List: Retrieve all attachments associated with a support case. +// List: Retrieve all attachments associated with a support case. Here +// is an example of calling this endpoint using cURL: ```shell +// case="projects/some-project/cases/23598314" curl \ --header +// "Authorization: Bearer $(gcloud auth print-access-token)" \ +// "https://cloudsupport.googleapis.com/v2/$case/attachments" ``` // // - parent: The resource name of Case object for which attachments // should be listed. @@ -2987,7 +2990,7 @@ func (c *CasesAttachmentsListCall) Do(opts ...googleapi.CallOption) (*ListAttach } return ret, nil // { - // "description": "Retrieve all attachments associated with a support case.", + // "description": "Retrieve all attachments associated with a support case. Here is an example of calling this endpoint using cURL: ```shell case=\"projects/some-project/cases/23598314\" curl \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$case/attachments\" ```", // "flatPath": "v2beta/{v2betaId}/{v2betaId1}/cases/{casesId}/attachments", // "httpMethod": "GET", // "id": "cloudsupport.cases.attachments.list", @@ -3058,7 +3061,13 @@ type CasesCommentsCreateCall struct { } // Create: Add a new comment to the specified Case. The comment object -// must have the following fields set: body. +// must have the following fields set: body. Here is an example of +// calling this endpoint using cURL: ```shell +// case="projects/some-project/cases/43591344" curl \ --request POST \ +// --header "Authorization: Bearer $(gcloud auth print-access-token)" \ +// --header 'Content-Type: application/json' \ --data '{ "body": "This +// is a test comment." }' \ +// "https://cloudsupport.googleapis.com/v2/$case/comments" ``` // // - parent: The resource name of Case to which this comment should be // added. @@ -3160,7 +3169,7 @@ func (c *CasesCommentsCreateCall) Do(opts ...googleapi.CallOption) (*Comment, er } return ret, nil // { - // "description": "Add a new comment to the specified Case. The comment object must have the following fields set: body.", + // "description": "Add a new comment to the specified Case. The comment object must have the following fields set: body. Here is an example of calling this endpoint using cURL: ```shell case=\"projects/some-project/cases/43591344\" curl \\ --request POST \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ --header 'Content-Type: application/json' \\ --data '{ \"body\": \"This is a test comment.\" }' \\ \"https://cloudsupport.googleapis.com/v2/$case/comments\" ```", // "flatPath": "v2beta/{v2betaId}/{v2betaId1}/cases/{casesId}/comments", // "httpMethod": "POST", // "id": "cloudsupport.cases.comments.create", @@ -3201,7 +3210,11 @@ type CasesCommentsListCall struct { header_ http.Header } -// List: Retrieve all Comments associated with the Case object. +// List: Retrieve all comments associated with the Case object. Here is +// an example of calling this endpoint using cURL: ```shell +// case="projects/cloud-support-qa-premium/cases/43595344" curl \ +// --header "Authorization: Bearer $(gcloud auth print-access-token)" \ +// "https://cloudsupport.googleapis.com/v2/$case/comments" ``` // // - parent: The resource name of Case object for which comments should // be listed. @@ -3325,7 +3338,7 @@ func (c *CasesCommentsListCall) Do(opts ...googleapi.CallOption) (*ListCommentsR } return ret, nil // { - // "description": "Retrieve all Comments associated with the Case object.", + // "description": "Retrieve all comments associated with the Case object. Here is an example of calling this endpoint using cURL: ```shell case=\"projects/cloud-support-qa-premium/cases/43595344\" curl \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$case/comments\" ```", // "flatPath": "v2beta/{v2betaId}/{v2betaId1}/cases/{casesId}/comments", // "httpMethod": "GET", // "id": "cloudsupport.cases.comments.list", @@ -3396,7 +3409,12 @@ type MediaDownloadCall struct { } // Download: Download a file attachment on a case. Note: HTTP requests -// must append "?alt=media" to the URL. +// must append "?alt=media" to the URL. Here is an example of calling +// this endpoint using cURL: ```shell +// name="projects/some-project/cases/43594844/attachments/0674M00000WijAn +// ZAJ" curl \ --header "Authorization: Bearer $(gcloud auth +// print-access-token)" \ +// "https://cloudsupport.googleapis.com/v2/$name:download?alt=media" ``` // // - name: The resource name of the attachment to be downloaded. func (r *MediaService) Download(name string) *MediaDownloadCall { @@ -3520,7 +3538,7 @@ func (c *MediaDownloadCall) Do(opts ...googleapi.CallOption) (*Media, error) { } return ret, nil // { - // "description": "Download a file attachment on a case. Note: HTTP requests must append \"?alt=media\" to the URL.", + // "description": "Download a file attachment on a case. Note: HTTP requests must append \"?alt=media\" to the URL. Here is an example of calling this endpoint using cURL: ```shell name=\"projects/some-project/cases/43594844/attachments/0674M00000WijAnZAJ\" curl \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ \"https://cloudsupport.googleapis.com/v2/$name:download?alt=media\" ```", // "flatPath": "v2beta/{v2betaId}/{v2betaId1}/cases/{casesId}/attachments/{attachmentsId}:download", // "httpMethod": "GET", // "id": "cloudsupport.media.download", @@ -3562,7 +3580,14 @@ type MediaUploadCall struct { } // Upload: Create a file attachment on a case or Cloud resource. The -// attachment object must have the following fields set: filename. +// attachment object must have the following fields set: filename. Here +// is an example of calling this endpoint using cURL: ```shell echo +// "This text is in a file I'm uploading using CSAPI." \ > +// "./example_file.txt" case="projects/some-project/cases/43594844" curl +// \ --header "Authorization: Bearer $(gcloud auth print-access-token)" +// \ --data-binary @"./example_file.txt" \ +// "https://cloudsupport.googleapis.com/upload/v2beta/$case/attachments?a +// ttachment.filename=uploaded_via_curl.txt" ``` // // - parent: The resource name of the case (or case parent) to which the // attachment should be attached. @@ -3731,7 +3756,7 @@ func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*Attachment, error) } return ret, nil // { - // "description": "Create a file attachment on a case or Cloud resource. The attachment object must have the following fields set: filename.", + // "description": "Create a file attachment on a case or Cloud resource. The attachment object must have the following fields set: filename. Here is an example of calling this endpoint using cURL: ```shell echo \"This text is in a file I'm uploading using CSAPI.\" \\ \u003e \"./example_file.txt\" case=\"projects/some-project/cases/43594844\" curl \\ --header \"Authorization: Bearer $(gcloud auth print-access-token)\" \\ --data-binary @\"./example_file.txt\" \\ \"https://cloudsupport.googleapis.com/upload/v2beta/$case/attachments?attachment.filename=uploaded_via_curl.txt\" ```", // "flatPath": "v2beta/{v2betaId}/{v2betaId1}/cases/{casesId}/attachments", // "httpMethod": "POST", // "id": "cloudsupport.media.upload", diff --git a/compute/v1/compute-api.json b/compute/v1/compute-api.json index 8b77f64d425..adf186291f8 100644 --- a/compute/v1/compute-api.json +++ b/compute/v1/compute-api.json @@ -33788,9 +33788,32 @@ } } }, - "revision": "20230711", + "revision": "20230720", "rootUrl": "https://compute.googleapis.com/", "schemas": { + "AWSV4Signature": { + "description": "Contains the configurations necessary to generate a signature for access to private storage buckets that support Signature Version 4 for authentication. The service name for generating the authentication header will always default to 's3'.", + "id": "AWSV4Signature", + "properties": { + "accessKey": { + "description": "The access key used for s3 bucket authentication. Required for updating or creating a backend that uses AWS v4 signature authentication, but will not be returned as part of the configuration when queried with a REST API GET request. @InputOnly", + "type": "string" + }, + "accessKeyId": { + "description": "The identifier of an access key used for s3 bucket authentication.", + "type": "string" + }, + "accessKeyVersion": { + "description": "The optional version identifier for the access key. You can use this to keep track of different iterations of your access key.", + "type": "string" + }, + "originRegion": { + "description": "The name of the cloud region of your origin. This is a free-form field with the name of the region your cloud uses to host your origin. For example, \"us-east-1\" for AWS or \"us-ashburn-1\" for OCI.", + "type": "string" + } + }, + "type": "object" + }, "AcceleratorConfig": { "description": "A specification of the type and number of accelerator cards attached to the instance.", "id": "AcceleratorConfig", @@ -35334,7 +35357,7 @@ "type": "string" }, "replicaZones": { - "description": "Required for each regional disk associated with the instance. Specify the URLs of the zones where the disk should be replicated to. You must provide exactly two replica zones, and one zone must be the same as the instance zone. You can't use this option with boot disks.", + "description": "Required for each regional disk associated with the instance. Specify the URLs of the zones where the disk should be replicated to. You must provide exactly two replica zones, and one zone must be the same as the instance zone.", "items": { "type": "string" }, @@ -38263,9 +38286,11 @@ "description": "The type of commitment, which affects the discount rate and the eligible resources. Type MEMORY_OPTIMIZED specifies a commitment that will only apply to memory optimized machines. Type ACCELERATOR_OPTIMIZED specifies a commitment that will only apply to accelerator optimized machines.", "enum": [ "ACCELERATOR_OPTIMIZED", + "ACCELERATOR_OPTIMIZED_A3", "COMPUTE_OPTIMIZED", "COMPUTE_OPTIMIZED_C2D", "COMPUTE_OPTIMIZED_C3", + "COMPUTE_OPTIMIZED_H3", "GENERAL_PURPOSE", "GENERAL_PURPOSE_E2", "GENERAL_PURPOSE_N2", @@ -38289,6 +38314,8 @@ "", "", "", + "", + "", "" ], "type": "string" @@ -41965,7 +41992,7 @@ "type": "string" }, "noAutomateDnsZone": { - "description": "This is used in PSC consumer ForwardingRule to control whether it should try to auto-generate a DNS zone or not. Non-PSC forwarding rules do not use this field.", + "description": "This is used in PSC consumer ForwardingRule to control whether it should try to auto-generate a DNS zone or not. Non-PSC forwarding rules do not use this field. Once set, this field is not mutable.", "type": "boolean" }, "portRange": { @@ -42039,7 +42066,7 @@ "type": "string" }, "target": { - "description": "The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must be in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object. - For load balancers, see the \"Target\" column in [Port specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). - For Private Service Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported Google API bundle: - vpc-sc - APIs that support VPC Service Controls. - all-apis - All supported Google APIs. - For Private Service Connect forwarding rules that forward traffic to managed services, the target must be a service attachment. ", + "description": "The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must be in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object. - For load balancers, see the \"Target\" column in [Port specifications](https://cloud.google.com/load-balancing/docs/forwarding-rule-concepts#ip_address_specifications). - For Private Service Connect forwarding rules that forward traffic to Google APIs, provide the name of a supported Google API bundle: - vpc-sc - APIs that support VPC Service Controls. - all-apis - All supported Google APIs. - For Private Service Connect forwarding rules that forward traffic to managed services, the target must be a service attachment. The target is not mutable once set as a service attachment. ", "type": "string" } }, @@ -57199,6 +57226,10 @@ "description": "[Output Only] Server-defined URL for the resource.", "type": "string" }, + "setCommonInstanceMetadataOperationMetadata": { + "$ref": "SetCommonInstanceMetadataOperationMetadata", + "description": "[Output Only] If the operation is for projects.setCommonInstanceMetadata, this field will contain information on all underlying zonal actions and their state." + }, "startTime": { "description": "[Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.", "type": "string" @@ -57231,7 +57262,7 @@ "type": "string" }, "user": { - "description": "[Output Only] User who requested the operation, for example: `user@example.com`.", + "description": "[Output Only] User who requested the operation, for example: `user@example.com` or `alice_smith_identifier (global/workforcePools/example-com-us-employees)`.", "type": "string" }, "warnings": { @@ -65870,6 +65901,40 @@ "" ], "type": "string" + }, + "thresholdConfigs": { + "description": "Configuration options for layer7 adaptive protection for various customizable thresholds.", + "items": { + "$ref": "SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig" + }, + "type": "array" + } + }, + "type": "object" + }, + "SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig": { + "id": "SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig", + "properties": { + "autoDeployConfidenceThreshold": { + "format": "float", + "type": "number" + }, + "autoDeployExpirationSec": { + "format": "int32", + "type": "integer" + }, + "autoDeployImpactedBaselineThreshold": { + "format": "float", + "type": "number" + }, + "autoDeployLoadThreshold": { + "format": "float", + "type": "number" + }, + "name": { + "description": "The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the security policy.", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "type": "string" } }, "type": "object" @@ -66444,6 +66509,10 @@ "description": "The authentication and authorization settings for a BackendService.", "id": "SecuritySettings", "properties": { + "awsV4Authentication": { + "$ref": "AWSV4Signature", + "description": "The configuration needed to generate a signature for access to private storage buckets that support AWS's Signature Version 4 for authentication. Allowed only for INTERNET_IP_PORT and INTERNET_FQDN_PORT NEG backends." + }, "clientTlsPolicy": { "description": "Optional. A URL referring to a networksecurity.ClientTlsPolicy resource that describes how clients should authenticate with this service's backends. clientTlsPolicy only applies to a global BackendService with the loadBalancingScheme set to INTERNAL_SELF_MANAGED. If left blank, communications are not encrypted.", "type": "string" @@ -67147,6 +67216,53 @@ }, "type": "object" }, + "SetCommonInstanceMetadataOperationMetadata": { + "id": "SetCommonInstanceMetadataOperationMetadata", + "properties": { + "clientOperationId": { + "description": "[Output Only] The client operation id.", + "type": "string" + }, + "perLocationOperations": { + "additionalProperties": { + "$ref": "SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo" + }, + "description": "[Output Only] Status information per location (location name is key). Example key: zones/us-central1-a", + "type": "object" + } + }, + "type": "object" + }, + "SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo": { + "id": "SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo", + "properties": { + "error": { + "$ref": "Status", + "description": "[Output Only] If state is `ABANDONED` or `FAILED`, this field is populated." + }, + "state": { + "description": "[Output Only] Status of the action, which can be one of the following: `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or `DONE`.", + "enum": [ + "ABANDONED", + "DONE", + "FAILED", + "PROPAGATED", + "PROPAGATING", + "UNSPECIFIED" + ], + "enumDescriptions": [ + "Operation not tracked in this location e.g. zone is marked as DOWN.", + "Operation has completed successfully.", + "Operation is in an error state.", + "Operation is confirmed to be in the location.", + "Operation is not yet confirmed to have been created in the location.", + "" + ], + "type": "string" + } + }, + "type": "object" + }, "ShareSettings": { "description": "The share setting for reservations and sole tenancy node groups.", "id": "ShareSettings", @@ -69046,6 +69162,33 @@ }, "type": "object" }, + "Status": { + "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", + "id": "Status", + "properties": { + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "format": "int32", + "type": "integer" + }, + "details": { + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", + "type": "string" + } + }, + "type": "object" + }, "Subnetwork": { "description": "Represents a Subnetwork resource. A subnetwork (also known as a subnet) is a logical partition of a Virtual Private Cloud network with one primary IP range and zero or more secondary IP ranges. For more information, read Virtual Private Cloud (VPC) Network.", "id": "Subnetwork", diff --git a/compute/v1/compute-gen.go b/compute/v1/compute-gen.go index 811675da12d..597272df089 100644 --- a/compute/v1/compute-gen.go +++ b/compute/v1/compute-gen.go @@ -1265,6 +1265,55 @@ type ZonesService struct { s *Service } +// AWSV4Signature: Contains the configurations necessary to generate a +// signature for access to private storage buckets that support +// Signature Version 4 for authentication. The service name for +// generating the authentication header will always default to 's3'. +type AWSV4Signature struct { + // AccessKey: The access key used for s3 bucket authentication. Required + // for updating or creating a backend that uses AWS v4 signature + // authentication, but will not be returned as part of the configuration + // when queried with a REST API GET request. @InputOnly + AccessKey string `json:"accessKey,omitempty"` + + // AccessKeyId: The identifier of an access key used for s3 bucket + // authentication. + AccessKeyId string `json:"accessKeyId,omitempty"` + + // AccessKeyVersion: The optional version identifier for the access key. + // You can use this to keep track of different iterations of your access + // key. + AccessKeyVersion string `json:"accessKeyVersion,omitempty"` + + // OriginRegion: The name of the cloud region of your origin. This is a + // free-form field with the name of the region your cloud uses to host + // your origin. For example, "us-east-1" for AWS or "us-ashburn-1" for + // OCI. + OriginRegion string `json:"originRegion,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AccessKey") 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. "AccessKey") 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 *AWSV4Signature) MarshalJSON() ([]byte, error) { + type NoMethod AWSV4Signature + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AcceleratorConfig: A specification of the type and number of // accelerator cards attached to the instance. type AcceleratorConfig struct { @@ -3331,8 +3380,7 @@ type AttachedDiskInitializeParams struct { // ReplicaZones: Required for each regional disk associated with the // instance. Specify the URLs of the zones where the disk should be // replicated to. You must provide exactly two replica zones, and one - // zone must be the same as the instance zone. You can't use this option - // with boot disks. + // zone must be the same as the instance zone. ReplicaZones []string `json:"replicaZones,omitempty"` // ResourceManagerTags: Resource manager tags to be bound to the disk. @@ -7879,9 +7927,11 @@ type Commitment struct { // // Possible values: // "ACCELERATOR_OPTIMIZED" + // "ACCELERATOR_OPTIMIZED_A3" // "COMPUTE_OPTIMIZED" // "COMPUTE_OPTIMIZED_C2D" // "COMPUTE_OPTIMIZED_C3" + // "COMPUTE_OPTIMIZED_H3" // "GENERAL_PURPOSE" // "GENERAL_PURPOSE_E2" // "GENERAL_PURPOSE_N2" @@ -13176,7 +13226,8 @@ type ForwardingRule struct { // NoAutomateDnsZone: This is used in PSC consumer ForwardingRule to // control whether it should try to auto-generate a DNS zone or not. - // Non-PSC forwarding rules do not use this field. + // Non-PSC forwarding rules do not use this field. Once set, this field + // is not mutable. NoAutomateDnsZone bool `json:"noAutomateDnsZone,omitempty"` // PortRange: This field can only be used: - If IPProtocol is one of @@ -13287,7 +13338,8 @@ type ForwardingRule struct { // vpc-sc - APIs that support VPC Service Controls. - all-apis - All // supported Google APIs. - For Private Service Connect forwarding rules // that forward traffic to managed services, the target must be a - // service attachment. + // service attachment. The target is not mutable once set as a service + // attachment. Target string `json:"target,omitempty"` // ServerResponse contains the HTTP response code and headers from the @@ -34503,6 +34555,11 @@ type Operation struct { // SelfLink: [Output Only] Server-defined URL for the resource. SelfLink string `json:"selfLink,omitempty"` + // SetCommonInstanceMetadataOperationMetadata: [Output Only] If the + // operation is for projects.setCommonInstanceMetadata, this field will + // contain information on all underlying zonal actions and their state. + SetCommonInstanceMetadataOperationMetadata *SetCommonInstanceMetadataOperationMetadata `json:"setCommonInstanceMetadataOperationMetadata,omitempty"` + // StartTime: [Output Only] The time that this operation was started by // the server. This value is in RFC3339 text format. StartTime string `json:"startTime,omitempty"` @@ -34530,7 +34587,8 @@ type Operation struct { TargetLink string `json:"targetLink,omitempty"` // User: [Output Only] User who requested the operation, for example: - // `user@example.com`. + // `user@example.com` or `alice_smith_identifier + // (global/workforcePools/example-com-us-employees)`. User string `json:"user,omitempty"` // Warnings: [Output Only] If warning messages are generated during @@ -46269,6 +46327,10 @@ type SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig struct { // "STANDARD" RuleVisibility string `json:"ruleVisibility,omitempty"` + // ThresholdConfigs: Configuration options for layer7 adaptive + // protection for various customizable thresholds. + ThresholdConfigs []*SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig `json:"thresholdConfigs,omitempty"` + // ForceSendFields is a list of field names (e.g. "Enable") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -46292,6 +46354,62 @@ func (s *SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig) MarshalJ return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig struct { + AutoDeployConfidenceThreshold float64 `json:"autoDeployConfidenceThreshold,omitempty"` + + AutoDeployExpirationSec int64 `json:"autoDeployExpirationSec,omitempty"` + + AutoDeployImpactedBaselineThreshold float64 `json:"autoDeployImpactedBaselineThreshold,omitempty"` + + AutoDeployLoadThreshold float64 `json:"autoDeployLoadThreshold,omitempty"` + + // Name: The name must be 1-63 characters long, and comply with RFC1035. + // The name must be unique within the security policy. + Name string `json:"name,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AutoDeployConfidenceThreshold") 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. + // "AutoDeployConfidenceThreshold") 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 *SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig) MarshalJSON() ([]byte, error) { + type NoMethod SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig) UnmarshalJSON(data []byte) error { + type NoMethod SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig + var s1 struct { + AutoDeployConfidenceThreshold gensupport.JSONFloat64 `json:"autoDeployConfidenceThreshold"` + AutoDeployImpactedBaselineThreshold gensupport.JSONFloat64 `json:"autoDeployImpactedBaselineThreshold"` + AutoDeployLoadThreshold gensupport.JSONFloat64 `json:"autoDeployLoadThreshold"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.AutoDeployConfidenceThreshold = float64(s1.AutoDeployConfidenceThreshold) + s.AutoDeployImpactedBaselineThreshold = float64(s1.AutoDeployImpactedBaselineThreshold) + s.AutoDeployLoadThreshold = float64(s1.AutoDeployLoadThreshold) + return nil +} + type SecurityPolicyAdvancedOptionsConfig struct { // JsonCustomConfig: Custom configuration to apply the JSON parsing. // Only applicable when json_parsing is set to STANDARD. @@ -47235,6 +47353,12 @@ func (s *SecurityPolicyRuleRedirectOptions) MarshalJSON() ([]byte, error) { // SecuritySettings: The authentication and authorization settings for a // BackendService. type SecuritySettings struct { + // AwsV4Authentication: The configuration needed to generate a signature + // for access to private storage buckets that support AWS's Signature + // Version 4 for authentication. Allowed only for INTERNET_IP_PORT and + // INTERNET_FQDN_PORT NEG backends. + AwsV4Authentication *AWSV4Signature `json:"awsV4Authentication,omitempty"` + // ClientTlsPolicy: Optional. A URL referring to a // networksecurity.ClientTlsPolicy resource that describes how clients // should authenticate with this service's backends. clientTlsPolicy @@ -47258,15 +47382,15 @@ type SecuritySettings struct { // attached clientTlsPolicy with clientCertificate (mTLS mode). SubjectAltNames []string `json:"subjectAltNames,omitempty"` - // ForceSendFields is a list of field names (e.g. "ClientTlsPolicy") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "AwsV4Authentication") + // 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. "ClientTlsPolicy") to + // NullFields is a list of field names (e.g. "AwsV4Authentication") 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 @@ -48188,6 +48312,81 @@ func (s *ServiceAttachmentsScopedListWarningData) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type SetCommonInstanceMetadataOperationMetadata struct { + // ClientOperationId: [Output Only] The client operation id. + ClientOperationId string `json:"clientOperationId,omitempty"` + + // PerLocationOperations: [Output Only] Status information per location + // (location name is key). Example key: zones/us-central1-a + PerLocationOperations map[string]SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo `json:"perLocationOperations,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ClientOperationId") + // 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. "ClientOperationId") 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 *SetCommonInstanceMetadataOperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod SetCommonInstanceMetadataOperationMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo struct { + // Error: [Output Only] If state is `ABANDONED` or `FAILED`, this field + // is populated. + Error *Status `json:"error,omitempty"` + + // State: [Output Only] Status of the action, which can be one of the + // following: `PROPAGATING`, `PROPAGATED`, `ABANDONED`, `FAILED`, or + // `DONE`. + // + // Possible values: + // "ABANDONED" - Operation not tracked in this location e.g. zone is + // marked as DOWN. + // "DONE" - Operation has completed successfully. + // "FAILED" - Operation is in an error state. + // "PROPAGATED" - Operation is confirmed to be in the location. + // "PROPAGATING" - Operation is not yet confirmed to have been created + // in the location. + // "UNSPECIFIED" + State string `json:"state,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Error") 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. "Error") 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 *SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo) MarshalJSON() ([]byte, error) { + type NoMethod SetCommonInstanceMetadataOperationMetadataPerLocationOperationInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ShareSettings: The share setting for reservations and sole tenancy // node groups. type ShareSettings struct { @@ -50729,6 +50928,50 @@ func (s *StatefulPolicyPreservedStateDiskDevice) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Status: The `Status` type defines a logical error model that is +// suitable for different programming environments, including REST APIs +// and RPC APIs. It is used by gRPC (https://github.com/grpc). Each +// `Status` message contains three pieces of data: error code, error +// message, and error details. You can find out more about this error +// model and how to work with it in the API Design Guide +// (https://cloud.google.com/apis/design/errors). +type Status struct { + // Code: The status code, which should be an enum value of + // google.rpc.Code. + Code int64 `json:"code,omitempty"` + + // Details: A list of messages that carry the error details. There is a + // common set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Status) MarshalJSON() ([]byte, error) { + type NoMethod Status + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Subnetwork: Represents a Subnetwork resource. A subnetwork (also // known as a subnet) is a logical partition of a Virtual Private Cloud // network with one primary IP range and zero or more secondary IP diff --git a/datamigration/v1/datamigration-api.json b/datamigration/v1/datamigration-api.json index 0ea11225039..6a5e6e0d4c5 100644 --- a/datamigration/v1/datamigration-api.json +++ b/datamigration/v1/datamigration-api.json @@ -2097,7 +2097,7 @@ } } }, - "revision": "20230710", + "revision": "20230723", "rootUrl": "https://datamigration.googleapis.com/", "schemas": { "AlloyDbConnectionProfile": { @@ -4350,6 +4350,10 @@ "description": "The name (URI) of this migration job resource, in the form of: projects/{project}/locations/{location}/migrationJobs/{migrationJob}.", "type": "string" }, + "performanceConfig": { + "$ref": "PerformanceConfig", + "description": "Optional. Data dump parallelism settings used by the migration. Currently applicable only for MySQL to Cloud SQL for MySQL migrations only." + }, "phase": { "description": "Output only. The current migration job phase.", "enum": [ @@ -4758,6 +4762,29 @@ }, "type": "object" }, + "PerformanceConfig": { + "description": "Performance configuration definition.", + "id": "PerformanceConfig", + "properties": { + "dumpParallelLevel": { + "description": "Initial dump parallelism level.", + "enum": [ + "DUMP_PARALLEL_LEVEL_UNSPECIFIED", + "MIN", + "OPTIMAL", + "MAX" + ], + "enumDescriptions": [ + "Unknown dump parallel level. Will be defaulted to OPTIMAL.", + "Minimal parallel level.", + "Optimal parallel level.", + "Maximum parallel level." + ], + "type": "string" + } + }, + "type": "object" + }, "Policy": { "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", "id": "Policy", diff --git a/datamigration/v1/datamigration-gen.go b/datamigration/v1/datamigration-gen.go index 8d2098cb48d..64079bbc0cc 100644 --- a/datamigration/v1/datamigration-gen.go +++ b/datamigration/v1/datamigration-gen.go @@ -3351,6 +3351,11 @@ type MigrationJob struct { // projects/{project}/locations/{location}/migrationJobs/{migrationJob}. Name string `json:"name,omitempty"` + // PerformanceConfig: Optional. Data dump parallelism settings used by + // the migration. Currently applicable only for MySQL to Cloud SQL for + // MySQL migrations only. + PerformanceConfig *PerformanceConfig `json:"performanceConfig,omitempty"` + // Phase: Output only. The current migration job phase. // // Possible values: @@ -3880,6 +3885,42 @@ func (s *PackageEntity) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// PerformanceConfig: Performance configuration definition. +type PerformanceConfig struct { + // DumpParallelLevel: Initial dump parallelism level. + // + // Possible values: + // "DUMP_PARALLEL_LEVEL_UNSPECIFIED" - Unknown dump parallel level. + // Will be defaulted to OPTIMAL. + // "MIN" - Minimal parallel level. + // "OPTIMAL" - Optimal parallel level. + // "MAX" - Maximum parallel level. + DumpParallelLevel string `json:"dumpParallelLevel,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DumpParallelLevel") + // 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. "DumpParallelLevel") 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 *PerformanceConfig) MarshalJSON() ([]byte, error) { + type NoMethod PerformanceConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Policy: An Identity and Access Management (IAM) policy, which // specifies access controls for Google Cloud resources. A `Policy` is a // collection of `bindings`. A `binding` binds one or more `members`, or diff --git a/dialogflow/v2/dialogflow-api.json b/dialogflow/v2/dialogflow-api.json index f11649d82f8..157f890927d 100644 --- a/dialogflow/v2/dialogflow-api.json +++ b/dialogflow/v2/dialogflow-api.json @@ -8211,7 +8211,7 @@ } } }, - "revision": "20230717", + "revision": "20230722", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AudioInput": { @@ -16132,6 +16132,10 @@ "description": "This field can be used to pass custom data to your webhook. Arbitrary JSON objects are supported. If supplied, the value is used to populate the `WebhookRequest.original_detect_intent_request.payload` field sent to your webhook.", "type": "object" }, + "platform": { + "description": "The platform of the virtual agent response messages. If not empty, only emits messages from this platform in the response. Valid values are the enum names of platform.", + "type": "string" + }, "resetContexts": { "description": "Specifies whether to delete all contexts in the current session before the new ones are activated.", "type": "boolean" diff --git a/dialogflow/v2/dialogflow-gen.go b/dialogflow/v2/dialogflow-gen.go index 7f8bbce7cd6..bdcfd5e4f32 100644 --- a/dialogflow/v2/dialogflow-gen.go +++ b/dialogflow/v2/dialogflow-gen.go @@ -15203,6 +15203,11 @@ type GoogleCloudDialogflowV2QueryParameters struct { // your webhook. Payload googleapi.RawMessage `json:"payload,omitempty"` + // Platform: The platform of the virtual agent response messages. If not + // empty, only emits messages from this platform in the response. Valid + // values are the enum names of platform. + Platform string `json:"platform,omitempty"` + // ResetContexts: Specifies whether to delete all contexts in the // current session before the new ones are activated. ResetContexts bool `json:"resetContexts,omitempty"` diff --git a/dialogflow/v2beta1/dialogflow-api.json b/dialogflow/v2beta1/dialogflow-api.json index 3a5f4cf8899..f27db79e5d3 100644 --- a/dialogflow/v2beta1/dialogflow-api.json +++ b/dialogflow/v2beta1/dialogflow-api.json @@ -7579,7 +7579,7 @@ } } }, - "revision": "20230717", + "revision": "20230722", "rootUrl": "https://dialogflow.googleapis.com/", "schemas": { "GoogleCloudDialogflowCxV3AudioInput": { @@ -17768,6 +17768,10 @@ "description": "This field can be used to pass custom data to your webhook. Arbitrary JSON objects are supported. If supplied, the value is used to populate the `WebhookRequest.original_detect_intent_request.payload` field sent to your webhook.", "type": "object" }, + "platform": { + "description": "The platform of the virtual agent response messages. If not empty, only emits messages from this platform in the response. Valid values are the enum names of platform.", + "type": "string" + }, "resetContexts": { "description": "Specifies whether to delete all contexts in the current session before the new ones are activated.", "type": "boolean" diff --git a/dialogflow/v2beta1/dialogflow-gen.go b/dialogflow/v2beta1/dialogflow-gen.go index d3c75f41ed0..b999f73c50d 100644 --- a/dialogflow/v2beta1/dialogflow-gen.go +++ b/dialogflow/v2beta1/dialogflow-gen.go @@ -19004,6 +19004,11 @@ type GoogleCloudDialogflowV2beta1QueryParameters struct { // your webhook. Payload googleapi.RawMessage `json:"payload,omitempty"` + // Platform: The platform of the virtual agent response messages. If not + // empty, only emits messages from this platform in the response. Valid + // values are the enum names of platform. + Platform string `json:"platform,omitempty"` + // ResetContexts: Specifies whether to delete all contexts in the // current session before the new ones are activated. ResetContexts bool `json:"resetContexts,omitempty"` diff --git a/firebaseappdistribution/v1/firebaseappdistribution-api.json b/firebaseappdistribution/v1/firebaseappdistribution-api.json index b79e37cf31b..638924f12c0 100644 --- a/firebaseappdistribution/v1/firebaseappdistribution-api.json +++ b/firebaseappdistribution/v1/firebaseappdistribution-api.json @@ -342,6 +342,34 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "test": { + "description": "Run automated test(s) on release.", + "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases/{releasesId}:test", + "httpMethod": "POST", + "id": "firebaseappdistribution.projects.apps.releases.test", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the release resource to test. Format: `projects/{project_number}/apps/{app_id}/releases/{release_id}`", + "location": "path", + "pattern": "^projects/[^/]+/apps/[^/]+/releases/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:test", + "request": { + "$ref": "GoogleFirebaseAppdistroV1alphaTestReleaseRequest" + }, + "response": { + "$ref": "GoogleFirebaseAppdistroV1alphaTestReleaseResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } }, "resources": { @@ -941,7 +969,7 @@ } } }, - "revision": "20230705", + "revision": "20230726", "rootUrl": "https://firebaseappdistribution.googleapis.com/", "schemas": { "GdataBlobstore2Info": { @@ -1830,6 +1858,23 @@ }, "type": "object" }, + "GoogleFirebaseAppdistroV1alphaTestReleaseRequest": { + "description": "The request message for `TestRelease`.", + "id": "GoogleFirebaseAppdistroV1alphaTestReleaseRequest", + "properties": {}, + "type": "object" + }, + "GoogleFirebaseAppdistroV1alphaTestReleaseResponse": { + "description": "The response message for `TestRelease`.", + "id": "GoogleFirebaseAppdistroV1alphaTestReleaseResponse", + "properties": { + "testMatrix": { + "description": "Resource name of the test matrix Format: `v1/projects/{project_id}/testMatrices/{test_matrix_id}`", + "type": "string" + } + }, + "type": "object" + }, "GoogleLongrunningCancelOperationRequest": { "description": "The request message for Operations.CancelOperation.", "id": "GoogleLongrunningCancelOperationRequest", diff --git a/firebaseappdistribution/v1/firebaseappdistribution-gen.go b/firebaseappdistribution/v1/firebaseappdistribution-gen.go index 40980283705..a72d5c594ce 100644 --- a/firebaseappdistribution/v1/firebaseappdistribution-gen.go +++ b/firebaseappdistribution/v1/firebaseappdistribution-gen.go @@ -1706,6 +1706,45 @@ func (s *GoogleFirebaseAppdistroV1UploadReleaseResponse) MarshalJSON() ([]byte, return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleFirebaseAppdistroV1alphaTestReleaseRequest: The request message +// for `TestRelease`. +type GoogleFirebaseAppdistroV1alphaTestReleaseRequest struct { +} + +// GoogleFirebaseAppdistroV1alphaTestReleaseResponse: The response +// message for `TestRelease`. +type GoogleFirebaseAppdistroV1alphaTestReleaseResponse struct { + // TestMatrix: Resource name of the test matrix Format: + // `v1/projects/{project_id}/testMatrices/{test_matrix_id}` + TestMatrix string `json:"testMatrix,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "TestMatrix") 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. "TestMatrix") 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 *GoogleFirebaseAppdistroV1alphaTestReleaseResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1alphaTestReleaseResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleLongrunningCancelOperationRequest: The request message for // Operations.CancelOperation. type GoogleLongrunningCancelOperationRequest struct { @@ -3104,6 +3143,151 @@ func (c *ProjectsAppsReleasesPatchCall) Do(opts ...googleapi.CallOption) (*Googl } +// method id "firebaseappdistribution.projects.apps.releases.test": + +type ProjectsAppsReleasesTestCall struct { + s *Service + name string + googlefirebaseappdistrov1alphatestreleaserequest *GoogleFirebaseAppdistroV1alphaTestReleaseRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Test: Run automated test(s) on release. +// +// - name: The name of the release resource to test. Format: +// `projects/{project_number}/apps/{app_id}/releases/{release_id}`. +func (r *ProjectsAppsReleasesService) Test(name string, googlefirebaseappdistrov1alphatestreleaserequest *GoogleFirebaseAppdistroV1alphaTestReleaseRequest) *ProjectsAppsReleasesTestCall { + c := &ProjectsAppsReleasesTestCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlefirebaseappdistrov1alphatestreleaserequest = googlefirebaseappdistrov1alphatestreleaserequest + 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 *ProjectsAppsReleasesTestCall) Fields(s ...googleapi.Field) *ProjectsAppsReleasesTestCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsAppsReleasesTestCall) Context(ctx context.Context) *ProjectsAppsReleasesTestCall { + 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 *ProjectsAppsReleasesTestCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAppsReleasesTestCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlefirebaseappdistrov1alphatestreleaserequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:test") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappdistribution.projects.apps.releases.test" call. +// Exactly one of *GoogleFirebaseAppdistroV1alphaTestReleaseResponse or +// error will be non-nil. Any non-2xx status code is an error. Response +// headers are in either +// *GoogleFirebaseAppdistroV1alphaTestReleaseResponse.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 *ProjectsAppsReleasesTestCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppdistroV1alphaTestReleaseResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleFirebaseAppdistroV1alphaTestReleaseResponse{ + 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": "Run automated test(s) on release.", + // "flatPath": "v1/projects/{projectsId}/apps/{appsId}/releases/{releasesId}:test", + // "httpMethod": "POST", + // "id": "firebaseappdistribution.projects.apps.releases.test", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The name of the release resource to test. Format: `projects/{project_number}/apps/{app_id}/releases/{release_id}`", + // "location": "path", + // "pattern": "^projects/[^/]+/apps/[^/]+/releases/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:test", + // "request": { + // "$ref": "GoogleFirebaseAppdistroV1alphaTestReleaseRequest" + // }, + // "response": { + // "$ref": "GoogleFirebaseAppdistroV1alphaTestReleaseResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "firebaseappdistribution.projects.apps.releases.feedbackReports.delete": type ProjectsAppsReleasesFeedbackReportsDeleteCall struct { diff --git a/servicemanagement/v1/servicemanagement-api.json b/servicemanagement/v1/servicemanagement-api.json index 4bb05966af6..34a4c193e9c 100644 --- a/servicemanagement/v1/servicemanagement-api.json +++ b/servicemanagement/v1/servicemanagement-api.json @@ -830,7 +830,7 @@ } } }, - "revision": "20230707", + "revision": "20230721", "rootUrl": "https://servicemanagement.googleapis.com/", "schemas": { "Advice": { @@ -1454,6 +1454,13 @@ "environment": { "description": "The service controller environment to use. If empty, no control plane feature (like quota and billing) will be enabled. The recommended value for most services is servicecontrol.googleapis.com", "type": "string" + }, + "methodPolicies": { + "description": "Defines policies applying to the API methods of the service.", + "items": { + "$ref": "MethodPolicy" + }, + "type": "array" } }, "type": "object" @@ -1898,6 +1905,25 @@ }, "type": "object" }, + "FieldPolicy": { + "description": "Google API Policy Annotation This message defines a simple API policy annotation that can be used to annotate API request and response message fields with applicable policies. One field may have multiple applicable policies that must all be satisfied before a request can be processed. This policy annotation is used to generate the overall policy that will be used for automatic runtime policy enforcement and documentation generation.", + "id": "FieldPolicy", + "properties": { + "resourcePermission": { + "description": "Specifies the required permission(s) for the resource referred to by the field. It requires the field contains a valid resource reference, and the request must pass the permission checks to proceed. For example, \"resourcemanager.projects.get\".", + "type": "string" + }, + "resourceType": { + "description": "Specifies the resource type for the resource referred to by the field.", + "type": "string" + }, + "selector": { + "description": "Selects one or more request or response message fields to apply this `FieldPolicy`. When a `FieldPolicy` is used in proto annotation, the selector must be left as empty. The service config generator will automatically fill the correct value. When a `FieldPolicy` is used in service config, the selector must be a comma-separated string with valid request or response field paths, such as \"foo.bar\" or \"foo.bar,foo.baz\".", + "type": "string" + } + }, + "type": "object" + }, "FlowErrorDetails": { "description": "Encapsulation of flow-specific error details for debugging. Used as a details field on an error Status, not intended for external use.", "id": "FlowErrorDetails", @@ -2368,6 +2394,24 @@ }, "type": "object" }, + "MethodPolicy": { + "description": "Defines policies applying to an RPC method.", + "id": "MethodPolicy", + "properties": { + "requestPolicies": { + "description": "Policies that are applicable to the request message.", + "items": { + "$ref": "FieldPolicy" + }, + "type": "array" + }, + "selector": { + "description": "Selects a method to which these policies should be enforced, for example, \"google.pubsub.v1.Subscriber.CreateSubscription\". Refer to selector for syntax details. NOTE: This field must not be set in the proto annotation. It will be automatically filled by the service config compiler .", + "type": "string" + } + }, + "type": "object" + }, "MethodSettings": { "description": "Describes the generator configuration for a method.", "id": "MethodSettings", diff --git a/servicemanagement/v1/servicemanagement-gen.go b/servicemanagement/v1/servicemanagement-gen.go index 566568fd9ef..06f3c9f6b5b 100644 --- a/servicemanagement/v1/servicemanagement-gen.go +++ b/servicemanagement/v1/servicemanagement-gen.go @@ -1403,6 +1403,10 @@ type Control struct { // recommended value for most services is servicecontrol.googleapis.com Environment string `json:"environment,omitempty"` + // MethodPolicies: Defines policies applying to the API methods of the + // service. + MethodPolicies []*MethodPolicy `json:"methodPolicies,omitempty"` + // ForceSendFields is a list of field names (e.g. "Environment") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -2101,6 +2105,57 @@ func (s *Field) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// FieldPolicy: Google API Policy Annotation This message defines a +// simple API policy annotation that can be used to annotate API request +// and response message fields with applicable policies. One field may +// have multiple applicable policies that must all be satisfied before a +// request can be processed. This policy annotation is used to generate +// the overall policy that will be used for automatic runtime policy +// enforcement and documentation generation. +type FieldPolicy struct { + // ResourcePermission: Specifies the required permission(s) for the + // resource referred to by the field. It requires the field contains a + // valid resource reference, and the request must pass the permission + // checks to proceed. For example, "resourcemanager.projects.get". + ResourcePermission string `json:"resourcePermission,omitempty"` + + // ResourceType: Specifies the resource type for the resource referred + // to by the field. + ResourceType string `json:"resourceType,omitempty"` + + // Selector: Selects one or more request or response message fields to + // apply this `FieldPolicy`. When a `FieldPolicy` is used in proto + // annotation, the selector must be left as empty. The service config + // generator will automatically fill the correct value. When a + // `FieldPolicy` is used in service config, the selector must be a + // comma-separated string with valid request or response field paths, + // such as "foo.bar" or "foo.bar,foo.baz". + Selector string `json:"selector,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ResourcePermission") + // 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. "ResourcePermission") 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 *FieldPolicy) MarshalJSON() ([]byte, error) { + type NoMethod FieldPolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // FlowErrorDetails: Encapsulation of flow-specific error details for // debugging. Used as a details field on an error Status, not intended // for external use. @@ -3136,6 +3191,43 @@ func (s *Method) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MethodPolicy: Defines policies applying to an RPC method. +type MethodPolicy struct { + // RequestPolicies: Policies that are applicable to the request message. + RequestPolicies []*FieldPolicy `json:"requestPolicies,omitempty"` + + // Selector: Selects a method to which these policies should be + // enforced, for example, + // "google.pubsub.v1.Subscriber.CreateSubscription". Refer to selector + // for syntax details. NOTE: This field must not be set in the proto + // annotation. It will be automatically filled by the service config + // compiler . + Selector string `json:"selector,omitempty"` + + // ForceSendFields is a list of field names (e.g. "RequestPolicies") 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. "RequestPolicies") 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 *MethodPolicy) MarshalJSON() ([]byte, error) { + type NoMethod MethodPolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // MethodSettings: Describes the generator configuration for a method. type MethodSettings struct { // LongRunning: Describes settings to use for long-running operations