From 78320944b877761cf87ad1d375f7867659a7fae0 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 3 Nov 2024 00:30:19 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2857) --- alloydb/v1/alloydb-api.json | 4 +- alloydb/v1/alloydb-gen.go | 12 +- alloydb/v1alpha/alloydb-api.json | 4 +- alloydb/v1alpha/alloydb-gen.go | 12 +- alloydb/v1beta/alloydb-api.json | 4 +- alloydb/v1beta/alloydb-gen.go | 12 +- beyondcorp/v1/beyondcorp-api.json | 74 ++--- beyondcorp/v1/beyondcorp-gen.go | 260 +++++++--------- compute/v1/compute-api.json | 64 +++- compute/v1/compute-gen.go | 53 +++- compute/v1/compute2-gen.go | 4 +- datastream/v1/datastream-api.json | 121 +++++++- datastream/v1/datastream-gen.go | 125 +++++++- gkehub/v1/gkehub-api.json | 20 +- gkehub/v1/gkehub-gen.go | 15 +- gkehub/v1alpha/gkehub-api.json | 6 +- gkehub/v1alpha/gkehub-gen.go | 3 + gkehub/v1beta/gkehub-api.json | 20 +- gkehub/v1beta/gkehub-gen.go | 15 +- gkehub/v2/gkehub-api.json | 6 +- gkehub/v2/gkehub-gen.go | 3 + gkehub/v2alpha/gkehub-api.json | 6 +- gkehub/v2alpha/gkehub-gen.go | 3 + gkehub/v2beta/gkehub-api.json | 6 +- gkehub/v2beta/gkehub-gen.go | 3 + .../v1beta1/networkmanagement-api.json | 8 +- .../v1beta1/networkmanagement-gen.go | 8 +- tpu/v2alpha1/tpu-api.json | 140 ++++++++- tpu/v2alpha1/tpu-gen.go | 281 ++++++++++++++++++ 29 files changed, 1034 insertions(+), 258 deletions(-) diff --git a/alloydb/v1/alloydb-api.json b/alloydb/v1/alloydb-api.json index 6591cf1d2e..b6d7f9b90a 100644 --- a/alloydb/v1/alloydb-api.json +++ b/alloydb/v1/alloydb-api.json @@ -1517,7 +1517,7 @@ } } }, - "revision": "20241015", + "revision": "20241023", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { "AuthorizedNetwork": { @@ -2458,7 +2458,7 @@ "additionalProperties": { "type": "string" }, - "description": "Database flags. Set at instance level. * They are copied from primary instance on read instance creation. * Read instances can set new or override existing flags that are relevant for reads, e.g. for enabling columnar cache on a read instance. Flags set on read instance may or may not be present on primary. This is a list of \"key\": \"value\" pairs. \"key\": The name of the flag. These flags are passed at instance setup time, so include both server options and system variables for Postgres. Flags are specified with underscores, not hyphens. \"value\": The value of the flag. Booleans are set to **on** for true and **off** for false. This field must be omitted if the flag doesn't take a value.", + "description": "Database flags. Set at the instance level. They are copied from the primary instance on secondary instance creation. Flags that have restrictions default to the value at primary instance on read instances during creation. Read instances can set new flags or override existing flags that are relevant for reads, for example, for enabling columnar cache on a read instance. Flags set on read instance might or might not be present on the primary instance. This is a list of \"key\": \"value\" pairs. \"key\": The name of the flag. These flags are passed at instance setup time, so include both server options and system variables for Postgres. Flags are specified with underscores, not hyphens. \"value\": The value of the flag. Booleans are set to **on** for true and **off** for false. This field must be omitted if the flag doesn't take a value.", "type": "object" }, "deleteTime": { diff --git a/alloydb/v1/alloydb-gen.go b/alloydb/v1/alloydb-gen.go index 21418acd84..f15ed0dd14 100644 --- a/alloydb/v1/alloydb-gen.go +++ b/alloydb/v1/alloydb-gen.go @@ -1173,11 +1173,13 @@ type Instance struct { ClientConnectionConfig *ClientConnectionConfig `json:"clientConnectionConfig,omitempty"` // CreateTime: Output only. Create time stamp CreateTime string `json:"createTime,omitempty"` - // DatabaseFlags: Database flags. Set at instance level. * They are copied from - // primary instance on read instance creation. * Read instances can set new or - // override existing flags that are relevant for reads, e.g. for enabling - // columnar cache on a read instance. Flags set on read instance may or may not - // be present on primary. This is a list of "key": "value" pairs. "key": The + // DatabaseFlags: Database flags. Set at the instance level. They are copied + // from the primary instance on secondary instance creation. Flags that have + // restrictions default to the value at primary instance on read instances + // during creation. Read instances can set new flags or override existing flags + // that are relevant for reads, for example, for enabling columnar cache on a + // read instance. Flags set on read instance might or might not be present on + // the primary instance. This is a list of "key": "value" pairs. "key": The // name of the flag. These flags are passed at instance setup time, so include // both server options and system variables for Postgres. Flags are specified // with underscores, not hyphens. "value": The value of the flag. Booleans are diff --git a/alloydb/v1alpha/alloydb-api.json b/alloydb/v1alpha/alloydb-api.json index 95a3a3ae8b..5e11833542 100644 --- a/alloydb/v1alpha/alloydb-api.json +++ b/alloydb/v1alpha/alloydb-api.json @@ -1517,7 +1517,7 @@ } } }, - "revision": "20241015", + "revision": "20241023", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { "AuthorizedNetwork": { @@ -2535,7 +2535,7 @@ "additionalProperties": { "type": "string" }, - "description": "Database flags. Set at instance level. * They are copied from primary instance on read instance creation. * Read instances can set new or override existing flags that are relevant for reads, e.g. for enabling columnar cache on a read instance. Flags set on read instance may or may not be present on primary. This is a list of \"key\": \"value\" pairs. \"key\": The name of the flag. These flags are passed at instance setup time, so include both server options and system variables for Postgres. Flags are specified with underscores, not hyphens. \"value\": The value of the flag. Booleans are set to **on** for true and **off** for false. This field must be omitted if the flag doesn't take a value.", + "description": "Database flags. Set at the instance level. They are copied from the primary instance on secondary instance creation. Flags that have restrictions default to the value at primary instance on read instances during creation. Read instances can set new flags or override existing flags that are relevant for reads, for example, for enabling columnar cache on a read instance. Flags set on read instance might or might not be present on the primary instance. This is a list of \"key\": \"value\" pairs. \"key\": The name of the flag. These flags are passed at instance setup time, so include both server options and system variables for Postgres. Flags are specified with underscores, not hyphens. \"value\": The value of the flag. Booleans are set to **on** for true and **off** for false. This field must be omitted if the flag doesn't take a value.", "type": "object" }, "deleteTime": { diff --git a/alloydb/v1alpha/alloydb-gen.go b/alloydb/v1alpha/alloydb-gen.go index 3f613af8c2..465c0b87fe 100644 --- a/alloydb/v1alpha/alloydb-gen.go +++ b/alloydb/v1alpha/alloydb-gen.go @@ -1268,11 +1268,13 @@ type Instance struct { ClientConnectionConfig *ClientConnectionConfig `json:"clientConnectionConfig,omitempty"` // CreateTime: Output only. Create time stamp CreateTime string `json:"createTime,omitempty"` - // DatabaseFlags: Database flags. Set at instance level. * They are copied from - // primary instance on read instance creation. * Read instances can set new or - // override existing flags that are relevant for reads, e.g. for enabling - // columnar cache on a read instance. Flags set on read instance may or may not - // be present on primary. This is a list of "key": "value" pairs. "key": The + // DatabaseFlags: Database flags. Set at the instance level. They are copied + // from the primary instance on secondary instance creation. Flags that have + // restrictions default to the value at primary instance on read instances + // during creation. Read instances can set new flags or override existing flags + // that are relevant for reads, for example, for enabling columnar cache on a + // read instance. Flags set on read instance might or might not be present on + // the primary instance. This is a list of "key": "value" pairs. "key": The // name of the flag. These flags are passed at instance setup time, so include // both server options and system variables for Postgres. Flags are specified // with underscores, not hyphens. "value": The value of the flag. Booleans are diff --git a/alloydb/v1beta/alloydb-api.json b/alloydb/v1beta/alloydb-api.json index bdc0d8e5d0..415ca9f4c7 100644 --- a/alloydb/v1beta/alloydb-api.json +++ b/alloydb/v1beta/alloydb-api.json @@ -1514,7 +1514,7 @@ } } }, - "revision": "20241015", + "revision": "20241023", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { "AuthorizedNetwork": { @@ -2516,7 +2516,7 @@ "additionalProperties": { "type": "string" }, - "description": "Database flags. Set at instance level. * They are copied from primary instance on read instance creation. * Read instances can set new or override existing flags that are relevant for reads, e.g. for enabling columnar cache on a read instance. Flags set on read instance may or may not be present on primary. This is a list of \"key\": \"value\" pairs. \"key\": The name of the flag. These flags are passed at instance setup time, so include both server options and system variables for Postgres. Flags are specified with underscores, not hyphens. \"value\": The value of the flag. Booleans are set to **on** for true and **off** for false. This field must be omitted if the flag doesn't take a value.", + "description": "Database flags. Set at the instance level. They are copied from the primary instance on secondary instance creation. Flags that have restrictions default to the value at primary instance on read instances during creation. Read instances can set new flags or override existing flags that are relevant for reads, for example, for enabling columnar cache on a read instance. Flags set on read instance might or might not be present on the primary instance. This is a list of \"key\": \"value\" pairs. \"key\": The name of the flag. These flags are passed at instance setup time, so include both server options and system variables for Postgres. Flags are specified with underscores, not hyphens. \"value\": The value of the flag. Booleans are set to **on** for true and **off** for false. This field must be omitted if the flag doesn't take a value.", "type": "object" }, "deleteTime": { diff --git a/alloydb/v1beta/alloydb-gen.go b/alloydb/v1beta/alloydb-gen.go index 56a93192d4..cba4462023 100644 --- a/alloydb/v1beta/alloydb-gen.go +++ b/alloydb/v1beta/alloydb-gen.go @@ -1260,11 +1260,13 @@ type Instance struct { ClientConnectionConfig *ClientConnectionConfig `json:"clientConnectionConfig,omitempty"` // CreateTime: Output only. Create time stamp CreateTime string `json:"createTime,omitempty"` - // DatabaseFlags: Database flags. Set at instance level. * They are copied from - // primary instance on read instance creation. * Read instances can set new or - // override existing flags that are relevant for reads, e.g. for enabling - // columnar cache on a read instance. Flags set on read instance may or may not - // be present on primary. This is a list of "key": "value" pairs. "key": The + // DatabaseFlags: Database flags. Set at the instance level. They are copied + // from the primary instance on secondary instance creation. Flags that have + // restrictions default to the value at primary instance on read instances + // during creation. Read instances can set new flags or override existing flags + // that are relevant for reads, for example, for enabling columnar cache on a + // read instance. Flags set on read instance might or might not be present on + // the primary instance. This is a list of "key": "value" pairs. "key": The // name of the flag. These flags are passed at instance setup time, so include // both server options and system variables for Postgres. Flags are specified // with underscores, not hyphens. "value": The value of the flag. Booleans are diff --git a/beyondcorp/v1/beyondcorp-api.json b/beyondcorp/v1/beyondcorp-api.json index 8afa6f9e2a..5705254f49 100644 --- a/beyondcorp/v1/beyondcorp-api.json +++ b/beyondcorp/v1/beyondcorp-api.json @@ -2169,6 +2169,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/securityGateways/{securityGatewaysId}:setIamPolicy", + "httpMethod": "POST", + "id": "beyondcorp.projects.locations.securityGateways.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/securityGateways/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+resource}:setIamPolicy", + "request": { + "$ref": "GoogleIamV1SetIamPolicyRequest" + }, + "response": { + "$ref": "GoogleIamV1Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "setPeering": { "description": "This is a custom method to allow customers to create a peering connections between Google network and customer networks. This is enabled only for the allowlisted customers.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/securityGateways/{securityGatewaysId}:setPeering", @@ -2401,53 +2429,9 @@ } } } - }, - "v": { - "resources": { - "projects": { - "resources": { - "locations": { - "resources": { - "securityGateways": { - "methods": { - "setIamPolicy": { - "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - "flatPath": "v/projects/{projectsId}/locations/{locationsId}/securityGateways/{securityGatewaysId}:setIamPolicy", - "httpMethod": "POST", - "id": "beyondcorp.v.projects.locations.securityGateways.setIamPolicy", - "parameterOrder": [ - "resource" - ], - "parameters": { - "resource": { - "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/securityGateways/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v/{+resource}:setIamPolicy", - "request": { - "$ref": "GoogleIamV1SetIamPolicyRequest" - }, - "response": { - "$ref": "GoogleIamV1Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - } - } - } - } - } - } } }, - "revision": "20241011", + "revision": "20241024", "rootUrl": "https://beyondcorp.googleapis.com/", "schemas": { "AllocatedConnection": { diff --git a/beyondcorp/v1/beyondcorp-gen.go b/beyondcorp/v1/beyondcorp-gen.go index 68700c11fc..b59c0eb54f 100644 --- a/beyondcorp/v1/beyondcorp-gen.go +++ b/beyondcorp/v1/beyondcorp-gen.go @@ -137,7 +137,6 @@ func New(client *http.Client) (*Service, error) { s := &Service{client: client, BasePath: basePath} s.Organizations = NewOrganizationsService(s) s.Projects = NewProjectsService(s) - s.V = NewVService(s) return s, nil } @@ -149,8 +148,6 @@ type Service struct { Organizations *OrganizationsService Projects *ProjectsService - - V *VService } func (s *Service) userAgent() string { @@ -394,51 +391,6 @@ type ProjectsLocationsSecurityGatewaysApplicationsService struct { s *Service } -func NewVService(s *Service) *VService { - rs := &VService{s: s} - rs.Projects = NewVProjectsService(s) - return rs -} - -type VService struct { - s *Service - - Projects *VProjectsService -} - -func NewVProjectsService(s *Service) *VProjectsService { - rs := &VProjectsService{s: s} - rs.Locations = NewVProjectsLocationsService(s) - return rs -} - -type VProjectsService struct { - s *Service - - Locations *VProjectsLocationsService -} - -func NewVProjectsLocationsService(s *Service) *VProjectsLocationsService { - rs := &VProjectsLocationsService{s: s} - rs.SecurityGateways = NewVProjectsLocationsSecurityGatewaysService(s) - return rs -} - -type VProjectsLocationsService struct { - s *Service - - SecurityGateways *VProjectsLocationsSecurityGatewaysService -} - -func NewVProjectsLocationsSecurityGatewaysService(s *Service) *VProjectsLocationsSecurityGatewaysService { - rs := &VProjectsLocationsSecurityGatewaysService{s: s} - return rs -} - -type VProjectsLocationsSecurityGatewaysService struct { - s *Service -} - // AllocatedConnection: Allocated connection of the AppGateway. type AllocatedConnection struct { // IngressPort: Required. The ingress port of an allocated connection @@ -10224,6 +10176,112 @@ func (c *ProjectsLocationsSecurityGatewaysPatchCall) Do(opts ...googleapi.CallOp return ret, nil } +type ProjectsLocationsSecurityGatewaysSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being specified. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsSecurityGatewaysService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *ProjectsLocationsSecurityGatewaysSetIamPolicyCall { + c := &ProjectsLocationsSecurityGatewaysSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsSecurityGatewaysSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecurityGatewaysSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsSecurityGatewaysSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsSecurityGatewaysSetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsSecurityGatewaysSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsSecurityGatewaysSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + 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 "beyondcorp.projects.locations.securityGateways.setIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleIamV1Policy.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 *ProjectsLocationsSecurityGatewaysSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, 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 := &GoogleIamV1Policy{ + 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 +} + type ProjectsLocationsSecurityGatewaysSetPeeringCall struct { s *Service securityGateway string @@ -11069,109 +11127,3 @@ func (c *ProjectsLocationsSecurityGatewaysApplicationsSetIamPolicyCall) Do(opts } return ret, nil } - -type VProjectsLocationsSecurityGatewaysSetIamPolicyCall struct { - s *Service - resource string - googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// SetIamPolicy: Sets the access control policy on the specified resource. -// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, -// and `PERMISSION_DENIED` errors. -// -// - resource: REQUIRED: The resource for which the policy is being specified. -// See Resource names (https://cloud.google.com/apis/design/resource_names) -// for the appropriate value for this field. -func (r *VProjectsLocationsSecurityGatewaysService) SetIamPolicy(resource string, googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest) *VProjectsLocationsSecurityGatewaysSetIamPolicyCall { - c := &VProjectsLocationsSecurityGatewaysSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.googleiamv1setiampolicyrequest = googleiamv1setiampolicyrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more -// details. -func (c *VProjectsLocationsSecurityGatewaysSetIamPolicyCall) Fields(s ...googleapi.Field) *VProjectsLocationsSecurityGatewaysSetIamPolicyCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. -func (c *VProjectsLocationsSecurityGatewaysSetIamPolicyCall) Context(ctx context.Context) *VProjectsLocationsSecurityGatewaysSetIamPolicyCall { - c.ctx_ = ctx - return c -} - -// Header returns a http.Header that can be modified by the caller to add -// headers to the request. -func (c *VProjectsLocationsSecurityGatewaysSetIamPolicyCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *VProjectsLocationsSecurityGatewaysSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleiamv1setiampolicyrequest) - if err != nil { - return nil, err - } - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v/{+resource}:setIamPolicy") - 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 "beyondcorp.v.projects.locations.securityGateways.setIamPolicy" call. -// Any non-2xx status code is an error. Response headers are in either -// *GoogleIamV1Policy.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 *VProjectsLocationsSecurityGatewaysSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*GoogleIamV1Policy, 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 := &GoogleIamV1Policy{ - 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 -} diff --git a/compute/v1/compute-api.json b/compute/v1/compute-api.json index dfd842b6d9..26136be458 100644 --- a/compute/v1/compute-api.json +++ b/compute/v1/compute-api.json @@ -10446,7 +10446,7 @@ "type": "string" }, "start": { - "description": "Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console.", + "description": "Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console. Note that the negative start is bounded by the retained buffer size, and the returned serial console output will not exceed the max buffer size.", "format": "int64", "location": "query", "type": "string" @@ -37421,7 +37421,7 @@ } } }, - "revision": "20241015", + "revision": "20241021", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -40146,7 +40146,7 @@ "description": "The CacheKeyPolicy for this CdnPolicy." }, "cacheMode": { - "description": "Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any \"private\", \"no-store\" or \"no-cache\" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.", + "description": "Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any \"private\", \"no-store\" or \"no-cache\" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.", "enum": [ "CACHE_ALL_STATIC", "FORCE_CACHE_ALL", @@ -40908,7 +40908,7 @@ "description": "The CacheKeyPolicy for this CdnPolicy." }, "cacheMode": { - "description": "Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any \"private\", \"no-store\" or \"no-cache\" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached.", + "description": "Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL Cache all content, ignoring any \"private\", \"no-store\" or \"no-cache\" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. CACHE_ALL_STATIC Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. If no value is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC.", "enum": [ "CACHE_ALL_STATIC", "FORCE_CACHE_ALL", @@ -60238,6 +60238,34 @@ "description": "A routing configuration attached to a network resource. The message includes the list of routers associated with the network, and a flag indicating the type of routing behavior to enforce network-wide.", "id": "NetworkRoutingConfig", "properties": { + "bgpAlwaysCompareMed": { + "description": "Enable comparison of Multi-Exit Discriminators (MED) across routes with different neighbor ASNs when using the STANDARD BGP best path selection algorithm.", + "type": "boolean" + }, + "bgpBestPathSelectionMode": { + "description": "The BGP best path selection algorithm to be employed within this network for dynamic routes learned by Cloud Routers. Can be LEGACY (default) or STANDARD.", + "enum": [ + "LEGACY", + "STANDARD" + ], + "enumDescriptions": [ + "", + "" + ], + "type": "string" + }, + "bgpInterRegionCost": { + "description": "Allows to define a preferred approach for handling inter-region cost in the selection process when using the STANDARD BGP best path selection algorithm. Can be DEFAULT or ADD_COST_TO_MED.", + "enum": [ + "ADD_COST_TO_MED", + "DEFAULT" + ], + "enumDescriptions": [ + "", + "" + ], + "type": "string" + }, "routingMode": { "description": "The network-wide routing mode to use. If set to REGIONAL, this network's Cloud Routers will only advertise routes with subnets of this network in the same region as the router. If set to GLOBAL, this network's Cloud Routers will advertise routes with all subnets of this network, across regions.", "enum": [ @@ -69127,14 +69155,38 @@ "description": "The URL to an instance that should handle matching packets. You can specify this as a full or partial URL. For example: https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/", "type": "string" }, + "nextHopInterRegionCost": { + "description": "[Output only] Internal fixed region-to-region cost that Google Cloud calculates based on factors such as network performance, distance, and available bandwidth between regions.", + "format": "uint32", + "type": "integer" + }, "nextHopIp": { "description": "The network IP address of an instance that should handle matching packets. Both IPv6 address and IPv4 addresses are supported. Must specify an IPv4 address in dot-decimal notation (e.g. 192.0.2.99) or an IPv6 address in RFC 4291 format (e.g. 2001:db8::2d9:51:0:0 or 2001:db8:0:0:2d9:51:0:0). IPv6 addresses will be displayed using RFC 5952 compressed format (e.g. 2001:db8::2d9:51:0:0). Should never be an IPv4-mapped IPv6 address.", "type": "string" }, + "nextHopMed": { + "description": "[Output Only] Multi-Exit Discriminator, a BGP route metric that indicates the desirability of a particular route in a network.", + "format": "uint32", + "type": "integer" + }, "nextHopNetwork": { "description": "The URL of the local network if it should handle matching packets.", "type": "string" }, + "nextHopOrigin": { + "description": "[Output Only] Indicates the origin of the route. Can be IGP (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE.", + "enum": [ + "EGP", + "IGP", + "INCOMPLETE" + ], + "enumDescriptions": [ + "", + "", + "" + ], + "type": "string" + }, "nextHopPeering": { "description": "[Output Only] The network peering name that should handle matching packets, which should conform to RFC1035.", "type": "string" @@ -76920,7 +76972,7 @@ "type": "string" }, "purpose": { - "description": "The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.", + "description": "The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.", "enum": [ "GLOBAL_MANAGED_PROXY", "INTERNAL_HTTPS_LOAD_BALANCER", @@ -82115,7 +82167,7 @@ "type": "string" }, "purpose": { - "description": "The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.", + "description": "The purpose of the resource. This field can be either PRIVATE, GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, or PRIVATE_SERVICE_CONNECT. PRIVATE is the default purpose for user-created subnets or subnets that are automatically created in auto mode networks. Subnets with purpose set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks that are reserved for Envoy-based load balancers. A subnet with purpose set to PRIVATE_SERVICE_CONNECT is used to publish services using Private Service Connect. If unspecified, the subnet purpose defaults to PRIVATE. The enableFlowLogs field isn't supported if the subnet purpose field is set to GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY.", "enum": [ "GLOBAL_MANAGED_PROXY", "INTERNAL_HTTPS_LOAD_BALANCER", diff --git a/compute/v1/compute-gen.go b/compute/v1/compute-gen.go index e5dff1873e..b7c2191860 100644 --- a/compute/v1/compute-gen.go +++ b/compute/v1/compute-gen.go @@ -4520,7 +4520,8 @@ type BackendBucketCdnPolicy struct { // identifiable) content. CACHE_ALL_STATIC Automatically cache static content, // including common image formats, media (video and audio), and web assets // (JavaScript and CSS). Requests and responses that are marked as uncacheable, - // as well as dynamic content (including HTML), will not be cached. + // as well as dynamic content (including HTML), will not be cached. If no value + // is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC. // // Possible values: // "CACHE_ALL_STATIC" - Automatically cache static content, including common @@ -5470,7 +5471,8 @@ type BackendServiceCdnPolicy struct { // identifiable) content. CACHE_ALL_STATIC Automatically cache static content, // including common image formats, media (video and audio), and web assets // (JavaScript and CSS). Requests and responses that are marked as uncacheable, - // as well as dynamic content (including HTML), will not be cached. + // as well as dynamic content (including HTML), will not be cached. If no value + // is provided for cdnPolicy.cacheMode, it defaults to CACHE_ALL_STATIC. // // Possible values: // "CACHE_ALL_STATIC" - Automatically cache static content, including common @@ -27684,6 +27686,26 @@ func (s NetworkPerformanceConfig) MarshalJSON() ([]byte, error) { // network, and a flag indicating the type of routing behavior to enforce // network-wide. type NetworkRoutingConfig struct { + // BgpAlwaysCompareMed: Enable comparison of Multi-Exit Discriminators (MED) + // across routes with different neighbor ASNs when using the STANDARD BGP best + // path selection algorithm. + BgpAlwaysCompareMed bool `json:"bgpAlwaysCompareMed,omitempty"` + // BgpBestPathSelectionMode: The BGP best path selection algorithm to be + // employed within this network for dynamic routes learned by Cloud Routers. + // Can be LEGACY (default) or STANDARD. + // + // Possible values: + // "LEGACY" + // "STANDARD" + BgpBestPathSelectionMode string `json:"bgpBestPathSelectionMode,omitempty"` + // BgpInterRegionCost: Allows to define a preferred approach for handling + // inter-region cost in the selection process when using the STANDARD BGP best + // path selection algorithm. Can be DEFAULT or ADD_COST_TO_MED. + // + // Possible values: + // "ADD_COST_TO_MED" + // "DEFAULT" + BgpInterRegionCost string `json:"bgpInterRegionCost,omitempty"` // RoutingMode: The network-wide routing mode to use. If set to REGIONAL, this // network's Cloud Routers will only advertise routes with subnets of this // network in the same region as the router. If set to GLOBAL, this network's @@ -27694,15 +27716,15 @@ type NetworkRoutingConfig struct { // "GLOBAL" // "REGIONAL" RoutingMode string `json:"routingMode,omitempty"` - // ForceSendFields is a list of field names (e.g. "RoutingMode") to + // ForceSendFields is a list of field names (e.g. "BgpAlwaysCompareMed") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RoutingMode") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "BgpAlwaysCompareMed") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -37318,6 +37340,10 @@ type Route struct { // You can specify this as a full or partial URL. For example: // https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ NextHopInstance string `json:"nextHopInstance,omitempty"` + // NextHopInterRegionCost: [Output only] Internal fixed region-to-region cost + // that Google Cloud calculates based on factors such as network performance, + // distance, and available bandwidth between regions. + NextHopInterRegionCost int64 `json:"nextHopInterRegionCost,omitempty"` // NextHopIp: The network IP address of an instance that should handle matching // packets. Both IPv6 address and IPv4 addresses are supported. Must specify an // IPv4 address in dot-decimal notation (e.g. 192.0.2.99) or an IPv6 address in @@ -37325,9 +37351,20 @@ type Route struct { // addresses will be displayed using RFC 5952 compressed format (e.g. // 2001:db8::2d9:51:0:0). Should never be an IPv4-mapped IPv6 address. NextHopIp string `json:"nextHopIp,omitempty"` + // NextHopMed: [Output Only] Multi-Exit Discriminator, a BGP route metric that + // indicates the desirability of a particular route in a network. + NextHopMed int64 `json:"nextHopMed,omitempty"` // NextHopNetwork: The URL of the local network if it should handle matching // packets. NextHopNetwork string `json:"nextHopNetwork,omitempty"` + // NextHopOrigin: [Output Only] Indicates the origin of the route. Can be IGP + // (Interior Gateway Protocol), EGP (Exterior Gateway Protocol), or INCOMPLETE. + // + // Possible values: + // "EGP" + // "IGP" + // "INCOMPLETE" + NextHopOrigin string `json:"nextHopOrigin,omitempty"` // NextHopPeering: [Output Only] The network peering name that should handle // matching packets, which should conform to RFC1035. NextHopPeering string `json:"nextHopPeering,omitempty"` @@ -45621,7 +45658,7 @@ type Subnetwork struct { // VMs in this subnet to Google services. PrivateIpv6GoogleAccess string `json:"privateIpv6GoogleAccess,omitempty"` // Purpose: The purpose of the resource. This field can be either PRIVATE, - // GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or + // GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, or PRIVATE_SERVICE_CONNECT. // PRIVATE is the default purpose for user-created subnets or subnets that are // automatically created in auto mode networks. Subnets with purpose set to // GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks @@ -51461,7 +51498,7 @@ type UsableSubnetwork struct { // Network: Network URL. Network string `json:"network,omitempty"` // Purpose: The purpose of the resource. This field can be either PRIVATE, - // GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, PRIVATE_SERVICE_CONNECT, or + // GLOBAL_MANAGED_PROXY, REGIONAL_MANAGED_PROXY, or PRIVATE_SERVICE_CONNECT. // PRIVATE is the default purpose for user-created subnets or subnets that are // automatically created in auto mode networks. Subnets with purpose set to // GLOBAL_MANAGED_PROXY or REGIONAL_MANAGED_PROXY are user-created subnetworks diff --git a/compute/v1/compute2-gen.go b/compute/v1/compute2-gen.go index f66a5b58a3..6eb7f3b6ff 100644 --- a/compute/v1/compute2-gen.go +++ b/compute/v1/compute2-gen.go @@ -30951,7 +30951,9 @@ func (c *InstancesGetSerialPortOutputCall) Port(port int64) *InstancesGetSerialP // adjusted start position is returned as the `start` property value. You can // also provide a negative start position, which translates to the most recent // number of bytes written to the serial port. For example, -3 is interpreted -// as the most recent 3 bytes written to the serial console. +// as the most recent 3 bytes written to the serial console. Note that the +// negative start is bounded by the retained buffer size, and the returned +// serial console output will not exceed the max buffer size. func (c *InstancesGetSerialPortOutputCall) Start(start int64) *InstancesGetSerialPortOutputCall { c.urlParams_.Set("start", fmt.Sprint(start)) return c diff --git a/datastream/v1/datastream-api.json b/datastream/v1/datastream-api.json index da4c8ba625..59dc9412bc 100644 --- a/datastream/v1/datastream-api.json +++ b/datastream/v1/datastream-api.json @@ -1250,7 +1250,7 @@ } } }, - "revision": "20240930", + "revision": "20241028", "rootUrl": "https://datastream.googleapis.com/", "schemas": { "AppendOnly": { @@ -1394,6 +1394,27 @@ "properties": {}, "type": "object" }, + "BinaryLogParser": { + "description": "Configuration to use Binary Log Parser CDC technique.", + "id": "BinaryLogParser", + "properties": { + "logFileDirectories": { + "$ref": "LogFileDirectories", + "description": "Use Oracle directories." + }, + "oracleAsmLogFileAccess": { + "$ref": "OracleAsmLogFileAccess", + "description": "Use Oracle ASM." + } + }, + "type": "object" + }, + "BinaryLogPosition": { + "description": "Use Binary log position based replication.", + "id": "BinaryLogPosition", + "properties": {}, + "type": "object" + }, "CancelOperationRequest": { "description": "The request message for Operations.CancelOperation.", "id": "CancelOperationRequest", @@ -1724,6 +1745,12 @@ }, "type": "object" }, + "Gtid": { + "description": "Use GTID based replication.", + "id": "Gtid", + "properties": {}, + "type": "object" + }, "JsonFileFormat": { "description": "JSON file format configuration.", "id": "JsonFileFormat", @@ -1947,6 +1974,27 @@ }, "type": "object" }, + "LogFileDirectories": { + "description": "Configuration to specify the Oracle directories to access the log files.", + "id": "LogFileDirectories", + "properties": { + "archivedLogDirectory": { + "description": "Required. Oracle directory for archived logs.", + "type": "string" + }, + "onlineLogDirectory": { + "description": "Required. Oracle directory for online logs.", + "type": "string" + } + }, + "type": "object" + }, + "LogMiner": { + "description": "Configuration to use LogMiner CDC method.", + "id": "LogMiner", + "properties": {}, + "type": "object" + }, "LookupStreamObjectRequest": { "description": "Request for looking up a specific stream object by its source object identifier.", "id": "LookupStreamObjectRequest", @@ -2112,10 +2160,18 @@ "description": "MySQL source configuration", "id": "MysqlSourceConfig", "properties": { + "binaryLogPosition": { + "$ref": "BinaryLogPosition", + "description": "Use Binary log position based replication." + }, "excludeObjects": { "$ref": "MysqlRdbms", "description": "MySQL objects to exclude from the stream." }, + "gtid": { + "$ref": "Gtid", + "description": "Use GTID based replication." + }, "includeObjects": { "$ref": "MysqlRdbms", "description": "MySQL objects to retrieve from the source." @@ -2275,6 +2331,51 @@ }, "type": "object" }, + "OracleAsmConfig": { + "description": "Configuration for Oracle Automatic Storage Management (ASM) connection.", + "id": "OracleAsmConfig", + "properties": { + "asmService": { + "description": "Required. ASM service name for the Oracle ASM connection.", + "type": "string" + }, + "connectionAttributes": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Connection string attributes", + "type": "object" + }, + "hostname": { + "description": "Required. Hostname for the Oracle ASM connection.", + "type": "string" + }, + "oracleSslConfig": { + "$ref": "OracleSslConfig", + "description": "Optional. SSL configuration for the Oracle connection." + }, + "password": { + "description": "Required. Password for the Oracle ASM connection.", + "type": "string" + }, + "port": { + "description": "Required. Port for the Oracle ASM connection.", + "format": "int32", + "type": "integer" + }, + "username": { + "description": "Required. Username for the Oracle ASM connection.", + "type": "string" + } + }, + "type": "object" + }, + "OracleAsmLogFileAccess": { + "description": "Configuration to use Oracle ASM to access the log files.", + "id": "OracleAsmLogFileAccess", + "properties": {}, + "type": "object" + }, "OracleColumn": { "description": "Oracle Column.", "id": "OracleColumn", @@ -2356,6 +2457,10 @@ "description": "Required. Hostname for the Oracle connection.", "type": "string" }, + "oracleAsmConfig": { + "$ref": "OracleAsmConfig", + "description": "Optional. Configuration for Oracle ASM connection." + }, "oracleSslConfig": { "$ref": "OracleSslConfig", "description": "Optional. SSL configuration for the Oracle connection." @@ -2369,6 +2474,10 @@ "format": "int32", "type": "integer" }, + "secretManagerStoredPassword": { + "description": "Optional. A reference to a Secret Manager resource name storing the Oracle connection password. Mutually exclusive with the `password` field.", + "type": "string" + }, "username": { "description": "Required. Username for the Oracle connection.", "type": "string" @@ -2424,6 +2533,10 @@ "description": "Oracle data source configuration", "id": "OracleSourceConfig", "properties": { + "binaryLogParser": { + "$ref": "BinaryLogParser", + "description": "Use Binary Log Parser." + }, "dropLargeObjects": { "$ref": "DropLargeObjects", "description": "Drop large object values." @@ -2436,6 +2549,10 @@ "$ref": "OracleRdbms", "description": "Oracle objects to include in the stream." }, + "logMiner": { + "$ref": "LogMiner", + "description": "Use LogMiner." + }, "maxConcurrentBackfillTasks": { "description": "Maximum number of concurrent backfill tasks. The number should be non-negative. If not set (or set to 0), the system's default value is used.", "format": "int32", @@ -2546,7 +2663,7 @@ "type": "object" }, "PostgresqlProfile": { - "description": "PostgreSQL database profile. Next ID: 7.", + "description": "PostgreSQL database profile.", "id": "PostgresqlProfile", "properties": { "database": { diff --git a/datastream/v1/datastream-gen.go b/datastream/v1/datastream-gen.go index 77ff9c4afb..ba7569ffb1 100644 --- a/datastream/v1/datastream-gen.go +++ b/datastream/v1/datastream-gen.go @@ -379,6 +379,34 @@ func (s BigQueryDestinationConfig) MarshalJSON() ([]byte, error) { type BigQueryProfile struct { } +// BinaryLogParser: Configuration to use Binary Log Parser CDC technique. +type BinaryLogParser struct { + // LogFileDirectories: Use Oracle directories. + LogFileDirectories *LogFileDirectories `json:"logFileDirectories,omitempty"` + // OracleAsmLogFileAccess: Use Oracle ASM. + OracleAsmLogFileAccess *OracleAsmLogFileAccess `json:"oracleAsmLogFileAccess,omitempty"` + // ForceSendFields is a list of field names (e.g. "LogFileDirectories") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "LogFileDirectories") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s BinaryLogParser) MarshalJSON() ([]byte, error) { + type NoMethod BinaryLogParser + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// BinaryLogPosition: Use Binary log position based replication. +type BinaryLogPosition struct { +} + // CancelOperationRequest: The request message for Operations.CancelOperation. type CancelOperationRequest struct { } @@ -760,6 +788,10 @@ func (s GcsProfile) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// Gtid: Use GTID based replication. +type Gtid struct { +} + // JsonFileFormat: JSON file format configuration. type JsonFileFormat struct { // Compression: Compression of the loaded JSON file. @@ -1038,6 +1070,35 @@ func (s Location) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// LogFileDirectories: Configuration to specify the Oracle directories to +// access the log files. +type LogFileDirectories struct { + // ArchivedLogDirectory: Required. Oracle directory for archived logs. + ArchivedLogDirectory string `json:"archivedLogDirectory,omitempty"` + // OnlineLogDirectory: Required. Oracle directory for online logs. + OnlineLogDirectory string `json:"onlineLogDirectory,omitempty"` + // ForceSendFields is a list of field names (e.g. "ArchivedLogDirectory") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ArchivedLogDirectory") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s LogFileDirectories) MarshalJSON() ([]byte, error) { + type NoMethod LogFileDirectories + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// LogMiner: Configuration to use LogMiner CDC method. +type LogMiner struct { +} + // LookupStreamObjectRequest: Request for looking up a specific stream object // by its source object identifier. type LookupStreamObjectRequest struct { @@ -1239,8 +1300,12 @@ func (s MysqlRdbms) MarshalJSON() ([]byte, error) { // MysqlSourceConfig: MySQL source configuration type MysqlSourceConfig struct { + // BinaryLogPosition: Use Binary log position based replication. + BinaryLogPosition *BinaryLogPosition `json:"binaryLogPosition,omitempty"` // ExcludeObjects: MySQL objects to exclude from the stream. ExcludeObjects *MysqlRdbms `json:"excludeObjects,omitempty"` + // Gtid: Use GTID based replication. + Gtid *Gtid `json:"gtid,omitempty"` // IncludeObjects: MySQL objects to retrieve from the source. IncludeObjects *MysqlRdbms `json:"includeObjects,omitempty"` // MaxConcurrentBackfillTasks: Maximum number of concurrent backfill tasks. The @@ -1251,13 +1316,13 @@ type MysqlSourceConfig struct { // should be non negative. If not set (or set to 0), the system's default value // will be used. MaxConcurrentCdcTasks int64 `json:"maxConcurrentCdcTasks,omitempty"` - // ForceSendFields is a list of field names (e.g. "ExcludeObjects") to + // ForceSendFields is a list of field names (e.g. "BinaryLogPosition") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ExcludeObjects") to include in + // NullFields is a list of field names (e.g. "BinaryLogPosition") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -1427,6 +1492,46 @@ func (s OperationMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// OracleAsmConfig: Configuration for Oracle Automatic Storage Management (ASM) +// connection. +type OracleAsmConfig struct { + // AsmService: Required. ASM service name for the Oracle ASM connection. + AsmService string `json:"asmService,omitempty"` + // ConnectionAttributes: Optional. Connection string attributes + ConnectionAttributes map[string]string `json:"connectionAttributes,omitempty"` + // Hostname: Required. Hostname for the Oracle ASM connection. + Hostname string `json:"hostname,omitempty"` + // OracleSslConfig: Optional. SSL configuration for the Oracle connection. + OracleSslConfig *OracleSslConfig `json:"oracleSslConfig,omitempty"` + // Password: Required. Password for the Oracle ASM connection. + Password string `json:"password,omitempty"` + // Port: Required. Port for the Oracle ASM connection. + Port int64 `json:"port,omitempty"` + // Username: Required. Username for the Oracle ASM connection. + Username string `json:"username,omitempty"` + // ForceSendFields is a list of field names (e.g. "AsmService") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AsmService") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s OracleAsmConfig) MarshalJSON() ([]byte, error) { + type NoMethod OracleAsmConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// OracleAsmLogFileAccess: Configuration to use Oracle ASM to access the log +// files. +type OracleAsmLogFileAccess struct { +} + // OracleColumn: Oracle Column. type OracleColumn struct { // Column: Column name. @@ -1497,6 +1602,8 @@ type OracleProfile struct { DatabaseService string `json:"databaseService,omitempty"` // Hostname: Required. Hostname for the Oracle connection. Hostname string `json:"hostname,omitempty"` + // OracleAsmConfig: Optional. Configuration for Oracle ASM connection. + OracleAsmConfig *OracleAsmConfig `json:"oracleAsmConfig,omitempty"` // OracleSslConfig: Optional. SSL configuration for the Oracle connection. OracleSslConfig *OracleSslConfig `json:"oracleSslConfig,omitempty"` // Password: Optional. Password for the Oracle connection. Mutually exclusive @@ -1504,6 +1611,10 @@ type OracleProfile struct { Password string `json:"password,omitempty"` // Port: Port for the Oracle connection, default value is 1521. Port int64 `json:"port,omitempty"` + // SecretManagerStoredPassword: Optional. A reference to a Secret Manager + // resource name storing the Oracle connection password. Mutually exclusive + // with the `password` field. + SecretManagerStoredPassword string `json:"secretManagerStoredPassword,omitempty"` // Username: Required. Username for the Oracle connection. Username string `json:"username,omitempty"` // ForceSendFields is a list of field names (e.g. "ConnectionAttributes") to @@ -1594,12 +1705,16 @@ func (s OracleScnPosition) MarshalJSON() ([]byte, error) { // OracleSourceConfig: Oracle data source configuration type OracleSourceConfig struct { + // BinaryLogParser: Use Binary Log Parser. + BinaryLogParser *BinaryLogParser `json:"binaryLogParser,omitempty"` // DropLargeObjects: Drop large object values. DropLargeObjects *DropLargeObjects `json:"dropLargeObjects,omitempty"` // ExcludeObjects: Oracle objects to exclude from the stream. ExcludeObjects *OracleRdbms `json:"excludeObjects,omitempty"` // IncludeObjects: Oracle objects to include in the stream. IncludeObjects *OracleRdbms `json:"includeObjects,omitempty"` + // LogMiner: Use LogMiner. + LogMiner *LogMiner `json:"logMiner,omitempty"` // MaxConcurrentBackfillTasks: Maximum number of concurrent backfill tasks. The // number should be non-negative. If not set (or set to 0), the system's // default value is used. @@ -1610,13 +1725,13 @@ type OracleSourceConfig struct { MaxConcurrentCdcTasks int64 `json:"maxConcurrentCdcTasks,omitempty"` // StreamLargeObjects: Stream large object values. StreamLargeObjects *StreamLargeObjects `json:"streamLargeObjects,omitempty"` - // ForceSendFields is a list of field names (e.g. "DropLargeObjects") to + // ForceSendFields is a list of field names (e.g. "BinaryLogParser") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DropLargeObjects") to include in + // NullFields is a list of field names (e.g. "BinaryLogParser") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -1739,7 +1854,7 @@ func (s PostgresqlObjectIdentifier) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PostgresqlProfile: PostgreSQL database profile. Next ID: 7. +// PostgresqlProfile: PostgreSQL database profile. type PostgresqlProfile struct { // Database: Required. Database for the PostgreSQL connection. Database string `json:"database,omitempty"` diff --git a/gkehub/v1/gkehub-api.json b/gkehub/v1/gkehub-api.json index 489fa5e00e..3114b12787 100644 --- a/gkehub/v1/gkehub-api.json +++ b/gkehub/v1/gkehub-api.json @@ -2111,7 +2111,7 @@ } } }, - "revision": "20241017", + "revision": "20241025", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceFeatureSpec": { @@ -2664,6 +2664,10 @@ "sourceFormat": { "description": "Specifies whether the Config Sync Repo is in \"hierarchical\" or \"unstructured\" mode.", "type": "string" + }, + "stopSyncing": { + "description": "Set to true to stop syncing configs for a single cluster. Default to false.", + "type": "boolean" } }, "type": "object" @@ -6331,6 +6335,20 @@ "description": "**Service Mesh**: Spec for a single Membership for the servicemesh feature", "id": "ServiceMeshMembershipSpec", "properties": { + "configApi": { + "description": "Optional. Specifies the API that will be used for configuring the mesh workloads.", + "enum": [ + "CONFIG_API_UNSPECIFIED", + "CONFIG_API_ISTIO", + "CONFIG_API_GATEWAY" + ], + "enumDescriptions": [ + "Unspecified", + "Use the Istio API for configuration.", + "Use the K8s Gateway API for configuration." + ], + "type": "string" + }, "controlPlane": { "deprecated": true, "description": "Deprecated: use `management` instead Enables automatic control plane management.", diff --git a/gkehub/v1/gkehub-gen.go b/gkehub/v1/gkehub-gen.go index 0b95128d19..a5c976eabc 100644 --- a/gkehub/v1/gkehub-gen.go +++ b/gkehub/v1/gkehub-gen.go @@ -1145,6 +1145,9 @@ type ConfigManagementConfigSync struct { // SourceFormat: Specifies whether the Config Sync Repo is in "hierarchical" or // "unstructured" mode. SourceFormat string `json:"sourceFormat,omitempty"` + // StopSyncing: Set to true to stop syncing configs for a single cluster. + // Default to false. + StopSyncing bool `json:"stopSyncing,omitempty"` // ForceSendFields is a list of field names (e.g. "AllowVerticalScale") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -5546,6 +5549,14 @@ func (s ServiceMeshDataPlaneManagement) MarshalJSON() ([]byte, error) { // ServiceMeshMembershipSpec: **Service Mesh**: Spec for a single Membership // for the servicemesh feature type ServiceMeshMembershipSpec struct { + // ConfigApi: Optional. Specifies the API that will be used for configuring the + // mesh workloads. + // + // Possible values: + // "CONFIG_API_UNSPECIFIED" - Unspecified + // "CONFIG_API_ISTIO" - Use the Istio API for configuration. + // "CONFIG_API_GATEWAY" - Use the K8s Gateway API for configuration. + ConfigApi string `json:"configApi,omitempty"` // ControlPlane: Deprecated: use `management` instead Enables automatic control // plane management. // @@ -5567,13 +5578,13 @@ type ServiceMeshMembershipSpec struct { // "MANAGEMENT_MANUAL" - User will manually configure their service mesh // components. Management string `json:"management,omitempty"` - // ForceSendFields is a list of field names (e.g. "ControlPlane") to + // ForceSendFields is a list of field names (e.g. "ConfigApi") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ControlPlane") to include in API + // NullFields is a list of field names (e.g. "ConfigApi") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. diff --git a/gkehub/v1alpha/gkehub-api.json b/gkehub/v1alpha/gkehub-api.json index b097796648..39aac57ab2 100644 --- a/gkehub/v1alpha/gkehub-api.json +++ b/gkehub/v1alpha/gkehub-api.json @@ -2255,7 +2255,7 @@ } } }, - "revision": "20241017", + "revision": "20241025", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -3009,6 +3009,10 @@ "sourceFormat": { "description": "Specifies whether the Config Sync Repo is in \"hierarchical\" or \"unstructured\" mode.", "type": "string" + }, + "stopSyncing": { + "description": "Set to true to stop syncing configs for a single cluster. Default to false.", + "type": "boolean" } }, "type": "object" diff --git a/gkehub/v1alpha/gkehub-gen.go b/gkehub/v1alpha/gkehub-gen.go index 86dbc74fd2..1b26fb5710 100644 --- a/gkehub/v1alpha/gkehub-gen.go +++ b/gkehub/v1alpha/gkehub-gen.go @@ -1412,6 +1412,9 @@ type ConfigManagementConfigSync struct { // SourceFormat: Specifies whether the Config Sync Repo is in "hierarchical" or // "unstructured" mode. SourceFormat string `json:"sourceFormat,omitempty"` + // StopSyncing: Set to true to stop syncing configs for a single cluster. + // Default to false. + StopSyncing bool `json:"stopSyncing,omitempty"` // ForceSendFields is a list of field names (e.g. "AllowVerticalScale") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See diff --git a/gkehub/v1beta/gkehub-api.json b/gkehub/v1beta/gkehub-api.json index e1503a88df..54ac97bf10 100644 --- a/gkehub/v1beta/gkehub-api.json +++ b/gkehub/v1beta/gkehub-api.json @@ -2111,7 +2111,7 @@ } } }, - "revision": "20241017", + "revision": "20241025", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -2749,6 +2749,10 @@ "sourceFormat": { "description": "Specifies whether the Config Sync Repo is in \"hierarchical\" or \"unstructured\" mode.", "type": "string" + }, + "stopSyncing": { + "description": "Set to true to stop syncing configs for a single cluster. Default to false.", + "type": "boolean" } }, "type": "object" @@ -6494,6 +6498,20 @@ "description": "**Service Mesh**: Spec for a single Membership for the servicemesh feature", "id": "ServiceMeshMembershipSpec", "properties": { + "configApi": { + "description": "Optional. Specifies the API that will be used for configuring the mesh workloads.", + "enum": [ + "CONFIG_API_UNSPECIFIED", + "CONFIG_API_ISTIO", + "CONFIG_API_GATEWAY" + ], + "enumDescriptions": [ + "Unspecified", + "Use the Istio API for configuration.", + "Use the K8s Gateway API for configuration." + ], + "type": "string" + }, "controlPlane": { "deprecated": true, "description": "Deprecated: use `management` instead Enables automatic control plane management.", diff --git a/gkehub/v1beta/gkehub-gen.go b/gkehub/v1beta/gkehub-gen.go index 7a1a367b8b..1d4f90d83b 100644 --- a/gkehub/v1beta/gkehub-gen.go +++ b/gkehub/v1beta/gkehub-gen.go @@ -1273,6 +1273,9 @@ type ConfigManagementConfigSync struct { // SourceFormat: Specifies whether the Config Sync Repo is in "hierarchical" or // "unstructured" mode. SourceFormat string `json:"sourceFormat,omitempty"` + // StopSyncing: Set to true to stop syncing configs for a single cluster. + // Default to false. + StopSyncing bool `json:"stopSyncing,omitempty"` // ForceSendFields is a list of field names (e.g. "AllowVerticalScale") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -5764,6 +5767,14 @@ func (s ServiceMeshDataPlaneManagement) MarshalJSON() ([]byte, error) { // ServiceMeshMembershipSpec: **Service Mesh**: Spec for a single Membership // for the servicemesh feature type ServiceMeshMembershipSpec struct { + // ConfigApi: Optional. Specifies the API that will be used for configuring the + // mesh workloads. + // + // Possible values: + // "CONFIG_API_UNSPECIFIED" - Unspecified + // "CONFIG_API_ISTIO" - Use the Istio API for configuration. + // "CONFIG_API_GATEWAY" - Use the K8s Gateway API for configuration. + ConfigApi string `json:"configApi,omitempty"` // ControlPlane: Deprecated: use `management` instead Enables automatic control // plane management. // @@ -5785,13 +5796,13 @@ type ServiceMeshMembershipSpec struct { // "MANAGEMENT_MANUAL" - User will manually configure their service mesh // components. Management string `json:"management,omitempty"` - // ForceSendFields is a list of field names (e.g. "ControlPlane") to + // ForceSendFields is a list of field names (e.g. "ConfigApi") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ControlPlane") to include in API + // NullFields is a list of field names (e.g. "ConfigApi") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. diff --git a/gkehub/v2/gkehub-api.json b/gkehub/v2/gkehub-api.json index bec4144018..8bf03adfe1 100644 --- a/gkehub/v2/gkehub-api.json +++ b/gkehub/v2/gkehub-api.json @@ -471,7 +471,7 @@ } } }, - "revision": "20241017", + "revision": "20241025", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceState": { @@ -729,6 +729,10 @@ "sourceFormat": { "description": "Specifies whether the Config Sync Repo is in \"hierarchical\" or \"unstructured\" mode.", "type": "string" + }, + "stopSyncing": { + "description": "Set to true to stop syncing configs for a single cluster. Default to false.", + "type": "boolean" } }, "type": "object" diff --git a/gkehub/v2/gkehub-gen.go b/gkehub/v2/gkehub-gen.go index d64fe3e737..b2b8cf2a2d 100644 --- a/gkehub/v2/gkehub-gen.go +++ b/gkehub/v2/gkehub-gen.go @@ -556,6 +556,9 @@ type ConfigManagementConfigSync struct { // SourceFormat: Specifies whether the Config Sync Repo is in "hierarchical" or // "unstructured" mode. SourceFormat string `json:"sourceFormat,omitempty"` + // StopSyncing: Set to true to stop syncing configs for a single cluster. + // Default to false. + StopSyncing bool `json:"stopSyncing,omitempty"` // ForceSendFields is a list of field names (e.g. "AllowVerticalScale") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See diff --git a/gkehub/v2alpha/gkehub-api.json b/gkehub/v2alpha/gkehub-api.json index 07ea97dae4..1d5c3b4d53 100644 --- a/gkehub/v2alpha/gkehub-api.json +++ b/gkehub/v2alpha/gkehub-api.json @@ -471,7 +471,7 @@ } } }, - "revision": "20241017", + "revision": "20241025", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceState": { @@ -729,6 +729,10 @@ "sourceFormat": { "description": "Specifies whether the Config Sync Repo is in \"hierarchical\" or \"unstructured\" mode.", "type": "string" + }, + "stopSyncing": { + "description": "Set to true to stop syncing configs for a single cluster. Default to false.", + "type": "boolean" } }, "type": "object" diff --git a/gkehub/v2alpha/gkehub-gen.go b/gkehub/v2alpha/gkehub-gen.go index 269f18b915..a3d763ed48 100644 --- a/gkehub/v2alpha/gkehub-gen.go +++ b/gkehub/v2alpha/gkehub-gen.go @@ -556,6 +556,9 @@ type ConfigManagementConfigSync struct { // SourceFormat: Specifies whether the Config Sync Repo is in "hierarchical" or // "unstructured" mode. SourceFormat string `json:"sourceFormat,omitempty"` + // StopSyncing: Set to true to stop syncing configs for a single cluster. + // Default to false. + StopSyncing bool `json:"stopSyncing,omitempty"` // ForceSendFields is a list of field names (e.g. "AllowVerticalScale") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See diff --git a/gkehub/v2beta/gkehub-api.json b/gkehub/v2beta/gkehub-api.json index 11e48fa415..7a7a8c7578 100644 --- a/gkehub/v2beta/gkehub-api.json +++ b/gkehub/v2beta/gkehub-api.json @@ -471,7 +471,7 @@ } } }, - "revision": "20241017", + "revision": "20241025", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceState": { @@ -729,6 +729,10 @@ "sourceFormat": { "description": "Specifies whether the Config Sync Repo is in \"hierarchical\" or \"unstructured\" mode.", "type": "string" + }, + "stopSyncing": { + "description": "Set to true to stop syncing configs for a single cluster. Default to false.", + "type": "boolean" } }, "type": "object" diff --git a/gkehub/v2beta/gkehub-gen.go b/gkehub/v2beta/gkehub-gen.go index aceea46b66..7cd3af9779 100644 --- a/gkehub/v2beta/gkehub-gen.go +++ b/gkehub/v2beta/gkehub-gen.go @@ -556,6 +556,9 @@ type ConfigManagementConfigSync struct { // SourceFormat: Specifies whether the Config Sync Repo is in "hierarchical" or // "unstructured" mode. SourceFormat string `json:"sourceFormat,omitempty"` + // StopSyncing: Set to true to stop syncing configs for a single cluster. + // Default to false. + StopSyncing bool `json:"stopSyncing,omitempty"` // ForceSendFields is a list of field names (e.g. "AllowVerticalScale") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See diff --git a/networkmanagement/v1beta1/networkmanagement-api.json b/networkmanagement/v1beta1/networkmanagement-api.json index dd33f9834c..3412555070 100644 --- a/networkmanagement/v1beta1/networkmanagement-api.json +++ b/networkmanagement/v1beta1/networkmanagement-api.json @@ -758,7 +758,7 @@ } } }, - "revision": "20241016", + "revision": "20241023", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -1507,8 +1507,12 @@ "readOnly": true, "type": "string" }, + "fqdn": { + "description": "DNS endpoint of [Google Kubernetes Engine cluster control plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). Requires gke_master_cluster to be set, can't be used simultaneoulsly with ip_address.", + "type": "string" + }, "gkeMasterCluster": { - "description": "A cluster URI for [Google Kubernetes Engine master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture).", + "description": "A cluster URI for [Google Kubernetes Engine cluster control plane](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture).", "type": "string" }, "instance": { diff --git a/networkmanagement/v1beta1/networkmanagement-gen.go b/networkmanagement/v1beta1/networkmanagement-gen.go index 297d2988ad..1a091bef66 100644 --- a/networkmanagement/v1beta1/networkmanagement-gen.go +++ b/networkmanagement/v1beta1/networkmanagement-gen.go @@ -1158,7 +1158,13 @@ type Endpoint struct { // "VPN_GATEWAY" - Classic Cloud VPN Gateway. // "PSC" - Forwarding Rule is a Private Service Connect endpoint. ForwardingRuleTarget string `json:"forwardingRuleTarget,omitempty"` - // GkeMasterCluster: A cluster URI for Google Kubernetes Engine master + // Fqdn: DNS endpoint of Google Kubernetes Engine cluster control plane + // (https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). + // Requires gke_master_cluster to be set, can't be used simultaneoulsly with + // ip_address. + Fqdn string `json:"fqdn,omitempty"` + // GkeMasterCluster: A cluster URI for Google Kubernetes Engine cluster control + // plane // (https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture). GkeMasterCluster string `json:"gkeMasterCluster,omitempty"` // Instance: A Compute Engine instance URI. diff --git a/tpu/v2alpha1/tpu-api.json b/tpu/v2alpha1/tpu-api.json index 847952bc84..e5a2356055 100644 --- a/tpu/v2alpha1/tpu-api.json +++ b/tpu/v2alpha1/tpu-api.json @@ -473,6 +473,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "performMaintenance": { + "description": "Perform manual maintenance on a node.", + "flatPath": "v2alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:performMaintenance", + "httpMethod": "POST", + "id": "tpu.projects.locations.nodes.performMaintenance", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/nodes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha1/{+name}:performMaintenance", + "request": { + "$ref": "PerformMaintenanceRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "simulateMaintenanceEvent": { "description": "Simulates a maintenance event.", "flatPath": "v2alpha1/projects/{projectsId}/locations/{locationsId}/nodes/{nodesId}:simulateMaintenanceEvent", @@ -815,6 +843,34 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "performMaintenanceQueuedResource": { + "description": "Perform manual maintenance on specific nodes of a QueuedResource.", + "flatPath": "v2alpha1/projects/{projectsId}/locations/{locationsId}/queuedResources/{queuedResourcesId}:performMaintenanceQueuedResource", + "httpMethod": "POST", + "id": "tpu.projects.locations.queuedResources.performMaintenanceQueuedResource", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the QueuedResource which holds the nodes to perform maintenance on.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/queuedResources/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2alpha1/{+name}:performMaintenanceQueuedResource", + "request": { + "$ref": "PerformMaintenanceQueuedResourceRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "reset": { "description": "Resets a QueuedResource TPU instance", "flatPath": "v2alpha1/projects/{projectsId}/locations/{locationsId}/queuedResources/{queuedResourcesId}:reset", @@ -965,7 +1021,7 @@ } } }, - "revision": "20241017", + "revision": "20241025", "rootUrl": "https://tpu.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -984,7 +1040,8 @@ "V3", "V4", "V5LITE_POD", - "V5P" + "V5P", + "V6E" ], "enumDescriptions": [ "Unspecified version.", @@ -992,7 +1049,8 @@ "TPU v3.", "TPU v4.", "TPU v5lite pod.", - "TPU v5." + "TPU v5.", + "TPU v6e." ], "type": "string" } @@ -1733,6 +1791,11 @@ "type": "string" }, "type": "array" + }, + "upcomingMaintenance": { + "$ref": "UpcomingMaintenance", + "description": "Output only. Upcoming maintenance on this TPU node.", + "readOnly": true } }, "type": "object" @@ -1832,6 +1895,26 @@ }, "type": "object" }, + "PerformMaintenanceQueuedResourceRequest": { + "description": "Request for PerformMaintenanceQueuedResource.", + "id": "PerformMaintenanceQueuedResourceRequest", + "properties": { + "nodeNames": { + "description": "The names of the nodes to perform maintenance on.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "PerformMaintenanceRequest": { + "description": "Request for PerformMaintenance.", + "id": "PerformMaintenanceRequest", + "properties": {}, + "type": "object" + }, "ProvisioningData": { "description": "Further data for the provisioning state.", "id": "ProvisioningData", @@ -2277,6 +2360,57 @@ }, "type": "object" }, + "UpcomingMaintenance": { + "description": "Upcoming Maintenance notification information.", + "id": "UpcomingMaintenance", + "properties": { + "canReschedule": { + "description": "Indicates if the maintenance can be customer triggered.", + "type": "boolean" + }, + "latestWindowStartTime": { + "description": "The latest time for the planned maintenance window to start. This timestamp value is in RFC3339 text format.", + "type": "string" + }, + "maintenanceStatus": { + "description": "The status of the maintenance.", + "enum": [ + "UNKNOWN", + "PENDING", + "ONGOING" + ], + "enumDescriptions": [ + "Unknown maintenance status. Do not use this value.", + "There is pending maintenance.", + "There is ongoing maintenance on this VM." + ], + "type": "string" + }, + "type": { + "description": "Defines the type of maintenance.", + "enum": [ + "UNKNOWN_TYPE", + "SCHEDULED", + "UNSCHEDULED" + ], + "enumDescriptions": [ + "No type specified. Do not use this value.", + "Scheduled maintenance (e.g. maintenance after uptime guarantee is complete).", + "Unscheduled maintenance (e.g. emergency maintenance during uptime guarantee)." + ], + "type": "string" + }, + "windowEndTime": { + "description": "The time by which the maintenance disruption will be completed. This timestamp value is in RFC3339 text format.", + "type": "string" + }, + "windowStartTime": { + "description": "The current start time of the maintenance window. This timestamp value is in RFC3339 text format.", + "type": "string" + } + }, + "type": "object" + }, "Usage": { "id": "Usage", "properties": { diff --git a/tpu/v2alpha1/tpu-gen.go b/tpu/v2alpha1/tpu-gen.go index 8531f8c2ed..6b3e2964df 100644 --- a/tpu/v2alpha1/tpu-gen.go +++ b/tpu/v2alpha1/tpu-gen.go @@ -260,6 +260,7 @@ type AcceleratorConfig struct { // "V4" - TPU v4. // "V5LITE_POD" - TPU v5lite pod. // "V5P" - TPU v5. + // "V6E" - TPU v6e. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Topology") to // unconditionally include in API requests. By default, fields with empty or @@ -1129,6 +1130,8 @@ type Node struct { // Tags: Tags to apply to the TPU Node. Tags are used to identify valid sources // or targets for network firewalls. Tags []string `json:"tags,omitempty"` + // UpcomingMaintenance: Output only. Upcoming maintenance on this TPU node. + UpcomingMaintenance *UpcomingMaintenance `json:"upcomingMaintenance,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -1266,6 +1269,33 @@ func (s OperationMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// PerformMaintenanceQueuedResourceRequest: Request for +// PerformMaintenanceQueuedResource. +type PerformMaintenanceQueuedResourceRequest struct { + // NodeNames: The names of the nodes to perform maintenance on. + NodeNames []string `json:"nodeNames,omitempty"` + // ForceSendFields is a list of field names (e.g. "NodeNames") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "NodeNames") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s PerformMaintenanceQueuedResourceRequest) MarshalJSON() ([]byte, error) { + type NoMethod PerformMaintenanceQueuedResourceRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// PerformMaintenanceRequest: Request for PerformMaintenance. +type PerformMaintenanceRequest struct { +} + // ProvisioningData: Further data for the provisioning state. type ProvisioningData struct { } @@ -1766,6 +1796,53 @@ func (s Tpu) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// UpcomingMaintenance: Upcoming Maintenance notification information. +type UpcomingMaintenance struct { + // CanReschedule: Indicates if the maintenance can be customer triggered. + CanReschedule bool `json:"canReschedule,omitempty"` + // LatestWindowStartTime: The latest time for the planned maintenance window to + // start. This timestamp value is in RFC3339 text format. + LatestWindowStartTime string `json:"latestWindowStartTime,omitempty"` + // MaintenanceStatus: The status of the maintenance. + // + // Possible values: + // "UNKNOWN" - Unknown maintenance status. Do not use this value. + // "PENDING" - There is pending maintenance. + // "ONGOING" - There is ongoing maintenance on this VM. + MaintenanceStatus string `json:"maintenanceStatus,omitempty"` + // Type: Defines the type of maintenance. + // + // Possible values: + // "UNKNOWN_TYPE" - No type specified. Do not use this value. + // "SCHEDULED" - Scheduled maintenance (e.g. maintenance after uptime + // guarantee is complete). + // "UNSCHEDULED" - Unscheduled maintenance (e.g. emergency maintenance during + // uptime guarantee). + Type string `json:"type,omitempty"` + // WindowEndTime: The time by which the maintenance disruption will be + // completed. This timestamp value is in RFC3339 text format. + WindowEndTime string `json:"windowEndTime,omitempty"` + // WindowStartTime: The current start time of the maintenance window. This + // timestamp value is in RFC3339 text format. + WindowStartTime string `json:"windowStartTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "CanReschedule") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CanReschedule") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s UpcomingMaintenance) MarshalJSON() ([]byte, error) { + type NoMethod UpcomingMaintenance + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + type Usage struct { // Total: The real-time value of usage within the reservation, with the unit // specified in field capacity_units. @@ -3089,6 +3166,107 @@ func (c *ProjectsLocationsNodesPatchCall) Do(opts ...googleapi.CallOption) (*Ope return ret, nil } +type ProjectsLocationsNodesPerformMaintenanceCall struct { + s *Service + name string + performmaintenancerequest *PerformMaintenanceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// PerformMaintenance: Perform manual maintenance on a node. +// +// - name: The resource name. +func (r *ProjectsLocationsNodesService) PerformMaintenance(name string, performmaintenancerequest *PerformMaintenanceRequest) *ProjectsLocationsNodesPerformMaintenanceCall { + c := &ProjectsLocationsNodesPerformMaintenanceCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.performmaintenancerequest = performmaintenancerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsNodesPerformMaintenanceCall) Fields(s ...googleapi.Field) *ProjectsLocationsNodesPerformMaintenanceCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsNodesPerformMaintenanceCall) Context(ctx context.Context) *ProjectsLocationsNodesPerformMaintenanceCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsNodesPerformMaintenanceCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsNodesPerformMaintenanceCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.performmaintenancerequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2alpha1/{+name}:performMaintenance") + 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 "tpu.projects.locations.nodes.performMaintenance" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsNodesPerformMaintenanceCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, 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 := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsNodesSimulateMaintenanceEventCall struct { s *Service name string @@ -4328,6 +4506,109 @@ func (c *ProjectsLocationsQueuedResourcesListCall) Pages(ctx context.Context, f } } +type ProjectsLocationsQueuedResourcesPerformMaintenanceQueuedResourceCall struct { + s *Service + name string + performmaintenancequeuedresourcerequest *PerformMaintenanceQueuedResourceRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// PerformMaintenanceQueuedResource: Perform manual maintenance on specific +// nodes of a QueuedResource. +// +// - name: The name of the QueuedResource which holds the nodes to perform +// maintenance on. +func (r *ProjectsLocationsQueuedResourcesService) PerformMaintenanceQueuedResource(name string, performmaintenancequeuedresourcerequest *PerformMaintenanceQueuedResourceRequest) *ProjectsLocationsQueuedResourcesPerformMaintenanceQueuedResourceCall { + c := &ProjectsLocationsQueuedResourcesPerformMaintenanceQueuedResourceCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.performmaintenancequeuedresourcerequest = performmaintenancequeuedresourcerequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsQueuedResourcesPerformMaintenanceQueuedResourceCall) Fields(s ...googleapi.Field) *ProjectsLocationsQueuedResourcesPerformMaintenanceQueuedResourceCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsQueuedResourcesPerformMaintenanceQueuedResourceCall) Context(ctx context.Context) *ProjectsLocationsQueuedResourcesPerformMaintenanceQueuedResourceCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsQueuedResourcesPerformMaintenanceQueuedResourceCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsQueuedResourcesPerformMaintenanceQueuedResourceCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.performmaintenancequeuedresourcerequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2alpha1/{+name}:performMaintenanceQueuedResource") + 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 "tpu.projects.locations.queuedResources.performMaintenanceQueuedResource" call. +// Any non-2xx status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was returned. +func (c *ProjectsLocationsQueuedResourcesPerformMaintenanceQueuedResourceCall) Do(opts ...googleapi.CallOption) (*Operation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, 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 := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsLocationsQueuedResourcesResetCall struct { s *Service name string