diff --git a/api-list.json b/api-list.json index 19c09a18a95..ae1e0dc2a0b 100644 --- a/api-list.json +++ b/api-list.json @@ -802,7 +802,7 @@ "name": "chat", "version": "v1", "title": "Google Chat API", - "description": "Enables bots to fetch information and perform actions in Google Chat. Authentication using a service account is a prerequisite for using the Google Chat REST API.", + "description": "Enables apps to fetch information and perform actions in Google Chat. Authentication using a service account is a prerequisite for using the Google Chat REST API.", "discoveryRestUrl": "https://chat.googleapis.com/$discovery/rest?version=v1", "icons": { "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", diff --git a/chat/v1/chat-api.json b/chat/v1/chat-api.json index dfe8f53bd53..fee49682a8d 100644 --- a/chat/v1/chat-api.json +++ b/chat/v1/chat-api.json @@ -3,7 +3,7 @@ "baseUrl": "https://chat.googleapis.com/", "batchPath": "batch", "canonicalName": "Hangouts Chat", - "description": "Enables bots to fetch information and perform actions in Google Chat. Authentication using a service account is a prerequisite for using the Google Chat REST API.", + "description": "Enables apps to fetch information and perform actions in Google Chat. Authentication using a service account is a prerequisite for using the Google Chat REST API.", "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/hangouts/chat", "fullyEncodeReservedExpansion": true, @@ -623,7 +623,7 @@ ], "parameters": { "name": { - "description": "Resource name of the attachment, in the form \"spaces/*/messages/*/attachments/*\".", + "description": "Required. Resource name of the attachment, in the form \"spaces/*/messages/*/attachments/*\".", "location": "path", "pattern": "^spaces/[^/]+/messages/[^/]+/attachments/[^/]+$", "required": true, @@ -642,7 +642,7 @@ } } }, - "revision": "20220302", + "revision": "20220308", "rootUrl": "https://chat.googleapis.com/", "schemas": { "ActionParameter": { @@ -2600,7 +2600,7 @@ "type": "string" }, "name": { - "description": "Resource name of the space, in the form \"spaces/*\". Example: spaces/AAAAAAAAAAAA", + "description": "Optional. Resource name of the space, in the form \"spaces/*\". Example: spaces/AAAAAAAAAAAA", "type": "string" }, "singleUserBotDm": { diff --git a/chat/v1/chat-gen.go b/chat/v1/chat-gen.go index 4c166f04b76..23b44e5a1e5 100644 --- a/chat/v1/chat-gen.go +++ b/chat/v1/chat-gen.go @@ -3330,8 +3330,8 @@ type Space struct { // humans, this field might be empty. DisplayName string `json:"displayName,omitempty"` - // Name: Resource name of the space, in the form "spaces/*". Example: - // spaces/AAAAAAAAAAAA + // Name: Optional. Resource name of the space, in the form "spaces/*". + // Example: spaces/AAAAAAAAAAAA Name string `json:"name,omitempty"` // SingleUserBotDm: Output only. Whether the space is a DM between a bot @@ -6491,7 +6491,7 @@ func (c *SpacesMessagesAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*At // ], // "parameters": { // "name": { - // "description": "Resource name of the attachment, in the form \"spaces/*/messages/*/attachments/*\".", + // "description": "Required. Resource name of the attachment, in the form \"spaces/*/messages/*/attachments/*\".", // "location": "path", // "pattern": "^spaces/[^/]+/messages/[^/]+/attachments/[^/]+$", // "required": true, diff --git a/cloudasset/v1/cloudasset-api.json b/cloudasset/v1/cloudasset-api.json index 319da9b8581..e0454308510 100644 --- a/cloudasset/v1/cloudasset-api.json +++ b/cloudasset/v1/cloudasset-api.json @@ -929,7 +929,7 @@ } } }, - "revision": "20220225", + "revision": "20220304", "rootUrl": "https://cloudasset.googleapis.com/", "schemas": { "AccessSelector": { @@ -1283,7 +1283,7 @@ "type": "object" }, "Date": { - "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "Date", "properties": { "day": { diff --git a/cloudasset/v1/cloudasset-gen.go b/cloudasset/v1/cloudasset-gen.go index 42a5dcad854..71e29db98f7 100644 --- a/cloudasset/v1/cloudasset-gen.go +++ b/cloudasset/v1/cloudasset-gen.go @@ -980,11 +980,12 @@ func (s *CreateFeedRequest) MarshalJSON() ([]byte, error) { // birthday. The time of day and time zone are either specified // elsewhere or are insignificant. The date is relative to the Gregorian // Calendar. This can represent one of the following: * A full date, -// with non-zero year, month, and day values * A month and day, with a -// zero year (e.g., an anniversary) * A year on its own, with a zero -// month and a zero day * A year and month, with a zero day (e.g., a -// credit card expiration date) Related types: * google.type.TimeOfDay * -// google.type.DateTime * google.protobuf.Timestamp +// with non-zero year, month, and day values. * A month and day, with a +// zero year (for example, an anniversary). * A year on its own, with a +// zero month and a zero day. * A year and month, with a zero day (for +// example, a credit card expiration date). Related types: * +// google.type.TimeOfDay * google.type.DateTime * +// google.protobuf.Timestamp type Date struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the diff --git a/cloudbuild/v1/cloudbuild-api.json b/cloudbuild/v1/cloudbuild-api.json index 9c17d4756b1..684d0d0d679 100644 --- a/cloudbuild/v1/cloudbuild-api.json +++ b/cloudbuild/v1/cloudbuild-api.json @@ -356,7 +356,7 @@ "type": "string" }, "parent": { - "description": "The parent of the collection of `Builds`. Format: `projects/{project}/locations/location`", + "description": "The parent of the collection of `Builds`. Format: `projects/{project}/locations/{location}`", "location": "query", "type": "string" }, @@ -1028,7 +1028,7 @@ "type": "string" }, "parent": { - "description": "The parent of the collection of `Builds`. Format: `projects/{project}/locations/location`", + "description": "The parent of the collection of `Builds`. Format: `projects/{project}/locations/{location}`", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+$", "required": true, @@ -2039,7 +2039,7 @@ } } }, - "revision": "20220218", + "revision": "20220301", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "AddBitbucketServerConnectedRepositoryRequest": { diff --git a/cloudbuild/v1/cloudbuild-gen.go b/cloudbuild/v1/cloudbuild-gen.go index cf59cbfda74..2d4b5bb2088 100644 --- a/cloudbuild/v1/cloudbuild-gen.go +++ b/cloudbuild/v1/cloudbuild-gen.go @@ -5780,7 +5780,7 @@ func (c *ProjectsBuildsListCall) PageToken(pageToken string) *ProjectsBuildsList // Parent sets the optional parameter "parent": The parent of the // collection of `Builds`. Format: -// `projects/{project}/locations/location` +// `projects/{project}/locations/{location}` func (c *ProjectsBuildsListCall) Parent(parent string) *ProjectsBuildsListCall { c.urlParams_.Set("parent", parent) return c @@ -5910,7 +5910,7 @@ func (c *ProjectsBuildsListCall) Do(opts ...googleapi.CallOption) (*ListBuildsRe // "type": "string" // }, // "parent": { - // "description": "The parent of the collection of `Builds`. Format: `projects/{project}/locations/location`", + // "description": "The parent of the collection of `Builds`. Format: `projects/{project}/locations/{location}`", // "location": "query", // "type": "string" // }, @@ -9011,7 +9011,7 @@ type ProjectsLocationsBuildsListCall struct { // unsuccessfully. // // - parent: The parent of the collection of `Builds`. Format: -// `projects/{project}/locations/location`. +// `projects/{project}/locations/{location}`. func (r *ProjectsLocationsBuildsService) List(parent string) *ProjectsLocationsBuildsListCall { c := &ProjectsLocationsBuildsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -9174,7 +9174,7 @@ func (c *ProjectsLocationsBuildsListCall) Do(opts ...googleapi.CallOption) (*Lis // "type": "string" // }, // "parent": { - // "description": "The parent of the collection of `Builds`. Format: `projects/{project}/locations/location`", + // "description": "The parent of the collection of `Builds`. Format: `projects/{project}/locations/{location}`", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+$", // "required": true, diff --git a/cloudsearch/v1/cloudsearch-api.json b/cloudsearch/v1/cloudsearch-api.json index d6c7dbf3d4b..7512b85087e 100644 --- a/cloudsearch/v1/cloudsearch-api.json +++ b/cloudsearch/v1/cloudsearch-api.json @@ -1994,7 +1994,7 @@ } } }, - "revision": "20220215", + "revision": "20220301", "rootUrl": "https://cloudsearch.googleapis.com/", "schemas": { "AclInfo": { @@ -2067,7 +2067,8 @@ "FILE_SUGGESTION_APP", "CONTACTS_APP", "ACTIVITY_FEED_APP", - "DRIVE_APP" + "DRIVE_APP", + "ASSISTIVE_SUGGESTION_APP" ], "enumDescriptions": [ "", @@ -2080,7 +2081,8 @@ "Powered by Bullseye", "", "", - "" + "", + "TODO (b/220205747): replace the above FILE_SUGGESTION_APP in the future." ], "type": "string" }, @@ -2723,6 +2725,33 @@ }, "type": "object" }, + "DynamiteSpacesScoringInfo": { + "description": "This is the proto for holding space level scoring information. This data is used for logging in query-api server and for testing purposes.", + "id": "DynamiteSpacesScoringInfo", + "properties": { + "finalScore": { + "format": "double", + "type": "number" + }, + "freshnessScore": { + "format": "double", + "type": "number" + }, + "messageScore": { + "format": "double", + "type": "number" + }, + "spaceAgeInDays": { + "format": "double", + "type": "number" + }, + "topicalityScore": { + "format": "double", + "type": "number" + } + }, + "type": "object" + }, "EmailAddress": { "description": "A person's email address.", "id": "EmailAddress", @@ -5435,6 +5464,10 @@ "groupId": { "$ref": "GroupId" }, + "isExternal": { + "description": "Whether this is an external space outside of user's organization", + "type": "boolean" + }, "name": { "type": "string" }, diff --git a/cloudsearch/v1/cloudsearch-gen.go b/cloudsearch/v1/cloudsearch-gen.go index 814ac1a3e19..6a32ba6d78c 100644 --- a/cloudsearch/v1/cloudsearch-gen.go +++ b/cloudsearch/v1/cloudsearch-gen.go @@ -579,6 +579,8 @@ type AppId struct { // "CONTACTS_APP" // "ACTIVITY_FEED_APP" // "DRIVE_APP" + // "ASSISTIVE_SUGGESTION_APP" - TODO (b/220205747): replace the above + // FILE_SUGGESTION_APP in the future. GsuiteAppType string `json:"gsuiteAppType,omitempty"` // Id: Numeric identifier of the App. Set to Project number for 1/3P @@ -1842,6 +1844,65 @@ func (s *DriveTimeSpanRestrict) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DynamiteSpacesScoringInfo: This is the proto for holding space level +// scoring information. This data is used for logging in query-api +// server and for testing purposes. +type DynamiteSpacesScoringInfo struct { + FinalScore float64 `json:"finalScore,omitempty"` + + FreshnessScore float64 `json:"freshnessScore,omitempty"` + + MessageScore float64 `json:"messageScore,omitempty"` + + SpaceAgeInDays float64 `json:"spaceAgeInDays,omitempty"` + + TopicalityScore float64 `json:"topicalityScore,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FinalScore") 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. "FinalScore") 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 *DynamiteSpacesScoringInfo) MarshalJSON() ([]byte, error) { + type NoMethod DynamiteSpacesScoringInfo + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *DynamiteSpacesScoringInfo) UnmarshalJSON(data []byte) error { + type NoMethod DynamiteSpacesScoringInfo + var s1 struct { + FinalScore gensupport.JSONFloat64 `json:"finalScore"` + FreshnessScore gensupport.JSONFloat64 `json:"freshnessScore"` + MessageScore gensupport.JSONFloat64 `json:"messageScore"` + SpaceAgeInDays gensupport.JSONFloat64 `json:"spaceAgeInDays"` + TopicalityScore gensupport.JSONFloat64 `json:"topicalityScore"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.FinalScore = float64(s1.FinalScore) + s.FreshnessScore = float64(s1.FreshnessScore) + s.MessageScore = float64(s1.MessageScore) + s.SpaceAgeInDays = float64(s1.SpaceAgeInDays) + s.TopicalityScore = float64(s1.TopicalityScore) + return nil +} + // EmailAddress: A person's email address. type EmailAddress struct { // EmailAddress: The email address. @@ -6612,6 +6673,10 @@ type SpaceInfo struct { GroupId *GroupId `json:"groupId,omitempty"` + // IsExternal: Whether this is an external space outside of user's + // organization + IsExternal bool `json:"isExternal,omitempty"` + Name string `json:"name,omitempty"` NumMembers int64 `json:"numMembers,omitempty"` diff --git a/compute/v0.beta/compute-api.json b/compute/v0.beta/compute-api.json index 1eee0ce28b8..6ee99227d6b 100644 --- a/compute/v0.beta/compute-api.json +++ b/compute/v0.beta/compute-api.json @@ -10569,7 +10569,7 @@ ] }, "reset": { - "description": "Performs a reset on the instance. This is a hard reset the VM does not do a graceful shutdown. For more information, see Resetting an instance.", + "description": "Performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. For more information, see Resetting an instance.", "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/reset", "httpMethod": "POST", "id": "compute.instances.reset", @@ -24792,6 +24792,56 @@ "https://www.googleapis.com/auth/compute.readonly" ] }, + "patch": { + "description": "Patches the specified regional TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.", + "flatPath": "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}", + "httpMethod": "PATCH", + "id": "compute.regionTargetHttpsProxies.patch", + "parameterOrder": [ + "project", + "region", + "targetHttpsProxy" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "targetHttpsProxy": { + "description": "Name of the TargetHttpsProxy resource to patch.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}", + "request": { + "$ref": "TargetHttpsProxy" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "setSslCertificates": { "description": "Replaces SslCertificates for TargetHttpsProxy.", "flatPath": "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates", @@ -34166,7 +34216,7 @@ } } }, - "revision": "20220224", + "revision": "20220301", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AcceleratorConfig": { diff --git a/compute/v0.beta/compute-gen.go b/compute/v0.beta/compute-gen.go index b8c5828e7b3..a97c93ee26d 100644 --- a/compute/v0.beta/compute-gen.go +++ b/compute/v0.beta/compute-gen.go @@ -99925,7 +99925,7 @@ type InstancesResetCall struct { header_ http.Header } -// Reset: Performs a reset on the instance. This is a hard reset the VM +// Reset: Performs a reset on the instance. This is a hard reset. The VM // does not do a graceful shutdown. For more information, see Resetting // an instance. // @@ -100044,7 +100044,7 @@ func (c *InstancesResetCall) Do(opts ...googleapi.CallOption) (*Operation, error } return ret, nil // { - // "description": "Performs a reset on the instance. This is a hard reset the VM does not do a graceful shutdown. For more information, see Resetting an instance.", + // "description": "Performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. For more information, see Resetting an instance.", // "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/reset", // "httpMethod": "POST", // "id": "compute.instances.reset", @@ -157995,6 +157995,196 @@ func (c *RegionTargetHttpsProxiesListCall) Pages(ctx context.Context, f func(*Ta } } +// method id "compute.regionTargetHttpsProxies.patch": + +type RegionTargetHttpsProxiesPatchCall struct { + s *Service + project string + region string + targetHttpsProxy string + targethttpsproxy *TargetHttpsProxy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Patches the specified regional TargetHttpsProxy resource with +// the data included in the request. This method supports PATCH +// semantics and uses JSON merge patch format and processing rules. +// +// - project: Project ID for this request. +// - region: Name of the region for this request. +// - targetHttpsProxy: Name of the TargetHttpsProxy resource to patch. +func (r *RegionTargetHttpsProxiesService) Patch(project string, region string, targetHttpsProxy string, targethttpsproxy *TargetHttpsProxy) *RegionTargetHttpsProxiesPatchCall { + c := &RegionTargetHttpsProxiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.targetHttpsProxy = targetHttpsProxy + c.targethttpsproxy = targethttpsproxy + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. For example, consider a +// situation where you make an initial request and the request times +// out. If you make the request again with the same request ID, the +// server can check if original operation with the same request ID was +// received, and if so, will ignore the second request. This prevents +// clients from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *RegionTargetHttpsProxiesPatchCall) RequestId(requestId string) *RegionTargetHttpsProxiesPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *RegionTargetHttpsProxiesPatchCall) Fields(s ...googleapi.Field) *RegionTargetHttpsProxiesPatchCall { + 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 *RegionTargetHttpsProxiesPatchCall) Context(ctx context.Context) *RegionTargetHttpsProxiesPatchCall { + 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 *RegionTargetHttpsProxiesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionTargetHttpsProxiesPatchCall) 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.targethttpsproxy) + 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, "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + "targetHttpsProxy": c.targetHttpsProxy, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.regionTargetHttpsProxies.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.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 *RegionTargetHttpsProxiesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + 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": "Patches the specified regional TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.", + // "flatPath": "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}", + // "httpMethod": "PATCH", + // "id": "compute.regionTargetHttpsProxies.patch", + // "parameterOrder": [ + // "project", + // "region", + // "targetHttpsProxy" + // ], + // "parameters": { + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "region": { + // "description": "Name of the region for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "targetHttpsProxy": { + // "description": "Name of the TargetHttpsProxy resource to patch.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}", + // "request": { + // "$ref": "TargetHttpsProxy" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + // method id "compute.regionTargetHttpsProxies.setSslCertificates": type RegionTargetHttpsProxiesSetSslCertificatesCall struct { diff --git a/compute/v1/compute-api.json b/compute/v1/compute-api.json index 01268017b6e..e27b06d3332 100644 --- a/compute/v1/compute-api.json +++ b/compute/v1/compute-api.json @@ -9544,7 +9544,7 @@ ] }, "reset": { - "description": "Performs a reset on the instance. This is a hard reset the VM does not do a graceful shutdown. For more information, see Resetting an instance.", + "description": "Performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. For more information, see Resetting an instance.", "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/reset", "httpMethod": "POST", "id": "compute.instances.reset", @@ -22071,6 +22071,56 @@ "https://www.googleapis.com/auth/compute.readonly" ] }, + "patch": { + "description": "Patches the specified regional TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.", + "flatPath": "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}", + "httpMethod": "PATCH", + "id": "compute.regionTargetHttpsProxies.patch", + "parameterOrder": [ + "project", + "region", + "targetHttpsProxy" + ], + "parameters": { + "project": { + "description": "Project ID for this request.", + "location": "path", + "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + "required": true, + "type": "string" + }, + "region": { + "description": "Name of the region for this request.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + "required": true, + "type": "string" + }, + "requestId": { + "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "targetHttpsProxy": { + "description": "Name of the TargetHttpsProxy resource to patch.", + "location": "path", + "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + "required": true, + "type": "string" + } + }, + "path": "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}", + "request": { + "$ref": "TargetHttpsProxy" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/compute" + ] + }, "setSslCertificates": { "description": "Replaces SslCertificates for TargetHttpsProxy.", "flatPath": "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates", @@ -30449,7 +30499,7 @@ } } }, - "revision": "20220224", + "revision": "20220301", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -31497,6 +31547,11 @@ "description": "This reservation type allows to pre allocate specific instance configuration. Next ID: 5", "id": "AllocationSpecificSKUReservation", "properties": { + "assuredCount": { + "description": "[Output Only] Indicates how many instances are actually usable currently.", + "format": "int64", + "type": "string" + }, "count": { "description": "Specifies the number of resources that are allocated.", "format": "int64", diff --git a/compute/v1/compute-gen.go b/compute/v1/compute-gen.go index 4b40f43618e..f1795493fe8 100644 --- a/compute/v1/compute-gen.go +++ b/compute/v1/compute-gen.go @@ -2800,6 +2800,10 @@ func (s *AllocationSpecificSKUAllocationReservedInstanceProperties) MarshalJSON( // AllocationSpecificSKUReservation: This reservation type allows to pre // allocate specific instance configuration. Next ID: 5 type AllocationSpecificSKUReservation struct { + // AssuredCount: [Output Only] Indicates how many instances are actually + // usable currently. + AssuredCount int64 `json:"assuredCount,omitempty,string"` + // Count: Specifies the number of resources that are allocated. Count int64 `json:"count,omitempty,string"` @@ -2809,7 +2813,7 @@ type AllocationSpecificSKUReservation struct { // InstanceProperties: The instance properties for the reservation. InstanceProperties *AllocationSpecificSKUAllocationReservedInstanceProperties `json:"instanceProperties,omitempty"` - // ForceSendFields is a list of field names (e.g. "Count") to + // ForceSendFields is a list of field names (e.g. "AssuredCount") 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 @@ -2817,10 +2821,10 @@ type AllocationSpecificSKUReservation struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Count") 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 + // NullFields is a list of field names (e.g. "AssuredCount") 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:"-"` @@ -93995,7 +93999,7 @@ type InstancesResetCall struct { header_ http.Header } -// Reset: Performs a reset on the instance. This is a hard reset the VM +// Reset: Performs a reset on the instance. This is a hard reset. The VM // does not do a graceful shutdown. For more information, see Resetting // an instance. // @@ -94114,7 +94118,7 @@ func (c *InstancesResetCall) Do(opts ...googleapi.CallOption) (*Operation, error } return ret, nil // { - // "description": "Performs a reset on the instance. This is a hard reset the VM does not do a graceful shutdown. For more information, see Resetting an instance.", + // "description": "Performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. For more information, see Resetting an instance.", // "flatPath": "projects/{project}/zones/{zone}/instances/{instance}/reset", // "httpMethod": "POST", // "id": "compute.instances.reset", @@ -145064,6 +145068,196 @@ func (c *RegionTargetHttpsProxiesListCall) Pages(ctx context.Context, f func(*Ta } } +// method id "compute.regionTargetHttpsProxies.patch": + +type RegionTargetHttpsProxiesPatchCall struct { + s *Service + project string + region string + targetHttpsProxy string + targethttpsproxy *TargetHttpsProxy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Patches the specified regional TargetHttpsProxy resource with +// the data included in the request. This method supports PATCH +// semantics and uses JSON merge patch format and processing rules. +// +// - project: Project ID for this request. +// - region: Name of the region for this request. +// - targetHttpsProxy: Name of the TargetHttpsProxy resource to patch. +func (r *RegionTargetHttpsProxiesService) Patch(project string, region string, targetHttpsProxy string, targethttpsproxy *TargetHttpsProxy) *RegionTargetHttpsProxiesPatchCall { + c := &RegionTargetHttpsProxiesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.project = project + c.region = region + c.targetHttpsProxy = targetHttpsProxy + c.targethttpsproxy = targethttpsproxy + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. For example, consider a +// situation where you make an initial request and the request times +// out. If you make the request again with the same request ID, the +// server can check if original operation with the same request ID was +// received, and if so, will ignore the second request. This prevents +// clients from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not +// supported ( 00000000-0000-0000-0000-000000000000). +func (c *RegionTargetHttpsProxiesPatchCall) RequestId(requestId string) *RegionTargetHttpsProxiesPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *RegionTargetHttpsProxiesPatchCall) Fields(s ...googleapi.Field) *RegionTargetHttpsProxiesPatchCall { + 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 *RegionTargetHttpsProxiesPatchCall) Context(ctx context.Context) *RegionTargetHttpsProxiesPatchCall { + 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 *RegionTargetHttpsProxiesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *RegionTargetHttpsProxiesPatchCall) 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.targethttpsproxy) + 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, "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "project": c.project, + "region": c.region, + "targetHttpsProxy": c.targetHttpsProxy, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "compute.regionTargetHttpsProxies.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.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 *RegionTargetHttpsProxiesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, &googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + } + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, err + } + ret := &Operation{ + 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": "Patches the specified regional TargetHttpsProxy resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.", + // "flatPath": "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}", + // "httpMethod": "PATCH", + // "id": "compute.regionTargetHttpsProxies.patch", + // "parameterOrder": [ + // "project", + // "region", + // "targetHttpsProxy" + // ], + // "parameters": { + // "project": { + // "description": "Project ID for this request.", + // "location": "path", + // "pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))", + // "required": true, + // "type": "string" + // }, + // "region": { + // "description": "Name of the region for this request.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "targetHttpsProxy": { + // "description": "Name of the TargetHttpsProxy resource to patch.", + // "location": "path", + // "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}", + // "required": true, + // "type": "string" + // } + // }, + // "path": "projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}", + // "request": { + // "$ref": "TargetHttpsProxy" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform", + // "https://www.googleapis.com/auth/compute" + // ] + // } + +} + // method id "compute.regionTargetHttpsProxies.setSslCertificates": type RegionTargetHttpsProxiesSetSslCertificatesCall struct { diff --git a/dlp/v2/dlp-api.json b/dlp/v2/dlp-api.json index 360bb62df0c..7fea3726f1e 100644 --- a/dlp/v2/dlp-api.json +++ b/dlp/v2/dlp-api.json @@ -3412,7 +3412,7 @@ } } }, - "revision": "20220205", + "revision": "20220305", "rootUrl": "https://dlp.googleapis.com/", "schemas": { "GooglePrivacyDlpV2Action": { @@ -3703,6 +3703,8 @@ "TEXT_UTF8", "WORD_DOCUMENT", "PDF", + "POWERPOINT_DOCUMENT", + "EXCEL_DOCUMENT", "AVRO", "CSV", "TSV" @@ -3717,6 +3719,8 @@ "plain text", "docx, docm, dotx, dotm", "pdf", + "powerpoint", + "excel", "avro", "csv", "tsv" @@ -3890,7 +3894,9 @@ "PDF", "AVRO", "CSV", - "TSV" + "TSV", + "POWERPOINT", + "EXCEL" ], "enumDescriptions": [ "Includes all files.", @@ -3901,7 +3907,9 @@ "PDF files \u003e30 MB will be scanned as binary files. Included file extensions: pdf", "Included file extensions: avro", "Included file extensions: csv", - "Included file extensions: tsv" + "Included file extensions: tsv", + "Powerpoint files \u003e30 MB will be scanned as binary files. Included file extensions: pptx, pptm, potx, potm, pot", + "Excel files \u003e30 MB will be scanned as binary files. Included file extensions: xlsx, xlsm, xltx, xltm" ], "type": "string" }, @@ -7557,7 +7565,7 @@ "type": "object" }, "GoogleTypeDate": { - "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "GoogleTypeDate", "properties": { "day": { diff --git a/dlp/v2/dlp-gen.go b/dlp/v2/dlp-gen.go index 9c290e70954..9ec8551cdc8 100644 --- a/dlp/v2/dlp-gen.go +++ b/dlp/v2/dlp-gen.go @@ -940,6 +940,8 @@ type GooglePrivacyDlpV2ByteContentItem struct { // "TEXT_UTF8" - plain text // "WORD_DOCUMENT" - docx, docm, dotx, dotm // "PDF" - pdf + // "POWERPOINT_DOCUMENT" - powerpoint + // "EXCEL_DOCUMENT" - excel // "AVRO" - avro // "CSV" - csv // "TSV" - tsv @@ -1266,6 +1268,10 @@ type GooglePrivacyDlpV2CloudStorageOptions struct { // "AVRO" - Included file extensions: avro // "CSV" - Included file extensions: csv // "TSV" - Included file extensions: tsv + // "POWERPOINT" - Powerpoint files >30 MB will be scanned as binary + // files. Included file extensions: pptx, pptm, potx, potm, pot + // "EXCEL" - Excel files >30 MB will be scanned as binary files. + // Included file extensions: xlsx, xlsm, xltx, xltm FileTypes []string `json:"fileTypes,omitempty"` // FilesLimitPercent: Limits the number of files to scan to this @@ -8099,11 +8105,12 @@ func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { // a birthday. The time of day and time zone are either specified // elsewhere or are insignificant. The date is relative to the Gregorian // Calendar. This can represent one of the following: * A full date, -// with non-zero year, month, and day values * A month and day, with a -// zero year (e.g., an anniversary) * A year on its own, with a zero -// month and a zero day * A year and month, with a zero day (e.g., a -// credit card expiration date) Related types: * google.type.TimeOfDay * -// google.type.DateTime * google.protobuf.Timestamp +// with non-zero year, month, and day values. * A month and day, with a +// zero year (for example, an anniversary). * A year on its own, with a +// zero month and a zero day. * A year and month, with a zero day (for +// example, a credit card expiration date). Related types: * +// google.type.TimeOfDay * google.type.DateTime * +// google.protobuf.Timestamp type GoogleTypeDate struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the diff --git a/documentai/v1/documentai-api.json b/documentai/v1/documentai-api.json index 97c9edc0e6f..201c2adf1a6 100644 --- a/documentai/v1/documentai-api.json +++ b/documentai/v1/documentai-api.json @@ -1029,7 +1029,7 @@ } } }, - "revision": "20220226", + "revision": "20220307", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -6302,7 +6302,7 @@ "type": "object" }, "GoogleTypeDate": { - "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "GoogleTypeDate", "properties": { "day": { diff --git a/documentai/v1/documentai-gen.go b/documentai/v1/documentai-gen.go index 07d163723f2..7f870fb6999 100644 --- a/documentai/v1/documentai-gen.go +++ b/documentai/v1/documentai-gen.go @@ -9177,11 +9177,12 @@ func (s *GoogleTypeColor) UnmarshalJSON(data []byte) error { // a birthday. The time of day and time zone are either specified // elsewhere or are insignificant. The date is relative to the Gregorian // Calendar. This can represent one of the following: * A full date, -// with non-zero year, month, and day values * A month and day, with a -// zero year (e.g., an anniversary) * A year on its own, with a zero -// month and a zero day * A year and month, with a zero day (e.g., a -// credit card expiration date) Related types: * google.type.TimeOfDay * -// google.type.DateTime * google.protobuf.Timestamp +// with non-zero year, month, and day values. * A month and day, with a +// zero year (for example, an anniversary). * A year on its own, with a +// zero month and a zero day. * A year and month, with a zero day (for +// example, a credit card expiration date). Related types: * +// google.type.TimeOfDay * google.type.DateTime * +// google.protobuf.Timestamp type GoogleTypeDate struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the diff --git a/documentai/v1beta2/documentai-api.json b/documentai/v1beta2/documentai-api.json index 7ef5309de18..a89c7f48272 100644 --- a/documentai/v1beta2/documentai-api.json +++ b/documentai/v1beta2/documentai-api.json @@ -292,7 +292,7 @@ } } }, - "revision": "20220222", + "revision": "20220307", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -4176,7 +4176,7 @@ "type": "object" }, "GoogleTypeDate": { - "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "GoogleTypeDate", "properties": { "day": { diff --git a/documentai/v1beta2/documentai-gen.go b/documentai/v1beta2/documentai-gen.go index c94f97f6f99..bb3f15b038a 100644 --- a/documentai/v1beta2/documentai-gen.go +++ b/documentai/v1beta2/documentai-gen.go @@ -6872,11 +6872,12 @@ func (s *GoogleTypeColor) UnmarshalJSON(data []byte) error { // a birthday. The time of day and time zone are either specified // elsewhere or are insignificant. The date is relative to the Gregorian // Calendar. This can represent one of the following: * A full date, -// with non-zero year, month, and day values * A month and day, with a -// zero year (e.g., an anniversary) * A year on its own, with a zero -// month and a zero day * A year and month, with a zero day (e.g., a -// credit card expiration date) Related types: * google.type.TimeOfDay * -// google.type.DateTime * google.protobuf.Timestamp +// with non-zero year, month, and day values. * A month and day, with a +// zero year (for example, an anniversary). * A year on its own, with a +// zero month and a zero day. * A year and month, with a zero day (for +// example, a credit card expiration date). Related types: * +// google.type.TimeOfDay * google.type.DateTime * +// google.protobuf.Timestamp type GoogleTypeDate struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the diff --git a/documentai/v1beta3/documentai-api.json b/documentai/v1beta3/documentai-api.json index 07988363eca..b2b2c4a0228 100644 --- a/documentai/v1beta3/documentai-api.json +++ b/documentai/v1beta3/documentai-api.json @@ -796,7 +796,7 @@ } } }, - "revision": "20220226", + "revision": "20220307", "rootUrl": "https://documentai.googleapis.com/", "schemas": { "GoogleCloudDocumentaiUiv1beta3BatchDeleteDocumentsMetadata": { @@ -6118,7 +6118,7 @@ "type": "object" }, "GoogleTypeDate": { - "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "GoogleTypeDate", "properties": { "day": { diff --git a/documentai/v1beta3/documentai-gen.go b/documentai/v1beta3/documentai-gen.go index e0ceb4d9ed5..05f2068a443 100644 --- a/documentai/v1beta3/documentai-gen.go +++ b/documentai/v1beta3/documentai-gen.go @@ -9191,11 +9191,12 @@ func (s *GoogleTypeColor) UnmarshalJSON(data []byte) error { // a birthday. The time of day and time zone are either specified // elsewhere or are insignificant. The date is relative to the Gregorian // Calendar. This can represent one of the following: * A full date, -// with non-zero year, month, and day values * A month and day, with a -// zero year (e.g., an anniversary) * A year on its own, with a zero -// month and a zero day * A year and month, with a zero day (e.g., a -// credit card expiration date) Related types: * google.type.TimeOfDay * -// google.type.DateTime * google.protobuf.Timestamp +// with non-zero year, month, and day values. * A month and day, with a +// zero year (for example, an anniversary). * A year on its own, with a +// zero month and a zero day. * A year and month, with a zero day (for +// example, a credit card expiration date). Related types: * +// google.type.TimeOfDay * google.type.DateTime * +// google.protobuf.Timestamp type GoogleTypeDate struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the diff --git a/fcm/v1/fcm-api.json b/fcm/v1/fcm-api.json index 8712d4ba884..05184744d83 100644 --- a/fcm/v1/fcm-api.json +++ b/fcm/v1/fcm-api.json @@ -146,7 +146,7 @@ } } }, - "revision": "20210802", + "revision": "20220307", "rootUrl": "https://fcm.googleapis.com/", "schemas": { "AndroidConfig": { @@ -230,6 +230,10 @@ "description": "The key to the body string in the app's string resources to use to localize the body text to the user's current localization. See [String Resources](https://goo.gl/NdFZGI) for more information.", "type": "string" }, + "bypassProxyNotification": { + "description": "If set, display notifications delivered to the device will be handled by the app instead of the proxy.", + "type": "boolean" + }, "channelId": { "description": "The [notification's channel id](https://developer.android.com/guide/topics/ui/notifiers/notifications#ManageChannels) (new in Android O). The app must create a channel with this channel ID before any notification with this channel ID is received. If you don't send this channel ID in the request, or if the channel ID provided has not yet been created by the app, FCM uses the channel ID specified in the app manifest.", "type": "string" diff --git a/fcm/v1/fcm-gen.go b/fcm/v1/fcm-gen.go index 19aa6fa4571..598f0b7afb7 100644 --- a/fcm/v1/fcm-gen.go +++ b/fcm/v1/fcm-gen.go @@ -301,6 +301,10 @@ type AndroidNotification struct { // See String Resources (https://goo.gl/NdFZGI) for more information. BodyLocKey string `json:"bodyLocKey,omitempty"` + // BypassProxyNotification: If set, display notifications delivered to + // the device will be handled by the app instead of the proxy. + BypassProxyNotification bool `json:"bypassProxyNotification,omitempty"` + // ChannelId: The notification's channel id // (https://developer.android.com/guide/topics/ui/notifiers/notifications#ManageChannels) // (new in Android O). The app must create a channel with this channel diff --git a/mybusinessverifications/v1/mybusinessverifications-api.json b/mybusinessverifications/v1/mybusinessverifications-api.json index a23d320f99f..e7f83a9bf1e 100644 --- a/mybusinessverifications/v1/mybusinessverifications-api.json +++ b/mybusinessverifications/v1/mybusinessverifications-api.json @@ -256,7 +256,7 @@ } } }, - "revision": "20220215", + "revision": "20220307", "rootUrl": "https://mybusinessverifications.googleapis.com/", "schemas": { "AddressVerificationData": { @@ -302,9 +302,24 @@ "type": "object" }, "ComplyWithGuidelines": { - "description": "Indicates that the location fails to comply with our [guidelines](https://support.google.com/business/answer/3038177). To fix this issue, consult the [Help Center Article](https://support.google.com/business/answer/4569145).", + "description": "Indicates that the location fails to comply with our [guidelines](https://support.google.com/business/answer/3038177).", "id": "ComplyWithGuidelines", - "properties": {}, + "properties": { + "recommendationReason": { + "description": "The reason why the location is being recommended to comply with guidelines.", + "enum": [ + "RECOMMENDATION_REASON_UNSPECIFIED", + "BUSINESS_LOCATION_SUSPENDED", + "BUSINESS_LOCATION_DISABLED" + ], + "enumDescriptions": [ + "Not specified.", + "The business location is suspended. To fix this issue, consult the [Help Center article](https://support.google.com/business/answer/4569145).", + "The business location is disabled. To fix this issue, consult the [Help Center article](https://support.google.com/business/answer/9334246)." + ], + "type": "string" + } + }, "type": "object" }, "EmailVerificationData": { diff --git a/mybusinessverifications/v1/mybusinessverifications-gen.go b/mybusinessverifications/v1/mybusinessverifications-gen.go index f0f91ee0b56..5c707752239 100644 --- a/mybusinessverifications/v1/mybusinessverifications-gen.go +++ b/mybusinessverifications/v1/mybusinessverifications-gen.go @@ -259,10 +259,44 @@ func (s *CompleteVerificationResponse) MarshalJSON() ([]byte, error) { // ComplyWithGuidelines: Indicates that the location fails to comply // with our guidelines -// (https://support.google.com/business/answer/3038177). To fix this -// issue, consult the Help Center Article -// (https://support.google.com/business/answer/4569145). +// (https://support.google.com/business/answer/3038177). type ComplyWithGuidelines struct { + // RecommendationReason: The reason why the location is being + // recommended to comply with guidelines. + // + // Possible values: + // "RECOMMENDATION_REASON_UNSPECIFIED" - Not specified. + // "BUSINESS_LOCATION_SUSPENDED" - The business location is suspended. + // To fix this issue, consult the [Help Center + // article](https://support.google.com/business/answer/4569145). + // "BUSINESS_LOCATION_DISABLED" - The business location is disabled. + // To fix this issue, consult the [Help Center + // article](https://support.google.com/business/answer/9334246). + RecommendationReason string `json:"recommendationReason,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "RecommendationReason") 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. "RecommendationReason") 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 *ComplyWithGuidelines) MarshalJSON() ([]byte, error) { + type NoMethod ComplyWithGuidelines + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } // EmailVerificationData: Display data for verifications through email. diff --git a/recommender/v1beta1/recommender-api.json b/recommender/v1beta1/recommender-api.json index 75491e3019d..ddfc9f6fd78 100644 --- a/recommender/v1beta1/recommender-api.json +++ b/recommender/v1beta1/recommender-api.json @@ -647,38 +647,24 @@ "resources": { "insightTypes": { "methods": { - "config": { - "description": "Updates an InsightTypeConfig change. This will create a new revision of the config.", + "getConfig": { + "description": "Gets the requested InsightTypeConfig. There is only one instance of the config for each InsightType.", "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/insightTypes/{insightTypesId}/config", - "httpMethod": "POST", - "id": "recommender.organizations.locations.insightTypes.config", + "httpMethod": "GET", + "id": "recommender.organizations.locations.insightTypes.getConfig", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config", + "description": "Required. Name of the InsightTypeConfig to get. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` * `projects/[PROJECT_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config`", "location": "path", "pattern": "^organizations/[^/]+/locations/[^/]+/insightTypes/[^/]+/config$", "required": true, "type": "string" - }, - "updateMask": { - "description": "The list of fields to be updated.", - "format": "google-fieldmask", - "location": "query", - "type": "string" - }, - "validateOnly": { - "description": "If true, validate the request and preview the change, but do not actually update it.", - "location": "query", - "type": "boolean" } }, "path": "v1beta1/{+name}", - "request": { - "$ref": "GoogleCloudRecommenderV1beta1InsightTypeConfig" - }, "response": { "$ref": "GoogleCloudRecommenderV1beta1InsightTypeConfig" }, @@ -686,24 +672,38 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "getConfig": { - "description": "Gets the requested InsightTypeConfig. There is only one instance of the config for each InsightType.", + "updateConfig": { + "description": "Updates an InsightTypeConfig change. This will create a new revision of the config.", "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/insightTypes/{insightTypesId}/config", - "httpMethod": "GET", - "id": "recommender.organizations.locations.insightTypes.getConfig", + "httpMethod": "PATCH", + "id": "recommender.organizations.locations.insightTypes.updateConfig", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. Name of the InsightTypeConfig to get. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` * `projects/[PROJECT_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config`", + "description": "Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config", "location": "path", "pattern": "^organizations/[^/]+/locations/[^/]+/insightTypes/[^/]+/config$", "required": true, "type": "string" + }, + "updateMask": { + "description": "The list of fields to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + }, + "validateOnly": { + "description": "If true, validate the request and preview the change, but do not actually update it.", + "location": "query", + "type": "boolean" } }, "path": "v1beta1/{+name}", + "request": { + "$ref": "GoogleCloudRecommenderV1beta1InsightTypeConfig" + }, "response": { "$ref": "GoogleCloudRecommenderV1beta1InsightTypeConfig" }, @@ -815,38 +815,24 @@ }, "recommenders": { "methods": { - "config": { - "description": "Updates a Recommender Config. This will create a new revision of the config.", + "getConfig": { + "description": "Gets the requested Recommender Config. There is only one instance of the config for each Recommender.", "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/recommenders/{recommendersId}/config", - "httpMethod": "POST", - "id": "recommender.organizations.locations.recommenders.config", + "httpMethod": "GET", + "id": "recommender.organizations.locations.recommenders.getConfig", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config", + "description": "Required. Name of the Recommendation Config to get. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config`", "location": "path", "pattern": "^organizations/[^/]+/locations/[^/]+/recommenders/[^/]+/config$", "required": true, "type": "string" - }, - "updateMask": { - "description": "The list of fields to be updated.", - "format": "google-fieldmask", - "location": "query", - "type": "string" - }, - "validateOnly": { - "description": "If true, validate the request and preview the change, but do not actually update it.", - "location": "query", - "type": "boolean" } }, "path": "v1beta1/{+name}", - "request": { - "$ref": "GoogleCloudRecommenderV1beta1RecommenderConfig" - }, "response": { "$ref": "GoogleCloudRecommenderV1beta1RecommenderConfig" }, @@ -854,24 +840,38 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, - "getConfig": { - "description": "Gets the requested Recommender Config. There is only one instance of the config for each Recommender.", + "updateConfig": { + "description": "Updates a Recommender Config. This will create a new revision of the config.", "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/recommenders/{recommendersId}/config", - "httpMethod": "GET", - "id": "recommender.organizations.locations.recommenders.getConfig", + "httpMethod": "PATCH", + "id": "recommender.organizations.locations.recommenders.updateConfig", "parameterOrder": [ "name" ], "parameters": { "name": { - "description": "Required. Name of the Recommendation Config to get. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config`", + "description": "Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config", "location": "path", "pattern": "^organizations/[^/]+/locations/[^/]+/recommenders/[^/]+/config$", "required": true, "type": "string" + }, + "updateMask": { + "description": "The list of fields to be updated.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + }, + "validateOnly": { + "description": "If true, validate the request and preview the change, but do not actually update it.", + "location": "query", + "type": "boolean" } }, "path": "v1beta1/{+name}", + "request": { + "$ref": "GoogleCloudRecommenderV1beta1RecommenderConfig" + }, "response": { "$ref": "GoogleCloudRecommenderV1beta1RecommenderConfig" }, @@ -1442,7 +1442,7 @@ } } }, - "revision": "20220207", + "revision": "20220307", "rootUrl": "https://recommender.googleapis.com/", "schemas": { "GoogleCloudRecommenderV1beta1CostProjection": { diff --git a/recommender/v1beta1/recommender-gen.go b/recommender/v1beta1/recommender-gen.go index 154f9720a2c..d5d0f2c33e0 100644 --- a/recommender/v1beta1/recommender-gen.go +++ b/recommender/v1beta1/recommender-gen.go @@ -4300,88 +4300,84 @@ func (c *FoldersLocationsRecommendersRecommendationsMarkSucceededCall) Do(opts . } -// method id "recommender.organizations.locations.insightTypes.config": +// method id "recommender.organizations.locations.insightTypes.getConfig": -type OrganizationsLocationsInsightTypesConfigCall struct { - s *Service - name string - googlecloudrecommenderv1beta1insighttypeconfig *GoogleCloudRecommenderV1beta1InsightTypeConfig - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsLocationsInsightTypesGetConfigCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Config: Updates an InsightTypeConfig change. This will create a new -// revision of the config. +// GetConfig: Gets the requested InsightTypeConfig. There is only one +// instance of the config for each InsightType. // -// - name: Name of insight type config. Eg, -// projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT -// _TYPE_ID]/config. -func (r *OrganizationsLocationsInsightTypesService) Config(name string, googlecloudrecommenderv1beta1insighttypeconfig *GoogleCloudRecommenderV1beta1InsightTypeConfig) *OrganizationsLocationsInsightTypesConfigCall { - c := &OrganizationsLocationsInsightTypesConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Name of the InsightTypeConfig to get. Acceptable formats: * +// `projects/[PROJECT_NUMBER]/locations/global/recommenders/[INSIGHT_TY +// PE_ID]/config` * +// `projects/[PROJECT_ID]/locations/global/recommenders/[INSIGHT_TYPE_I +// D]/config` * +// `organizations/[ORGANIZATION_ID]/locations/global/recommenders/[INSI +// GHT_TYPE_ID]/config`. +func (r *OrganizationsLocationsInsightTypesService) GetConfig(name string) *OrganizationsLocationsInsightTypesGetConfigCall { + c := &OrganizationsLocationsInsightTypesGetConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudrecommenderv1beta1insighttypeconfig = googlecloudrecommenderv1beta1insighttypeconfig - return c -} - -// UpdateMask sets the optional parameter "updateMask": The list of -// fields to be updated. -func (c *OrganizationsLocationsInsightTypesConfigCall) UpdateMask(updateMask string) *OrganizationsLocationsInsightTypesConfigCall { - c.urlParams_.Set("updateMask", updateMask) - return c -} - -// ValidateOnly sets the optional parameter "validateOnly": If true, -// validate the request and preview the change, but do not actually -// update it. -func (c *OrganizationsLocationsInsightTypesConfigCall) ValidateOnly(validateOnly bool) *OrganizationsLocationsInsightTypesConfigCall { - c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) 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 *OrganizationsLocationsInsightTypesConfigCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInsightTypesConfigCall { +func (c *OrganizationsLocationsInsightTypesGetConfigCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInsightTypesGetConfigCall { 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 *OrganizationsLocationsInsightTypesGetConfigCall) IfNoneMatch(entityTag string) *OrganizationsLocationsInsightTypesGetConfigCall { + 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 *OrganizationsLocationsInsightTypesConfigCall) Context(ctx context.Context) *OrganizationsLocationsInsightTypesConfigCall { +func (c *OrganizationsLocationsInsightTypesGetConfigCall) Context(ctx context.Context) *OrganizationsLocationsInsightTypesGetConfigCall { 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 *OrganizationsLocationsInsightTypesConfigCall) Header() http.Header { +func (c *OrganizationsLocationsInsightTypesGetConfigCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsInsightTypesConfigCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsInsightTypesGetConfigCall) 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.googlecloudrecommenderv1beta1insighttypeconfig) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -4392,7 +4388,7 @@ func (c *OrganizationsLocationsInsightTypesConfigCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "recommender.organizations.locations.insightTypes.config" call. +// Do executes the "recommender.organizations.locations.insightTypes.getConfig" call. // Exactly one of *GoogleCloudRecommenderV1beta1InsightTypeConfig or // error will be non-nil. Any non-2xx status code is an error. Response // headers are in either @@ -4401,7 +4397,7 @@ func (c *OrganizationsLocationsInsightTypesConfigCall) doRequest(alt string) (*h // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *OrganizationsLocationsInsightTypesConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1InsightTypeConfig, error) { +func (c *OrganizationsLocationsInsightTypesGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1InsightTypeConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4432,37 +4428,23 @@ func (c *OrganizationsLocationsInsightTypesConfigCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Updates an InsightTypeConfig change. This will create a new revision of the config.", + // "description": "Gets the requested InsightTypeConfig. There is only one instance of the config for each InsightType.", // "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/insightTypes/{insightTypesId}/config", - // "httpMethod": "POST", - // "id": "recommender.organizations.locations.insightTypes.config", + // "httpMethod": "GET", + // "id": "recommender.organizations.locations.insightTypes.getConfig", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config", + // "description": "Required. Name of the InsightTypeConfig to get. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` * `projects/[PROJECT_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config`", // "location": "path", // "pattern": "^organizations/[^/]+/locations/[^/]+/insightTypes/[^/]+/config$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "The list of fields to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // }, - // "validateOnly": { - // "description": "If true, validate the request and preview the change, but do not actually update it.", - // "location": "query", - // "type": "boolean" // } // }, // "path": "v1beta1/{+name}", - // "request": { - // "$ref": "GoogleCloudRecommenderV1beta1InsightTypeConfig" - // }, // "response": { // "$ref": "GoogleCloudRecommenderV1beta1InsightTypeConfig" // }, @@ -4473,84 +4455,88 @@ func (c *OrganizationsLocationsInsightTypesConfigCall) Do(opts ...googleapi.Call } -// method id "recommender.organizations.locations.insightTypes.getConfig": +// method id "recommender.organizations.locations.insightTypes.updateConfig": -type OrganizationsLocationsInsightTypesGetConfigCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsLocationsInsightTypesUpdateConfigCall struct { + s *Service + name string + googlecloudrecommenderv1beta1insighttypeconfig *GoogleCloudRecommenderV1beta1InsightTypeConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetConfig: Gets the requested InsightTypeConfig. There is only one -// instance of the config for each InsightType. +// UpdateConfig: Updates an InsightTypeConfig change. This will create a +// new revision of the config. // -// - name: Name of the InsightTypeConfig to get. Acceptable formats: * -// `projects/[PROJECT_NUMBER]/locations/global/recommenders/[INSIGHT_TY -// PE_ID]/config` * -// `projects/[PROJECT_ID]/locations/global/recommenders/[INSIGHT_TYPE_I -// D]/config` * -// `organizations/[ORGANIZATION_ID]/locations/global/recommenders/[INSI -// GHT_TYPE_ID]/config`. -func (r *OrganizationsLocationsInsightTypesService) GetConfig(name string) *OrganizationsLocationsInsightTypesGetConfigCall { - c := &OrganizationsLocationsInsightTypesGetConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Name of insight type config. Eg, +// projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT +// _TYPE_ID]/config. +func (r *OrganizationsLocationsInsightTypesService) UpdateConfig(name string, googlecloudrecommenderv1beta1insighttypeconfig *GoogleCloudRecommenderV1beta1InsightTypeConfig) *OrganizationsLocationsInsightTypesUpdateConfigCall { + c := &OrganizationsLocationsInsightTypesUpdateConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudrecommenderv1beta1insighttypeconfig = googlecloudrecommenderv1beta1insighttypeconfig + return c +} + +// UpdateMask sets the optional parameter "updateMask": The list of +// fields to be updated. +func (c *OrganizationsLocationsInsightTypesUpdateConfigCall) UpdateMask(updateMask string) *OrganizationsLocationsInsightTypesUpdateConfigCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": If true, +// validate the request and preview the change, but do not actually +// update it. +func (c *OrganizationsLocationsInsightTypesUpdateConfigCall) ValidateOnly(validateOnly bool) *OrganizationsLocationsInsightTypesUpdateConfigCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) 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 *OrganizationsLocationsInsightTypesGetConfigCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInsightTypesGetConfigCall { +func (c *OrganizationsLocationsInsightTypesUpdateConfigCall) Fields(s ...googleapi.Field) *OrganizationsLocationsInsightTypesUpdateConfigCall { 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 *OrganizationsLocationsInsightTypesGetConfigCall) IfNoneMatch(entityTag string) *OrganizationsLocationsInsightTypesGetConfigCall { - 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 *OrganizationsLocationsInsightTypesGetConfigCall) Context(ctx context.Context) *OrganizationsLocationsInsightTypesGetConfigCall { +func (c *OrganizationsLocationsInsightTypesUpdateConfigCall) Context(ctx context.Context) *OrganizationsLocationsInsightTypesUpdateConfigCall { 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 *OrganizationsLocationsInsightTypesGetConfigCall) Header() http.Header { +func (c *OrganizationsLocationsInsightTypesUpdateConfigCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsInsightTypesGetConfigCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsInsightTypesUpdateConfigCall) 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 + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudrecommenderv1beta1insighttypeconfig) + 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, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -4561,7 +4547,7 @@ func (c *OrganizationsLocationsInsightTypesGetConfigCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "recommender.organizations.locations.insightTypes.getConfig" call. +// Do executes the "recommender.organizations.locations.insightTypes.updateConfig" call. // Exactly one of *GoogleCloudRecommenderV1beta1InsightTypeConfig or // error will be non-nil. Any non-2xx status code is an error. Response // headers are in either @@ -4570,7 +4556,7 @@ func (c *OrganizationsLocationsInsightTypesGetConfigCall) doRequest(alt string) // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *OrganizationsLocationsInsightTypesGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1InsightTypeConfig, error) { +func (c *OrganizationsLocationsInsightTypesUpdateConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1InsightTypeConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4601,23 +4587,37 @@ func (c *OrganizationsLocationsInsightTypesGetConfigCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Gets the requested InsightTypeConfig. There is only one instance of the config for each InsightType.", + // "description": "Updates an InsightTypeConfig change. This will create a new revision of the config.", // "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/insightTypes/{insightTypesId}/config", - // "httpMethod": "GET", - // "id": "recommender.organizations.locations.insightTypes.getConfig", + // "httpMethod": "PATCH", + // "id": "recommender.organizations.locations.insightTypes.updateConfig", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Name of the InsightTypeConfig to get. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` * `projects/[PROJECT_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/global/recommenders/[INSIGHT_TYPE_ID]/config`", + // "description": "Name of insight type config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config", // "location": "path", // "pattern": "^organizations/[^/]+/locations/[^/]+/insightTypes/[^/]+/config$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "The list of fields to be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // }, + // "validateOnly": { + // "description": "If true, validate the request and preview the change, but do not actually update it.", + // "location": "query", + // "type": "boolean" // } // }, // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "GoogleCloudRecommenderV1beta1InsightTypeConfig" + // }, // "response": { // "$ref": "GoogleCloudRecommenderV1beta1InsightTypeConfig" // }, @@ -5156,88 +5156,85 @@ func (c *OrganizationsLocationsInsightTypesInsightsMarkAcceptedCall) Do(opts ... } -// method id "recommender.organizations.locations.recommenders.config": +// method id "recommender.organizations.locations.recommenders.getConfig": -type OrganizationsLocationsRecommendersConfigCall struct { - s *Service - name string - googlecloudrecommenderv1beta1recommenderconfig *GoogleCloudRecommenderV1beta1RecommenderConfig - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsLocationsRecommendersGetConfigCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// Config: Updates a Recommender Config. This will create a new revision -// of the config. +// GetConfig: Gets the requested Recommender Config. There is only one +// instance of the config for each Recommender. // -// - name: Name of recommender config. Eg, -// projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMME -// NDER_ID]/config. -func (r *OrganizationsLocationsRecommendersService) Config(name string, googlecloudrecommenderv1beta1recommenderconfig *GoogleCloudRecommenderV1beta1RecommenderConfig) *OrganizationsLocationsRecommendersConfigCall { - c := &OrganizationsLocationsRecommendersConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Name of the Recommendation Config to get. Acceptable formats: +// * +// `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMM +// ENDER_ID]/config` * +// `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDE +// R_ID]/config` * +// `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[ +// RECOMMENDER_ID]/config`. +func (r *OrganizationsLocationsRecommendersService) GetConfig(name string) *OrganizationsLocationsRecommendersGetConfigCall { + c := &OrganizationsLocationsRecommendersGetConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudrecommenderv1beta1recommenderconfig = googlecloudrecommenderv1beta1recommenderconfig - return c -} - -// UpdateMask sets the optional parameter "updateMask": The list of -// fields to be updated. -func (c *OrganizationsLocationsRecommendersConfigCall) UpdateMask(updateMask string) *OrganizationsLocationsRecommendersConfigCall { - c.urlParams_.Set("updateMask", updateMask) - return c -} - -// ValidateOnly sets the optional parameter "validateOnly": If true, -// validate the request and preview the change, but do not actually -// update it. -func (c *OrganizationsLocationsRecommendersConfigCall) ValidateOnly(validateOnly bool) *OrganizationsLocationsRecommendersConfigCall { - c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) 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 *OrganizationsLocationsRecommendersConfigCall) Fields(s ...googleapi.Field) *OrganizationsLocationsRecommendersConfigCall { +func (c *OrganizationsLocationsRecommendersGetConfigCall) Fields(s ...googleapi.Field) *OrganizationsLocationsRecommendersGetConfigCall { 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 *OrganizationsLocationsRecommendersGetConfigCall) IfNoneMatch(entityTag string) *OrganizationsLocationsRecommendersGetConfigCall { + 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 *OrganizationsLocationsRecommendersConfigCall) Context(ctx context.Context) *OrganizationsLocationsRecommendersConfigCall { +func (c *OrganizationsLocationsRecommendersGetConfigCall) Context(ctx context.Context) *OrganizationsLocationsRecommendersGetConfigCall { 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 *OrganizationsLocationsRecommendersConfigCall) Header() http.Header { +func (c *OrganizationsLocationsRecommendersGetConfigCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsRecommendersConfigCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsRecommendersGetConfigCall) 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.googlecloudrecommenderv1beta1recommenderconfig) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -5248,7 +5245,7 @@ func (c *OrganizationsLocationsRecommendersConfigCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "recommender.organizations.locations.recommenders.config" call. +// Do executes the "recommender.organizations.locations.recommenders.getConfig" call. // Exactly one of *GoogleCloudRecommenderV1beta1RecommenderConfig or // error will be non-nil. Any non-2xx status code is an error. Response // headers are in either @@ -5257,7 +5254,7 @@ func (c *OrganizationsLocationsRecommendersConfigCall) doRequest(alt string) (*h // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *OrganizationsLocationsRecommendersConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1RecommenderConfig, error) { +func (c *OrganizationsLocationsRecommendersGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1RecommenderConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5288,37 +5285,23 @@ func (c *OrganizationsLocationsRecommendersConfigCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Updates a Recommender Config. This will create a new revision of the config.", + // "description": "Gets the requested Recommender Config. There is only one instance of the config for each Recommender.", // "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/recommenders/{recommendersId}/config", - // "httpMethod": "POST", - // "id": "recommender.organizations.locations.recommenders.config", + // "httpMethod": "GET", + // "id": "recommender.organizations.locations.recommenders.getConfig", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config", + // "description": "Required. Name of the Recommendation Config to get. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config`", // "location": "path", // "pattern": "^organizations/[^/]+/locations/[^/]+/recommenders/[^/]+/config$", // "required": true, // "type": "string" - // }, - // "updateMask": { - // "description": "The list of fields to be updated.", - // "format": "google-fieldmask", - // "location": "query", - // "type": "string" - // }, - // "validateOnly": { - // "description": "If true, validate the request and preview the change, but do not actually update it.", - // "location": "query", - // "type": "boolean" // } // }, // "path": "v1beta1/{+name}", - // "request": { - // "$ref": "GoogleCloudRecommenderV1beta1RecommenderConfig" - // }, // "response": { // "$ref": "GoogleCloudRecommenderV1beta1RecommenderConfig" // }, @@ -5329,85 +5312,88 @@ func (c *OrganizationsLocationsRecommendersConfigCall) Do(opts ...googleapi.Call } -// method id "recommender.organizations.locations.recommenders.getConfig": +// method id "recommender.organizations.locations.recommenders.updateConfig": -type OrganizationsLocationsRecommendersGetConfigCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type OrganizationsLocationsRecommendersUpdateConfigCall struct { + s *Service + name string + googlecloudrecommenderv1beta1recommenderconfig *GoogleCloudRecommenderV1beta1RecommenderConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetConfig: Gets the requested Recommender Config. There is only one -// instance of the config for each Recommender. +// UpdateConfig: Updates a Recommender Config. This will create a new +// revision of the config. // -// - name: Name of the Recommendation Config to get. Acceptable formats: -// * -// `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMM -// ENDER_ID]/config` * -// `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDE -// R_ID]/config` * -// `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[ -// RECOMMENDER_ID]/config`. -func (r *OrganizationsLocationsRecommendersService) GetConfig(name string) *OrganizationsLocationsRecommendersGetConfigCall { - c := &OrganizationsLocationsRecommendersGetConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Name of recommender config. Eg, +// projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMME +// NDER_ID]/config. +func (r *OrganizationsLocationsRecommendersService) UpdateConfig(name string, googlecloudrecommenderv1beta1recommenderconfig *GoogleCloudRecommenderV1beta1RecommenderConfig) *OrganizationsLocationsRecommendersUpdateConfigCall { + c := &OrganizationsLocationsRecommendersUpdateConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.googlecloudrecommenderv1beta1recommenderconfig = googlecloudrecommenderv1beta1recommenderconfig + return c +} + +// UpdateMask sets the optional parameter "updateMask": The list of +// fields to be updated. +func (c *OrganizationsLocationsRecommendersUpdateConfigCall) UpdateMask(updateMask string) *OrganizationsLocationsRecommendersUpdateConfigCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": If true, +// validate the request and preview the change, but do not actually +// update it. +func (c *OrganizationsLocationsRecommendersUpdateConfigCall) ValidateOnly(validateOnly bool) *OrganizationsLocationsRecommendersUpdateConfigCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) 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 *OrganizationsLocationsRecommendersGetConfigCall) Fields(s ...googleapi.Field) *OrganizationsLocationsRecommendersGetConfigCall { +func (c *OrganizationsLocationsRecommendersUpdateConfigCall) Fields(s ...googleapi.Field) *OrganizationsLocationsRecommendersUpdateConfigCall { 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 *OrganizationsLocationsRecommendersGetConfigCall) IfNoneMatch(entityTag string) *OrganizationsLocationsRecommendersGetConfigCall { - 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 *OrganizationsLocationsRecommendersGetConfigCall) Context(ctx context.Context) *OrganizationsLocationsRecommendersGetConfigCall { +func (c *OrganizationsLocationsRecommendersUpdateConfigCall) Context(ctx context.Context) *OrganizationsLocationsRecommendersUpdateConfigCall { 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 *OrganizationsLocationsRecommendersGetConfigCall) Header() http.Header { +func (c *OrganizationsLocationsRecommendersUpdateConfigCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *OrganizationsLocationsRecommendersGetConfigCall) doRequest(alt string) (*http.Response, error) { +func (c *OrganizationsLocationsRecommendersUpdateConfigCall) 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 + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudrecommenderv1beta1recommenderconfig) + 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, "v1beta1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -5418,7 +5404,7 @@ func (c *OrganizationsLocationsRecommendersGetConfigCall) doRequest(alt string) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "recommender.organizations.locations.recommenders.getConfig" call. +// Do executes the "recommender.organizations.locations.recommenders.updateConfig" call. // Exactly one of *GoogleCloudRecommenderV1beta1RecommenderConfig or // error will be non-nil. Any non-2xx status code is an error. Response // headers are in either @@ -5427,7 +5413,7 @@ func (c *OrganizationsLocationsRecommendersGetConfigCall) doRequest(alt string) // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check // whether the returned error was because http.StatusNotModified was // returned. -func (c *OrganizationsLocationsRecommendersGetConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1RecommenderConfig, error) { +func (c *OrganizationsLocationsRecommendersUpdateConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRecommenderV1beta1RecommenderConfig, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5458,23 +5444,37 @@ func (c *OrganizationsLocationsRecommendersGetConfigCall) Do(opts ...googleapi.C } return ret, nil // { - // "description": "Gets the requested Recommender Config. There is only one instance of the config for each Recommender.", + // "description": "Updates a Recommender Config. This will create a new revision of the config.", // "flatPath": "v1beta1/organizations/{organizationsId}/locations/{locationsId}/recommenders/{recommendersId}/config", - // "httpMethod": "GET", - // "id": "recommender.organizations.locations.recommenders.getConfig", + // "httpMethod": "PATCH", + // "id": "recommender.organizations.locations.recommenders.updateConfig", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Name of the Recommendation Config to get. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `organizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config`", + // "description": "Name of recommender config. Eg, projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config", // "location": "path", // "pattern": "^organizations/[^/]+/locations/[^/]+/recommenders/[^/]+/config$", // "required": true, // "type": "string" + // }, + // "updateMask": { + // "description": "The list of fields to be updated.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // }, + // "validateOnly": { + // "description": "If true, validate the request and preview the change, but do not actually update it.", + // "location": "query", + // "type": "boolean" // } // }, // "path": "v1beta1/{+name}", + // "request": { + // "$ref": "GoogleCloudRecommenderV1beta1RecommenderConfig" + // }, // "response": { // "$ref": "GoogleCloudRecommenderV1beta1RecommenderConfig" // }, diff --git a/retail/v2/retail-api.json b/retail/v2/retail-api.json index 640de26f99e..7452ece617d 100644 --- a/retail/v2/retail-api.json +++ b/retail/v2/retail-api.json @@ -138,7 +138,7 @@ "type": "string" }, "languageCodes": { - "description": "The list of languages of the query. This is the BCP-47 language code, such as \"en-US\" or \"sr-Latn\". For more information, see [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). The maximum number of allowed characters is 255. Only \"en-US\" is currently supported.", + "description": "The language filters applied to the output suggestions. If set, it should contain the language of the query. If not set, suggestions are returned without considering language restrictions. This is the BCP-47 language code, such as \"en-US\" or \"sr-Latn\". For more information, see [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). The maximum number of language codes is 3.", "location": "query", "repeated": true, "type": "string" @@ -1077,7 +1077,7 @@ } } }, - "revision": "20220217", + "revision": "20220303", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -3660,7 +3660,7 @@ "type": "object" }, "GoogleTypeDate": { - "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "GoogleTypeDate", "properties": { "day": { diff --git a/retail/v2/retail-gen.go b/retail/v2/retail-gen.go index 28f9a913047..257fb53c7d5 100644 --- a/retail/v2/retail-gen.go +++ b/retail/v2/retail-gen.go @@ -5410,11 +5410,12 @@ func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { // a birthday. The time of day and time zone are either specified // elsewhere or are insignificant. The date is relative to the Gregorian // Calendar. This can represent one of the following: * A full date, -// with non-zero year, month, and day values * A month and day, with a -// zero year (e.g., an anniversary) * A year on its own, with a zero -// month and a zero day * A year and month, with a zero day (e.g., a -// credit card expiration date) Related types: * google.type.TimeOfDay * -// google.type.DateTime * google.protobuf.Timestamp +// with non-zero year, month, and day values. * A month and day, with a +// zero year (for example, an anniversary). * A year on its own, with a +// zero month and a zero day. * A year and month, with a zero day (for +// example, a credit card expiration date). Related types: * +// google.type.TimeOfDay * google.type.DateTime * +// google.protobuf.Timestamp type GoogleTypeDate struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the @@ -5502,11 +5503,14 @@ func (c *ProjectsLocationsCatalogsCompleteQueryCall) DeviceType(deviceType strin return c } -// LanguageCodes sets the optional parameter "languageCodes": The list -// of languages of the query. This is the BCP-47 language code, such as -// "en-US" or "sr-Latn". For more information, see Tags for Identifying -// Languages (https://tools.ietf.org/html/bcp47). The maximum number of -// allowed characters is 255. Only "en-US" is currently supported. +// LanguageCodes sets the optional parameter "languageCodes": The +// language filters applied to the output suggestions. If set, it should +// contain the language of the query. If not set, suggestions are +// returned without considering language restrictions. This is the +// BCP-47 language code, such as "en-US" or "sr-Latn". For more +// information, see Tags for Identifying Languages +// (https://tools.ietf.org/html/bcp47). The maximum number of language +// codes is 3. func (c *ProjectsLocationsCatalogsCompleteQueryCall) LanguageCodes(languageCodes ...string) *ProjectsLocationsCatalogsCompleteQueryCall { c.urlParams_.SetMulti("languageCodes", append([]string{}, languageCodes...)) return c @@ -5669,7 +5673,7 @@ func (c *ProjectsLocationsCatalogsCompleteQueryCall) Do(opts ...googleapi.CallOp // "type": "string" // }, // "languageCodes": { - // "description": "The list of languages of the query. This is the BCP-47 language code, such as \"en-US\" or \"sr-Latn\". For more information, see [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). The maximum number of allowed characters is 255. Only \"en-US\" is currently supported.", + // "description": "The language filters applied to the output suggestions. If set, it should contain the language of the query. If not set, suggestions are returned without considering language restrictions. This is the BCP-47 language code, such as \"en-US\" or \"sr-Latn\". For more information, see [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). The maximum number of language codes is 3.", // "location": "query", // "repeated": true, // "type": "string" diff --git a/retail/v2alpha/retail-api.json b/retail/v2alpha/retail-api.json index 2c17e58a46c..adc3f69be22 100644 --- a/retail/v2alpha/retail-api.json +++ b/retail/v2alpha/retail-api.json @@ -138,7 +138,7 @@ "type": "string" }, "languageCodes": { - "description": "The list of languages of the query. This is the BCP-47 language code, such as \"en-US\" or \"sr-Latn\". For more information, see [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). The maximum number of allowed characters is 255. Only \"en-US\" is currently supported.", + "description": "The language filters applied to the output suggestions. If set, it should contain the language of the query. If not set, suggestions are returned without considering language restrictions. This is the BCP-47 language code, such as \"en-US\" or \"sr-Latn\". For more information, see [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). The maximum number of language codes is 3.", "location": "query", "repeated": true, "type": "string" @@ -1660,7 +1660,7 @@ } } }, - "revision": "20220224", + "revision": "20220303", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -4993,7 +4993,7 @@ "type": "object" }, "GoogleTypeDate": { - "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "GoogleTypeDate", "properties": { "day": { diff --git a/retail/v2alpha/retail-gen.go b/retail/v2alpha/retail-gen.go index 758d8f6f2ee..daa0463857f 100644 --- a/retail/v2alpha/retail-gen.go +++ b/retail/v2alpha/retail-gen.go @@ -6820,11 +6820,12 @@ func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { // a birthday. The time of day and time zone are either specified // elsewhere or are insignificant. The date is relative to the Gregorian // Calendar. This can represent one of the following: * A full date, -// with non-zero year, month, and day values * A month and day, with a -// zero year (e.g., an anniversary) * A year on its own, with a zero -// month and a zero day * A year and month, with a zero day (e.g., a -// credit card expiration date) Related types: * google.type.TimeOfDay * -// google.type.DateTime * google.protobuf.Timestamp +// with non-zero year, month, and day values. * A month and day, with a +// zero year (for example, an anniversary). * A year on its own, with a +// zero month and a zero day. * A year and month, with a zero day (for +// example, a credit card expiration date). Related types: * +// google.type.TimeOfDay * google.type.DateTime * +// google.protobuf.Timestamp type GoogleTypeDate struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the @@ -6912,11 +6913,14 @@ func (c *ProjectsLocationsCatalogsCompleteQueryCall) DeviceType(deviceType strin return c } -// LanguageCodes sets the optional parameter "languageCodes": The list -// of languages of the query. This is the BCP-47 language code, such as -// "en-US" or "sr-Latn". For more information, see Tags for Identifying -// Languages (https://tools.ietf.org/html/bcp47). The maximum number of -// allowed characters is 255. Only "en-US" is currently supported. +// LanguageCodes sets the optional parameter "languageCodes": The +// language filters applied to the output suggestions. If set, it should +// contain the language of the query. If not set, suggestions are +// returned without considering language restrictions. This is the +// BCP-47 language code, such as "en-US" or "sr-Latn". For more +// information, see Tags for Identifying Languages +// (https://tools.ietf.org/html/bcp47). The maximum number of language +// codes is 3. func (c *ProjectsLocationsCatalogsCompleteQueryCall) LanguageCodes(languageCodes ...string) *ProjectsLocationsCatalogsCompleteQueryCall { c.urlParams_.SetMulti("languageCodes", append([]string{}, languageCodes...)) return c @@ -7079,7 +7083,7 @@ func (c *ProjectsLocationsCatalogsCompleteQueryCall) Do(opts ...googleapi.CallOp // "type": "string" // }, // "languageCodes": { - // "description": "The list of languages of the query. This is the BCP-47 language code, such as \"en-US\" or \"sr-Latn\". For more information, see [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). The maximum number of allowed characters is 255. Only \"en-US\" is currently supported.", + // "description": "The language filters applied to the output suggestions. If set, it should contain the language of the query. If not set, suggestions are returned without considering language restrictions. This is the BCP-47 language code, such as \"en-US\" or \"sr-Latn\". For more information, see [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). The maximum number of language codes is 3.", // "location": "query", // "repeated": true, // "type": "string" diff --git a/retail/v2beta/retail-api.json b/retail/v2beta/retail-api.json index 83cef89e7af..5ffe06e8266 100644 --- a/retail/v2beta/retail-api.json +++ b/retail/v2beta/retail-api.json @@ -138,7 +138,7 @@ "type": "string" }, "languageCodes": { - "description": "The list of languages of the query. This is the BCP-47 language code, such as \"en-US\" or \"sr-Latn\". For more information, see [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). The maximum number of allowed characters is 255. Only \"en-US\" is currently supported.", + "description": "The language filters applied to the output suggestions. If set, it should contain the language of the query. If not set, suggestions are returned without considering language restrictions. This is the BCP-47 language code, such as \"en-US\" or \"sr-Latn\". For more information, see [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). The maximum number of language codes is 3.", "location": "query", "repeated": true, "type": "string" @@ -1599,7 +1599,7 @@ } } }, - "revision": "20220224", + "revision": "20220303", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -4787,7 +4787,7 @@ "type": "object" }, "GoogleTypeDate": { - "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day, with a zero year (e.g., an anniversary) * A year on its own, with a zero month and a zero day * A year and month, with a zero day (e.g., a credit card expiration date) Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", + "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp", "id": "GoogleTypeDate", "properties": { "day": { diff --git a/retail/v2beta/retail-gen.go b/retail/v2beta/retail-gen.go index 9019f55a30a..ebbd940bbd9 100644 --- a/retail/v2beta/retail-gen.go +++ b/retail/v2beta/retail-gen.go @@ -6553,11 +6553,12 @@ func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { // a birthday. The time of day and time zone are either specified // elsewhere or are insignificant. The date is relative to the Gregorian // Calendar. This can represent one of the following: * A full date, -// with non-zero year, month, and day values * A month and day, with a -// zero year (e.g., an anniversary) * A year on its own, with a zero -// month and a zero day * A year and month, with a zero day (e.g., a -// credit card expiration date) Related types: * google.type.TimeOfDay * -// google.type.DateTime * google.protobuf.Timestamp +// with non-zero year, month, and day values. * A month and day, with a +// zero year (for example, an anniversary). * A year on its own, with a +// zero month and a zero day. * A year and month, with a zero day (for +// example, a credit card expiration date). Related types: * +// google.type.TimeOfDay * google.type.DateTime * +// google.protobuf.Timestamp type GoogleTypeDate struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the @@ -6645,11 +6646,14 @@ func (c *ProjectsLocationsCatalogsCompleteQueryCall) DeviceType(deviceType strin return c } -// LanguageCodes sets the optional parameter "languageCodes": The list -// of languages of the query. This is the BCP-47 language code, such as -// "en-US" or "sr-Latn". For more information, see Tags for Identifying -// Languages (https://tools.ietf.org/html/bcp47). The maximum number of -// allowed characters is 255. Only "en-US" is currently supported. +// LanguageCodes sets the optional parameter "languageCodes": The +// language filters applied to the output suggestions. If set, it should +// contain the language of the query. If not set, suggestions are +// returned without considering language restrictions. This is the +// BCP-47 language code, such as "en-US" or "sr-Latn". For more +// information, see Tags for Identifying Languages +// (https://tools.ietf.org/html/bcp47). The maximum number of language +// codes is 3. func (c *ProjectsLocationsCatalogsCompleteQueryCall) LanguageCodes(languageCodes ...string) *ProjectsLocationsCatalogsCompleteQueryCall { c.urlParams_.SetMulti("languageCodes", append([]string{}, languageCodes...)) return c @@ -6812,7 +6816,7 @@ func (c *ProjectsLocationsCatalogsCompleteQueryCall) Do(opts ...googleapi.CallOp // "type": "string" // }, // "languageCodes": { - // "description": "The list of languages of the query. This is the BCP-47 language code, such as \"en-US\" or \"sr-Latn\". For more information, see [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). The maximum number of allowed characters is 255. Only \"en-US\" is currently supported.", + // "description": "The language filters applied to the output suggestions. If set, it should contain the language of the query. If not set, suggestions are returned without considering language restrictions. This is the BCP-47 language code, such as \"en-US\" or \"sr-Latn\". For more information, see [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). The maximum number of language codes is 3.", // "location": "query", // "repeated": true, // "type": "string" diff --git a/run/v2/run-api.json b/run/v2/run-api.json index ab50655dbe1..2af259fff8b 100644 --- a/run/v2/run-api.json +++ b/run/v2/run-api.json @@ -235,7 +235,7 @@ }, "path": "v2/{+parent}/services", "request": { - "$ref": "GoogleCloudRunOpV2Service" + "$ref": "GoogleCloudRunV2Service" }, "response": { "$ref": "GoogleLongrunningOperation" @@ -298,7 +298,7 @@ }, "path": "v2/{+name}", "response": { - "$ref": "GoogleCloudRunOpV2Service" + "$ref": "GoogleCloudRunV2Service" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -370,7 +370,7 @@ }, "path": "v2/{+parent}/services", "response": { - "$ref": "GoogleCloudRunOpV2ListServicesResponse" + "$ref": "GoogleCloudRunV2ListServicesResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -411,7 +411,7 @@ }, "path": "v2/{+name}", "request": { - "$ref": "GoogleCloudRunOpV2Service" + "$ref": "GoogleCloudRunV2Service" }, "response": { "$ref": "GoogleLongrunningOperation" @@ -534,7 +534,7 @@ }, "path": "v2/{+name}", "response": { - "$ref": "GoogleCloudRunOpV2Revision" + "$ref": "GoogleCloudRunV2Revision" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -575,7 +575,7 @@ }, "path": "v2/{+parent}/revisions", "response": { - "$ref": "GoogleCloudRunOpV2ListRevisionsResponse" + "$ref": "GoogleCloudRunV2ListRevisionsResponse" }, "scopes": [ "https://www.googleapis.com/auth/cloud-platform" @@ -590,12 +590,12 @@ } } }, - "revision": "20220218", + "revision": "20220304", "rootUrl": "https://run.googleapis.com/", "schemas": { - "GoogleCloudRunOpV2BinaryAuthorization": { + "GoogleCloudRunV2BinaryAuthorization": { "description": "Settings for Binary Authorization feature.", - "id": "GoogleCloudRunOpV2BinaryAuthorization", + "id": "GoogleCloudRunV2BinaryAuthorization", "properties": { "breakglassJustification": { "description": "If present, indicates to use Breakglass using this justification. If use_default is False, then it must be empty. For more information on breakglass, see https://cloud.google.com/binary-authorization/docs/using-breakglass", @@ -608,9 +608,9 @@ }, "type": "object" }, - "GoogleCloudRunOpV2CloudSqlInstance": { + "GoogleCloudRunV2CloudSqlInstance": { "description": "Represents a specific Cloud SQL instance.", - "id": "GoogleCloudRunOpV2CloudSqlInstance", + "id": "GoogleCloudRunV2CloudSqlInstance", "properties": { "connections": { "description": "The Cloud SQL instance connection names, as can be found in https://console.cloud.google.com/sql/instances. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run. Format: {project}:{location}:{instance}", @@ -622,9 +622,9 @@ }, "type": "object" }, - "GoogleCloudRunOpV2Condition": { + "GoogleCloudRunV2Condition": { "description": "Defines a status condition for a resource.", - "id": "GoogleCloudRunOpV2Condition", + "id": "GoogleCloudRunV2Condition", "properties": { "domainMappingReason": { "description": "A reason for the domain mapping condition.", @@ -808,9 +808,9 @@ }, "type": "object" }, - "GoogleCloudRunOpV2Container": { + "GoogleCloudRunV2Container": { "description": "A single application container. This specifies both the container to run, the command to run in the container and the arguments to supply to it. Note that additional arguments may be supplied by the system to the container at runtime.", - "id": "GoogleCloudRunOpV2Container", + "id": "GoogleCloudRunV2Container", "properties": { "args": { "description": "Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell", @@ -829,7 +829,7 @@ "env": { "description": "List of environment variables to set in the container.", "items": { - "$ref": "GoogleCloudRunOpV2EnvVar" + "$ref": "GoogleCloudRunV2EnvVar" }, "type": "array" }, @@ -844,27 +844,27 @@ "ports": { "description": "List of ports to expose from the container. Only a single port can be specified. The specified ports must be listening on all interfaces (0.0.0.0) within the container to be accessible. If omitted, a port number will be chosen and passed to the container through the PORT environment variable for the container to listen on.", "items": { - "$ref": "GoogleCloudRunOpV2ContainerPort" + "$ref": "GoogleCloudRunV2ContainerPort" }, "type": "array" }, "resources": { - "$ref": "GoogleCloudRunOpV2ResourceRequirements", + "$ref": "GoogleCloudRunV2ResourceRequirements", "description": "Compute Resource requirements by this container. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources" }, "volumeMounts": { "description": "Volume to mount into the container's filesystem.", "items": { - "$ref": "GoogleCloudRunOpV2VolumeMount" + "$ref": "GoogleCloudRunV2VolumeMount" }, "type": "array" } }, "type": "object" }, - "GoogleCloudRunOpV2ContainerPort": { + "GoogleCloudRunV2ContainerPort": { "description": "ContainerPort represents a network port in a single container.", - "id": "GoogleCloudRunOpV2ContainerPort", + "id": "GoogleCloudRunV2ContainerPort", "properties": { "containerPort": { "description": "Port number the container listens on. This must be a valid TCP port number, 0 \u003c container_port \u003c 65536.", @@ -878,9 +878,9 @@ }, "type": "object" }, - "GoogleCloudRunOpV2EnvVar": { + "GoogleCloudRunV2EnvVar": { "description": "EnvVar represents an environment variable present in a Container.", - "id": "GoogleCloudRunOpV2EnvVar", + "id": "GoogleCloudRunV2EnvVar", "properties": { "name": { "description": "Required. Name of the environment variable. Must be a C_IDENTIFIER, and mnay not exceed 32768 characters.", @@ -891,26 +891,26 @@ "type": "string" }, "valueSource": { - "$ref": "GoogleCloudRunOpV2EnvVarSource", + "$ref": "GoogleCloudRunV2EnvVarSource", "description": "Source for the environment variable's value." } }, "type": "object" }, - "GoogleCloudRunOpV2EnvVarSource": { + "GoogleCloudRunV2EnvVarSource": { "description": "EnvVarSource represents a source for the value of an EnvVar.", - "id": "GoogleCloudRunOpV2EnvVarSource", + "id": "GoogleCloudRunV2EnvVarSource", "properties": { "secretKeyRef": { - "$ref": "GoogleCloudRunOpV2SecretKeySelector", + "$ref": "GoogleCloudRunV2SecretKeySelector", "description": "Selects a secret and a specific version from Cloud Secret Manager." } }, "type": "object" }, - "GoogleCloudRunOpV2ListRevisionsResponse": { + "GoogleCloudRunV2ListRevisionsResponse": { "description": "Response message containing a list of Revisions.", - "id": "GoogleCloudRunOpV2ListRevisionsResponse", + "id": "GoogleCloudRunV2ListRevisionsResponse", "properties": { "nextPageToken": { "description": "A token indicating there are more items than page_size. Use it in the next ListRevisions request to continue.", @@ -919,16 +919,16 @@ "revisions": { "description": "The resulting list of Revisions.", "items": { - "$ref": "GoogleCloudRunOpV2Revision" + "$ref": "GoogleCloudRunV2Revision" }, "type": "array" } }, "type": "object" }, - "GoogleCloudRunOpV2ListServicesResponse": { + "GoogleCloudRunV2ListServicesResponse": { "description": "Response message containing a list of Services.", - "id": "GoogleCloudRunOpV2ListServicesResponse", + "id": "GoogleCloudRunV2ListServicesResponse", "properties": { "nextPageToken": { "description": "A token indicating there are more items than page_size. Use it in the next ListServices request to continue.", @@ -937,16 +937,16 @@ "services": { "description": "The resulting list of Services.", "items": { - "$ref": "GoogleCloudRunOpV2Service" + "$ref": "GoogleCloudRunV2Service" }, "type": "array" } }, "type": "object" }, - "GoogleCloudRunOpV2ResourceRequirements": { + "GoogleCloudRunV2ResourceRequirements": { "description": "ResourceRequirements describes the compute resource requirements.", - "id": "GoogleCloudRunOpV2ResourceRequirements", + "id": "GoogleCloudRunV2ResourceRequirements", "properties": { "cpuIdle": { "description": "Determines whether CPU should be throttled or not outside of requests.", @@ -962,9 +962,9 @@ }, "type": "object" }, - "GoogleCloudRunOpV2Revision": { + "GoogleCloudRunV2Revision": { "description": "A Revision is an immutable snapshot of code and configuration. A Revision references a container image. Revisions are only created by updates to its parent Service.", - "id": "GoogleCloudRunOpV2Revision", + "id": "GoogleCloudRunV2Revision", "properties": { "annotations": { "additionalProperties": { @@ -976,7 +976,7 @@ "conditions": { "description": "Output only. The Condition of this Revision, containing its readiness status, and detailed error information in case it did not reach a serving state.", "items": { - "$ref": "GoogleCloudRunOpV2Condition" + "$ref": "GoogleCloudRunV2Condition" }, "readOnly": true, "type": "array" @@ -993,7 +993,7 @@ "containers": { "description": "Holds the single container that defines the unit of execution for this Revision.", "items": { - "$ref": "GoogleCloudRunOpV2Container" + "$ref": "GoogleCloudRunV2Container" }, "type": "array" }, @@ -1097,7 +1097,7 @@ "type": "boolean" }, "scaling": { - "$ref": "GoogleCloudRunOpV2RevisionScaling", + "$ref": "GoogleCloudRunV2RevisionScaling", "description": "Scaling settings for this revision." }, "service": { @@ -1128,20 +1128,20 @@ "volumes": { "description": "A list of Volumes to make available to containers.", "items": { - "$ref": "GoogleCloudRunOpV2Volume" + "$ref": "GoogleCloudRunV2Volume" }, "type": "array" }, "vpcAccess": { - "$ref": "GoogleCloudRunOpV2VpcAccess", + "$ref": "GoogleCloudRunV2VpcAccess", "description": "VPC Access configuration for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc." } }, "type": "object" }, - "GoogleCloudRunOpV2RevisionScaling": { + "GoogleCloudRunV2RevisionScaling": { "description": "Settings for revision-level scaling settings.", - "id": "GoogleCloudRunOpV2RevisionScaling", + "id": "GoogleCloudRunV2RevisionScaling", "properties": { "maxInstanceCount": { "description": "Maximum number of serving instances that this resource should have.", @@ -1156,9 +1156,9 @@ }, "type": "object" }, - "GoogleCloudRunOpV2RevisionTemplate": { + "GoogleCloudRunV2RevisionTemplate": { "description": "RevisionTemplate describes the data a revision should have when created from a template.", - "id": "GoogleCloudRunOpV2RevisionTemplate", + "id": "GoogleCloudRunV2RevisionTemplate", "properties": { "annotations": { "additionalProperties": { @@ -1179,7 +1179,7 @@ "containers": { "description": "Holds the single container that defines the unit of execution for this Revision.", "items": { - "$ref": "GoogleCloudRunOpV2Container" + "$ref": "GoogleCloudRunV2Container" }, "type": "array" }, @@ -1213,7 +1213,7 @@ "type": "string" }, "scaling": { - "$ref": "GoogleCloudRunOpV2RevisionScaling", + "$ref": "GoogleCloudRunV2RevisionScaling", "description": "Scaling settings for this Revision." }, "serviceAccount": { @@ -1228,20 +1228,20 @@ "volumes": { "description": "A list of Volumes to make available to containers.", "items": { - "$ref": "GoogleCloudRunOpV2Volume" + "$ref": "GoogleCloudRunV2Volume" }, "type": "array" }, "vpcAccess": { - "$ref": "GoogleCloudRunOpV2VpcAccess", + "$ref": "GoogleCloudRunV2VpcAccess", "description": "VPC Access configuration to use for this Revision. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc." } }, "type": "object" }, - "GoogleCloudRunOpV2SecretKeySelector": { + "GoogleCloudRunV2SecretKeySelector": { "description": "SecretEnvVarSource represents a source for the value of an EnvVar.", - "id": "GoogleCloudRunOpV2SecretKeySelector", + "id": "GoogleCloudRunV2SecretKeySelector", "properties": { "secret": { "description": "Required. The name of the secret in Cloud Secret Manager. Format: {secret_name} if the secret is in the same project. projects/{project}/secrets/{secret_name} if the secret is in a different project.", @@ -1254,9 +1254,9 @@ }, "type": "object" }, - "GoogleCloudRunOpV2SecretVolumeSource": { + "GoogleCloudRunV2SecretVolumeSource": { "description": "The secret's value will be presented as the content of a file whose name is defined in the item path. If no items are defined, the name of the file is the secret.", - "id": "GoogleCloudRunOpV2SecretVolumeSource", + "id": "GoogleCloudRunV2SecretVolumeSource", "properties": { "defaultMode": { "description": "Integer representation of mode bits to use on created files by default. Must be a value between 0000 and 0777 (octal), defaulting to 0644. Directories within the path are not affected by this setting. Notes * Internally, a umask of 0222 will be applied to any non-zero value. * This is an integer representation of the mode bits. So, the octal integer value should look exactly as the chmod numeric notation with a leading zero. Some examples: for chmod 777 (a=rwx), set to 0777 (octal) or 511 (base-10). For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). * This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. This might be in conflict with other options that affect the file mode, like fsGroup, and as a result, other mode bits could be set.", @@ -1266,7 +1266,7 @@ "items": { "description": "If unspecified, the volume will expose a file whose name is the secret, relative to VolumeMount.mount_path. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a path and a version.", "items": { - "$ref": "GoogleCloudRunOpV2VersionToPath" + "$ref": "GoogleCloudRunV2VersionToPath" }, "type": "array" }, @@ -1277,9 +1277,9 @@ }, "type": "object" }, - "GoogleCloudRunOpV2Service": { + "GoogleCloudRunV2Service": { "description": "Service acts as a top-level container that manages a set of configurations and revision templates which implement a network service. Service exists to provide a singular abstraction which can be access controlled, reasoned about, and which encapsulates software lifecycle decisions such as rollout policy and team resource ownership.", - "id": "GoogleCloudRunOpV2Service", + "id": "GoogleCloudRunV2Service", "properties": { "annotations": { "additionalProperties": { @@ -1289,7 +1289,7 @@ "type": "object" }, "binaryAuthorization": { - "$ref": "GoogleCloudRunOpV2BinaryAuthorization", + "$ref": "GoogleCloudRunV2BinaryAuthorization", "description": "Settings for the Binary Authorization feature." }, "client": { @@ -1303,7 +1303,7 @@ "conditions": { "description": "Output only. The Conditions of all other associated sub-resources. They contain additional diagnostics information in case the Service does not reach its Serving state. See comments in `reconciling` for additional information on reconciliation process in Cloud Run.", "items": { - "$ref": "GoogleCloudRunOpV2Condition" + "$ref": "GoogleCloudRunV2Condition" }, "readOnly": true, "type": "array" @@ -1424,25 +1424,25 @@ "type": "boolean" }, "template": { - "$ref": "GoogleCloudRunOpV2RevisionTemplate", + "$ref": "GoogleCloudRunV2RevisionTemplate", "description": "Required. The template used to create revisions for this Service." }, "terminalCondition": { - "$ref": "GoogleCloudRunOpV2Condition", + "$ref": "GoogleCloudRunV2Condition", "description": "Output only. The Condition of this Service, containing its readiness status, and detailed error information in case it did not reach a serving state. See comments in `reconciling` for additional information on reconciliation process in Cloud Run.", "readOnly": true }, "traffic": { "description": "Specifies how to distribute traffic over a collection of Revisions belonging to the Service. If traffic is empty or not provided, defaults to 100% traffic to the latest `Ready` Revision.", "items": { - "$ref": "GoogleCloudRunOpV2TrafficTarget" + "$ref": "GoogleCloudRunV2TrafficTarget" }, "type": "array" }, "trafficStatuses": { "description": "Output only. Detailed status information for corresponding traffic targets. See comments in `reconciling` for additional information on reconciliation process in Cloud Run.", "items": { - "$ref": "GoogleCloudRunOpV2TrafficTargetStatus" + "$ref": "GoogleCloudRunV2TrafficTargetStatus" }, "readOnly": true, "type": "array" @@ -1466,9 +1466,9 @@ }, "type": "object" }, - "GoogleCloudRunOpV2TrafficTarget": { + "GoogleCloudRunV2TrafficTarget": { "description": "Holds a single traffic routing entry for the Service. Allocations can be done to a specific Revision name, or pointing to the latest Ready Revision.", - "id": "GoogleCloudRunOpV2TrafficTarget", + "id": "GoogleCloudRunV2TrafficTarget", "properties": { "percent": { "description": "Specifies percent of the traffic to this Revision. This defaults to zero if unspecified.", @@ -1500,9 +1500,9 @@ }, "type": "object" }, - "GoogleCloudRunOpV2TrafficTargetStatus": { + "GoogleCloudRunV2TrafficTargetStatus": { "description": "Represents the observed state of a single `TrafficTarget` entry.", - "id": "GoogleCloudRunOpV2TrafficTargetStatus", + "id": "GoogleCloudRunV2TrafficTargetStatus", "properties": { "percent": { "description": "Specifies percent of the traffic to this Revision.", @@ -1538,9 +1538,9 @@ }, "type": "object" }, - "GoogleCloudRunOpV2VersionToPath": { + "GoogleCloudRunV2VersionToPath": { "description": "VersionToPath maps a specific version of a secret to a relative file to mount to, relative to VolumeMount's mount_path.", - "id": "GoogleCloudRunOpV2VersionToPath", + "id": "GoogleCloudRunV2VersionToPath", "properties": { "mode": { "description": "Integer octal mode bits to use on this file, must be a value between 01 and 0777 (octal). If 0 or not set, the Volume's default mode will be used. Notes * Internally, a umask of 0222 will be applied to any non-zero value. * This is an integer representation of the mode bits. So, the octal integer value should look exactly as the chmod numeric notation with a leading zero. Some examples: for chmod 777 (a=rwx), set to 0777 (octal) or 511 (base-10). For chmod 640 (u=rw,g=r), set to 0640 (octal) or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or 493 (base-10). * This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", @@ -1558,12 +1558,12 @@ }, "type": "object" }, - "GoogleCloudRunOpV2Volume": { + "GoogleCloudRunV2Volume": { "description": "Volume represents a named volume in a container.", - "id": "GoogleCloudRunOpV2Volume", + "id": "GoogleCloudRunV2Volume", "properties": { "cloudSqlInstance": { - "$ref": "GoogleCloudRunOpV2CloudSqlInstance", + "$ref": "GoogleCloudRunV2CloudSqlInstance", "description": "For Cloud SQL volumes, contains the specific instances that should be mounted. Visit https://cloud.google.com/sql/docs/mysql/connect-run for more information on how to connect Cloud SQL and Cloud Run." }, "name": { @@ -1571,15 +1571,15 @@ "type": "string" }, "secret": { - "$ref": "GoogleCloudRunOpV2SecretVolumeSource", + "$ref": "GoogleCloudRunV2SecretVolumeSource", "description": "Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret" } }, "type": "object" }, - "GoogleCloudRunOpV2VolumeMount": { + "GoogleCloudRunV2VolumeMount": { "description": "VolumeMount describes a mounting of a Volume within a container.", - "id": "GoogleCloudRunOpV2VolumeMount", + "id": "GoogleCloudRunV2VolumeMount", "properties": { "mountPath": { "description": "Required. Path within the container at which the volume should be mounted. Must not contain ':'. For Cloud SQL volumes, it can be left empty, or must otherwise be `/cloudsql`. All instances defined in the Volume will be available as `/cloudsql/[instance]`. For more information on Cloud SQL volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run", @@ -1592,9 +1592,9 @@ }, "type": "object" }, - "GoogleCloudRunOpV2VpcAccess": { + "GoogleCloudRunV2VpcAccess": { "description": "VPC Access settings. For more information on creating a VPC Connector, visit https://cloud.google.com/vpc/docs/configure-serverless-vpc-access For information on how to configure Cloud Run with an existing VPC Connector, visit https://cloud.google.com/run/docs/configuring/connecting-vpc", - "id": "GoogleCloudRunOpV2VpcAccess", + "id": "GoogleCloudRunV2VpcAccess", "properties": { "connector": { "description": "VPC Access connector name. Format: projects/{project}/locations/{location}/connectors/{connector}", diff --git a/run/v2/run-gen.go b/run/v2/run-gen.go index 5e918622e48..d8a65164980 100644 --- a/run/v2/run-gen.go +++ b/run/v2/run-gen.go @@ -194,9 +194,9 @@ type ProjectsLocationsServicesRevisionsService struct { s *Service } -// GoogleCloudRunOpV2BinaryAuthorization: Settings for Binary +// GoogleCloudRunV2BinaryAuthorization: Settings for Binary // Authorization feature. -type GoogleCloudRunOpV2BinaryAuthorization struct { +type GoogleCloudRunV2BinaryAuthorization struct { // BreakglassJustification: If present, indicates to use Breakglass // using this justification. If use_default is False, then it must be // empty. For more information on breakglass, see @@ -227,15 +227,15 @@ type GoogleCloudRunOpV2BinaryAuthorization struct { NullFields []string `json:"-"` } -func (s *GoogleCloudRunOpV2BinaryAuthorization) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudRunOpV2BinaryAuthorization +func (s *GoogleCloudRunV2BinaryAuthorization) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRunV2BinaryAuthorization raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRunOpV2CloudSqlInstance: Represents a specific Cloud SQL +// GoogleCloudRunV2CloudSqlInstance: Represents a specific Cloud SQL // instance. -type GoogleCloudRunOpV2CloudSqlInstance struct { +type GoogleCloudRunV2CloudSqlInstance struct { // Connections: The Cloud SQL instance connection names, as can be found // in https://console.cloud.google.com/sql/instances. Visit // https://cloud.google.com/sql/docs/mysql/connect-run for more @@ -260,15 +260,14 @@ type GoogleCloudRunOpV2CloudSqlInstance struct { NullFields []string `json:"-"` } -func (s *GoogleCloudRunOpV2CloudSqlInstance) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudRunOpV2CloudSqlInstance +func (s *GoogleCloudRunV2CloudSqlInstance) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRunV2CloudSqlInstance raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRunOpV2Condition: Defines a status condition for a -// resource. -type GoogleCloudRunOpV2Condition struct { +// GoogleCloudRunV2Condition: Defines a status condition for a resource. +type GoogleCloudRunV2Condition struct { // DomainMappingReason: A reason for the domain mapping condition. // // Possible values: @@ -424,17 +423,17 @@ type GoogleCloudRunOpV2Condition struct { NullFields []string `json:"-"` } -func (s *GoogleCloudRunOpV2Condition) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudRunOpV2Condition +func (s *GoogleCloudRunV2Condition) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRunV2Condition raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRunOpV2Container: A single application container. This +// GoogleCloudRunV2Container: A single application container. This // specifies both the container to run, the command to run in the // container and the arguments to supply to it. Note that additional // arguments may be supplied by the system to the container at runtime. -type GoogleCloudRunOpV2Container struct { +type GoogleCloudRunV2Container struct { // Args: Arguments to the entrypoint. The docker image's CMD is used if // this is not provided. Variable references $(VAR_NAME) are expanded // using the container's environment. If a variable cannot be resolved, @@ -457,7 +456,7 @@ type GoogleCloudRunOpV2Container struct { Command []string `json:"command,omitempty"` // Env: List of environment variables to set in the container. - Env []*GoogleCloudRunOpV2EnvVar `json:"env,omitempty"` + Env []*GoogleCloudRunV2EnvVar `json:"env,omitempty"` // Image: Required. URL of the Container image in Google Container // Registry or Docker More info: @@ -472,15 +471,15 @@ type GoogleCloudRunOpV2Container struct { // interfaces (0.0.0.0) within the container to be accessible. If // omitted, a port number will be chosen and passed to the container // through the PORT environment variable for the container to listen on. - Ports []*GoogleCloudRunOpV2ContainerPort `json:"ports,omitempty"` + Ports []*GoogleCloudRunV2ContainerPort `json:"ports,omitempty"` // Resources: Compute Resource requirements by this container. More // info: // https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - Resources *GoogleCloudRunOpV2ResourceRequirements `json:"resources,omitempty"` + Resources *GoogleCloudRunV2ResourceRequirements `json:"resources,omitempty"` // VolumeMounts: Volume to mount into the container's filesystem. - VolumeMounts []*GoogleCloudRunOpV2VolumeMount `json:"volumeMounts,omitempty"` + VolumeMounts []*GoogleCloudRunV2VolumeMount `json:"volumeMounts,omitempty"` // ForceSendFields is a list of field names (e.g. "Args") to // unconditionally include in API requests. By default, fields with @@ -499,15 +498,15 @@ type GoogleCloudRunOpV2Container struct { NullFields []string `json:"-"` } -func (s *GoogleCloudRunOpV2Container) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudRunOpV2Container +func (s *GoogleCloudRunV2Container) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRunV2Container raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRunOpV2ContainerPort: ContainerPort represents a network +// GoogleCloudRunV2ContainerPort: ContainerPort represents a network // port in a single container. -type GoogleCloudRunOpV2ContainerPort struct { +type GoogleCloudRunV2ContainerPort struct { // ContainerPort: Port number the container listens on. This must be a // valid TCP port number, 0 < container_port < 65536. ContainerPort int64 `json:"containerPort,omitempty"` @@ -533,15 +532,15 @@ type GoogleCloudRunOpV2ContainerPort struct { NullFields []string `json:"-"` } -func (s *GoogleCloudRunOpV2ContainerPort) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudRunOpV2ContainerPort +func (s *GoogleCloudRunV2ContainerPort) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRunV2ContainerPort raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRunOpV2EnvVar: EnvVar represents an environment variable +// GoogleCloudRunV2EnvVar: EnvVar represents an environment variable // present in a Container. -type GoogleCloudRunOpV2EnvVar struct { +type GoogleCloudRunV2EnvVar struct { // Name: Required. Name of the environment variable. Must be a // C_IDENTIFIER, and mnay not exceed 32768 characters. Name string `json:"name,omitempty"` @@ -556,7 +555,7 @@ type GoogleCloudRunOpV2EnvVar struct { Value string `json:"value,omitempty"` // ValueSource: Source for the environment variable's value. - ValueSource *GoogleCloudRunOpV2EnvVarSource `json:"valueSource,omitempty"` + ValueSource *GoogleCloudRunV2EnvVarSource `json:"valueSource,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to // unconditionally include in API requests. By default, fields with @@ -575,18 +574,18 @@ type GoogleCloudRunOpV2EnvVar struct { NullFields []string `json:"-"` } -func (s *GoogleCloudRunOpV2EnvVar) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudRunOpV2EnvVar +func (s *GoogleCloudRunV2EnvVar) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRunV2EnvVar raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRunOpV2EnvVarSource: EnvVarSource represents a source for +// GoogleCloudRunV2EnvVarSource: EnvVarSource represents a source for // the value of an EnvVar. -type GoogleCloudRunOpV2EnvVarSource struct { +type GoogleCloudRunV2EnvVarSource struct { // SecretKeyRef: Selects a secret and a specific version from Cloud // Secret Manager. - SecretKeyRef *GoogleCloudRunOpV2SecretKeySelector `json:"secretKeyRef,omitempty"` + SecretKeyRef *GoogleCloudRunV2SecretKeySelector `json:"secretKeyRef,omitempty"` // ForceSendFields is a list of field names (e.g. "SecretKeyRef") to // unconditionally include in API requests. By default, fields with @@ -605,21 +604,21 @@ type GoogleCloudRunOpV2EnvVarSource struct { NullFields []string `json:"-"` } -func (s *GoogleCloudRunOpV2EnvVarSource) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudRunOpV2EnvVarSource +func (s *GoogleCloudRunV2EnvVarSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRunV2EnvVarSource raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRunOpV2ListRevisionsResponse: Response message containing -// a list of Revisions. -type GoogleCloudRunOpV2ListRevisionsResponse struct { +// GoogleCloudRunV2ListRevisionsResponse: Response message containing a +// list of Revisions. +type GoogleCloudRunV2ListRevisionsResponse struct { // NextPageToken: A token indicating there are more items than // page_size. Use it in the next ListRevisions request to continue. NextPageToken string `json:"nextPageToken,omitempty"` // Revisions: The resulting list of Revisions. - Revisions []*GoogleCloudRunOpV2Revision `json:"revisions,omitempty"` + Revisions []*GoogleCloudRunV2Revision `json:"revisions,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. @@ -642,21 +641,21 @@ type GoogleCloudRunOpV2ListRevisionsResponse struct { NullFields []string `json:"-"` } -func (s *GoogleCloudRunOpV2ListRevisionsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudRunOpV2ListRevisionsResponse +func (s *GoogleCloudRunV2ListRevisionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRunV2ListRevisionsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRunOpV2ListServicesResponse: Response message containing a +// GoogleCloudRunV2ListServicesResponse: Response message containing a // list of Services. -type GoogleCloudRunOpV2ListServicesResponse struct { +type GoogleCloudRunV2ListServicesResponse struct { // NextPageToken: A token indicating there are more items than // page_size. Use it in the next ListServices request to continue. NextPageToken string `json:"nextPageToken,omitempty"` // Services: The resulting list of Services. - Services []*GoogleCloudRunOpV2Service `json:"services,omitempty"` + Services []*GoogleCloudRunV2Service `json:"services,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. @@ -679,15 +678,15 @@ type GoogleCloudRunOpV2ListServicesResponse struct { NullFields []string `json:"-"` } -func (s *GoogleCloudRunOpV2ListServicesResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudRunOpV2ListServicesResponse +func (s *GoogleCloudRunV2ListServicesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRunV2ListServicesResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRunOpV2ResourceRequirements: ResourceRequirements -// describes the compute resource requirements. -type GoogleCloudRunOpV2ResourceRequirements struct { +// GoogleCloudRunV2ResourceRequirements: ResourceRequirements describes +// the compute resource requirements. +type GoogleCloudRunV2ResourceRequirements struct { // CpuIdle: Determines whether CPU should be throttled or not outside of // requests. CpuIdle bool `json:"cpuIdle,omitempty"` @@ -716,23 +715,23 @@ type GoogleCloudRunOpV2ResourceRequirements struct { NullFields []string `json:"-"` } -func (s *GoogleCloudRunOpV2ResourceRequirements) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudRunOpV2ResourceRequirements +func (s *GoogleCloudRunV2ResourceRequirements) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRunV2ResourceRequirements raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRunOpV2Revision: A Revision is an immutable snapshot of -// code and configuration. A Revision references a container image. -// Revisions are only created by updates to its parent Service. -type GoogleCloudRunOpV2Revision struct { +// GoogleCloudRunV2Revision: A Revision is an immutable snapshot of code +// and configuration. A Revision references a container image. Revisions +// are only created by updates to its parent Service. +type GoogleCloudRunV2Revision struct { // Annotations: KRM-style annotations for the resource. Annotations map[string]string `json:"annotations,omitempty"` // Conditions: Output only. The Condition of this Revision, containing // its readiness status, and detailed error information in case it did // not reach a serving state. - Conditions []*GoogleCloudRunOpV2Condition `json:"conditions,omitempty"` + Conditions []*GoogleCloudRunV2Condition `json:"conditions,omitempty"` // Confidential: Indicates whether Confidential Cloud Run is enabled in // this Revision. @@ -744,7 +743,7 @@ type GoogleCloudRunOpV2Revision struct { // Containers: Holds the single container that defines the unit of // execution for this Revision. - Containers []*GoogleCloudRunOpV2Container `json:"containers,omitempty"` + Containers []*GoogleCloudRunV2Container `json:"containers,omitempty"` // CreateTime: Output only. The creation time. CreateTime string `json:"createTime,omitempty"` @@ -853,7 +852,7 @@ type GoogleCloudRunOpV2Revision struct { Reconciling bool `json:"reconciling,omitempty"` // Scaling: Scaling settings for this revision. - Scaling *GoogleCloudRunOpV2RevisionScaling `json:"scaling,omitempty"` + Scaling *GoogleCloudRunV2RevisionScaling `json:"scaling,omitempty"` // Service: Output only. The name of the parent service. Service string `json:"service,omitempty"` @@ -876,12 +875,12 @@ type GoogleCloudRunOpV2Revision struct { UpdateTime string `json:"updateTime,omitempty"` // Volumes: A list of Volumes to make available to containers. - Volumes []*GoogleCloudRunOpV2Volume `json:"volumes,omitempty"` + Volumes []*GoogleCloudRunV2Volume `json:"volumes,omitempty"` // VpcAccess: VPC Access configuration for this Revision. For more // information, visit // https://cloud.google.com/run/docs/configuring/connecting-vpc. - VpcAccess *GoogleCloudRunOpV2VpcAccess `json:"vpcAccess,omitempty"` + VpcAccess *GoogleCloudRunV2VpcAccess `json:"vpcAccess,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. @@ -904,15 +903,15 @@ type GoogleCloudRunOpV2Revision struct { NullFields []string `json:"-"` } -func (s *GoogleCloudRunOpV2Revision) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudRunOpV2Revision +func (s *GoogleCloudRunV2Revision) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRunV2Revision raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRunOpV2RevisionScaling: Settings for revision-level -// scaling settings. -type GoogleCloudRunOpV2RevisionScaling struct { +// GoogleCloudRunV2RevisionScaling: Settings for revision-level scaling +// settings. +type GoogleCloudRunV2RevisionScaling struct { // MaxInstanceCount: Maximum number of serving instances that this // resource should have. MaxInstanceCount int64 `json:"maxInstanceCount,omitempty"` @@ -939,15 +938,15 @@ type GoogleCloudRunOpV2RevisionScaling struct { NullFields []string `json:"-"` } -func (s *GoogleCloudRunOpV2RevisionScaling) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudRunOpV2RevisionScaling +func (s *GoogleCloudRunV2RevisionScaling) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRunV2RevisionScaling raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRunOpV2RevisionTemplate: RevisionTemplate describes the -// data a revision should have when created from a template. -type GoogleCloudRunOpV2RevisionTemplate struct { +// GoogleCloudRunV2RevisionTemplate: RevisionTemplate describes the data +// a revision should have when created from a template. +type GoogleCloudRunV2RevisionTemplate struct { // Annotations: KRM-style annotations for the resource. Annotations map[string]string `json:"annotations,omitempty"` @@ -961,7 +960,7 @@ type GoogleCloudRunOpV2RevisionTemplate struct { // Containers: Holds the single container that defines the unit of // execution for this Revision. - Containers []*GoogleCloudRunOpV2Container `json:"containers,omitempty"` + Containers []*GoogleCloudRunV2Container `json:"containers,omitempty"` // EncryptionKey: A reference to a customer managed encryption key // (CMEK) to use to encrypt this container image. For more information, @@ -985,7 +984,7 @@ type GoogleCloudRunOpV2RevisionTemplate struct { Revision string `json:"revision,omitempty"` // Scaling: Scaling settings for this Revision. - Scaling *GoogleCloudRunOpV2RevisionScaling `json:"scaling,omitempty"` + Scaling *GoogleCloudRunV2RevisionScaling `json:"scaling,omitempty"` // ServiceAccount: Email address of the IAM service account associated // with the revision of the service. The service account represents the @@ -998,12 +997,12 @@ type GoogleCloudRunOpV2RevisionTemplate struct { Timeout string `json:"timeout,omitempty"` // Volumes: A list of Volumes to make available to containers. - Volumes []*GoogleCloudRunOpV2Volume `json:"volumes,omitempty"` + Volumes []*GoogleCloudRunV2Volume `json:"volumes,omitempty"` // VpcAccess: VPC Access configuration to use for this Revision. For // more information, visit // https://cloud.google.com/run/docs/configuring/connecting-vpc. - VpcAccess *GoogleCloudRunOpV2VpcAccess `json:"vpcAccess,omitempty"` + VpcAccess *GoogleCloudRunV2VpcAccess `json:"vpcAccess,omitempty"` // ForceSendFields is a list of field names (e.g. "Annotations") to // unconditionally include in API requests. By default, fields with @@ -1022,15 +1021,15 @@ type GoogleCloudRunOpV2RevisionTemplate struct { NullFields []string `json:"-"` } -func (s *GoogleCloudRunOpV2RevisionTemplate) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudRunOpV2RevisionTemplate +func (s *GoogleCloudRunV2RevisionTemplate) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRunV2RevisionTemplate raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRunOpV2SecretKeySelector: SecretEnvVarSource represents a +// GoogleCloudRunV2SecretKeySelector: SecretEnvVarSource represents a // source for the value of an EnvVar. -type GoogleCloudRunOpV2SecretKeySelector struct { +type GoogleCloudRunV2SecretKeySelector struct { // Secret: Required. The name of the secret in Cloud Secret Manager. // Format: {secret_name} if the secret is in the same project. // projects/{project}/secrets/{secret_name} if the secret is in a @@ -1058,16 +1057,16 @@ type GoogleCloudRunOpV2SecretKeySelector struct { NullFields []string `json:"-"` } -func (s *GoogleCloudRunOpV2SecretKeySelector) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudRunOpV2SecretKeySelector +func (s *GoogleCloudRunV2SecretKeySelector) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRunV2SecretKeySelector raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRunOpV2SecretVolumeSource: The secret's value will be +// GoogleCloudRunV2SecretVolumeSource: The secret's value will be // presented as the content of a file whose name is defined in the item // path. If no items are defined, the name of the file is the secret. -type GoogleCloudRunOpV2SecretVolumeSource struct { +type GoogleCloudRunV2SecretVolumeSource struct { // DefaultMode: Integer representation of mode bits to use on created // files by default. Must be a value between 0000 and 0777 (octal), // defaulting to 0644. Directories within the path are not affected by @@ -1089,7 +1088,7 @@ type GoogleCloudRunOpV2SecretVolumeSource struct { // will be used as the version to fetch from Cloud Secret Manager and // the path will be the name of the file exposed in the volume. When // items are defined, they must specify a path and a version. - Items []*GoogleCloudRunOpV2VersionToPath `json:"items,omitempty"` + Items []*GoogleCloudRunV2VersionToPath `json:"items,omitempty"` // Secret: Required. The name of the secret in Cloud Secret Manager. // Format: {secret} if the secret is in the same project. @@ -1114,19 +1113,19 @@ type GoogleCloudRunOpV2SecretVolumeSource struct { NullFields []string `json:"-"` } -func (s *GoogleCloudRunOpV2SecretVolumeSource) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudRunOpV2SecretVolumeSource +func (s *GoogleCloudRunV2SecretVolumeSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRunV2SecretVolumeSource raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRunOpV2Service: Service acts as a top-level container that +// GoogleCloudRunV2Service: Service acts as a top-level container that // manages a set of configurations and revision templates which // implement a network service. Service exists to provide a singular // abstraction which can be access controlled, reasoned about, and which // encapsulates software lifecycle decisions such as rollout policy and // team resource ownership. -type GoogleCloudRunOpV2Service struct { +type GoogleCloudRunV2Service struct { // Annotations: Unstructured key value map that may be set by external // tools to store and arbitrary metadata. They are not queryable and // should be preserved when modifying objects. Cloud Run will populate @@ -1137,7 +1136,7 @@ type GoogleCloudRunOpV2Service struct { Annotations map[string]string `json:"annotations,omitempty"` // BinaryAuthorization: Settings for the Binary Authorization feature. - BinaryAuthorization *GoogleCloudRunOpV2BinaryAuthorization `json:"binaryAuthorization,omitempty"` + BinaryAuthorization *GoogleCloudRunV2BinaryAuthorization `json:"binaryAuthorization,omitempty"` // Client: Arbitrary identifier for the API client. Client string `json:"client,omitempty"` @@ -1150,7 +1149,7 @@ type GoogleCloudRunOpV2Service struct { // case the Service does not reach its Serving state. See comments in // `reconciling` for additional information on reconciliation process in // Cloud Run. - Conditions []*GoogleCloudRunOpV2Condition `json:"conditions,omitempty"` + Conditions []*GoogleCloudRunV2Condition `json:"conditions,omitempty"` // CreateTime: Output only. The creation time. CreateTime string `json:"createTime,omitempty"` @@ -1290,23 +1289,23 @@ type GoogleCloudRunOpV2Service struct { // Template: Required. The template used to create revisions for this // Service. - Template *GoogleCloudRunOpV2RevisionTemplate `json:"template,omitempty"` + Template *GoogleCloudRunV2RevisionTemplate `json:"template,omitempty"` // TerminalCondition: Output only. The Condition of this Service, // containing its readiness status, and detailed error information in // case it did not reach a serving state. See comments in `reconciling` // for additional information on reconciliation process in Cloud Run. - TerminalCondition *GoogleCloudRunOpV2Condition `json:"terminalCondition,omitempty"` + TerminalCondition *GoogleCloudRunV2Condition `json:"terminalCondition,omitempty"` // Traffic: Specifies how to distribute traffic over a collection of // Revisions belonging to the Service. If traffic is empty or not // provided, defaults to 100% traffic to the latest `Ready` Revision. - Traffic []*GoogleCloudRunOpV2TrafficTarget `json:"traffic,omitempty"` + Traffic []*GoogleCloudRunV2TrafficTarget `json:"traffic,omitempty"` // TrafficStatuses: Output only. Detailed status information for // corresponding traffic targets. See comments in `reconciling` for // additional information on reconciliation process in Cloud Run. - TrafficStatuses []*GoogleCloudRunOpV2TrafficTargetStatus `json:"trafficStatuses,omitempty"` + TrafficStatuses []*GoogleCloudRunV2TrafficTargetStatus `json:"trafficStatuses,omitempty"` // Uid: Output only. Server assigned unique identifier for the trigger. // The value is a UUID4 string and guaranteed to remain unchanged until @@ -1341,16 +1340,16 @@ type GoogleCloudRunOpV2Service struct { NullFields []string `json:"-"` } -func (s *GoogleCloudRunOpV2Service) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudRunOpV2Service +func (s *GoogleCloudRunV2Service) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRunV2Service raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRunOpV2TrafficTarget: Holds a single traffic routing entry +// GoogleCloudRunV2TrafficTarget: Holds a single traffic routing entry // for the Service. Allocations can be done to a specific Revision name, // or pointing to the latest Ready Revision. -type GoogleCloudRunOpV2TrafficTarget struct { +type GoogleCloudRunV2TrafficTarget struct { // Percent: Specifies percent of the traffic to this Revision. This // defaults to zero if unspecified. Percent int64 `json:"percent,omitempty"` @@ -1391,15 +1390,15 @@ type GoogleCloudRunOpV2TrafficTarget struct { NullFields []string `json:"-"` } -func (s *GoogleCloudRunOpV2TrafficTarget) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudRunOpV2TrafficTarget +func (s *GoogleCloudRunV2TrafficTarget) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRunV2TrafficTarget raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRunOpV2TrafficTargetStatus: Represents the observed state -// of a single `TrafficTarget` entry. -type GoogleCloudRunOpV2TrafficTargetStatus struct { +// GoogleCloudRunV2TrafficTargetStatus: Represents the observed state of +// a single `TrafficTarget` entry. +type GoogleCloudRunV2TrafficTargetStatus struct { // Percent: Specifies percent of the traffic to this Revision. Percent int64 `json:"percent,omitempty"` @@ -1441,16 +1440,16 @@ type GoogleCloudRunOpV2TrafficTargetStatus struct { NullFields []string `json:"-"` } -func (s *GoogleCloudRunOpV2TrafficTargetStatus) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudRunOpV2TrafficTargetStatus +func (s *GoogleCloudRunV2TrafficTargetStatus) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRunV2TrafficTargetStatus raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRunOpV2VersionToPath: VersionToPath maps a specific -// version of a secret to a relative file to mount to, relative to -// VolumeMount's mount_path. -type GoogleCloudRunOpV2VersionToPath struct { +// GoogleCloudRunV2VersionToPath: VersionToPath maps a specific version +// of a secret to a relative file to mount to, relative to VolumeMount's +// mount_path. +type GoogleCloudRunV2VersionToPath struct { // Mode: Integer octal mode bits to use on this file, must be a value // between 01 and 0777 (octal). If 0 or not set, the Volume's default // mode will be used. Notes * Internally, a umask of 0222 will be @@ -1488,27 +1487,27 @@ type GoogleCloudRunOpV2VersionToPath struct { NullFields []string `json:"-"` } -func (s *GoogleCloudRunOpV2VersionToPath) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudRunOpV2VersionToPath +func (s *GoogleCloudRunV2VersionToPath) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRunV2VersionToPath raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRunOpV2Volume: Volume represents a named volume in a +// GoogleCloudRunV2Volume: Volume represents a named volume in a // container. -type GoogleCloudRunOpV2Volume struct { +type GoogleCloudRunV2Volume struct { // CloudSqlInstance: For Cloud SQL volumes, contains the specific // instances that should be mounted. Visit // https://cloud.google.com/sql/docs/mysql/connect-run for more // information on how to connect Cloud SQL and Cloud Run. - CloudSqlInstance *GoogleCloudRunOpV2CloudSqlInstance `json:"cloudSqlInstance,omitempty"` + CloudSqlInstance *GoogleCloudRunV2CloudSqlInstance `json:"cloudSqlInstance,omitempty"` // Name: Required. Volume's name. Name string `json:"name,omitempty"` // Secret: Secret represents a secret that should populate this volume. // More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - Secret *GoogleCloudRunOpV2SecretVolumeSource `json:"secret,omitempty"` + Secret *GoogleCloudRunV2SecretVolumeSource `json:"secret,omitempty"` // ForceSendFields is a list of field names (e.g. "CloudSqlInstance") to // unconditionally include in API requests. By default, fields with @@ -1528,15 +1527,15 @@ type GoogleCloudRunOpV2Volume struct { NullFields []string `json:"-"` } -func (s *GoogleCloudRunOpV2Volume) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudRunOpV2Volume +func (s *GoogleCloudRunV2Volume) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRunV2Volume raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRunOpV2VolumeMount: VolumeMount describes a mounting of a +// GoogleCloudRunV2VolumeMount: VolumeMount describes a mounting of a // Volume within a container. -type GoogleCloudRunOpV2VolumeMount struct { +type GoogleCloudRunV2VolumeMount struct { // MountPath: Required. Path within the container at which the volume // should be mounted. Must not contain ':'. For Cloud SQL volumes, it // can be left empty, or must otherwise be `/cloudsql`. All instances @@ -1565,19 +1564,19 @@ type GoogleCloudRunOpV2VolumeMount struct { NullFields []string `json:"-"` } -func (s *GoogleCloudRunOpV2VolumeMount) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudRunOpV2VolumeMount +func (s *GoogleCloudRunV2VolumeMount) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRunV2VolumeMount raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleCloudRunOpV2VpcAccess: VPC Access settings. For more -// information on creating a VPC Connector, visit +// GoogleCloudRunV2VpcAccess: VPC Access settings. For more information +// on creating a VPC Connector, visit // https://cloud.google.com/vpc/docs/configure-serverless-vpc-access For // information on how to configure Cloud Run with an existing VPC // Connector, visit // https://cloud.google.com/run/docs/configuring/connecting-vpc -type GoogleCloudRunOpV2VpcAccess struct { +type GoogleCloudRunV2VpcAccess struct { // Connector: VPC Access connector name. Format: // projects/{project}/locations/{location}/connectors/{connector} Connector string `json:"connector,omitempty"` @@ -1609,8 +1608,8 @@ type GoogleCloudRunOpV2VpcAccess struct { NullFields []string `json:"-"` } -func (s *GoogleCloudRunOpV2VpcAccess) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudRunOpV2VpcAccess +func (s *GoogleCloudRunV2VpcAccess) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRunV2VpcAccess raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } @@ -2721,22 +2720,22 @@ func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func( // method id "run.projects.locations.services.create": type ProjectsLocationsServicesCreateCall struct { - s *Service - parent string - googlecloudrunopv2service *GoogleCloudRunOpV2Service - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header + s *Service + parent string + googlecloudrunv2service *GoogleCloudRunV2Service + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } // Create: Creates a new Service in a given project and location. // // - parent: The location and project in which this service should be // created. Format: projects/{projectnumber}/locations/{location}. -func (r *ProjectsLocationsServicesService) Create(parent string, googlecloudrunopv2service *GoogleCloudRunOpV2Service) *ProjectsLocationsServicesCreateCall { +func (r *ProjectsLocationsServicesService) Create(parent string, googlecloudrunv2service *GoogleCloudRunV2Service) *ProjectsLocationsServicesCreateCall { c := &ProjectsLocationsServicesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.googlecloudrunopv2service = googlecloudrunopv2service + c.googlecloudrunv2service = googlecloudrunv2service return c } @@ -2789,7 +2788,7 @@ func (c *ProjectsLocationsServicesCreateCall) doRequest(alt string) (*http.Respo } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudrunopv2service) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudrunv2service) if err != nil { return nil, err } @@ -2875,7 +2874,7 @@ func (c *ProjectsLocationsServicesCreateCall) Do(opts ...googleapi.CallOption) ( // }, // "path": "v2/{+parent}/services", // "request": { - // "$ref": "GoogleCloudRunOpV2Service" + // "$ref": "GoogleCloudRunV2Service" // }, // "response": { // "$ref": "GoogleLongrunningOperation" @@ -3130,13 +3129,13 @@ func (c *ProjectsLocationsServicesGetCall) doRequest(alt string) (*http.Response } // Do executes the "run.projects.locations.services.get" call. -// Exactly one of *GoogleCloudRunOpV2Service or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudRunOpV2Service.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use +// Exactly one of *GoogleCloudRunV2Service or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *GoogleCloudRunV2Service.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 *ProjectsLocationsServicesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRunOpV2Service, error) { +func (c *ProjectsLocationsServicesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRunV2Service, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3155,7 +3154,7 @@ func (c *ProjectsLocationsServicesGetCall) Do(opts ...googleapi.CallOption) (*Go if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudRunOpV2Service{ + ret := &GoogleCloudRunV2Service{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -3185,7 +3184,7 @@ func (c *ProjectsLocationsServicesGetCall) Do(opts ...googleapi.CallOption) (*Go // }, // "path": "v2/{+name}", // "response": { - // "$ref": "GoogleCloudRunOpV2Service" + // "$ref": "GoogleCloudRunV2Service" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -3474,14 +3473,14 @@ func (c *ProjectsLocationsServicesListCall) doRequest(alt string) (*http.Respons } // Do executes the "run.projects.locations.services.list" call. -// Exactly one of *GoogleCloudRunOpV2ListServicesResponse or error will -// be non-nil. Any non-2xx status code is an error. Response headers are -// in either -// *GoogleCloudRunOpV2ListServicesResponse.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 *ProjectsLocationsServicesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRunOpV2ListServicesResponse, error) { +// Exactly one of *GoogleCloudRunV2ListServicesResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *GoogleCloudRunV2ListServicesResponse.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 *ProjectsLocationsServicesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRunV2ListServicesResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -3500,7 +3499,7 @@ func (c *ProjectsLocationsServicesListCall) Do(opts ...googleapi.CallOption) (*G if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudRunOpV2ListServicesResponse{ + ret := &GoogleCloudRunV2ListServicesResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -3546,7 +3545,7 @@ func (c *ProjectsLocationsServicesListCall) Do(opts ...googleapi.CallOption) (*G // }, // "path": "v2/{+parent}/services", // "response": { - // "$ref": "GoogleCloudRunOpV2ListServicesResponse" + // "$ref": "GoogleCloudRunV2ListServicesResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -3558,7 +3557,7 @@ func (c *ProjectsLocationsServicesListCall) Do(opts ...googleapi.CallOption) (*G // 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 *ProjectsLocationsServicesListCall) Pages(ctx context.Context, f func(*GoogleCloudRunOpV2ListServicesResponse) error) error { +func (c *ProjectsLocationsServicesListCall) Pages(ctx context.Context, f func(*GoogleCloudRunV2ListServicesResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for { @@ -3579,12 +3578,12 @@ func (c *ProjectsLocationsServicesListCall) Pages(ctx context.Context, f func(*G // method id "run.projects.locations.services.patch": type ProjectsLocationsServicesPatchCall struct { - s *Service - name string - googlecloudrunopv2service *GoogleCloudRunOpV2Service - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header + s *Service + name string + googlecloudrunv2service *GoogleCloudRunV2Service + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } // Patch: Updates a Service. @@ -3594,10 +3593,10 @@ type ProjectsLocationsServicesPatchCall struct { // from CreateServiceRequest.parent and // CreateServiceRequest.service_id. Format: // projects/{project}/locations/{location}/services/{service_id}. -func (r *ProjectsLocationsServicesService) Patch(name string, googlecloudrunopv2service *GoogleCloudRunOpV2Service) *ProjectsLocationsServicesPatchCall { +func (r *ProjectsLocationsServicesService) Patch(name string, googlecloudrunv2service *GoogleCloudRunV2Service) *ProjectsLocationsServicesPatchCall { c := &ProjectsLocationsServicesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.googlecloudrunopv2service = googlecloudrunopv2service + c.googlecloudrunv2service = googlecloudrunv2service return c } @@ -3658,7 +3657,7 @@ func (c *ProjectsLocationsServicesPatchCall) doRequest(alt string) (*http.Respon } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudrunopv2service) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudrunv2service) if err != nil { return nil, err } @@ -3750,7 +3749,7 @@ func (c *ProjectsLocationsServicesPatchCall) Do(opts ...googleapi.CallOption) (* // }, // "path": "v2/{+name}", // "request": { - // "$ref": "GoogleCloudRunOpV2Service" + // "$ref": "GoogleCloudRunV2Service" // }, // "response": { // "$ref": "GoogleLongrunningOperation" @@ -4298,13 +4297,13 @@ func (c *ProjectsLocationsServicesRevisionsGetCall) doRequest(alt string) (*http } // Do executes the "run.projects.locations.services.revisions.get" call. -// Exactly one of *GoogleCloudRunOpV2Revision or error will be non-nil. +// Exactly one of *GoogleCloudRunV2Revision or error will be non-nil. // Any non-2xx status code is an error. Response headers are in either -// *GoogleCloudRunOpV2Revision.ServerResponse.Header or (if a response -// was returned at all) in error.(*googleapi.Error).Header. Use +// *GoogleCloudRunV2Revision.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 *ProjectsLocationsServicesRevisionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRunOpV2Revision, error) { +func (c *ProjectsLocationsServicesRevisionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRunV2Revision, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4323,7 +4322,7 @@ func (c *ProjectsLocationsServicesRevisionsGetCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudRunOpV2Revision{ + ret := &GoogleCloudRunV2Revision{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4353,7 +4352,7 @@ func (c *ProjectsLocationsServicesRevisionsGetCall) Do(opts ...googleapi.CallOpt // }, // "path": "v2/{+name}", // "response": { - // "$ref": "GoogleCloudRunOpV2Revision" + // "$ref": "GoogleCloudRunV2Revision" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -4469,14 +4468,14 @@ func (c *ProjectsLocationsServicesRevisionsListCall) doRequest(alt string) (*htt } // Do executes the "run.projects.locations.services.revisions.list" call. -// Exactly one of *GoogleCloudRunOpV2ListRevisionsResponse or error will +// Exactly one of *GoogleCloudRunV2ListRevisionsResponse or error will // be non-nil. Any non-2xx status code is an error. Response headers are // in either -// *GoogleCloudRunOpV2ListRevisionsResponse.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 +// *GoogleCloudRunV2ListRevisionsResponse.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 *ProjectsLocationsServicesRevisionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRunOpV2ListRevisionsResponse, error) { +func (c *ProjectsLocationsServicesRevisionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRunV2ListRevisionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4495,7 +4494,7 @@ func (c *ProjectsLocationsServicesRevisionsListCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, err } - ret := &GoogleCloudRunOpV2ListRevisionsResponse{ + ret := &GoogleCloudRunV2ListRevisionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4541,7 +4540,7 @@ func (c *ProjectsLocationsServicesRevisionsListCall) Do(opts ...googleapi.CallOp // }, // "path": "v2/{+parent}/revisions", // "response": { - // "$ref": "GoogleCloudRunOpV2ListRevisionsResponse" + // "$ref": "GoogleCloudRunV2ListRevisionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -4553,7 +4552,7 @@ func (c *ProjectsLocationsServicesRevisionsListCall) Do(opts ...googleapi.CallOp // 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 *ProjectsLocationsServicesRevisionsListCall) Pages(ctx context.Context, f func(*GoogleCloudRunOpV2ListRevisionsResponse) error) error { +func (c *ProjectsLocationsServicesRevisionsListCall) Pages(ctx context.Context, f func(*GoogleCloudRunV2ListRevisionsResponse) error) error { c.ctx_ = ctx defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point for {