diff --git a/accesscontextmanager/v1/accesscontextmanager-api.json b/accesscontextmanager/v1/accesscontextmanager-api.json index 4c3c5a104e8..9d4113a992b 100644 --- a/accesscontextmanager/v1/accesscontextmanager-api.json +++ b/accesscontextmanager/v1/accesscontextmanager-api.json @@ -1233,9 +1233,64 @@ } } } + }, + "services": { + "methods": { + "get": { + "description": "Returns a VPC-SC supported service based on the service name.", + "flatPath": "v1/services/{name}", + "httpMethod": "GET", + "id": "accesscontextmanager.services.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the service to get information about. The names must be in the same format as used in defining a service perimeter, for example, `storage.googleapis.com`.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "v1/services/{name}", + "response": { + "$ref": "SupportedService" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists all VPC-SC supported services.", + "flatPath": "v1/services", + "httpMethod": "GET", + "id": "accesscontextmanager.services.list", + "parameterOrder": [], + "parameters": { + "pageSize": { + "description": "This flag specifies the maximum number of services to return per page. Default is 100.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Token to start on a later page. Default is the first page.", + "location": "query", + "type": "string" + } + }, + "path": "v1/services", + "response": { + "$ref": "ListSupportedServicesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } } }, - "revision": "20231011", + "revision": "20231213", "rootUrl": "https://accesscontextmanager.googleapis.com/", "schemas": { "AccessContextManagerOperationMetadata": { @@ -1460,7 +1515,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.", "items": { "type": "string" }, @@ -2017,6 +2072,24 @@ }, "type": "object" }, + "ListSupportedServicesResponse": { + "description": "A response to `ListSupportedServicesRequest`.", + "id": "ListSupportedServicesResponse", + "properties": { + "nextPageToken": { + "description": "The pagination token to retrieve the next page of results. If the value is empty, no further results remain.", + "type": "string" + }, + "supportedServices": { + "description": "List of services supported by {{vpcsvcctl_name_short}} instances.", + "items": { + "$ref": "SupportedService" + }, + "type": "array" + } + }, + "type": "object" + }, "MethodSelector": { "description": "An allowed method or permission of a service specified in ApiOperation.", "id": "MethodSelector", @@ -2331,6 +2404,60 @@ }, "type": "object" }, + "SupportedService": { + "description": "`SupportedService` specifies {{vpcsvcctl_name_short}} supported service and its properties.", + "id": "SupportedService", + "properties": { + "availableOnRestrictedVip": { + "description": "True if the service is available on the restricted VIP. Services on the restricted VIP typically either support {{vpcsvcctl_name_short}} or are core infrastructure services required for the functioning of Google Cloud.", + "type": "boolean" + }, + "knownLimitations": { + "description": "True if the service is supported with some limitations. Check documentation for details.", + "type": "boolean" + }, + "name": { + "description": "The service name or address of the supported service, such as `service.googleapis.com`.", + "type": "string" + }, + "supportStage": { + "description": "The support stage of the service.", + "enum": [ + "LAUNCH_STAGE_UNSPECIFIED", + "UNIMPLEMENTED", + "PRELAUNCH", + "EARLY_ACCESS", + "ALPHA", + "BETA", + "GA", + "DEPRECATED" + ], + "enumDescriptions": [ + "Do not use this default value.", + "The feature is not yet implemented. Users can not use it.", + "Prelaunch features are hidden from users and are only visible internally.", + "Early Access features are limited to a closed group of testers. To use these features, you must sign up in advance and sign a Trusted Tester agreement (which includes confidentiality provisions). These features may be unstable, changed in backward-incompatible ways, and are not guaranteed to be released.", + "Alpha is a limited availability test for releases before they are cleared for widespread use. By Alpha, all significant design issues are resolved and we are in the process of verifying functionality. Alpha customers need to apply for access, agree to applicable terms, and have their projects allowlisted. Alpha releases don't have to be feature complete, no SLAs are provided, and there are no technical support obligations, but they will be far enough along that customers can actually use them in test environments or for limited-use tests -- just like they would in normal production cases.", + "Beta is the point at which we are ready to open a release for any customer to use. There are no SLA or technical support obligations in a Beta release. Products will be complete from a feature perspective, but may have some open outstanding issues. Beta releases are suitable for limited production use cases.", + "GA features are open to all developers and are considered stable and fully qualified for production use.", + "Deprecated features are scheduled to be shut down and removed. For more information, see the \"Deprecation Policy\" section of our [Terms of Service](https://cloud.google.com/terms/) and the [Google Cloud Platform Subject to the Deprecation Policy](https://cloud.google.com/terms/deprecation) documentation." + ], + "type": "string" + }, + "supportedMethods": { + "description": "The list of the supported methods. Field exist only in response on [GetSupportedService]", + "items": { + "$ref": "MethodSelector" + }, + "type": "array" + }, + "title": { + "description": "The name of the supported product, such as 'Cloud Product API'", + "type": "string" + } + }, + "type": "object" + }, "TestIamPermissionsRequest": { "description": "Request message for `TestIamPermissions` method.", "id": "TestIamPermissionsRequest", diff --git a/accesscontextmanager/v1/accesscontextmanager-gen.go b/accesscontextmanager/v1/accesscontextmanager-gen.go index 87652a77c5b..ead4a9cdd58 100644 --- a/accesscontextmanager/v1/accesscontextmanager-gen.go +++ b/accesscontextmanager/v1/accesscontextmanager-gen.go @@ -135,6 +135,7 @@ func New(client *http.Client) (*Service, error) { s.AccessPolicies = NewAccessPoliciesService(s) s.Operations = NewOperationsService(s) s.Organizations = NewOrganizationsService(s) + s.Services = NewServicesService(s) return s, nil } @@ -148,6 +149,8 @@ type Service struct { Operations *OperationsService Organizations *OrganizationsService + + Services *ServicesService } func (s *Service) userAgent() string { @@ -232,6 +235,15 @@ type OrganizationsGcpUserAccessBindingsService struct { s *Service } +func NewServicesService(s *Service) *ServicesService { + rs := &ServicesService{s: s} + return rs +} + +type ServicesService struct { + s *Service +} + // AccessContextManagerOperationMetadata: Metadata of Access Context // Manager's Long Running Operations. type AccessContextManagerOperationMetadata struct { @@ -650,11 +662,34 @@ type Binding struct { // For example, `admins@example.com`. * `domain:{domain}`: The G Suite // domain (primary) that represents all the users of that domain. For // example, `google.com` or `example.com`. * - // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus - // unique identifier) representing a user that has been recently - // deleted. For example, `alice@example.com?uid=123456789012345678901`. - // If the user is recovered, this value reverts to `user:{emailid}` and - // the recovered user retains the role in the binding. * + // `principal://iam.googleapis.com/locations/global/workforcePools/{pool_ + // id}/subject/{subject_attribute_value}`: A single identity in a + // workforce identity pool. * + // `principalSet://iam.googleapis.com/locations/global/workforcePools/{po + // ol_id}/group/{group_id}`: All workforce identities in a group. * + // `principalSet://iam.googleapis.com/locations/global/workforcePools/{po + // ol_id}/attribute.{attribute_name}/{attribute_value}`: All workforce + // identities with a specific attribute value. * + // `principalSet://iam.googleapis.com/locations/global/workforcePools/{po + // ol_id}/*`: All identities in a workforce identity pool. * + // `principal://iam.googleapis.com/projects/{project_number}/locations/gl + // obal/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value} + // `: A single identity in a workload identity pool. * + // `principalSet://iam.googleapis.com/projects/{project_number}/locations + // /global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload + // identity pool group. * + // `principalSet://iam.googleapis.com/projects/{project_number}/locations + // /global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{at + // tribute_value}`: All identities in a workload identity pool with a + // certain attribute. * + // `principalSet://iam.googleapis.com/projects/{project_number}/locations + // /global/workloadIdentityPools/{pool_id}/*`: All identities in a + // workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An + // email address (plus unique identifier) representing a user that has + // been recently deleted. For example, + // `alice@example.com?uid=123456789012345678901`. If the user is + // recovered, this value reverts to `user:{emailid}` and the recovered + // user retains the role in the binding. * // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address // (plus unique identifier) representing a service account that has been // recently deleted. For example, @@ -666,7 +701,12 @@ type Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. + // group retains the role in the binding. * + // `deleted:principal://iam.googleapis.com/locations/global/workforcePool + // s/{pool_id}/subject/{subject_attribute_value}`: Deleted single + // identity in a workforce identity pool. For example, + // `deleted:principal://iam.googleapis.com/locations/global/workforcePool + // s/my-pool-id/subject/my-subject-attribute-value`. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. @@ -1773,6 +1813,44 @@ func (s *ListServicePerimetersResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListSupportedServicesResponse: A response to +// `ListSupportedServicesRequest`. +type ListSupportedServicesResponse struct { + // NextPageToken: The pagination token to retrieve the next page of + // results. If the value is empty, no further results remain. + NextPageToken string `json:"nextPageToken,omitempty"` + + // SupportedServices: List of services supported by + // {{vpcsvcctl_name_short}} instances. + SupportedServices []*SupportedService `json:"supportedServices,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListSupportedServicesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListSupportedServicesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // MethodSelector: An allowed method or permission of a service // specified in ApiOperation. type MethodSelector struct { @@ -2410,6 +2488,96 @@ func (s *Status) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SupportedService: `SupportedService` specifies +// {{vpcsvcctl_name_short}} supported service and its properties. +type SupportedService struct { + // AvailableOnRestrictedVip: True if the service is available on the + // restricted VIP. Services on the restricted VIP typically either + // support {{vpcsvcctl_name_short}} or are core infrastructure services + // required for the functioning of Google Cloud. + AvailableOnRestrictedVip bool `json:"availableOnRestrictedVip,omitempty"` + + // KnownLimitations: True if the service is supported with some + // limitations. Check documentation for details. + KnownLimitations bool `json:"knownLimitations,omitempty"` + + // Name: The service name or address of the supported service, such as + // `service.googleapis.com`. + Name string `json:"name,omitempty"` + + // SupportStage: The support stage of the service. + // + // Possible values: + // "LAUNCH_STAGE_UNSPECIFIED" - Do not use this default value. + // "UNIMPLEMENTED" - The feature is not yet implemented. Users can not + // use it. + // "PRELAUNCH" - Prelaunch features are hidden from users and are only + // visible internally. + // "EARLY_ACCESS" - Early Access features are limited to a closed + // group of testers. To use these features, you must sign up in advance + // and sign a Trusted Tester agreement (which includes confidentiality + // provisions). These features may be unstable, changed in + // backward-incompatible ways, and are not guaranteed to be released. + // "ALPHA" - Alpha is a limited availability test for releases before + // they are cleared for widespread use. By Alpha, all significant design + // issues are resolved and we are in the process of verifying + // functionality. Alpha customers need to apply for access, agree to + // applicable terms, and have their projects allowlisted. Alpha releases + // don't have to be feature complete, no SLAs are provided, and there + // are no technical support obligations, but they will be far enough + // along that customers can actually use them in test environments or + // for limited-use tests -- just like they would in normal production + // cases. + // "BETA" - Beta is the point at which we are ready to open a release + // for any customer to use. There are no SLA or technical support + // obligations in a Beta release. Products will be complete from a + // feature perspective, but may have some open outstanding issues. Beta + // releases are suitable for limited production use cases. + // "GA" - GA features are open to all developers and are considered + // stable and fully qualified for production use. + // "DEPRECATED" - Deprecated features are scheduled to be shut down + // and removed. For more information, see the "Deprecation Policy" + // section of our [Terms of Service](https://cloud.google.com/terms/) + // and the [Google Cloud Platform Subject to the Deprecation + // Policy](https://cloud.google.com/terms/deprecation) documentation. + SupportStage string `json:"supportStage,omitempty"` + + // SupportedMethods: The list of the supported methods. Field exist only + // in response on [GetSupportedService] + SupportedMethods []*MethodSelector `json:"supportedMethods,omitempty"` + + // Title: The name of the supported product, such as 'Cloud Product API' + Title string `json:"title,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "AvailableOnRestrictedVip") 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. "AvailableOnRestrictedVip") + // 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 *SupportedService) MarshalJSON() ([]byte, error) { + type NoMethod SupportedService + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // TestIamPermissionsRequest: Request message for `TestIamPermissions` // method. type TestIamPermissionsRequest struct { @@ -8411,3 +8579,326 @@ func (c *OrganizationsGcpUserAccessBindingsPatchCall) Do(opts ...googleapi.CallO // } } + +// method id "accesscontextmanager.services.get": + +type ServicesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Returns a VPC-SC supported service based on the service name. +// +// - name: The name of the service to get information about. The names +// must be in the same format as used in defining a service perimeter, +// for example, `storage.googleapis.com`. +func (r *ServicesService) Get(name string) *ServicesGetCall { + c := &ServicesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ServicesGetCall) Fields(s ...googleapi.Field) *ServicesGetCall { + 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 *ServicesGetCall) IfNoneMatch(entityTag string) *ServicesGetCall { + 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 *ServicesGetCall) Context(ctx context.Context) *ServicesGetCall { + 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 *ServicesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ServicesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/services/{name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "accesscontextmanager.services.get" call. +// Exactly one of *SupportedService or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *SupportedService.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 *ServicesGetCall) Do(opts ...googleapi.CallOption) (*SupportedService, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &SupportedService{ + 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": "Returns a VPC-SC supported service based on the service name.", + // "flatPath": "v1/services/{name}", + // "httpMethod": "GET", + // "id": "accesscontextmanager.services.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the service to get information about. The names must be in the same format as used in defining a service perimeter, for example, `storage.googleapis.com`.", + // "location": "path", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/services/{name}", + // "response": { + // "$ref": "SupportedService" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "accesscontextmanager.services.list": + +type ServicesListCall struct { + s *Service + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all VPC-SC supported services. +func (r *ServicesService) List() *ServicesListCall { + c := &ServicesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + return c +} + +// PageSize sets the optional parameter "pageSize": This flag specifies +// the maximum number of services to return per page. Default is 100. +func (c *ServicesListCall) PageSize(pageSize int64) *ServicesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Token to start on +// a later page. Default is the first page. +func (c *ServicesListCall) PageToken(pageToken string) *ServicesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ServicesListCall) Fields(s ...googleapi.Field) *ServicesListCall { + 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 *ServicesListCall) IfNoneMatch(entityTag string) *ServicesListCall { + 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 *ServicesListCall) Context(ctx context.Context) *ServicesListCall { + 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 *ServicesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ServicesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/services") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "accesscontextmanager.services.list" call. +// Exactly one of *ListSupportedServicesResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListSupportedServicesResponse.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 *ServicesListCall) Do(opts ...googleapi.CallOption) (*ListSupportedServicesResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &ListSupportedServicesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists all VPC-SC supported services.", + // "flatPath": "v1/services", + // "httpMethod": "GET", + // "id": "accesscontextmanager.services.list", + // "parameterOrder": [], + // "parameters": { + // "pageSize": { + // "description": "This flag specifies the maximum number of services to return per page. Default is 100.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Token to start on a later page. Default is the first page.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/services", + // "response": { + // "$ref": "ListSupportedServicesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ServicesListCall) Pages(ctx context.Context, f func(*ListSupportedServicesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} diff --git a/alloydb/v1alpha/alloydb-api.json b/alloydb/v1alpha/alloydb-api.json index f12fb103b9a..7c91f91b390 100644 --- a/alloydb/v1alpha/alloydb-api.json +++ b/alloydb/v1alpha/alloydb-api.json @@ -1489,9 +1489,20 @@ } } }, - "revision": "20231128", + "revision": "20231206", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { + "AuthorizedNetwork": { + "description": "AuthorizedNetwork contains metadata for an authorized network.", + "id": "AuthorizedNetwork", + "properties": { + "cidrRange": { + "description": "CIDR range for one authorzied network of the instance.", + "type": "string" + } + }, + "type": "object" + }, "AutomatedBackupPolicy": { "description": "Message describing the user-specified automated backup policy. All fields in the automated backup policy are optional. Defaults for each field are provided if they are not set.", "id": "AutomatedBackupPolicy", @@ -1998,6 +2009,11 @@ }, "readOnly": true, "type": "array" + }, + "publicIpAddress": { + "description": "Output only. The public IP addresses for the Instance. This is available ONLY when enable_public_ip is set. This is the connection endpoint for an end-user application.", + "readOnly": true, + "type": "string" } }, "type": "object" @@ -2409,6 +2425,10 @@ "readOnly": true, "type": "string" }, + "networkConfig": { + "$ref": "InstanceNetworkConfig", + "description": "Optional. Instance level network configuration." + }, "nodes": { "description": "Output only. List of available read-only VMs in this instance, including the standby for a PRIMARY instance.", "items": { @@ -2417,6 +2437,10 @@ "readOnly": true, "type": "array" }, + "pscInstanceConfig": { + "$ref": "PscInstanceConfig", + "description": "Optional. The configuration for Private Service Connect (PSC) for the instance." + }, "queryInsightsConfig": { "$ref": "QueryInsightsInstanceConfig", "description": "Configuration for query insights." @@ -2490,6 +2514,24 @@ }, "type": "object" }, + "InstanceNetworkConfig": { + "description": "Metadata related to instance level network configuration.", + "id": "InstanceNetworkConfig", + "properties": { + "authorizedExternalNetworks": { + "description": "Optional. A list of external network authorized to access this instance.", + "items": { + "$ref": "AuthorizedNetwork" + }, + "type": "array" + }, + "enablePublicIp": { + "description": "Optional. Enabling public ip for the instance.", + "type": "boolean" + } + }, + "type": "object" + }, "IntegerRestrictions": { "description": "Restrictions on INTEGER type values.", "id": "IntegerRestrictions", @@ -2847,6 +2889,68 @@ }, "type": "object" }, + "PscInstanceConfig": { + "description": "PscInstanceConfig contains PSC related configuration at an instance level. NEXT ID: 7", + "id": "PscInstanceConfig", + "properties": { + "allowedConsumerNetworks": { + "description": "Optional. List of consumer networks that are allowed to create PSC endpoints to service-attachments to this instance.", + "items": { + "type": "string" + }, + "type": "array" + }, + "allowedConsumerProjects": { + "description": "Optional. List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance.", + "items": { + "type": "string" + }, + "type": "array" + }, + "outgoingServiceAttachmentLinks": { + "description": "Optional. List of service attachments that this instance has created endpoints to connect with. Currently, only a single outgoing service attachment is supported per instance.", + "items": { + "type": "string" + }, + "type": "array" + }, + "pscEnabled": { + "description": "Optional. Whether PSC connectivity is enabled for this instance. This is populated by referencing the value from the parent cluster.", + "type": "boolean" + }, + "pscInterfaceConfigs": { + "description": "Optional. Configurations for setting up PSC interfaces attached to the instance which are used for outbound connectivity. Only primary instances can have PSC interface attached. All the VMs created for the primary instance will share the same configurations. Currently we only support 0 or 1 PSC interface.", + "items": { + "$ref": "PscInterfaceConfig" + }, + "type": "array" + }, + "serviceAttachmentLink": { + "description": "Output only. The service attachment created when Private Service Connect (PSC) is enabled for the instance. The name of the resource will be in the format of projects//regions//serviceAttachments/", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "PscInterfaceConfig": { + "description": "Configuration for setting up a PSC interface. This information needs to be provided by the customer. PSC interfaces will be created and added to VMs via SLM (adding a network interface will require recreating the VM). For HA instances this will be done via LDTM.", + "id": "PscInterfaceConfig", + "properties": { + "consumerEndpointIps": { + "description": "A list of endpoints in the consumer VPC the interface might initiate outbound connections to. This list has to be provided when the PSC interface is created.", + "items": { + "type": "string" + }, + "type": "array" + }, + "networkAttachment": { + "description": "The NetworkAttachment resource created in the consumer VPC to which the PSC interface will be linked, in the form of: \"projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${NETWORK_ATTACHMENT_NAME}\". NetworkAttachment has to be provided when the PSC interface is created.", + "type": "string" + } + }, + "type": "object" + }, "QuantityBasedExpiry": { "description": "A backup's position in a quantity-based retention queue, of backups with the same source cluster and type, with length, retention, specified by the backup's retention policy. Once the position is greater than the retention, the backup is eligible to be garbage collected. Example: 5 backups from the same source cluster and type with a quantity-based retention of 3 and denoted by backup_id (position, retention). Safe: backup_5 (1, 3), backup_4, (2, 3), backup_3 (3, 3). Awaiting garbage collection: backup_2 (4, 3), backup_1 (5, 3)", "id": "QuantityBasedExpiry", diff --git a/alloydb/v1alpha/alloydb-gen.go b/alloydb/v1alpha/alloydb-gen.go index a869a1e1ff2..bd31e2ab5ab 100644 --- a/alloydb/v1alpha/alloydb-gen.go +++ b/alloydb/v1alpha/alloydb-gen.go @@ -244,6 +244,35 @@ type ProjectsLocationsSupportedDatabaseFlagsService struct { s *Service } +// AuthorizedNetwork: AuthorizedNetwork contains metadata for an +// authorized network. +type AuthorizedNetwork struct { + // CidrRange: CIDR range for one authorzied network of the instance. + CidrRange string `json:"cidrRange,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CidrRange") 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. "CidrRange") 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 *AuthorizedNetwork) MarshalJSON() ([]byte, error) { + type NoMethod AuthorizedNetwork + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AutomatedBackupPolicy: Message describing the user-specified // automated backup policy. All fields in the automated backup policy // are optional. Defaults for each field are provided if they are not @@ -789,6 +818,11 @@ type ConnectionInfo struct { // issuer-to-root order according to RFC 5246. PemCertificateChain []string `json:"pemCertificateChain,omitempty"` + // PublicIpAddress: Output only. The public IP addresses for the + // Instance. This is available ONLY when enable_public_ip is set. This + // is the connection endpoint for an end-user application. + PublicIpAddress string `json:"publicIpAddress,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` @@ -1460,10 +1494,17 @@ type Instance struct { // projects/{project}/locations/{region}/clusters/{cluster_id} Name string `json:"name,omitempty"` + // NetworkConfig: Optional. Instance level network configuration. + NetworkConfig *InstanceNetworkConfig `json:"networkConfig,omitempty"` + // Nodes: Output only. List of available read-only VMs in this instance, // including the standby for a PRIMARY instance. Nodes []*Node `json:"nodes,omitempty"` + // PscInstanceConfig: Optional. The configuration for Private Service + // Connect (PSC) for the instance. + PscInstanceConfig *PscInstanceConfig `json:"pscInstanceConfig,omitempty"` + // QueryInsightsConfig: Configuration for query insights. QueryInsightsConfig *QueryInsightsInstanceConfig `json:"queryInsightsConfig,omitempty"` @@ -1551,6 +1592,41 @@ func (s *Instance) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// InstanceNetworkConfig: Metadata related to instance level network +// configuration. +type InstanceNetworkConfig struct { + // AuthorizedExternalNetworks: Optional. A list of external network + // authorized to access this instance. + AuthorizedExternalNetworks []*AuthorizedNetwork `json:"authorizedExternalNetworks,omitempty"` + + // EnablePublicIp: Optional. Enabling public ip for the instance. + EnablePublicIp bool `json:"enablePublicIp,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AuthorizedExternalNetworks") 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. + // "AuthorizedExternalNetworks") 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 *InstanceNetworkConfig) MarshalJSON() ([]byte, error) { + type NoMethod InstanceNetworkConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // IntegerRestrictions: Restrictions on INTEGER type values. type IntegerRestrictions struct { // MaxValue: The maximum value that can be specified, if applicable. @@ -2194,6 +2270,110 @@ func (s *PscConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// PscInstanceConfig: PscInstanceConfig contains PSC related +// configuration at an instance level. NEXT ID: 7 +type PscInstanceConfig struct { + // AllowedConsumerNetworks: Optional. List of consumer networks that are + // allowed to create PSC endpoints to service-attachments to this + // instance. + AllowedConsumerNetworks []string `json:"allowedConsumerNetworks,omitempty"` + + // AllowedConsumerProjects: Optional. List of consumer projects that are + // allowed to create PSC endpoints to service-attachments to this + // instance. + AllowedConsumerProjects []string `json:"allowedConsumerProjects,omitempty"` + + // OutgoingServiceAttachmentLinks: Optional. List of service attachments + // that this instance has created endpoints to connect with. Currently, + // only a single outgoing service attachment is supported per instance. + OutgoingServiceAttachmentLinks []string `json:"outgoingServiceAttachmentLinks,omitempty"` + + // PscEnabled: Optional. Whether PSC connectivity is enabled for this + // instance. This is populated by referencing the value from the parent + // cluster. + PscEnabled bool `json:"pscEnabled,omitempty"` + + // PscInterfaceConfigs: Optional. Configurations for setting up PSC + // interfaces attached to the instance which are used for outbound + // connectivity. Only primary instances can have PSC interface attached. + // All the VMs created for the primary instance will share the same + // configurations. Currently we only support 0 or 1 PSC interface. + PscInterfaceConfigs []*PscInterfaceConfig `json:"pscInterfaceConfigs,omitempty"` + + // ServiceAttachmentLink: Output only. The service attachment created + // when Private Service Connect (PSC) is enabled for the instance. The + // name of the resource will be in the format of + // projects//regions//serviceAttachments/ + ServiceAttachmentLink string `json:"serviceAttachmentLink,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AllowedConsumerNetworks") 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. "AllowedConsumerNetworks") + // 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 *PscInstanceConfig) MarshalJSON() ([]byte, error) { + type NoMethod PscInstanceConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PscInterfaceConfig: Configuration for setting up a PSC interface. +// This information needs to be provided by the customer. PSC interfaces +// will be created and added to VMs via SLM (adding a network interface +// will require recreating the VM). For HA instances this will be done +// via LDTM. +type PscInterfaceConfig struct { + // ConsumerEndpointIps: A list of endpoints in the consumer VPC the + // interface might initiate outbound connections to. This list has to be + // provided when the PSC interface is created. + ConsumerEndpointIps []string `json:"consumerEndpointIps,omitempty"` + + // NetworkAttachment: The NetworkAttachment resource created in the + // consumer VPC to which the PSC interface will be linked, in the form + // of: + // "projects/${CONSUMER_PROJECT}/regions/${REGION}/networkAttachments/${N + // ETWORK_ATTACHMENT_NAME}". NetworkAttachment has to be provided when + // the PSC interface is created. + NetworkAttachment string `json:"networkAttachment,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConsumerEndpointIps") + // 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. "ConsumerEndpointIps") 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 *PscInterfaceConfig) MarshalJSON() ([]byte, error) { + type NoMethod PscInterfaceConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // QuantityBasedExpiry: A backup's position in a quantity-based // retention queue, of backups with the same source cluster and type, // with length, retention, specified by the backup's retention policy. diff --git a/alloydb/v1beta/alloydb-api.json b/alloydb/v1beta/alloydb-api.json index ca7db6ce819..cf0e7b312ee 100644 --- a/alloydb/v1beta/alloydb-api.json +++ b/alloydb/v1beta/alloydb-api.json @@ -1486,9 +1486,20 @@ } } }, - "revision": "20231128", + "revision": "20231206", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { + "AuthorizedNetwork": { + "description": "AuthorizedNetwork contains metadata for an authorized network.", + "id": "AuthorizedNetwork", + "properties": { + "cidrRange": { + "description": "CIDR range for one authorzied network of the instance.", + "type": "string" + } + }, + "type": "object" + }, "AutomatedBackupPolicy": { "description": "Message describing the user-specified automated backup policy. All fields in the automated backup policy are optional. Defaults for each field are provided if they are not set.", "id": "AutomatedBackupPolicy", @@ -1975,6 +1986,11 @@ }, "readOnly": true, "type": "array" + }, + "publicIpAddress": { + "description": "Output only. The public IP addresses for the Instance. This is available ONLY when enable_public_ip is set. This is the connection endpoint for an end-user application.", + "readOnly": true, + "type": "string" } }, "type": "object" @@ -2386,6 +2402,10 @@ "readOnly": true, "type": "string" }, + "networkConfig": { + "$ref": "InstanceNetworkConfig", + "description": "Optional. Instance level network configuration." + }, "nodes": { "description": "Output only. List of available read-only VMs in this instance, including the standby for a PRIMARY instance.", "items": { @@ -2462,6 +2482,24 @@ }, "type": "object" }, + "InstanceNetworkConfig": { + "description": "Metadata related to instance level network configuration.", + "id": "InstanceNetworkConfig", + "properties": { + "authorizedExternalNetworks": { + "description": "Optional. A list of external network authorized to access this instance.", + "items": { + "$ref": "AuthorizedNetwork" + }, + "type": "array" + }, + "enablePublicIp": { + "description": "Optional. Enabling public ip for the instance.", + "type": "boolean" + } + }, + "type": "object" + }, "IntegerRestrictions": { "description": "Restrictions on INTEGER type values.", "id": "IntegerRestrictions", diff --git a/alloydb/v1beta/alloydb-gen.go b/alloydb/v1beta/alloydb-gen.go index ffbe1884284..cd60820be62 100644 --- a/alloydb/v1beta/alloydb-gen.go +++ b/alloydb/v1beta/alloydb-gen.go @@ -244,6 +244,35 @@ type ProjectsLocationsSupportedDatabaseFlagsService struct { s *Service } +// AuthorizedNetwork: AuthorizedNetwork contains metadata for an +// authorized network. +type AuthorizedNetwork struct { + // CidrRange: CIDR range for one authorzied network of the instance. + CidrRange string `json:"cidrRange,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CidrRange") 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. "CidrRange") 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 *AuthorizedNetwork) MarshalJSON() ([]byte, error) { + type NoMethod AuthorizedNetwork + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AutomatedBackupPolicy: Message describing the user-specified // automated backup policy. All fields in the automated backup policy // are optional. Defaults for each field are provided if they are not @@ -774,6 +803,11 @@ type ConnectionInfo struct { // issuer-to-root order according to RFC 5246. PemCertificateChain []string `json:"pemCertificateChain,omitempty"` + // PublicIpAddress: Output only. The public IP addresses for the + // Instance. This is available ONLY when enable_public_ip is set. This + // is the connection endpoint for an end-user application. + PublicIpAddress string `json:"publicIpAddress,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` @@ -1445,6 +1479,9 @@ type Instance struct { // projects/{project}/locations/{region}/clusters/{cluster_id} Name string `json:"name,omitempty"` + // NetworkConfig: Optional. Instance level network configuration. + NetworkConfig *InstanceNetworkConfig `json:"networkConfig,omitempty"` + // Nodes: Output only. List of available read-only VMs in this instance, // including the standby for a PRIMARY instance. Nodes []*Node `json:"nodes,omitempty"` @@ -1533,6 +1570,41 @@ func (s *Instance) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// InstanceNetworkConfig: Metadata related to instance level network +// configuration. +type InstanceNetworkConfig struct { + // AuthorizedExternalNetworks: Optional. A list of external network + // authorized to access this instance. + AuthorizedExternalNetworks []*AuthorizedNetwork `json:"authorizedExternalNetworks,omitempty"` + + // EnablePublicIp: Optional. Enabling public ip for the instance. + EnablePublicIp bool `json:"enablePublicIp,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AuthorizedExternalNetworks") 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. + // "AuthorizedExternalNetworks") 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 *InstanceNetworkConfig) MarshalJSON() ([]byte, error) { + type NoMethod InstanceNetworkConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // IntegerRestrictions: Restrictions on INTEGER type values. type IntegerRestrictions struct { // MaxValue: The maximum value that can be specified, if applicable. diff --git a/backupdr/v1/backupdr-api.json b/backupdr/v1/backupdr-api.json index 82712afdb00..ebfba551ce2 100644 --- a/backupdr/v1/backupdr-api.json +++ b/backupdr/v1/backupdr-api.json @@ -177,6 +177,38 @@ } }, "resources": { + "backupVaults": { + "methods": { + "testIamPermissions": { + "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}:testIamPermissions", + "httpMethod": "POST", + "id": "backupdr.projects.locations.backupVaults.testIamPermissions", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:testIamPermissions", + "request": { + "$ref": "TestIamPermissionsRequest" + }, + "response": { + "$ref": "TestIamPermissionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "managementServers": { "methods": { "create": { @@ -535,7 +567,7 @@ } } }, - "revision": "20231029", + "revision": "20231208", "rootUrl": "https://backupdr.googleapis.com/", "schemas": { "AuditConfig": { @@ -811,7 +843,7 @@ "type": "string" }, "type": { - "description": "Required. The type of the ManagementServer resource.", + "description": "Optional. The type of the ManagementServer resource.", "enum": [ "INSTANCE_TYPE_UNSPECIFIED", "BACKUP_RESTORE" diff --git a/backupdr/v1/backupdr-gen.go b/backupdr/v1/backupdr-gen.go index de390bc630b..b8bd9cdee85 100644 --- a/backupdr/v1/backupdr-gen.go +++ b/backupdr/v1/backupdr-gen.go @@ -165,6 +165,7 @@ type ProjectsService struct { func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} + rs.BackupVaults = NewProjectsLocationsBackupVaultsService(s) rs.ManagementServers = NewProjectsLocationsManagementServersService(s) rs.Operations = NewProjectsLocationsOperationsService(s) return rs @@ -173,11 +174,22 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { type ProjectsLocationsService struct { s *Service + BackupVaults *ProjectsLocationsBackupVaultsService + ManagementServers *ProjectsLocationsManagementServersService Operations *ProjectsLocationsOperationsService } +func NewProjectsLocationsBackupVaultsService(s *Service) *ProjectsLocationsBackupVaultsService { + rs := &ProjectsLocationsBackupVaultsService{s: s} + return rs +} + +type ProjectsLocationsBackupVaultsService struct { + s *Service +} + func NewProjectsLocationsManagementServersService(s *Service) *ProjectsLocationsManagementServersService { rs := &ProjectsLocationsManagementServersService{s: s} return rs @@ -674,7 +686,7 @@ type ManagementServer struct { // Instance resource. State string `json:"state,omitempty"` - // Type: Required. The type of the ManagementServer resource. + // Type: Optional. The type of the ManagementServer resource. // // Possible values: // "INSTANCE_TYPE_UNSPECIFIED" - Instance type is not mentioned. @@ -1595,6 +1607,156 @@ func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocat } } +// method id "backupdr.projects.locations.backupVaults.testIamPermissions": + +type ProjectsLocationsBackupVaultsTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. +// +// - resource: REQUIRED: The resource for which the policy detail is +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsBackupVaultsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsBackupVaultsTestIamPermissionsCall { + c := &ProjectsLocationsBackupVaultsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest + 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 *ProjectsLocationsBackupVaultsTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsBackupVaultsTestIamPermissionsCall { + 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 *ProjectsLocationsBackupVaultsTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsBackupVaultsTestIamPermissionsCall { + 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 *ProjectsLocationsBackupVaultsTestIamPermissionsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsBackupVaultsTestIamPermissionsCall) 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.testiampermissionsrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "backupdr.projects.locations.backupVaults.testIamPermissions" call. +// Exactly one of *TestIamPermissionsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.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 *ProjectsLocationsBackupVaultsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &TestIamPermissionsResponse{ + 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": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/backupVaults/{backupVaultsId}:testIamPermissions", + // "httpMethod": "POST", + // "id": "backupdr.projects.locations.backupVaults.testIamPermissions", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/backupVaults/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:testIamPermissions", + // "request": { + // "$ref": "TestIamPermissionsRequest" + // }, + // "response": { + // "$ref": "TestIamPermissionsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "backupdr.projects.locations.managementServers.create": type ProjectsLocationsManagementServersCreateCall struct { diff --git a/cloudbuild/v2/cloudbuild-api.json b/cloudbuild/v2/cloudbuild-api.json index a7c33256926..1d946dd2ff0 100644 --- a/cloudbuild/v2/cloudbuild-api.json +++ b/cloudbuild/v2/cloudbuild-api.json @@ -844,7 +844,7 @@ } } }, - "revision": "20231127", + "revision": "20231211", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "AuditConfig": { @@ -2470,6 +2470,13 @@ "$ref": "EnvVar" }, "type": "array" + }, + "volumeMounts": { + "description": "Optional. Pod volumes to mount into the container's filesystem.", + "items": { + "$ref": "VolumeMount" + }, + "type": "array" } }, "type": "object" diff --git a/cloudbuild/v2/cloudbuild-gen.go b/cloudbuild/v2/cloudbuild-gen.go index 2e5eb50da60..a88f65de06c 100644 --- a/cloudbuild/v2/cloudbuild-gen.go +++ b/cloudbuild/v2/cloudbuild-gen.go @@ -2728,6 +2728,10 @@ type StepTemplate struct { // Cannot be updated. Env []*EnvVar `json:"env,omitempty"` + // VolumeMounts: Optional. Pod volumes to mount into the container's + // filesystem. + VolumeMounts []*VolumeMount `json:"volumeMounts,omitempty"` + // ForceSendFields is a list of field names (e.g. "Env") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/cloudfunctions/v1/cloudfunctions-api.json b/cloudfunctions/v1/cloudfunctions-api.json index bdd293a3c26..1079d05be00 100644 --- a/cloudfunctions/v1/cloudfunctions-api.json +++ b/cloudfunctions/v1/cloudfunctions-api.json @@ -552,7 +552,7 @@ } } }, - "revision": "20231130", + "revision": "20231207", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -1031,6 +1031,32 @@ "format": "google-datetime", "type": "string" }, + "operationType": { + "description": "The operation type.", + "enum": [ + "OPERATIONTYPE_UNSPECIFIED", + "CREATE_FUNCTION", + "UPDATE_FUNCTION", + "DELETE_FUNCTION", + "REDIRECT_FUNCTION_UPGRADE_TRAFFIC", + "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC", + "SETUP_FUNCTION_UPGRADE_CONFIG", + "ABORT_FUNCTION_UPGRADE", + "COMMIT_FUNCTION_UPGRADE" + ], + "enumDescriptions": [ + "Unspecified", + "CreateFunction", + "UpdateFunction", + "DeleteFunction", + "RedirectFunctionUpgradeTraffic", + "RollbackFunctionUpgradeTraffic", + "SetupFunctionUpgradeConfig", + "AbortFunctionUpgrade", + "CommitFunctionUpgrade" + ], + "type": "string" + }, "requestResource": { "additionalProperties": { "description": "Properties of the object. Contains field @type with type URL.", @@ -1206,6 +1232,32 @@ "format": "google-datetime", "type": "string" }, + "operationType": { + "description": "The operation type.", + "enum": [ + "OPERATIONTYPE_UNSPECIFIED", + "CREATE_FUNCTION", + "UPDATE_FUNCTION", + "DELETE_FUNCTION", + "REDIRECT_FUNCTION_UPGRADE_TRAFFIC", + "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC", + "SETUP_FUNCTION_UPGRADE_CONFIG", + "ABORT_FUNCTION_UPGRADE", + "COMMIT_FUNCTION_UPGRADE" + ], + "enumDescriptions": [ + "Unspecified", + "CreateFunction", + "UpdateFunction", + "DeleteFunction", + "RedirectFunctionUpgradeTraffic", + "RollbackFunctionUpgradeTraffic", + "SetupFunctionUpgradeConfig", + "AbortFunctionUpgrade", + "CommitFunctionUpgrade" + ], + "type": "string" + }, "requestResource": { "additionalProperties": { "description": "Properties of the object. Contains field @type with type URL.", @@ -1381,6 +1433,32 @@ "format": "google-datetime", "type": "string" }, + "operationType": { + "description": "The operation type.", + "enum": [ + "OPERATIONTYPE_UNSPECIFIED", + "CREATE_FUNCTION", + "UPDATE_FUNCTION", + "DELETE_FUNCTION", + "REDIRECT_FUNCTION_UPGRADE_TRAFFIC", + "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC", + "SETUP_FUNCTION_UPGRADE_CONFIG", + "ABORT_FUNCTION_UPGRADE", + "COMMIT_FUNCTION_UPGRADE" + ], + "enumDescriptions": [ + "Unspecified", + "CreateFunction", + "UpdateFunction", + "DeleteFunction", + "RedirectFunctionUpgradeTraffic", + "RollbackFunctionUpgradeTraffic", + "SetupFunctionUpgradeConfig", + "AbortFunctionUpgrade", + "CommitFunctionUpgrade" + ], + "type": "string" + }, "requestResource": { "additionalProperties": { "description": "Properties of the object. Contains field @type with type URL.", diff --git a/cloudfunctions/v1/cloudfunctions-gen.go b/cloudfunctions/v1/cloudfunctions-gen.go index 5c4a6ff95de..f3430395656 100644 --- a/cloudfunctions/v1/cloudfunctions-gen.go +++ b/cloudfunctions/v1/cloudfunctions-gen.go @@ -1058,6 +1058,22 @@ type GoogleCloudFunctionsV2OperationMetadata struct { // EndTime: The time the operation finished running. EndTime string `json:"endTime,omitempty"` + // OperationType: The operation type. + // + // Possible values: + // "OPERATIONTYPE_UNSPECIFIED" - Unspecified + // "CREATE_FUNCTION" - CreateFunction + // "UPDATE_FUNCTION" - UpdateFunction + // "DELETE_FUNCTION" - DeleteFunction + // "REDIRECT_FUNCTION_UPGRADE_TRAFFIC" - + // RedirectFunctionUpgradeTraffic + // "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC" - + // RollbackFunctionUpgradeTraffic + // "SETUP_FUNCTION_UPGRADE_CONFIG" - SetupFunctionUpgradeConfig + // "ABORT_FUNCTION_UPGRADE" - AbortFunctionUpgrade + // "COMMIT_FUNCTION_UPGRADE" - CommitFunctionUpgrade + OperationType string `json:"operationType,omitempty"` + // RequestResource: The original request that started the operation. RequestResource googleapi.RawMessage `json:"requestResource,omitempty"` @@ -1251,6 +1267,22 @@ type GoogleCloudFunctionsV2alphaOperationMetadata struct { // EndTime: The time the operation finished running. EndTime string `json:"endTime,omitempty"` + // OperationType: The operation type. + // + // Possible values: + // "OPERATIONTYPE_UNSPECIFIED" - Unspecified + // "CREATE_FUNCTION" - CreateFunction + // "UPDATE_FUNCTION" - UpdateFunction + // "DELETE_FUNCTION" - DeleteFunction + // "REDIRECT_FUNCTION_UPGRADE_TRAFFIC" - + // RedirectFunctionUpgradeTraffic + // "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC" - + // RollbackFunctionUpgradeTraffic + // "SETUP_FUNCTION_UPGRADE_CONFIG" - SetupFunctionUpgradeConfig + // "ABORT_FUNCTION_UPGRADE" - AbortFunctionUpgrade + // "COMMIT_FUNCTION_UPGRADE" - CommitFunctionUpgrade + OperationType string `json:"operationType,omitempty"` + // RequestResource: The original request that started the operation. RequestResource googleapi.RawMessage `json:"requestResource,omitempty"` @@ -1445,6 +1477,22 @@ type GoogleCloudFunctionsV2betaOperationMetadata struct { // EndTime: The time the operation finished running. EndTime string `json:"endTime,omitempty"` + // OperationType: The operation type. + // + // Possible values: + // "OPERATIONTYPE_UNSPECIFIED" - Unspecified + // "CREATE_FUNCTION" - CreateFunction + // "UPDATE_FUNCTION" - UpdateFunction + // "DELETE_FUNCTION" - DeleteFunction + // "REDIRECT_FUNCTION_UPGRADE_TRAFFIC" - + // RedirectFunctionUpgradeTraffic + // "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC" - + // RollbackFunctionUpgradeTraffic + // "SETUP_FUNCTION_UPGRADE_CONFIG" - SetupFunctionUpgradeConfig + // "ABORT_FUNCTION_UPGRADE" - AbortFunctionUpgrade + // "COMMIT_FUNCTION_UPGRADE" - CommitFunctionUpgrade + OperationType string `json:"operationType,omitempty"` + // RequestResource: The original request that started the operation. RequestResource googleapi.RawMessage `json:"requestResource,omitempty"` diff --git a/cloudfunctions/v2/cloudfunctions-api.json b/cloudfunctions/v2/cloudfunctions-api.json index 9a500cd1c57..3f8b50f72f1 100644 --- a/cloudfunctions/v2/cloudfunctions-api.json +++ b/cloudfunctions/v2/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20231130", + "revision": "20231207", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -1013,6 +1013,32 @@ "format": "google-datetime", "type": "string" }, + "operationType": { + "description": "The operation type.", + "enum": [ + "OPERATIONTYPE_UNSPECIFIED", + "CREATE_FUNCTION", + "UPDATE_FUNCTION", + "DELETE_FUNCTION", + "REDIRECT_FUNCTION_UPGRADE_TRAFFIC", + "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC", + "SETUP_FUNCTION_UPGRADE_CONFIG", + "ABORT_FUNCTION_UPGRADE", + "COMMIT_FUNCTION_UPGRADE" + ], + "enumDescriptions": [ + "Unspecified", + "CreateFunction", + "UpdateFunction", + "DeleteFunction", + "RedirectFunctionUpgradeTraffic", + "RollbackFunctionUpgradeTraffic", + "SetupFunctionUpgradeConfig", + "AbortFunctionUpgrade", + "CommitFunctionUpgrade" + ], + "type": "string" + }, "requestResource": { "additionalProperties": { "description": "Properties of the object. Contains field @type with type URL.", @@ -1188,6 +1214,32 @@ "format": "google-datetime", "type": "string" }, + "operationType": { + "description": "The operation type.", + "enum": [ + "OPERATIONTYPE_UNSPECIFIED", + "CREATE_FUNCTION", + "UPDATE_FUNCTION", + "DELETE_FUNCTION", + "REDIRECT_FUNCTION_UPGRADE_TRAFFIC", + "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC", + "SETUP_FUNCTION_UPGRADE_CONFIG", + "ABORT_FUNCTION_UPGRADE", + "COMMIT_FUNCTION_UPGRADE" + ], + "enumDescriptions": [ + "Unspecified", + "CreateFunction", + "UpdateFunction", + "DeleteFunction", + "RedirectFunctionUpgradeTraffic", + "RollbackFunctionUpgradeTraffic", + "SetupFunctionUpgradeConfig", + "AbortFunctionUpgrade", + "CommitFunctionUpgrade" + ], + "type": "string" + }, "requestResource": { "additionalProperties": { "description": "Properties of the object. Contains field @type with type URL.", @@ -1363,6 +1415,32 @@ "format": "google-datetime", "type": "string" }, + "operationType": { + "description": "The operation type.", + "enum": [ + "OPERATIONTYPE_UNSPECIFIED", + "CREATE_FUNCTION", + "UPDATE_FUNCTION", + "DELETE_FUNCTION", + "REDIRECT_FUNCTION_UPGRADE_TRAFFIC", + "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC", + "SETUP_FUNCTION_UPGRADE_CONFIG", + "ABORT_FUNCTION_UPGRADE", + "COMMIT_FUNCTION_UPGRADE" + ], + "enumDescriptions": [ + "Unspecified", + "CreateFunction", + "UpdateFunction", + "DeleteFunction", + "RedirectFunctionUpgradeTraffic", + "RollbackFunctionUpgradeTraffic", + "SetupFunctionUpgradeConfig", + "AbortFunctionUpgrade", + "CommitFunctionUpgrade" + ], + "type": "string" + }, "requestResource": { "additionalProperties": { "description": "Properties of the object. Contains field @type with type URL.", diff --git a/cloudfunctions/v2/cloudfunctions-gen.go b/cloudfunctions/v2/cloudfunctions-gen.go index 73470b98c69..51994c50a67 100644 --- a/cloudfunctions/v2/cloudfunctions-gen.go +++ b/cloudfunctions/v2/cloudfunctions-gen.go @@ -986,6 +986,22 @@ type GoogleCloudFunctionsV2OperationMetadata struct { // EndTime: The time the operation finished running. EndTime string `json:"endTime,omitempty"` + // OperationType: The operation type. + // + // Possible values: + // "OPERATIONTYPE_UNSPECIFIED" - Unspecified + // "CREATE_FUNCTION" - CreateFunction + // "UPDATE_FUNCTION" - UpdateFunction + // "DELETE_FUNCTION" - DeleteFunction + // "REDIRECT_FUNCTION_UPGRADE_TRAFFIC" - + // RedirectFunctionUpgradeTraffic + // "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC" - + // RollbackFunctionUpgradeTraffic + // "SETUP_FUNCTION_UPGRADE_CONFIG" - SetupFunctionUpgradeConfig + // "ABORT_FUNCTION_UPGRADE" - AbortFunctionUpgrade + // "COMMIT_FUNCTION_UPGRADE" - CommitFunctionUpgrade + OperationType string `json:"operationType,omitempty"` + // RequestResource: The original request that started the operation. RequestResource googleapi.RawMessage `json:"requestResource,omitempty"` @@ -1179,6 +1195,22 @@ type GoogleCloudFunctionsV2alphaOperationMetadata struct { // EndTime: The time the operation finished running. EndTime string `json:"endTime,omitempty"` + // OperationType: The operation type. + // + // Possible values: + // "OPERATIONTYPE_UNSPECIFIED" - Unspecified + // "CREATE_FUNCTION" - CreateFunction + // "UPDATE_FUNCTION" - UpdateFunction + // "DELETE_FUNCTION" - DeleteFunction + // "REDIRECT_FUNCTION_UPGRADE_TRAFFIC" - + // RedirectFunctionUpgradeTraffic + // "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC" - + // RollbackFunctionUpgradeTraffic + // "SETUP_FUNCTION_UPGRADE_CONFIG" - SetupFunctionUpgradeConfig + // "ABORT_FUNCTION_UPGRADE" - AbortFunctionUpgrade + // "COMMIT_FUNCTION_UPGRADE" - CommitFunctionUpgrade + OperationType string `json:"operationType,omitempty"` + // RequestResource: The original request that started the operation. RequestResource googleapi.RawMessage `json:"requestResource,omitempty"` @@ -1373,6 +1405,22 @@ type GoogleCloudFunctionsV2betaOperationMetadata struct { // EndTime: The time the operation finished running. EndTime string `json:"endTime,omitempty"` + // OperationType: The operation type. + // + // Possible values: + // "OPERATIONTYPE_UNSPECIFIED" - Unspecified + // "CREATE_FUNCTION" - CreateFunction + // "UPDATE_FUNCTION" - UpdateFunction + // "DELETE_FUNCTION" - DeleteFunction + // "REDIRECT_FUNCTION_UPGRADE_TRAFFIC" - + // RedirectFunctionUpgradeTraffic + // "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC" - + // RollbackFunctionUpgradeTraffic + // "SETUP_FUNCTION_UPGRADE_CONFIG" - SetupFunctionUpgradeConfig + // "ABORT_FUNCTION_UPGRADE" - AbortFunctionUpgrade + // "COMMIT_FUNCTION_UPGRADE" - CommitFunctionUpgrade + OperationType string `json:"operationType,omitempty"` + // RequestResource: The original request that started the operation. RequestResource googleapi.RawMessage `json:"requestResource,omitempty"` diff --git a/cloudfunctions/v2alpha/cloudfunctions-api.json b/cloudfunctions/v2alpha/cloudfunctions-api.json index 424ca79c155..d307f63e9aa 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-api.json +++ b/cloudfunctions/v2alpha/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20231130", + "revision": "20231207", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -1013,6 +1013,32 @@ "format": "google-datetime", "type": "string" }, + "operationType": { + "description": "The operation type.", + "enum": [ + "OPERATIONTYPE_UNSPECIFIED", + "CREATE_FUNCTION", + "UPDATE_FUNCTION", + "DELETE_FUNCTION", + "REDIRECT_FUNCTION_UPGRADE_TRAFFIC", + "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC", + "SETUP_FUNCTION_UPGRADE_CONFIG", + "ABORT_FUNCTION_UPGRADE", + "COMMIT_FUNCTION_UPGRADE" + ], + "enumDescriptions": [ + "Unspecified", + "CreateFunction", + "UpdateFunction", + "DeleteFunction", + "RedirectFunctionUpgradeTraffic", + "RollbackFunctionUpgradeTraffic", + "SetupFunctionUpgradeConfig", + "AbortFunctionUpgrade", + "CommitFunctionUpgrade" + ], + "type": "string" + }, "requestResource": { "additionalProperties": { "description": "Properties of the object. Contains field @type with type URL.", @@ -1188,6 +1214,32 @@ "format": "google-datetime", "type": "string" }, + "operationType": { + "description": "The operation type.", + "enum": [ + "OPERATIONTYPE_UNSPECIFIED", + "CREATE_FUNCTION", + "UPDATE_FUNCTION", + "DELETE_FUNCTION", + "REDIRECT_FUNCTION_UPGRADE_TRAFFIC", + "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC", + "SETUP_FUNCTION_UPGRADE_CONFIG", + "ABORT_FUNCTION_UPGRADE", + "COMMIT_FUNCTION_UPGRADE" + ], + "enumDescriptions": [ + "Unspecified", + "CreateFunction", + "UpdateFunction", + "DeleteFunction", + "RedirectFunctionUpgradeTraffic", + "RollbackFunctionUpgradeTraffic", + "SetupFunctionUpgradeConfig", + "AbortFunctionUpgrade", + "CommitFunctionUpgrade" + ], + "type": "string" + }, "requestResource": { "additionalProperties": { "description": "Properties of the object. Contains field @type with type URL.", @@ -1363,6 +1415,32 @@ "format": "google-datetime", "type": "string" }, + "operationType": { + "description": "The operation type.", + "enum": [ + "OPERATIONTYPE_UNSPECIFIED", + "CREATE_FUNCTION", + "UPDATE_FUNCTION", + "DELETE_FUNCTION", + "REDIRECT_FUNCTION_UPGRADE_TRAFFIC", + "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC", + "SETUP_FUNCTION_UPGRADE_CONFIG", + "ABORT_FUNCTION_UPGRADE", + "COMMIT_FUNCTION_UPGRADE" + ], + "enumDescriptions": [ + "Unspecified", + "CreateFunction", + "UpdateFunction", + "DeleteFunction", + "RedirectFunctionUpgradeTraffic", + "RollbackFunctionUpgradeTraffic", + "SetupFunctionUpgradeConfig", + "AbortFunctionUpgrade", + "CommitFunctionUpgrade" + ], + "type": "string" + }, "requestResource": { "additionalProperties": { "description": "Properties of the object. Contains field @type with type URL.", diff --git a/cloudfunctions/v2alpha/cloudfunctions-gen.go b/cloudfunctions/v2alpha/cloudfunctions-gen.go index 4736fea74a9..bc6518508cf 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-gen.go +++ b/cloudfunctions/v2alpha/cloudfunctions-gen.go @@ -986,6 +986,22 @@ type GoogleCloudFunctionsV2OperationMetadata struct { // EndTime: The time the operation finished running. EndTime string `json:"endTime,omitempty"` + // OperationType: The operation type. + // + // Possible values: + // "OPERATIONTYPE_UNSPECIFIED" - Unspecified + // "CREATE_FUNCTION" - CreateFunction + // "UPDATE_FUNCTION" - UpdateFunction + // "DELETE_FUNCTION" - DeleteFunction + // "REDIRECT_FUNCTION_UPGRADE_TRAFFIC" - + // RedirectFunctionUpgradeTraffic + // "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC" - + // RollbackFunctionUpgradeTraffic + // "SETUP_FUNCTION_UPGRADE_CONFIG" - SetupFunctionUpgradeConfig + // "ABORT_FUNCTION_UPGRADE" - AbortFunctionUpgrade + // "COMMIT_FUNCTION_UPGRADE" - CommitFunctionUpgrade + OperationType string `json:"operationType,omitempty"` + // RequestResource: The original request that started the operation. RequestResource googleapi.RawMessage `json:"requestResource,omitempty"` @@ -1179,6 +1195,22 @@ type GoogleCloudFunctionsV2alphaOperationMetadata struct { // EndTime: The time the operation finished running. EndTime string `json:"endTime,omitempty"` + // OperationType: The operation type. + // + // Possible values: + // "OPERATIONTYPE_UNSPECIFIED" - Unspecified + // "CREATE_FUNCTION" - CreateFunction + // "UPDATE_FUNCTION" - UpdateFunction + // "DELETE_FUNCTION" - DeleteFunction + // "REDIRECT_FUNCTION_UPGRADE_TRAFFIC" - + // RedirectFunctionUpgradeTraffic + // "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC" - + // RollbackFunctionUpgradeTraffic + // "SETUP_FUNCTION_UPGRADE_CONFIG" - SetupFunctionUpgradeConfig + // "ABORT_FUNCTION_UPGRADE" - AbortFunctionUpgrade + // "COMMIT_FUNCTION_UPGRADE" - CommitFunctionUpgrade + OperationType string `json:"operationType,omitempty"` + // RequestResource: The original request that started the operation. RequestResource googleapi.RawMessage `json:"requestResource,omitempty"` @@ -1373,6 +1405,22 @@ type GoogleCloudFunctionsV2betaOperationMetadata struct { // EndTime: The time the operation finished running. EndTime string `json:"endTime,omitempty"` + // OperationType: The operation type. + // + // Possible values: + // "OPERATIONTYPE_UNSPECIFIED" - Unspecified + // "CREATE_FUNCTION" - CreateFunction + // "UPDATE_FUNCTION" - UpdateFunction + // "DELETE_FUNCTION" - DeleteFunction + // "REDIRECT_FUNCTION_UPGRADE_TRAFFIC" - + // RedirectFunctionUpgradeTraffic + // "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC" - + // RollbackFunctionUpgradeTraffic + // "SETUP_FUNCTION_UPGRADE_CONFIG" - SetupFunctionUpgradeConfig + // "ABORT_FUNCTION_UPGRADE" - AbortFunctionUpgrade + // "COMMIT_FUNCTION_UPGRADE" - CommitFunctionUpgrade + OperationType string `json:"operationType,omitempty"` + // RequestResource: The original request that started the operation. RequestResource googleapi.RawMessage `json:"requestResource,omitempty"` diff --git a/cloudfunctions/v2beta/cloudfunctions-api.json b/cloudfunctions/v2beta/cloudfunctions-api.json index b3ce9788db6..52e5996966e 100644 --- a/cloudfunctions/v2beta/cloudfunctions-api.json +++ b/cloudfunctions/v2beta/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20231130", + "revision": "20231207", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -1013,6 +1013,32 @@ "format": "google-datetime", "type": "string" }, + "operationType": { + "description": "The operation type.", + "enum": [ + "OPERATIONTYPE_UNSPECIFIED", + "CREATE_FUNCTION", + "UPDATE_FUNCTION", + "DELETE_FUNCTION", + "REDIRECT_FUNCTION_UPGRADE_TRAFFIC", + "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC", + "SETUP_FUNCTION_UPGRADE_CONFIG", + "ABORT_FUNCTION_UPGRADE", + "COMMIT_FUNCTION_UPGRADE" + ], + "enumDescriptions": [ + "Unspecified", + "CreateFunction", + "UpdateFunction", + "DeleteFunction", + "RedirectFunctionUpgradeTraffic", + "RollbackFunctionUpgradeTraffic", + "SetupFunctionUpgradeConfig", + "AbortFunctionUpgrade", + "CommitFunctionUpgrade" + ], + "type": "string" + }, "requestResource": { "additionalProperties": { "description": "Properties of the object. Contains field @type with type URL.", @@ -1188,6 +1214,32 @@ "format": "google-datetime", "type": "string" }, + "operationType": { + "description": "The operation type.", + "enum": [ + "OPERATIONTYPE_UNSPECIFIED", + "CREATE_FUNCTION", + "UPDATE_FUNCTION", + "DELETE_FUNCTION", + "REDIRECT_FUNCTION_UPGRADE_TRAFFIC", + "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC", + "SETUP_FUNCTION_UPGRADE_CONFIG", + "ABORT_FUNCTION_UPGRADE", + "COMMIT_FUNCTION_UPGRADE" + ], + "enumDescriptions": [ + "Unspecified", + "CreateFunction", + "UpdateFunction", + "DeleteFunction", + "RedirectFunctionUpgradeTraffic", + "RollbackFunctionUpgradeTraffic", + "SetupFunctionUpgradeConfig", + "AbortFunctionUpgrade", + "CommitFunctionUpgrade" + ], + "type": "string" + }, "requestResource": { "additionalProperties": { "description": "Properties of the object. Contains field @type with type URL.", @@ -1363,6 +1415,32 @@ "format": "google-datetime", "type": "string" }, + "operationType": { + "description": "The operation type.", + "enum": [ + "OPERATIONTYPE_UNSPECIFIED", + "CREATE_FUNCTION", + "UPDATE_FUNCTION", + "DELETE_FUNCTION", + "REDIRECT_FUNCTION_UPGRADE_TRAFFIC", + "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC", + "SETUP_FUNCTION_UPGRADE_CONFIG", + "ABORT_FUNCTION_UPGRADE", + "COMMIT_FUNCTION_UPGRADE" + ], + "enumDescriptions": [ + "Unspecified", + "CreateFunction", + "UpdateFunction", + "DeleteFunction", + "RedirectFunctionUpgradeTraffic", + "RollbackFunctionUpgradeTraffic", + "SetupFunctionUpgradeConfig", + "AbortFunctionUpgrade", + "CommitFunctionUpgrade" + ], + "type": "string" + }, "requestResource": { "additionalProperties": { "description": "Properties of the object. Contains field @type with type URL.", diff --git a/cloudfunctions/v2beta/cloudfunctions-gen.go b/cloudfunctions/v2beta/cloudfunctions-gen.go index 1feed76e421..1c67198d511 100644 --- a/cloudfunctions/v2beta/cloudfunctions-gen.go +++ b/cloudfunctions/v2beta/cloudfunctions-gen.go @@ -986,6 +986,22 @@ type GoogleCloudFunctionsV2OperationMetadata struct { // EndTime: The time the operation finished running. EndTime string `json:"endTime,omitempty"` + // OperationType: The operation type. + // + // Possible values: + // "OPERATIONTYPE_UNSPECIFIED" - Unspecified + // "CREATE_FUNCTION" - CreateFunction + // "UPDATE_FUNCTION" - UpdateFunction + // "DELETE_FUNCTION" - DeleteFunction + // "REDIRECT_FUNCTION_UPGRADE_TRAFFIC" - + // RedirectFunctionUpgradeTraffic + // "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC" - + // RollbackFunctionUpgradeTraffic + // "SETUP_FUNCTION_UPGRADE_CONFIG" - SetupFunctionUpgradeConfig + // "ABORT_FUNCTION_UPGRADE" - AbortFunctionUpgrade + // "COMMIT_FUNCTION_UPGRADE" - CommitFunctionUpgrade + OperationType string `json:"operationType,omitempty"` + // RequestResource: The original request that started the operation. RequestResource googleapi.RawMessage `json:"requestResource,omitempty"` @@ -1179,6 +1195,22 @@ type GoogleCloudFunctionsV2alphaOperationMetadata struct { // EndTime: The time the operation finished running. EndTime string `json:"endTime,omitempty"` + // OperationType: The operation type. + // + // Possible values: + // "OPERATIONTYPE_UNSPECIFIED" - Unspecified + // "CREATE_FUNCTION" - CreateFunction + // "UPDATE_FUNCTION" - UpdateFunction + // "DELETE_FUNCTION" - DeleteFunction + // "REDIRECT_FUNCTION_UPGRADE_TRAFFIC" - + // RedirectFunctionUpgradeTraffic + // "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC" - + // RollbackFunctionUpgradeTraffic + // "SETUP_FUNCTION_UPGRADE_CONFIG" - SetupFunctionUpgradeConfig + // "ABORT_FUNCTION_UPGRADE" - AbortFunctionUpgrade + // "COMMIT_FUNCTION_UPGRADE" - CommitFunctionUpgrade + OperationType string `json:"operationType,omitempty"` + // RequestResource: The original request that started the operation. RequestResource googleapi.RawMessage `json:"requestResource,omitempty"` @@ -1373,6 +1405,22 @@ type GoogleCloudFunctionsV2betaOperationMetadata struct { // EndTime: The time the operation finished running. EndTime string `json:"endTime,omitempty"` + // OperationType: The operation type. + // + // Possible values: + // "OPERATIONTYPE_UNSPECIFIED" - Unspecified + // "CREATE_FUNCTION" - CreateFunction + // "UPDATE_FUNCTION" - UpdateFunction + // "DELETE_FUNCTION" - DeleteFunction + // "REDIRECT_FUNCTION_UPGRADE_TRAFFIC" - + // RedirectFunctionUpgradeTraffic + // "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC" - + // RollbackFunctionUpgradeTraffic + // "SETUP_FUNCTION_UPGRADE_CONFIG" - SetupFunctionUpgradeConfig + // "ABORT_FUNCTION_UPGRADE" - AbortFunctionUpgrade + // "COMMIT_FUNCTION_UPGRADE" - CommitFunctionUpgrade + OperationType string `json:"operationType,omitempty"` + // RequestResource: The original request that started the operation. RequestResource googleapi.RawMessage `json:"requestResource,omitempty"` diff --git a/cloudidentity/v1/cloudidentity-api.json b/cloudidentity/v1/cloudidentity-api.json index c8ffef089f5..32049aa33f1 100644 --- a/cloudidentity/v1/cloudidentity-api.json +++ b/cloudidentity/v1/cloudidentity-api.json @@ -1052,7 +1052,7 @@ "parameterOrder": [], "parameters": { "groupKey.id": { - "description": "The ID of the entity. For Google-managed entities, the `id` should be the email address of an existing group or user. For external-identity-mapped entities, the `id` must be a string conforming to the Identity Source's requirements. Must be unique within a `namespace`.", + "description": "The ID of the entity. For Google-managed entities, the `id` should be the email address of an existing group or user. Email addresses need to adhere to [name guidelines for users and groups](https://support.google.com/a/answer/9193374). For external-identity-mapped entities, the `id` must be a string conforming to the Identity Source's requirements. Must be unique within a `namespace`.", "location": "query", "type": "string" }, @@ -1126,7 +1126,7 @@ "type": "string" }, "query": { - "description": "Required. The search query. * Must be specified in [Common Expression Language](https://opensource.google/projects/cel). * Must contain equality operators on the parent, e.g. `parent == 'customers/{customer_id}'`. The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793) * Can contain optional inclusion operators on `labels` such as `'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). * Can contain an optional equality operator on `domain_name`. e.g. `domain_name == 'abc.com'` * Can contain optional `startsWith/contains/equality` operators on `group_key`, e.g. `group_key.startsWith('dev')`, `group_key.contains('dev'), group_key == 'dev@abc.com'` * Can contain optional `startsWith/contains/equality` operators on `display_name`, such as `display_name.startsWith('dev')` , `display_name.contains('dev')`, `display_name == 'dev'`", + "description": "Required. The search query. * Must be specified in [Common Expression Language](https://opensource.google/projects/cel). * Must contain equality operators on the parent, e.g. `parent == 'customers/{customer_id}'`. The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793) * Can contain optional inclusion operators on `labels` such as `'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). * Can contain an optional equality operator on `domain_name`. e.g. `domain_name == 'examplepetstore.com'` * Can contain optional `startsWith/contains/equality` operators on `group_key`, e.g. `group_key.startsWith('dev')`, `group_key.contains('dev'), group_key == 'dev@examplepetstore.com'` * Can contain optional `startsWith/contains/equality` operators on `display_name`, such as `display_name.startsWith('dev')` , `display_name.contains('dev')`, `display_name == 'dev'`", "location": "query", "type": "string" }, @@ -1404,7 +1404,7 @@ ], "parameters": { "memberKey.id": { - "description": "The ID of the entity. For Google-managed entities, the `id` should be the email address of an existing group or user. For external-identity-mapped entities, the `id` must be a string conforming to the Identity Source's requirements. Must be unique within a `namespace`.", + "description": "The ID of the entity. For Google-managed entities, the `id` should be the email address of an existing group or user. Email addresses need to adhere to [name guidelines for users and groups](https://support.google.com/a/answer/9193374). For external-identity-mapped entities, the `id` must be a string conforming to the Identity Source's requirements. Must be unique within a `namespace`.", "location": "query", "type": "string" }, @@ -1990,7 +1990,7 @@ } } }, - "revision": "20230808", + "revision": "20231211", "rootUrl": "https://cloudidentity.googleapis.com/", "schemas": { "AddIdpCredentialOperationMetadata": { @@ -2168,7 +2168,7 @@ "id": "EntityKey", "properties": { "id": { - "description": "The ID of the entity. For Google-managed entities, the `id` should be the email address of an existing group or user. For external-identity-mapped entities, the `id` must be a string conforming to the Identity Source's requirements. Must be unique within a `namespace`.", + "description": "The ID of the entity. For Google-managed entities, the `id` should be the email address of an existing group or user. Email addresses need to adhere to [name guidelines for users and groups](https://support.google.com/a/answer/9193374). For external-identity-mapped entities, the `id` must be a string conforming to the Identity Source's requirements. Must be unique within a `namespace`.", "type": "string" }, "namespace": { diff --git a/cloudidentity/v1/cloudidentity-gen.go b/cloudidentity/v1/cloudidentity-gen.go index 03ccafc1a11..3d2f1246905 100644 --- a/cloudidentity/v1/cloudidentity-gen.go +++ b/cloudidentity/v1/cloudidentity-gen.go @@ -571,7 +571,9 @@ func (s *DynamicGroupStatus) MarshalJSON() ([]byte, error) { // with different `namespace`s. type EntityKey struct { // Id: The ID of the entity. For Google-managed entities, the `id` - // should be the email address of an existing group or user. For + // should be the email address of an existing group or user. Email + // addresses need to adhere to name guidelines for users and groups + // (https://support.google.com/a/answer/9193374). For // external-identity-mapped entities, the `id` must be a string // conforming to the Identity Source's requirements. Must be unique // within a `namespace`. @@ -8272,9 +8274,12 @@ func (r *GroupsService) Lookup() *GroupsLookupCall { // GroupKeyId sets the optional parameter "groupKey.id": The ID of the // entity. For Google-managed entities, the `id` should be the email -// address of an existing group or user. For external-identity-mapped -// entities, the `id` must be a string conforming to the Identity -// Source's requirements. Must be unique within a `namespace`. +// address of an existing group or user. Email addresses need to adhere +// to name guidelines for users and groups +// (https://support.google.com/a/answer/9193374). For +// external-identity-mapped entities, the `id` must be a string +// conforming to the Identity Source's requirements. Must be unique +// within a `namespace`. func (c *GroupsLookupCall) GroupKeyId(groupKeyId string) *GroupsLookupCall { c.urlParams_.Set("groupKey.id", groupKeyId) return c @@ -8395,7 +8400,7 @@ func (c *GroupsLookupCall) Do(opts ...googleapi.CallOption) (*LookupGroupNameRes // "parameterOrder": [], // "parameters": { // "groupKey.id": { - // "description": "The ID of the entity. For Google-managed entities, the `id` should be the email address of an existing group or user. For external-identity-mapped entities, the `id` must be a string conforming to the Identity Source's requirements. Must be unique within a `namespace`.", + // "description": "The ID of the entity. For Google-managed entities, the `id` should be the email address of an existing group or user. Email addresses need to adhere to [name guidelines for users and groups](https://support.google.com/a/answer/9193374). For external-identity-mapped entities, the `id` must be a string conforming to the Identity Source's requirements. Must be unique within a `namespace`.", // "location": "query", // "type": "string" // }, @@ -8624,10 +8629,10 @@ func (c *GroupsSearchCall) PageToken(pageToken string) *GroupsSearchCall { // contain optional inclusion operators on `labels` such as // `'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). // * Can contain an optional equality operator on `domain_name`. e.g. -// `domain_name == 'abc.com'` * Can contain optional +// `domain_name == 'examplepetstore.com'` * Can contain optional // `startsWith/contains/equality` operators on `group_key`, e.g. // `group_key.startsWith('dev')`, `group_key.contains('dev'), group_key -// == 'dev@abc.com'` * Can contain optional +// == 'dev@examplepetstore.com'` * Can contain optional // `startsWith/contains/equality` operators on `display_name`, such as // `display_name.startsWith('dev')` , `display_name.contains('dev')`, // `display_name == 'dev'` @@ -8763,7 +8768,7 @@ func (c *GroupsSearchCall) Do(opts ...googleapi.CallOption) (*SearchGroupsRespon // "type": "string" // }, // "query": { - // "description": "Required. The search query. * Must be specified in [Common Expression Language](https://opensource.google/projects/cel). * Must contain equality operators on the parent, e.g. `parent == 'customers/{customer_id}'`. The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793) * Can contain optional inclusion operators on `labels` such as `'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). * Can contain an optional equality operator on `domain_name`. e.g. `domain_name == 'abc.com'` * Can contain optional `startsWith/contains/equality` operators on `group_key`, e.g. `group_key.startsWith('dev')`, `group_key.contains('dev'), group_key == 'dev@abc.com'` * Can contain optional `startsWith/contains/equality` operators on `display_name`, such as `display_name.startsWith('dev')` , `display_name.contains('dev')`, `display_name == 'dev'`", + // "description": "Required. The search query. * Must be specified in [Common Expression Language](https://opensource.google/projects/cel). * Must contain equality operators on the parent, e.g. `parent == 'customers/{customer_id}'`. The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793) * Can contain optional inclusion operators on `labels` such as `'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). * Can contain an optional equality operator on `domain_name`. e.g. `domain_name == 'examplepetstore.com'` * Can contain optional `startsWith/contains/equality` operators on `group_key`, e.g. `group_key.startsWith('dev')`, `group_key.contains('dev'), group_key == 'dev@examplepetstore.com'` * Can contain optional `startsWith/contains/equality` operators on `display_name`, such as `display_name.startsWith('dev')` , `display_name.contains('dev')`, `display_name == 'dev'`", // "location": "query", // "type": "string" // }, @@ -10018,9 +10023,12 @@ func (r *GroupsMembershipsService) Lookup(parent string) *GroupsMembershipsLooku // MemberKeyId sets the optional parameter "memberKey.id": The ID of the // entity. For Google-managed entities, the `id` should be the email -// address of an existing group or user. For external-identity-mapped -// entities, the `id` must be a string conforming to the Identity -// Source's requirements. Must be unique within a `namespace`. +// address of an existing group or user. Email addresses need to adhere +// to name guidelines for users and groups +// (https://support.google.com/a/answer/9193374). For +// external-identity-mapped entities, the `id` must be a string +// conforming to the Identity Source's requirements. Must be unique +// within a `namespace`. func (c *GroupsMembershipsLookupCall) MemberKeyId(memberKeyId string) *GroupsMembershipsLookupCall { c.urlParams_.Set("memberKey.id", memberKeyId) return c @@ -10146,7 +10154,7 @@ func (c *GroupsMembershipsLookupCall) Do(opts ...googleapi.CallOption) (*LookupM // ], // "parameters": { // "memberKey.id": { - // "description": "The ID of the entity. For Google-managed entities, the `id` should be the email address of an existing group or user. For external-identity-mapped entities, the `id` must be a string conforming to the Identity Source's requirements. Must be unique within a `namespace`.", + // "description": "The ID of the entity. For Google-managed entities, the `id` should be the email address of an existing group or user. Email addresses need to adhere to [name guidelines for users and groups](https://support.google.com/a/answer/9193374). For external-identity-mapped entities, the `id` must be a string conforming to the Identity Source's requirements. Must be unique within a `namespace`.", // "location": "query", // "type": "string" // }, diff --git a/cloudidentity/v1beta1/cloudidentity-api.json b/cloudidentity/v1beta1/cloudidentity-api.json index 1a7a9ea48fd..903cc4945e3 100644 --- a/cloudidentity/v1beta1/cloudidentity-api.json +++ b/cloudidentity/v1beta1/cloudidentity-api.json @@ -1079,7 +1079,7 @@ "type": "string" }, "query": { - "description": "Required. The search query. * Must be specified in [Common Expression Language](https://opensource.google/projects/cel). * Must contain equality operators on the parent, e.g. `parent == 'customers/{customer_id}'`. The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793) * Can contain optional inclusion operators on `labels` such as `'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). * Can contain an optional equality operator on `domain_name`. e.g. `domain_name == 'abc.com'` * Can contain optional `startsWith/contains/equality` operators on `group_key`, e.g. `group_key.startsWith('dev')`, `group_key.contains('dev'), group_key == 'dev@abc.com'` * Can contain optional `startsWith/contains/equality` operators on `display_name`, such as `display_name.startsWith('dev')` , `display_name.contains('dev')`, `display_name == 'dev'`", + "description": "Required. The search query. * Must be specified in [Common Expression Language](https://opensource.google/projects/cel). * Must contain equality operators on the parent, e.g. `parent == 'customers/{customer_id}'`. The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793) * Can contain optional inclusion operators on `labels` such as `'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). * Can contain an optional equality operator on `domain_name`. e.g. `domain_name == 'examplepetstore.com'` * Can contain optional `startsWith/contains/equality` operators on `group_key`, e.g. `group_key.startsWith('dev')`, `group_key.contains('dev'), group_key == 'dev@examplepetstore.com'` * Can contain optional `startsWith/contains/equality` operators on `display_name`, such as `display_name.startsWith('dev')` , `display_name.contains('dev')`, `display_name == 'dev'`", "location": "query", "type": "string" }, @@ -2015,7 +2015,7 @@ } } }, - "revision": "20230808", + "revision": "20231211", "rootUrl": "https://cloudidentity.googleapis.com/", "schemas": { "AddIdpCredentialOperationMetadata": { diff --git a/cloudidentity/v1beta1/cloudidentity-gen.go b/cloudidentity/v1beta1/cloudidentity-gen.go index 4f0d519dcb0..69f179e611e 100644 --- a/cloudidentity/v1beta1/cloudidentity-gen.go +++ b/cloudidentity/v1beta1/cloudidentity-gen.go @@ -9370,10 +9370,10 @@ func (c *GroupsSearchCall) PageToken(pageToken string) *GroupsSearchCall { // contain optional inclusion operators on `labels` such as // `'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). // * Can contain an optional equality operator on `domain_name`. e.g. -// `domain_name == 'abc.com'` * Can contain optional +// `domain_name == 'examplepetstore.com'` * Can contain optional // `startsWith/contains/equality` operators on `group_key`, e.g. // `group_key.startsWith('dev')`, `group_key.contains('dev'), group_key -// == 'dev@abc.com'` * Can contain optional +// == 'dev@examplepetstore.com'` * Can contain optional // `startsWith/contains/equality` operators on `display_name`, such as // `display_name.startsWith('dev')` , `display_name.contains('dev')`, // `display_name == 'dev'` @@ -9513,7 +9513,7 @@ func (c *GroupsSearchCall) Do(opts ...googleapi.CallOption) (*SearchGroupsRespon // "type": "string" // }, // "query": { - // "description": "Required. The search query. * Must be specified in [Common Expression Language](https://opensource.google/projects/cel). * Must contain equality operators on the parent, e.g. `parent == 'customers/{customer_id}'`. The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793) * Can contain optional inclusion operators on `labels` such as `'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). * Can contain an optional equality operator on `domain_name`. e.g. `domain_name == 'abc.com'` * Can contain optional `startsWith/contains/equality` operators on `group_key`, e.g. `group_key.startsWith('dev')`, `group_key.contains('dev'), group_key == 'dev@abc.com'` * Can contain optional `startsWith/contains/equality` operators on `display_name`, such as `display_name.startsWith('dev')` , `display_name.contains('dev')`, `display_name == 'dev'`", + // "description": "Required. The search query. * Must be specified in [Common Expression Language](https://opensource.google/projects/cel). * Must contain equality operators on the parent, e.g. `parent == 'customers/{customer_id}'`. The `customer_id` must begin with \"C\" (for example, 'C046psxkn'). [Find your customer ID.] (https://support.google.com/cloudidentity/answer/10070793) * Can contain optional inclusion operators on `labels` such as `'cloudidentity.googleapis.com/groups.discussion_forum' in labels`). * Can contain an optional equality operator on `domain_name`. e.g. `domain_name == 'examplepetstore.com'` * Can contain optional `startsWith/contains/equality` operators on `group_key`, e.g. `group_key.startsWith('dev')`, `group_key.contains('dev'), group_key == 'dev@examplepetstore.com'` * Can contain optional `startsWith/contains/equality` operators on `display_name`, such as `display_name.startsWith('dev')` , `display_name.contains('dev')`, `display_name == 'dev'`", // "location": "query", // "type": "string" // }, diff --git a/dataform/v1beta1/dataform-api.json b/dataform/v1beta1/dataform-api.json index 4e879d5ea6c..d7c00e0876e 100644 --- a/dataform/v1beta1/dataform-api.json +++ b/dataform/v1beta1/dataform-api.json @@ -2093,7 +2093,7 @@ } } }, - "revision": "20231203", + "revision": "20231209", "rootUrl": "https://dataform.googleapis.com/", "schemas": { "Assertion": { @@ -3412,6 +3412,10 @@ "description": "Optional. Optional schedule (in cron format) for automatic creation of compilation results.", "type": "string" }, + "disabled": { + "description": "Optional. Disables automatic creation of compilation results.", + "type": "boolean" + }, "gitCommitish": { "description": "Required. Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository. Examples: - a commit SHA: `12ade345` - a tag: `tag1` - a branch name: `branch1`", "type": "string" diff --git a/dataform/v1beta1/dataform-gen.go b/dataform/v1beta1/dataform-gen.go index 49a8b4974c5..91185cadfb7 100644 --- a/dataform/v1beta1/dataform-gen.go +++ b/dataform/v1beta1/dataform-gen.go @@ -2572,6 +2572,10 @@ type ReleaseConfig struct { // automatic creation of compilation results. CronSchedule string `json:"cronSchedule,omitempty"` + // Disabled: Optional. Disables automatic creation of compilation + // results. + Disabled bool `json:"disabled,omitempty"` + // GitCommitish: Required. Git commit/tag/branch name at which the // repository should be compiled. Must exist in the remote repository. // Examples: - a commit SHA: `12ade345` - a tag: `tag1` - a branch name: diff --git a/dataplex/v1/dataplex-api.json b/dataplex/v1/dataplex-api.json index d1503334993..10b330881e6 100644 --- a/dataplex/v1/dataplex-api.json +++ b/dataplex/v1/dataplex-api.json @@ -4360,7 +4360,7 @@ } } }, - "revision": "20231129", + "revision": "20231208", "rootUrl": "https://dataplex.googleapis.com/", "schemas": { "Empty": { @@ -5685,7 +5685,7 @@ "type": "string" }, "ignoreNull": { - "description": "Optional. Rows with null values will automatically fail a rule, unless ignore_null is true. In that case, such null rows are trivially considered passing.This field is only valid for row-level type rules.", + "description": "Optional. Rows with null values will automatically fail a rule, unless ignore_null is true. In that case, such null rows are trivially considered passing.This field is only valid for the following type of rules: RangeExpectation RegexExpectation SetExpectation UniquenessExpectation", "type": "boolean" }, "name": { diff --git a/dataplex/v1/dataplex-gen.go b/dataplex/v1/dataplex-gen.go index 7d3ec849c36..64528272c0e 100644 --- a/dataplex/v1/dataplex-gen.go +++ b/dataplex/v1/dataplex-gen.go @@ -2599,8 +2599,9 @@ type GoogleCloudDataplexV1DataQualityRule struct { // IgnoreNull: Optional. Rows with null values will automatically fail a // rule, unless ignore_null is true. In that case, such null rows are - // trivially considered passing.This field is only valid for row-level - // type rules. + // trivially considered passing.This field is only valid for the + // following type of rules: RangeExpectation RegexExpectation + // SetExpectation UniquenessExpectation IgnoreNull bool `json:"ignoreNull,omitempty"` // Name: Optional. A mutable name for the rule. The name must contain diff --git a/migrationcenter/v1alpha1/migrationcenter-api.json b/migrationcenter/v1alpha1/migrationcenter-api.json index 3a6ed04463f..dae99dbec1e 100644 --- a/migrationcenter/v1alpha1/migrationcenter-api.json +++ b/migrationcenter/v1alpha1/migrationcenter-api.json @@ -2107,7 +2107,7 @@ } } }, - "revision": "20231201", + "revision": "20231208", "rootUrl": "https://migrationcenter.googleapis.com/", "schemas": { "AddAssetsToGroupRequest": { @@ -3376,6 +3376,13 @@ "description": "Guest installed application information.", "id": "GuestInstalledApplication", "properties": { + "licenses": { + "description": "License strings associated with the installed application.", + "items": { + "type": "string" + }, + "type": "array" + }, "name": { "description": "Installed application name.", "type": "string" diff --git a/migrationcenter/v1alpha1/migrationcenter-gen.go b/migrationcenter/v1alpha1/migrationcenter-gen.go index f0bc32da380..00e893407b2 100644 --- a/migrationcenter/v1alpha1/migrationcenter-gen.go +++ b/migrationcenter/v1alpha1/migrationcenter-gen.go @@ -2434,6 +2434,9 @@ func (s *GuestConfigDetails) MarshalJSON() ([]byte, error) { // GuestInstalledApplication: Guest installed application information. type GuestInstalledApplication struct { + // Licenses: License strings associated with the installed application. + Licenses []string `json:"licenses,omitempty"` + // Name: Installed application name. Name string `json:"name,omitempty"` @@ -2449,7 +2452,7 @@ type GuestInstalledApplication struct { // Version: Installed application version. Version string `json:"version,omitempty"` - // ForceSendFields is a list of field names (e.g. "Name") to + // ForceSendFields is a list of field names (e.g. "Licenses") 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 @@ -2457,8 +2460,8 @@ type GuestInstalledApplication struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Name") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Licenses") 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. diff --git a/ml/v1/ml-api.json b/ml/v1/ml-api.json index 8c76cd6176c..b36f5489101 100644 --- a/ml/v1/ml-api.json +++ b/ml/v1/ml-api.json @@ -1486,7 +1486,7 @@ } } }, - "revision": "20230812", + "revision": "20231212", "rootUrl": "https://ml.googleapis.com/", "schemas": { "GoogleApi__HttpBody": { @@ -3709,7 +3709,7 @@ "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." }, "members": { - "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding.", + "description": "Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.", "items": { "type": "string" }, diff --git a/ml/v1/ml-gen.go b/ml/v1/ml-gen.go index 4540810dfbf..a83f2d65ad6 100644 --- a/ml/v1/ml-gen.go +++ b/ml/v1/ml-gen.go @@ -4336,11 +4336,34 @@ type GoogleIamV1__Binding struct { // For example, `admins@example.com`. * `domain:{domain}`: The G Suite // domain (primary) that represents all the users of that domain. For // example, `google.com` or `example.com`. * - // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus - // unique identifier) representing a user that has been recently - // deleted. For example, `alice@example.com?uid=123456789012345678901`. - // If the user is recovered, this value reverts to `user:{emailid}` and - // the recovered user retains the role in the binding. * + // `principal://iam.googleapis.com/locations/global/workforcePools/{pool_ + // id}/subject/{subject_attribute_value}`: A single identity in a + // workforce identity pool. * + // `principalSet://iam.googleapis.com/locations/global/workforcePools/{po + // ol_id}/group/{group_id}`: All workforce identities in a group. * + // `principalSet://iam.googleapis.com/locations/global/workforcePools/{po + // ol_id}/attribute.{attribute_name}/{attribute_value}`: All workforce + // identities with a specific attribute value. * + // `principalSet://iam.googleapis.com/locations/global/workforcePools/{po + // ol_id}/*`: All identities in a workforce identity pool. * + // `principal://iam.googleapis.com/projects/{project_number}/locations/gl + // obal/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value} + // `: A single identity in a workload identity pool. * + // `principalSet://iam.googleapis.com/projects/{project_number}/locations + // /global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload + // identity pool group. * + // `principalSet://iam.googleapis.com/projects/{project_number}/locations + // /global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{at + // tribute_value}`: All identities in a workload identity pool with a + // certain attribute. * + // `principalSet://iam.googleapis.com/projects/{project_number}/locations + // /global/workloadIdentityPools/{pool_id}/*`: All identities in a + // workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An + // email address (plus unique identifier) representing a user that has + // been recently deleted. For example, + // `alice@example.com?uid=123456789012345678901`. If the user is + // recovered, this value reverts to `user:{emailid}` and the recovered + // user retains the role in the binding. * // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address // (plus unique identifier) representing a service account that has been // recently deleted. For example, @@ -4352,7 +4375,12 @@ type GoogleIamV1__Binding struct { // that has been recently deleted. For example, // `admins@example.com?uid=123456789012345678901`. If the group is // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. + // group retains the role in the binding. * + // `deleted:principal://iam.googleapis.com/locations/global/workforcePool + // s/{pool_id}/subject/{subject_attribute_value}`: Deleted single + // identity in a workforce identity pool. For example, + // `deleted:principal://iam.googleapis.com/locations/global/workforcePool + // s/my-pool-id/subject/my-subject-attribute-value`. Members []string `json:"members,omitempty"` // Role: Role that is assigned to the list of `members`, or principals. diff --git a/monitoring/v1/monitoring-api.json b/monitoring/v1/monitoring-api.json index 0fa14c1a162..495f418c92c 100644 --- a/monitoring/v1/monitoring-api.json +++ b/monitoring/v1/monitoring-api.json @@ -753,7 +753,7 @@ } } }, - "revision": "20231208", + "revision": "20231212", "rootUrl": "https://monitoring.googleapis.com/", "schemas": { "Aggregation": { @@ -1487,6 +1487,23 @@ }, "type": "object" }, + "Interval": { + "description": "Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive).The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.", + "id": "Interval", + "properties": { + "endTime": { + "description": "Optional. Exclusive end of the interval.If specified, a Timestamp matching this interval will have to be before the end.", + "format": "google-datetime", + "type": "string" + }, + "startTime": { + "description": "Optional. Inclusive start of the interval.If specified, a Timestamp matching this interval will have to be the same or after the start.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, "ListDashboardsResponse": { "description": "The ListDashboards request.", "id": "ListDashboardsResponse", @@ -1772,6 +1789,10 @@ ], "type": "string" }, + "interval": { + "$ref": "Interval", + "description": "Select the top N streams/time series within this time interval" + }, "numTimeSeries": { "description": "How many time series to allow to pass through the filter.", "format": "int32", @@ -2044,6 +2065,12 @@ }, "type": "object" }, + "SingleViewGroup": { + "description": "A widget that groups the other widgets by using a dropdown menu. All widgets that are within the area spanned by the grouping widget are considered member widgets.", + "id": "SingleViewGroup", + "properties": {}, + "type": "object" + }, "SourceContext": { "description": "SourceContext represents information about the source of a protobuf element, like the file in which it is defined.", "id": "SourceContext", @@ -2645,6 +2672,10 @@ "$ref": "SectionHeader", "description": "A widget that defines a section header for easier navigation of the dashboard." }, + "singleViewGroup": { + "$ref": "SingleViewGroup", + "description": "A widget that groups the other widgets by using a dropdown menu." + }, "text": { "$ref": "Text", "description": "A raw string or markdown displaying textual content." diff --git a/monitoring/v1/monitoring-gen.go b/monitoring/v1/monitoring-gen.go index d9a72b265ca..4ec1b20308b 100644 --- a/monitoring/v1/monitoring-gen.go +++ b/monitoring/v1/monitoring-gen.go @@ -1586,6 +1586,44 @@ func (s *IncidentList) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Interval: Represents a time interval, encoded as a Timestamp start +// (inclusive) and a Timestamp end (exclusive).The start must be less +// than or equal to the end. When the start equals the end, the interval +// is empty (matches no time). When both start and end are unspecified, +// the interval matches any time. +type Interval struct { + // EndTime: Optional. Exclusive end of the interval.If specified, a + // Timestamp matching this interval will have to be before the end. + EndTime string `json:"endTime,omitempty"` + + // StartTime: Optional. Inclusive start of the interval.If specified, a + // Timestamp matching this interval will have to be the same or after + // the start. + StartTime string `json:"startTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EndTime") 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. "EndTime") 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 *Interval) MarshalJSON() ([]byte, error) { + type NoMethod Interval + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListDashboardsResponse: The ListDashboards request. type ListDashboardsResponse struct { // Dashboards: The list of requested dashboards. @@ -2146,6 +2184,10 @@ type PickTimeSeriesFilter struct { // "BOTTOM" - Pass the lowest num_time_series ranking inputs. Direction string `json:"direction,omitempty"` + // Interval: Select the top N streams/time series within this time + // interval + Interval *Interval `json:"interval,omitempty"` + // NumTimeSeries: How many time series to allow to pass through the // filter. NumTimeSeries int64 `json:"numTimeSeries,omitempty"` @@ -2673,6 +2715,12 @@ func (s *SectionHeader) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SingleViewGroup: A widget that groups the other widgets by using a +// dropdown menu. All widgets that are within the area spanned by the +// grouping widget are considered member widgets. +type SingleViewGroup struct { +} + // SourceContext: SourceContext represents information about the source // of a protobuf element, like the file in which it is defined. type SourceContext struct { @@ -3505,6 +3553,10 @@ type Widget struct { // navigation of the dashboard. SectionHeader *SectionHeader `json:"sectionHeader,omitempty"` + // SingleViewGroup: A widget that groups the other widgets by using a + // dropdown menu. + SingleViewGroup *SingleViewGroup `json:"singleViewGroup,omitempty"` + // Text: A raw string or markdown displaying textual content. Text *Text `json:"text,omitempty"` diff --git a/privateca/v1/privateca-api.json b/privateca/v1/privateca-api.json index 4ed1acea1f0..31294a2b651 100644 --- a/privateca/v1/privateca-api.json +++ b/privateca/v1/privateca-api.json @@ -253,7 +253,7 @@ ] }, "fetchCaCerts": { - "description": "FetchCaCerts returns the current trust anchor for the CaPool. This will include CA certificate chains for all ACTIVE CertificateAuthority resources in the CaPool.", + "description": "FetchCaCerts returns the current trust anchor for the CaPool. This will include CA certificate chains for all Certificate Authorities in the ENABLED, DISABLED, or STAGED states.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/caPools/{caPoolsId}:fetchCaCerts", "httpMethod": "POST", "id": "privateca.projects.locations.caPools.fetchCaCerts", @@ -1605,7 +1605,7 @@ } } }, - "revision": "20231129", + "revision": "20231206", "rootUrl": "https://privateca.googleapis.com/", "schemas": { "AccessUrls": { diff --git a/privateca/v1/privateca-gen.go b/privateca/v1/privateca-gen.go index 7ef142c04d7..b2af294821d 100644 --- a/privateca/v1/privateca-gen.go +++ b/privateca/v1/privateca-gen.go @@ -4249,8 +4249,8 @@ type ProjectsLocationsCaPoolsFetchCaCertsCall struct { } // FetchCaCerts: FetchCaCerts returns the current trust anchor for the -// CaPool. This will include CA certificate chains for all ACTIVE -// CertificateAuthority resources in the CaPool. +// CaPool. This will include CA certificate chains for all Certificate +// Authorities in the ENABLED, DISABLED, or STAGED states. // // - caPool: The resource name for the CaPool in the format // `projects/*/locations/*/caPools/*`. @@ -4352,7 +4352,7 @@ func (c *ProjectsLocationsCaPoolsFetchCaCertsCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "FetchCaCerts returns the current trust anchor for the CaPool. This will include CA certificate chains for all ACTIVE CertificateAuthority resources in the CaPool.", + // "description": "FetchCaCerts returns the current trust anchor for the CaPool. This will include CA certificate chains for all Certificate Authorities in the ENABLED, DISABLED, or STAGED states.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/caPools/{caPoolsId}:fetchCaCerts", // "httpMethod": "POST", // "id": "privateca.projects.locations.caPools.fetchCaCerts", diff --git a/pubsub/v1/pubsub-api.json b/pubsub/v1/pubsub-api.json index 98ee6adc906..ec1d3181985 100644 --- a/pubsub/v1/pubsub-api.json +++ b/pubsub/v1/pubsub-api.json @@ -1573,7 +1573,7 @@ } } }, - "revision": "20231104", + "revision": "20231205", "rootUrl": "https://pubsub.googleapis.com/", "schemas": { "AcknowledgeRequest": { @@ -1634,8 +1634,12 @@ "description": "Optional. The name of the table to which to write data, of the form {projectId}.{datasetId}.{tableId}", "type": "string" }, + "useTableSchema": { + "description": "Optional. When true, use the BigQuery table's schema as the columns to write to in BigQuery. `use_table_schema` and `use_topic_schema` cannot be enabled at the same time.", + "type": "boolean" + }, "useTopicSchema": { - "description": "Optional. When true, use the topic's schema as the columns to write to in BigQuery, if it exists.", + "description": "Optional. When true, use the topic's schema as the columns to write to in BigQuery, if it exists. `use_topic_schema` and `use_table_schema` cannot be enabled at the same time.", "type": "boolean" }, "writeMetadata": { diff --git a/pubsub/v1/pubsub-gen.go b/pubsub/v1/pubsub-gen.go index dc3518ba724..4015ce22a0d 100644 --- a/pubsub/v1/pubsub-gen.go +++ b/pubsub/v1/pubsub-gen.go @@ -345,8 +345,14 @@ type BigQueryConfig struct { // form {projectId}.{datasetId}.{tableId} Table string `json:"table,omitempty"` + // UseTableSchema: Optional. When true, use the BigQuery table's schema + // as the columns to write to in BigQuery. `use_table_schema` and + // `use_topic_schema` cannot be enabled at the same time. + UseTableSchema bool `json:"useTableSchema,omitempty"` + // UseTopicSchema: Optional. When true, use the topic's schema as the - // columns to write to in BigQuery, if it exists. + // columns to write to in BigQuery, if it exists. `use_topic_schema` and + // `use_table_schema` cannot be enabled at the same time. UseTopicSchema bool `json:"useTopicSchema,omitempty"` // WriteMetadata: Optional. When true, write the subscription name, diff --git a/run/v1/run-api.json b/run/v1/run-api.json index 2ab7ab9c4b1..d13d0228bd1 100644 --- a/run/v1/run-api.json +++ b/run/v1/run-api.json @@ -1968,6 +1968,129 @@ } } }, + "operations": { + "methods": { + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "run.projects.locations.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "run.projects.locations.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", + "httpMethod": "GET", + "id": "run.projects.locations.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "Optional. A filter for matching the completed or in-progress operations. The supported formats of *filter* are: To query for only completed operations: done:true To query for only ongoing operations: done:false Must be empty to query for all of the latest operations for the given parent project.", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. To query for all of the operations for a project.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The maximum number of records that should be returned. Requested page size cannot exceed 100. If not set or set to less than or equal to 0, the default page size is 100. .", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Token identifying which result to start with, which is returned by a previous list call.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}/operations", + "response": { + "$ref": "GoogleLongrunningListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "wait": { + "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:wait", + "httpMethod": "POST", + "id": "run.projects.locations.operations.wait", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to wait on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:wait", + "request": { + "$ref": "GoogleLongrunningWaitOperationRequest" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "revisions": { "methods": { "delete": { @@ -2486,7 +2609,7 @@ } } }, - "revision": "20231203", + "revision": "20231210", "rootUrl": "https://run.googleapis.com/", "schemas": { "Addressable": { @@ -2585,6 +2708,28 @@ }, "type": "object" }, + "CSIVolumeSource": { + "description": "Storage volume source using the Container Storage Interface.", + "id": "CSIVolumeSource", + "properties": { + "driver": { + "description": "name of the CSI driver for the requested storage system. Cloud Run supports the following drivers: * gcsfuse.run.googleapis.com : Mount a Cloud Storage Bucket as a volume.", + "type": "string" + }, + "readOnly": { + "description": "If true, mount the volume as read only. Defaults to false.", + "type": "boolean" + }, + "volumeAttributes": { + "additionalProperties": { + "type": "string" + }, + "description": "stores driver specific attributes. For Google Cloud Storage volumes, the following attributes are supported: * bucketName: the name of the Cloud Storage bucket to mount. The Cloud Run Service identity must have access to this bucket.", + "type": "object" + } + }, + "type": "object" + }, "CancelExecutionRequest": { "description": "Request message for cancelling an execution.", "id": "CancelExecutionRequest", @@ -2959,6 +3104,12 @@ }, "type": "object" }, + "Empty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", + "id": "Empty", + "properties": {}, + "type": "object" + }, "EmptyDirVolumeSource": { "description": "In memory (tmpfs) ephemeral storage. It is ephemeral in the sense that when the sandbox is taken down, the data is destroyed with it (it does not persist across sandbox runs).", "id": "EmptyDirVolumeSource", @@ -3255,6 +3406,71 @@ }, "type": "object" }, + "GoogleLongrunningListOperationsResponse": { + "description": "The response message for Operations.ListOperations.", + "id": "GoogleLongrunningListOperationsResponse", + "properties": { + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + }, + "operations": { + "description": "A list of operations that matches the specified filter in the request.", + "items": { + "$ref": "GoogleLongrunningOperation" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleLongrunningOperation": { + "description": "This resource represents a long-running operation that is the result of a network API call.", + "id": "GoogleLongrunningOperation", + "properties": { + "done": { + "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", + "type": "boolean" + }, + "error": { + "$ref": "GoogleRpcStatus", + "description": "The error result of the operation in case of failure or cancellation." + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "type": "object" + }, + "name": { + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", + "type": "string" + }, + "response": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "type": "object" + } + }, + "type": "object" + }, + "GoogleLongrunningWaitOperationRequest": { + "description": "The request message for Operations.WaitOperation.", + "id": "GoogleLongrunningWaitOperationRequest", + "properties": { + "timeout": { + "description": "The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also specified, the shorter one will be used.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, "GoogleRpcStatus": { "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "id": "GoogleRpcStatus", @@ -3779,6 +3995,25 @@ }, "type": "object" }, + "NFSVolumeSource": { + "description": "Represents a persistent volume that will be mounted using NFS. This volume will be shared between all instances of the Service and data will not be deleted when the instance is shut down.", + "id": "NFSVolumeSource", + "properties": { + "path": { + "description": "Path that is exported by the NFS server.", + "type": "string" + }, + "readOnly": { + "description": "If true, mount the NFS volume as read only. Defaults to false.", + "type": "boolean" + }, + "server": { + "description": "Hostname or IP address of the NFS server.", + "type": "string" + } + }, + "type": "object" + }, "ObjectMeta": { "description": "google.cloud.run.meta.v1.ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", "id": "ObjectMeta", @@ -4753,6 +4988,10 @@ "$ref": "ConfigMapVolumeSource", "description": "Not supported in Cloud Run." }, + "csi": { + "$ref": "CSIVolumeSource", + "description": "Volume specified by the Container Storage Interface driver" + }, "emptyDir": { "$ref": "EmptyDirVolumeSource", "description": "Ephemeral storage used as a shared volume." @@ -4761,6 +5000,9 @@ "description": "Volume's name. In Cloud Run Fully Managed, the name 'cloudsql' is reserved.", "type": "string" }, + "nfs": { + "$ref": "NFSVolumeSource" + }, "secret": { "$ref": "SecretVolumeSource", "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 secretName." diff --git a/run/v1/run-gen.go b/run/v1/run-gen.go index 238627788f2..0cfd5b14e4f 100644 --- a/run/v1/run-gen.go +++ b/run/v1/run-gen.go @@ -301,6 +301,7 @@ func NewProjectsLocationsService(s *APIService) *ProjectsLocationsService { rs.Configurations = NewProjectsLocationsConfigurationsService(s) rs.Domainmappings = NewProjectsLocationsDomainmappingsService(s) rs.Jobs = NewProjectsLocationsJobsService(s) + rs.Operations = NewProjectsLocationsOperationsService(s) rs.Revisions = NewProjectsLocationsRevisionsService(s) rs.Routes = NewProjectsLocationsRoutesService(s) rs.Services = NewProjectsLocationsServicesService(s) @@ -318,6 +319,8 @@ type ProjectsLocationsService struct { Jobs *ProjectsLocationsJobsService + Operations *ProjectsLocationsOperationsService + Revisions *ProjectsLocationsRevisionsService Routes *ProjectsLocationsRoutesService @@ -361,6 +364,15 @@ type ProjectsLocationsJobsService struct { s *APIService } +func NewProjectsLocationsOperationsService(s *APIService) *ProjectsLocationsOperationsService { + rs := &ProjectsLocationsOperationsService{s: s} + return rs +} + +type ProjectsLocationsOperationsService struct { + s *APIService +} + func NewProjectsLocationsRevisionsService(s *APIService) *ProjectsLocationsRevisionsService { rs := &ProjectsLocationsRevisionsService{s: s} return rs @@ -626,6 +638,47 @@ func (s *Binding) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CSIVolumeSource: Storage volume source using the Container Storage +// Interface. +type CSIVolumeSource struct { + // Driver: name of the CSI driver for the requested storage system. + // Cloud Run supports the following drivers: * + // gcsfuse.run.googleapis.com : Mount a Cloud Storage Bucket as a + // volume. + Driver string `json:"driver,omitempty"` + + // ReadOnly: If true, mount the volume as read only. Defaults to false. + ReadOnly bool `json:"readOnly,omitempty"` + + // VolumeAttributes: stores driver specific attributes. For Google Cloud + // Storage volumes, the following attributes are supported: * + // bucketName: the name of the Cloud Storage bucket to mount. The Cloud + // Run Service identity must have access to this bucket. + VolumeAttributes map[string]string `json:"volumeAttributes,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Driver") 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. "Driver") 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 *CSIVolumeSource) MarshalJSON() ([]byte, error) { + type NoMethod CSIVolumeSource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CancelExecutionRequest: Request message for cancelling an execution. type CancelExecutionRequest struct { } @@ -1236,6 +1289,17 @@ func (s *DomainMappingStatus) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Empty: A generic empty message that you can re-use to avoid defining +// duplicated empty messages in your APIs. A typical example is to use +// it as the request or the response type of an API method. For +// instance: service Foo { rpc Bar(google.protobuf.Empty) returns +// (google.protobuf.Empty); } +type Empty struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + // EmptyDirVolumeSource: In memory (tmpfs) ephemeral storage. It is // ephemeral in the sense that when the sandbox is taken down, the data // is destroyed with it (it does not persist across sandbox runs). @@ -1825,6 +1889,137 @@ func (s *GoogleCloudRunV1Condition) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleLongrunningListOperationsResponse: The response message for +// Operations.ListOperations. +type GoogleLongrunningListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` + + // Operations: A list of operations that matches the specified filter in + // the request. + Operations []*GoogleLongrunningOperation `json:"operations,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleLongrunningListOperationsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleLongrunningOperation: This resource represents a long-running +// operation that is the result of a network API call. +type GoogleLongrunningOperation struct { + // Done: If the value is `false`, it means the operation is still in + // progress. If `true`, the operation is completed, and either `error` + // or `response` is available. + Done bool `json:"done,omitempty"` + + // Error: The error result of the operation in case of failure or + // cancellation. + Error *GoogleRpcStatus `json:"error,omitempty"` + + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as + // create time. Some services might not provide such metadata. Any + // method that returns a long-running operation should document the + // metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: The server-assigned name, which is only unique within the same + // service that originally returns it. If you use the default HTTP + // mapping, the `name` should be a resource name ending with + // `operations/{unique_id}`. + Name string `json:"name,omitempty"` + + // Response: The normal, successful response of the operation. If the + // original method returns no data on success, such as `Delete`, the + // response is `google.protobuf.Empty`. If the original method is + // standard `Get`/`Create`/`Update`, the response should be the + // resource. For other methods, the response should have the type + // `XxxResponse`, where `Xxx` is the original method name. For example, + // if the original method name is `TakeSnapshot()`, the inferred + // response type is `TakeSnapshotResponse`. + Response googleapi.RawMessage `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Done") 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. "Done") 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 *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) { + type NoMethod GoogleLongrunningOperation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleLongrunningWaitOperationRequest: The request message for +// Operations.WaitOperation. +type GoogleLongrunningWaitOperationRequest struct { + // Timeout: The maximum duration to wait before timing out. If left + // blank, the wait will be at most the time permitted by the underlying + // HTTP/RPC protocol. If RPC context deadline is also specified, the + // shorter one will be used. + Timeout string `json:"timeout,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Timeout") 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. "Timeout") 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 *GoogleLongrunningWaitOperationRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleLongrunningWaitOperationRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleRpcStatus: The `Status` type defines a logical error model that // is suitable for different programming environments, including REST // APIs and RPC APIs. It is used by gRPC (https://github.com/grpc). Each @@ -2671,6 +2866,43 @@ func (s *Location) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// NFSVolumeSource: Represents a persistent volume that will be mounted +// using NFS. This volume will be shared between all instances of the +// Service and data will not be deleted when the instance is shut down. +type NFSVolumeSource struct { + // Path: Path that is exported by the NFS server. + Path string `json:"path,omitempty"` + + // ReadOnly: If true, mount the NFS volume as read only. Defaults to + // false. + ReadOnly bool `json:"readOnly,omitempty"` + + // Server: Hostname or IP address of the NFS server. + Server string `json:"server,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Path") 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. "Path") 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 *NFSVolumeSource) MarshalJSON() ([]byte, error) { + type NoMethod NFSVolumeSource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ObjectMeta: google.cloud.run.meta.v1.ObjectMeta is metadata that all // persisted resources must have, which includes all objects users must // create. @@ -4471,6 +4703,9 @@ type Volume struct { // ConfigMap: Not supported in Cloud Run. ConfigMap *ConfigMapVolumeSource `json:"configMap,omitempty"` + // Csi: Volume specified by the Container Storage Interface driver + Csi *CSIVolumeSource `json:"csi,omitempty"` + // EmptyDir: Ephemeral storage used as a shared volume. EmptyDir *EmptyDirVolumeSource `json:"emptyDir,omitempty"` @@ -4478,6 +4713,8 @@ type Volume struct { // is reserved. Name string `json:"name,omitempty"` + Nfs *NFSVolumeSource `json:"nfs,omitempty"` + // Secret: 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 secretName. @@ -11982,6 +12219,653 @@ func (c *ProjectsLocationsJobsTestIamPermissionsCall) Do(opts ...googleapi.CallO } +// method id "run.projects.locations.operations.delete": + +type ProjectsLocationsOperationsDeleteCall struct { + s *APIService + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a long-running operation. This method indicates that +// the client is no longer interested in the operation result. It does +// not cancel the operation. If the server doesn't support this method, +// it returns `google.rpc.Code.UNIMPLEMENTED`. +// +// - name: The name of the operation resource to be deleted. +func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall { + c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsDeleteCall { + 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 *ProjectsLocationsOperationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsOperationsDeleteCall { + 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 *ProjectsLocationsOperationsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "run.projects.locations.operations.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.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 *ProjectsLocationsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Empty{ + 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": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "DELETE", + // "id": "run.projects.locations.operations.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to be deleted.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "run.projects.locations.operations.get": + +type ProjectsLocationsOperationsGetCall struct { + s *APIService + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the latest state of a long-running operation. Clients can +// use this method to poll the operation result at intervals as +// recommended by the API service. +// +// - name: The name of the operation resource. +func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall { + c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall { + 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 *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall { + 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 *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall { + 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 *ProjectsLocationsOperationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "run.projects.locations.operations.get" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + // "httpMethod": "GET", + // "id": "run.projects.locations.operations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "run.projects.locations.operations.list": + +type ProjectsLocationsOperationsListCall struct { + s *APIService + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists operations that match the specified filter in the +// request. If the server doesn't support this method, it returns +// `UNIMPLEMENTED`. +// +// - name: To query for all of the operations for a project. +func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall { + c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": A filter for matching +// the completed or in-progress operations. The supported formats of +// *filter* are: To query for only completed operations: done:true To +// query for only ongoing operations: done:false Must be empty to query +// for all of the latest operations for the given parent project. +func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of records that should be returned. Requested page size cannot exceed +// 100. If not set or set to less than or equal to 0, the default page +// size is 100. . +func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Token identifying +// which result to start with, which is returned by a previous list +// call. +func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall { + 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 *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall { + 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 *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall { + 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 *ProjectsLocationsOperationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "run.projects.locations.operations.list" call. +// Exactly one of *GoogleLongrunningListOperationsResponse or error will +// be non-nil. Any non-2xx status code is an error. Response headers are +// in either +// *GoogleLongrunningListOperationsResponse.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 *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningListOperationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations", + // "httpMethod": "GET", + // "id": "run.projects.locations.operations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "Optional. A filter for matching the completed or in-progress operations. The supported formats of *filter* are: To query for only completed operations: done:true To query for only ongoing operations: done:false Must be empty to query for all of the latest operations for the given parent project.", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "Required. To query for all of the operations for a project.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of records that should be returned. Requested page size cannot exceed 100. If not set or set to less than or equal to 0, the default page size is 100. .", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Token identifying which result to start with, which is returned by a previous list call.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}/operations", + // "response": { + // "$ref": "GoogleLongrunningListOperationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "run.projects.locations.operations.wait": + +type ProjectsLocationsOperationsWaitCall struct { + s *APIService + name string + googlelongrunningwaitoperationrequest *GoogleLongrunningWaitOperationRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Wait: Waits until the specified long-running operation is done or +// reaches at most a specified timeout, returning the latest state. If +// the operation is already done, the latest state is immediately +// returned. If the timeout specified is greater than the default +// HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does +// not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. +// Note that this method is on a best-effort basis. It may return the +// latest state before the specified timeout (including immediately), +// meaning even an immediate response is no guarantee that the operation +// is done. +// +// - name: The name of the operation resource to wait on. +func (r *ProjectsLocationsOperationsService) Wait(name string, googlelongrunningwaitoperationrequest *GoogleLongrunningWaitOperationRequest) *ProjectsLocationsOperationsWaitCall { + c := &ProjectsLocationsOperationsWaitCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlelongrunningwaitoperationrequest = googlelongrunningwaitoperationrequest + 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 *ProjectsLocationsOperationsWaitCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsWaitCall { + 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 *ProjectsLocationsOperationsWaitCall) Context(ctx context.Context) *ProjectsLocationsOperationsWaitCall { + 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 *ProjectsLocationsOperationsWaitCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsOperationsWaitCall) 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.googlelongrunningwaitoperationrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:wait") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "run.projects.locations.operations.wait" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *ProjectsLocationsOperationsWaitCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:wait", + // "httpMethod": "POST", + // "id": "run.projects.locations.operations.wait", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name of the operation resource to wait on.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:wait", + // "request": { + // "$ref": "GoogleLongrunningWaitOperationRequest" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "run.projects.locations.revisions.delete": type ProjectsLocationsRevisionsDeleteCall struct { diff --git a/run/v2/run-api.json b/run/v2/run-api.json index 7fa502526d0..ef8c5aae664 100644 --- a/run/v2/run-api.json +++ b/run/v2/run-api.json @@ -1312,7 +1312,7 @@ } } }, - "revision": "20231203", + "revision": "20231210", "rootUrl": "https://run.googleapis.com/", "schemas": { "GoogleCloudRunV2BinaryAuthorization": { @@ -1917,6 +1917,21 @@ }, "type": "object" }, + "GoogleCloudRunV2GCSVolumeSource": { + "description": "Represents a GCS Bucket mounted as a volume.", + "id": "GoogleCloudRunV2GCSVolumeSource", + "properties": { + "bucket": { + "description": "GCS Bucket name", + "type": "string" + }, + "readOnly": { + "description": "If true, mount the GCS bucket as read-only", + "type": "boolean" + } + }, + "type": "object" + }, "GoogleCloudRunV2GRPCAction": { "description": "GRPCAction describes an action involving a GRPC port.", "id": "GoogleCloudRunV2GRPCAction", @@ -2216,6 +2231,25 @@ }, "type": "object" }, + "GoogleCloudRunV2NFSVolumeSource": { + "description": "Represents an NFS mount.", + "id": "GoogleCloudRunV2NFSVolumeSource", + "properties": { + "path": { + "description": "Path that is exported by the NFS server.", + "type": "string" + }, + "readOnly": { + "description": "If true, mount the NFS volume as read only", + "type": "boolean" + }, + "server": { + "description": "Hostname or IP address of the NFS server", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRunV2NetworkInterface": { "description": "Direct VPC egress settings.", "id": "GoogleCloudRunV2NetworkInterface", @@ -3302,10 +3336,18 @@ "$ref": "GoogleCloudRunV2EmptyDirVolumeSource", "description": "Ephemeral storage used as a shared volume." }, + "gcs": { + "$ref": "GoogleCloudRunV2GCSVolumeSource", + "description": "Persistent storage backed by a Google Cloud Storage bucket." + }, "name": { "description": "Required. Volume's name.", "type": "string" }, + "nfs": { + "$ref": "GoogleCloudRunV2NFSVolumeSource", + "description": "For NFS Voumes, contains the path to the nfs Volume" + }, "secret": { "$ref": "GoogleCloudRunV2SecretVolumeSource", "description": "Secret represents a secret that should populate this volume." diff --git a/run/v2/run-gen.go b/run/v2/run-gen.go index 58f421229ac..f3633b9c91f 100644 --- a/run/v2/run-gen.go +++ b/run/v2/run-gen.go @@ -1068,6 +1068,38 @@ func (s *GoogleCloudRunV2ExecutionTemplate) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRunV2GCSVolumeSource: Represents a GCS Bucket mounted as a +// volume. +type GoogleCloudRunV2GCSVolumeSource struct { + // Bucket: GCS Bucket name + Bucket string `json:"bucket,omitempty"` + + // ReadOnly: If true, mount the GCS bucket as read-only + ReadOnly bool `json:"readOnly,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Bucket") 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. "Bucket") 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 *GoogleCloudRunV2GCSVolumeSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRunV2GCSVolumeSource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRunV2GRPCAction: GRPCAction describes an action involving // a GRPC port. type GoogleCloudRunV2GRPCAction struct { @@ -1558,6 +1590,40 @@ func (s *GoogleCloudRunV2ListTasksResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudRunV2NFSVolumeSource: Represents an NFS mount. +type GoogleCloudRunV2NFSVolumeSource struct { + // Path: Path that is exported by the NFS server. + Path string `json:"path,omitempty"` + + // ReadOnly: If true, mount the NFS volume as read only + ReadOnly bool `json:"readOnly,omitempty"` + + // Server: Hostname or IP address of the NFS server + Server string `json:"server,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Path") 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. "Path") 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 *GoogleCloudRunV2NFSVolumeSource) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRunV2NFSVolumeSource + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // GoogleCloudRunV2NetworkInterface: Direct VPC egress settings. type GoogleCloudRunV2NetworkInterface struct { // Network: The VPC network that the Cloud Run resource will be able to @@ -3015,9 +3081,15 @@ type GoogleCloudRunV2Volume struct { // EmptyDir: Ephemeral storage used as a shared volume. EmptyDir *GoogleCloudRunV2EmptyDirVolumeSource `json:"emptyDir,omitempty"` + // Gcs: Persistent storage backed by a Google Cloud Storage bucket. + Gcs *GoogleCloudRunV2GCSVolumeSource `json:"gcs,omitempty"` + // Name: Required. Volume's name. Name string `json:"name,omitempty"` + // Nfs: For NFS Voumes, contains the path to the nfs Volume + Nfs *GoogleCloudRunV2NFSVolumeSource `json:"nfs,omitempty"` + // Secret: Secret represents a secret that should populate this volume. Secret *GoogleCloudRunV2SecretVolumeSource `json:"secret,omitempty"` diff --git a/servicemanagement/v1/servicemanagement-api.json b/servicemanagement/v1/servicemanagement-api.json index ba9fc6a0286..b2a77eb1b39 100644 --- a/servicemanagement/v1/servicemanagement-api.json +++ b/servicemanagement/v1/servicemanagement-api.json @@ -830,7 +830,7 @@ } } }, - "revision": "20231127", + "revision": "20231208", "rootUrl": "https://servicemanagement.googleapis.com/", "schemas": { "Advice": { @@ -2968,6 +2968,10 @@ "protoReferenceDocumentationUri": { "description": "Optional link to proto reference documentation. Example: https://cloud.google.com/pubsub/lite/docs/reference/rpc", "type": "string" + }, + "restReferenceDocumentationUri": { + "description": "Optional link to REST reference documentation. Example: https://cloud.google.com/pubsub/lite/docs/reference/rest", + "type": "string" } }, "type": "object" diff --git a/servicemanagement/v1/servicemanagement-gen.go b/servicemanagement/v1/servicemanagement-gen.go index 870d1742fa8..d614ea82c57 100644 --- a/servicemanagement/v1/servicemanagement-gen.go +++ b/servicemanagement/v1/servicemanagement-gen.go @@ -4373,6 +4373,11 @@ type Publishing struct { // https://cloud.google.com/pubsub/lite/docs/reference/rpc ProtoReferenceDocumentationUri string `json:"protoReferenceDocumentationUri,omitempty"` + // RestReferenceDocumentationUri: Optional link to REST reference + // documentation. Example: + // https://cloud.google.com/pubsub/lite/docs/reference/rest + RestReferenceDocumentationUri string `json:"restReferenceDocumentationUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "ApiShortName") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/vmmigration/v1/vmmigration-api.json b/vmmigration/v1/vmmigration-api.json index 25deb5a8f0d..99fce1df245 100644 --- a/vmmigration/v1/vmmigration-api.json +++ b/vmmigration/v1/vmmigration-api.json @@ -1345,7 +1345,7 @@ ] }, "list": { - "description": "Lists the CloneJobs of a migrating VM. Only the 25 most recent CloneJobs are returned.", + "description": "Lists the CloneJobs of a migrating VM. Only 25 most recent CloneJobs are listed.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/migratingVms/{migratingVmsId}/cloneJobs", "httpMethod": "GET", "id": "vmmigration.projects.locations.sources.migratingVms.cloneJobs.list", @@ -1486,7 +1486,7 @@ ] }, "list": { - "description": "Lists the CutoverJobs of a migrating VM. Only the 25 most recent CutoverJobs are returned.", + "description": "Lists the CutoverJobs of a migrating VM. Only 25 most recent CutoverJobs are listed.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/migratingVms/{migratingVmsId}/cutoverJobs", "httpMethod": "GET", "id": "vmmigration.projects.locations.sources.migratingVms.cutoverJobs.list", @@ -1972,7 +1972,7 @@ } } }, - "revision": "20231130", + "revision": "20231207", "rootUrl": "https://vmmigration.googleapis.com/", "schemas": { "AccessKeyCredentials": { diff --git a/vmmigration/v1/vmmigration-gen.go b/vmmigration/v1/vmmigration-gen.go index 2776ef47f95..f3feeb49ffb 100644 --- a/vmmigration/v1/vmmigration-gen.go +++ b/vmmigration/v1/vmmigration-gen.go @@ -10516,8 +10516,8 @@ type ProjectsLocationsSourcesMigratingVmsCloneJobsListCall struct { header_ http.Header } -// List: Lists the CloneJobs of a migrating VM. Only the 25 most recent -// CloneJobs are returned. +// List: Lists the CloneJobs of a migrating VM. Only 25 most recent +// CloneJobs are listed. // // - parent: The parent, which owns this collection of source VMs. func (r *ProjectsLocationsSourcesMigratingVmsCloneJobsService) List(parent string) *ProjectsLocationsSourcesMigratingVmsCloneJobsListCall { @@ -10657,7 +10657,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsCloneJobsListCall) Do(opts ...googl } return ret, nil // { - // "description": "Lists the CloneJobs of a migrating VM. Only the 25 most recent CloneJobs are returned.", + // "description": "Lists the CloneJobs of a migrating VM. Only 25 most recent CloneJobs are listed.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/migratingVms/{migratingVmsId}/cloneJobs", // "httpMethod": "GET", // "id": "vmmigration.projects.locations.sources.migratingVms.cloneJobs.list", @@ -11203,8 +11203,8 @@ type ProjectsLocationsSourcesMigratingVmsCutoverJobsListCall struct { header_ http.Header } -// List: Lists the CutoverJobs of a migrating VM. Only the 25 most -// recent CutoverJobs are returned. +// List: Lists the CutoverJobs of a migrating VM. Only 25 most recent +// CutoverJobs are listed. // // - parent: The parent, which owns this collection of migrating VMs. func (r *ProjectsLocationsSourcesMigratingVmsCutoverJobsService) List(parent string) *ProjectsLocationsSourcesMigratingVmsCutoverJobsListCall { @@ -11344,7 +11344,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsCutoverJobsListCall) Do(opts ...goo } return ret, nil // { - // "description": "Lists the CutoverJobs of a migrating VM. Only the 25 most recent CutoverJobs are returned.", + // "description": "Lists the CutoverJobs of a migrating VM. Only 25 most recent CutoverJobs are listed.", // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/migratingVms/{migratingVmsId}/cutoverJobs", // "httpMethod": "GET", // "id": "vmmigration.projects.locations.sources.migratingVms.cutoverJobs.list", diff --git a/vmmigration/v1alpha1/vmmigration-api.json b/vmmigration/v1alpha1/vmmigration-api.json index 18cab9d6697..a6d732d29eb 100644 --- a/vmmigration/v1alpha1/vmmigration-api.json +++ b/vmmigration/v1alpha1/vmmigration-api.json @@ -1345,7 +1345,7 @@ ] }, "list": { - "description": "Lists the CloneJobs of a migrating VM. Only the 25 most recent CloneJobs are returned.", + "description": "Lists the CloneJobs of a migrating VM. Only 25 most recent CloneJobs are listed.", "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/migratingVms/{migratingVmsId}/cloneJobs", "httpMethod": "GET", "id": "vmmigration.projects.locations.sources.migratingVms.cloneJobs.list", @@ -1486,7 +1486,7 @@ ] }, "list": { - "description": "Lists the CutoverJobs of a migrating VM. Only the 25 most recent CutoverJobs are returned.", + "description": "Lists the CutoverJobs of a migrating VM. Only 25 most recent CutoverJobs are listed.", "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/migratingVms/{migratingVmsId}/cutoverJobs", "httpMethod": "GET", "id": "vmmigration.projects.locations.sources.migratingVms.cutoverJobs.list", @@ -1972,7 +1972,7 @@ } } }, - "revision": "20231130", + "revision": "20231207", "rootUrl": "https://vmmigration.googleapis.com/", "schemas": { "AccessKeyCredentials": { diff --git a/vmmigration/v1alpha1/vmmigration-gen.go b/vmmigration/v1alpha1/vmmigration-gen.go index 0adb17d2e55..498199d44da 100644 --- a/vmmigration/v1alpha1/vmmigration-gen.go +++ b/vmmigration/v1alpha1/vmmigration-gen.go @@ -10703,8 +10703,8 @@ type ProjectsLocationsSourcesMigratingVmsCloneJobsListCall struct { header_ http.Header } -// List: Lists the CloneJobs of a migrating VM. Only the 25 most recent -// CloneJobs are returned. +// List: Lists the CloneJobs of a migrating VM. Only 25 most recent +// CloneJobs are listed. // // - parent: The parent, which owns this collection of source VMs. func (r *ProjectsLocationsSourcesMigratingVmsCloneJobsService) List(parent string) *ProjectsLocationsSourcesMigratingVmsCloneJobsListCall { @@ -10844,7 +10844,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsCloneJobsListCall) Do(opts ...googl } return ret, nil // { - // "description": "Lists the CloneJobs of a migrating VM. Only the 25 most recent CloneJobs are returned.", + // "description": "Lists the CloneJobs of a migrating VM. Only 25 most recent CloneJobs are listed.", // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/migratingVms/{migratingVmsId}/cloneJobs", // "httpMethod": "GET", // "id": "vmmigration.projects.locations.sources.migratingVms.cloneJobs.list", @@ -11390,8 +11390,8 @@ type ProjectsLocationsSourcesMigratingVmsCutoverJobsListCall struct { header_ http.Header } -// List: Lists the CutoverJobs of a migrating VM. Only the 25 most -// recent CutoverJobs are returned. +// List: Lists the CutoverJobs of a migrating VM. Only 25 most recent +// CutoverJobs are listed. // // - parent: The parent, which owns this collection of migrating VMs. func (r *ProjectsLocationsSourcesMigratingVmsCutoverJobsService) List(parent string) *ProjectsLocationsSourcesMigratingVmsCutoverJobsListCall { @@ -11531,7 +11531,7 @@ func (c *ProjectsLocationsSourcesMigratingVmsCutoverJobsListCall) Do(opts ...goo } return ret, nil // { - // "description": "Lists the CutoverJobs of a migrating VM. Only the 25 most recent CutoverJobs are returned.", + // "description": "Lists the CutoverJobs of a migrating VM. Only 25 most recent CutoverJobs are listed.", // "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/sources/{sourcesId}/migratingVms/{migratingVmsId}/cutoverJobs", // "httpMethod": "GET", // "id": "vmmigration.projects.locations.sources.migratingVms.cutoverJobs.list", diff --git a/vpcaccess/v1beta1/vpcaccess-api.json b/vpcaccess/v1beta1/vpcaccess-api.json index 528c654c7cc..ccff6cb9ccf 100644 --- a/vpcaccess/v1beta1/vpcaccess-api.json +++ b/vpcaccess/v1beta1/vpcaccess-api.json @@ -384,7 +384,7 @@ } } }, - "revision": "20231110", + "revision": "20231207", "rootUrl": "https://vpcaccess.googleapis.com/", "schemas": { "Connector": { @@ -399,10 +399,22 @@ "readOnly": true, "type": "array" }, + "createTime": { + "description": "Output only. The creation time of the connector.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, "ipCidrRange": { "description": "The range of internal addresses that follows RFC 4632 notation. Example: `10.132.0.0/28`.", "type": "string" }, + "lastRestartTime": { + "description": "Output only. The last restart time of the connector.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, "machineType": { "description": "Machine type of VM Instance underlying connector. Default is e2-micro", "type": "string" diff --git a/vpcaccess/v1beta1/vpcaccess-gen.go b/vpcaccess/v1beta1/vpcaccess-gen.go index 12d0743b3ba..32ab374af49 100644 --- a/vpcaccess/v1beta1/vpcaccess-gen.go +++ b/vpcaccess/v1beta1/vpcaccess-gen.go @@ -201,10 +201,16 @@ type Connector struct { // ConnectedProjects: Output only. List of projects using the connector. ConnectedProjects []string `json:"connectedProjects,omitempty"` + // CreateTime: Output only. The creation time of the connector. + CreateTime string `json:"createTime,omitempty"` + // IpCidrRange: The range of internal addresses that follows RFC 4632 // notation. Example: `10.132.0.0/28`. IpCidrRange string `json:"ipCidrRange,omitempty"` + // LastRestartTime: Output only. The last restart time of the connector. + LastRestartTime string `json:"lastRestartTime,omitempty"` + // MachineType: Machine type of VM Instance underlying connector. // Default is e2-micro MachineType string `json:"machineType,omitempty"` diff --git a/workstations/v1/workstations-api.json b/workstations/v1/workstations-api.json index 04b74bee778..fe4719733e9 100644 --- a/workstations/v1/workstations-api.json +++ b/workstations/v1/workstations-api.json @@ -1195,7 +1195,7 @@ } } }, - "revision": "20231101", + "revision": "20231129", "rootUrl": "https://workstations.googleapis.com/", "schemas": { "AuditConfig": { @@ -1330,6 +1330,17 @@ }, "type": "object" }, + "DomainConfig": { + "description": "Configuration options for a custom domain.", + "id": "DomainConfig", + "properties": { + "domain": { + "description": "Immutable. Domain used by Workstations for HTTP ingress.", + "type": "string" + } + }, + "type": "object" + }, "Expr": { "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", "id": "Expr", @@ -2040,6 +2051,11 @@ "readOnly": true, "type": "string" }, + "kmsKey": { + "description": "Output only. The name of the Google Cloud KMS encryption key used to encrypt this workstation. The KMS key can only be configured in the WorkstationConfig. The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`.", + "readOnly": true, + "type": "string" + }, "labels": { "additionalProperties": { "type": "string" @@ -2140,6 +2156,10 @@ "description": "Optional. Human-readable name for this workstation cluster.", "type": "string" }, + "domainConfig": { + "$ref": "DomainConfig", + "description": "Optional. Configuration options for a custom domain." + }, "etag": { "description": "Optional. Checksum computed by the server. May be sent on update and delete requests to make sure that the client has an up-to-date value before proceeding.", "type": "string" diff --git a/workstations/v1/workstations-gen.go b/workstations/v1/workstations-gen.go index 7a9a4253643..edf7eac6c99 100644 --- a/workstations/v1/workstations-gen.go +++ b/workstations/v1/workstations-gen.go @@ -505,6 +505,34 @@ func (s *CustomerEncryptionKey) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DomainConfig: Configuration options for a custom domain. +type DomainConfig struct { + // Domain: Immutable. Domain used by Workstations for HTTP ingress. + Domain string `json:"domain,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Domain") 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. "Domain") 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 *DomainConfig) MarshalJSON() ([]byte, error) { + type NoMethod DomainConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Expr: Represents a textual expression in the Common Expression // Language (CEL) syntax. CEL is a C-like expression language. The // syntax and semantics of CEL are documented at @@ -1847,6 +1875,12 @@ type Workstation struct { // in the format `{port}-{host}`. Host string `json:"host,omitempty"` + // KmsKey: Output only. The name of the Google Cloud KMS encryption key + // used to encrypt this workstation. The KMS key can only be configured + // in the WorkstationConfig. The expected format is + // `projects/*/locations/*/keyRings/*/cryptoKeys/*`. + KmsKey string `json:"kmsKey,omitempty"` + // Labels: Optional. Labels // (https://cloud.google.com/workstations/docs/label-resources) that are // applied to the workstation and that are also propagated to the @@ -1946,6 +1980,9 @@ type WorkstationCluster struct { // cluster. DisplayName string `json:"displayName,omitempty"` + // DomainConfig: Optional. Configuration options for a custom domain. + DomainConfig *DomainConfig `json:"domainConfig,omitempty"` + // Etag: Optional. Checksum computed by the server. May be sent on // update and delete requests to make sure that the client has an // up-to-date value before proceeding. diff --git a/workstations/v1beta/workstations-api.json b/workstations/v1beta/workstations-api.json index 88a69947201..fc7e6ccaf31 100644 --- a/workstations/v1beta/workstations-api.json +++ b/workstations/v1beta/workstations-api.json @@ -1127,7 +1127,7 @@ } } }, - "revision": "20231101", + "revision": "20231129", "rootUrl": "https://workstations.googleapis.com/", "schemas": { "Accelerator": { @@ -1992,6 +1992,11 @@ "readOnly": true, "type": "string" }, + "kmsKey": { + "description": "Output only. The name of the Google Cloud KMS encryption key used to encrypt this workstation. The KMS key can only be configured in the WorkstationConfig. The expected format is `projects/*/locations/*/keyRings/*/cryptoKeys/*`.", + "readOnly": true, + "type": "string" + }, "labels": { "additionalProperties": { "type": "string" diff --git a/workstations/v1beta/workstations-gen.go b/workstations/v1beta/workstations-gen.go index 1cad5a98012..286e8e9d40e 100644 --- a/workstations/v1beta/workstations-gen.go +++ b/workstations/v1beta/workstations-gen.go @@ -1905,6 +1905,12 @@ type Workstation struct { // in the format `{port}-{host}`. Host string `json:"host,omitempty"` + // KmsKey: Output only. The name of the Google Cloud KMS encryption key + // used to encrypt this workstation. The KMS key can only be configured + // in the WorkstationConfig. The expected format is + // `projects/*/locations/*/keyRings/*/cryptoKeys/*`. + KmsKey string `json:"kmsKey,omitempty"` + // Labels: Optional. Labels // (https://cloud.google.com/workstations/docs/label-resources) that are // applied to the workstation and that are also propagated to the