From 90038ee5c30ccbb808ee5f645df900b08c99b162 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 10 Jul 2023 00:22:13 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2062) --- appengine/v1/appengine-api.json | 253 +- appengine/v1/appengine-gen.go | 965 +--- appengine/v1alpha/appengine-api.json | 14 +- appengine/v1beta/appengine-api.json | 245 +- appengine/v1beta/appengine-gen.go | 941 +--- compute/v1/compute-api.json | 4892 +++++++++++++++++- compute/v1/compute-gen.go | 172 +- datamigration/v1/datamigration-api.json | 1358 ++++- datamigration/v1/datamigration-gen.go | 2728 +++++++++- datamigration/v1beta1/datamigration-api.json | 8 +- datamigration/v1beta1/datamigration-gen.go | 2 + dns/v1beta2/dns-api.json | 8 +- 12 files changed, 8750 insertions(+), 2836 deletions(-) diff --git a/appengine/v1/appengine-api.json b/appengine/v1/appengine-api.json index ef8e429e29e..3288b771754 100644 --- a/appengine/v1/appengine-api.json +++ b/appengine/v1/appengine-api.json @@ -118,13 +118,7 @@ "httpMethod": "POST", "id": "appengine.apps.create", "parameterOrder": [], - "parameters": { - "parent": { - "description": "The project and location in which the application should be created, specified in the format projects/*/locations/*", - "location": "query", - "type": "string" - } - }, + "parameters": {}, "path": "v1/apps", "request": { "$ref": "Application" @@ -1599,240 +1593,9 @@ } } } - }, - "projects": { - "resources": { - "locations": { - "resources": { - "applications": { - "methods": { - "create": { - "description": "Creates an App Engine application for a Google Cloud Platform project. Required fields: id - The ID of the target Cloud Platform project. location - The region (https://cloud.google.com/appengine/docs/locations) where you want the App Engine application located.For more information about App Engine applications, see Managing Projects, Applications, and Billing (https://cloud.google.com/appengine/docs/standard/python/console/).", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/applications", - "httpMethod": "POST", - "id": "appengine.projects.locations.applications.create", - "parameterOrder": [ - "projectsId", - "locationsId" - ], - "parameters": { - "locationsId": { - "description": "Part of `parent`. See documentation of `projectsId`.", - "location": "path", - "required": true, - "type": "string" - }, - "projectsId": { - "description": "Part of `parent`. The project and location in which the application should be created, specified in the format projects/*/locations/*", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "v1/projects/{projectsId}/locations/{locationsId}/applications", - "request": { - "$ref": "Application" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets information about an application.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}", - "httpMethod": "GET", - "id": "appengine.projects.locations.applications.get", - "parameterOrder": [ - "projectsId", - "locationsId", - "applicationsId" - ], - "parameters": { - "applicationsId": { - "description": "Part of `name`. See documentation of `projectsId`.", - "location": "path", - "required": true, - "type": "string" - }, - "locationsId": { - "description": "Part of `name`. See documentation of `projectsId`.", - "location": "path", - "required": true, - "type": "string" - }, - "projectsId": { - "description": "Part of `name`. Name of the Application resource to get. Example: apps/myapp.", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}", - "response": { - "$ref": "Application" - }, - "scopes": [ - "https://www.googleapis.com/auth/appengine.admin", - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" - ] - }, - "repair": { - "description": "Recreates the required App Engine features for the specified App Engine application, for example a Cloud Storage bucket or App Engine service account. Use this method if you receive an error message about a missing feature, for example, Error retrieving the App Engine service account. If you have deleted your App Engine service account, this will not be able to recreate it. Instead, you should attempt to use the IAM undelete API if possible at https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete?apix_params=%7B\"name\"%3A\"projects%2F-%2FserviceAccounts%2Funique_id\"%2C\"resource\"%3A%7B%7D%7D . If the deletion was recent, the numeric ID can be found in the Cloud Console Activity Log.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:repair", - "httpMethod": "POST", - "id": "appengine.projects.locations.applications.repair", - "parameterOrder": [ - "projectsId", - "locationsId", - "applicationsId" - ], - "parameters": { - "applicationsId": { - "description": "Part of `name`. See documentation of `projectsId`.", - "location": "path", - "required": true, - "type": "string" - }, - "locationsId": { - "description": "Part of `name`. See documentation of `projectsId`.", - "location": "path", - "required": true, - "type": "string" - }, - "projectsId": { - "description": "Part of `name`. Name of the application to repair. Example: apps/myapp", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:repair", - "request": { - "$ref": "RepairApplicationRequest" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - }, - "resources": { - "services": { - "methods": { - "get": { - "description": "Gets the current configuration of the specified service.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services/{servicesId}", - "httpMethod": "GET", - "id": "appengine.projects.locations.applications.services.get", - "parameterOrder": [ - "projectsId", - "locationsId", - "applicationsId", - "servicesId" - ], - "parameters": { - "applicationsId": { - "description": "Part of `name`. See documentation of `projectsId`.", - "location": "path", - "required": true, - "type": "string" - }, - "locationsId": { - "description": "Part of `name`. See documentation of `projectsId`.", - "location": "path", - "required": true, - "type": "string" - }, - "projectsId": { - "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/services/default.", - "location": "path", - "required": true, - "type": "string" - }, - "servicesId": { - "description": "Part of `name`. See documentation of `projectsId`.", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services/{servicesId}", - "response": { - "$ref": "Service" - }, - "scopes": [ - "https://www.googleapis.com/auth/appengine.admin", - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" - ] - }, - "list": { - "description": "Lists all the services in the application.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services", - "httpMethod": "GET", - "id": "appengine.projects.locations.applications.services.list", - "parameterOrder": [ - "projectsId", - "locationsId", - "applicationsId" - ], - "parameters": { - "applicationsId": { - "description": "Part of `parent`. See documentation of `projectsId`.", - "location": "path", - "required": true, - "type": "string" - }, - "locationsId": { - "description": "Part of `parent`. See documentation of `projectsId`.", - "location": "path", - "required": true, - "type": "string" - }, - "pageSize": { - "description": "Maximum results to return per page.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Continuation token for fetching the next page of results.", - "location": "query", - "type": "string" - }, - "projectsId": { - "description": "Part of `parent`. Name of the parent Application resource. Example: apps/myapp.", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services", - "response": { - "$ref": "ListServicesResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/appengine.admin", - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" - ] - } - } - } - } - } - } - } - } } }, - "revision": "20230601", + "revision": "20230706", "rootUrl": "https://appengine.googleapis.com/", "schemas": { "ApiConfigHandler": { @@ -3354,10 +3117,12 @@ "id": "ProjectState", "properties": { "currentReasons": { - "$ref": "Reasons" + "$ref": "Reasons", + "deprecated": true }, "previousReasons": { "$ref": "Reasons", + "deprecated": true, "description": "The previous and current reasons for a project state will be sent for a project event. CLHs that need to know the signal that caused the project event to trigger (edges) as opposed to just knowing the state can act upon differences in the previous and current reasons.Reasons will be provided for every system: service management, data governance, abuse, and billing.If this is a CCFE-triggered event used for reconciliation then the current reasons will be set to their *_CONTROL_PLANE_SYNC state. The previous reasons will contain the last known set of non-unknown non-control_plane_sync reasons for the state.Reasons fields are deprecated. New tenants should only use the state field. If you must know the reason(s) behind a specific state, please consult with CCFE team first (cloud-ccfe-discuss@google.com)." }, "state": { @@ -3535,6 +3300,14 @@ "ABORT_DEACTIVATION", "COMMIT_DEACTIVATION" ], + "enumDeprecated": [ + false, + false, + true, + true, + true, + true + ], "enumDescriptions": [ "An unknown reason indicates that we have not received a signal from service management about this project. Since projects are created by request of service management, this reason should never be set.", "Due to various reasons CCFE might proactively restate a project state to a CLH to ensure that the CLH and CCFE are both aware of the project state. This reason can be tied to any of the states.", diff --git a/appengine/v1/appengine-gen.go b/appengine/v1/appengine-gen.go index e668ec3e913..a340f7735c9 100644 --- a/appengine/v1/appengine-gen.go +++ b/appengine/v1/appengine-gen.go @@ -133,7 +133,6 @@ func New(client *http.Client) (*APIService, error) { } s := &APIService{client: client, BasePath: basePath} s.Apps = NewAppsService(s) - s.Projects = NewProjectsService(s) return s, nil } @@ -143,8 +142,6 @@ type APIService struct { UserAgent string // optional additional User-Agent fragment Apps *AppsService - - Projects *ProjectsService } func (s *APIService) userAgent() string { @@ -283,51 +280,6 @@ type AppsServicesVersionsInstancesService struct { s *APIService } -func NewProjectsService(s *APIService) *ProjectsService { - rs := &ProjectsService{s: s} - rs.Locations = NewProjectsLocationsService(s) - return rs -} - -type ProjectsService struct { - s *APIService - - Locations *ProjectsLocationsService -} - -func NewProjectsLocationsService(s *APIService) *ProjectsLocationsService { - rs := &ProjectsLocationsService{s: s} - rs.Applications = NewProjectsLocationsApplicationsService(s) - return rs -} - -type ProjectsLocationsService struct { - s *APIService - - Applications *ProjectsLocationsApplicationsService -} - -func NewProjectsLocationsApplicationsService(s *APIService) *ProjectsLocationsApplicationsService { - rs := &ProjectsLocationsApplicationsService{s: s} - rs.Services = NewProjectsLocationsApplicationsServicesService(s) - return rs -} - -type ProjectsLocationsApplicationsService struct { - s *APIService - - Services *ProjectsLocationsApplicationsServicesService -} - -func NewProjectsLocationsApplicationsServicesService(s *APIService) *ProjectsLocationsApplicationsServicesService { - rs := &ProjectsLocationsApplicationsServicesService{s: s} - return rs -} - -type ProjectsLocationsApplicationsServicesService struct { - s *APIService -} - // ApiConfigHandler: Google Cloud Endpoints // (https://cloud.google.com/endpoints) configuration for API handlers. type ApiConfigHandler struct { @@ -4245,14 +4197,6 @@ func (r *AppsService) Create(application *Application) *AppsCreateCall { return c } -// Parent sets the optional parameter "parent": The project and location -// in which the application should be created, specified in the format -// projects/*/locations/* -func (c *AppsCreateCall) Parent(parent string) *AppsCreateCall { - c.urlParams_.Set("parent", parent) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -4346,13 +4290,7 @@ func (c *AppsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { // "httpMethod": "POST", // "id": "appengine.apps.create", // "parameterOrder": [], - // "parameters": { - // "parent": { - // "description": "The project and location in which the application should be created, specified in the format projects/*/locations/*", - // "location": "query", - // "type": "string" - // } - // }, + // "parameters": {}, // "path": "v1/apps", // "request": { // "$ref": "Application" @@ -10849,904 +10787,3 @@ func (c *AppsServicesVersionsInstancesListCall) Pages(ctx context.Context, f fun c.PageToken(x.NextPageToken) } } - -// method id "appengine.projects.locations.applications.create": - -type ProjectsLocationsApplicationsCreateCall struct { - s *APIService - projectsId string - locationsId string - application *Application - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Creates an App Engine application for a Google Cloud Platform -// project. Required fields: id - The ID of the target Cloud Platform -// project. location - The region -// (https://cloud.google.com/appengine/docs/locations) where you want -// the App Engine application located.For more information about App -// Engine applications, see Managing Projects, Applications, and Billing -// (https://cloud.google.com/appengine/docs/standard/python/console/). -// -// - locationsId: Part of `parent`. See documentation of `projectsId`. -// - projectsId: Part of `parent`. The project and location in which the -// application should be created, specified in the format -// projects/*/locations/*. -func (r *ProjectsLocationsApplicationsService) Create(projectsId string, locationsId string, application *Application) *ProjectsLocationsApplicationsCreateCall { - c := &ProjectsLocationsApplicationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.projectsId = projectsId - c.locationsId = locationsId - c.application = application - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsApplicationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsCreateCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsApplicationsCreateCall) Context(ctx context.Context) *ProjectsLocationsApplicationsCreateCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsApplicationsCreateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsApplicationsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.application) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectsId}/locations/{locationsId}/applications") - 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{ - "projectsId": c.projectsId, - "locationsId": c.locationsId, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "appengine.projects.locations.applications.create" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsApplicationsCreateCall) 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 - // { - // "description": "Creates an App Engine application for a Google Cloud Platform project. Required fields: id - The ID of the target Cloud Platform project. location - The region (https://cloud.google.com/appengine/docs/locations) where you want the App Engine application located.For more information about App Engine applications, see Managing Projects, Applications, and Billing (https://cloud.google.com/appengine/docs/standard/python/console/).", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/applications", - // "httpMethod": "POST", - // "id": "appengine.projects.locations.applications.create", - // "parameterOrder": [ - // "projectsId", - // "locationsId" - // ], - // "parameters": { - // "locationsId": { - // "description": "Part of `parent`. See documentation of `projectsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectsId": { - // "description": "Part of `parent`. The project and location in which the application should be created, specified in the format projects/*/locations/*", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/projects/{projectsId}/locations/{locationsId}/applications", - // "request": { - // "$ref": "Application" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "appengine.projects.locations.applications.get": - -type ProjectsLocationsApplicationsGetCall struct { - s *APIService - projectsId string - locationsId string - applicationsId string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets information about an application. -// -// - applicationsId: Part of `name`. See documentation of `projectsId`. -// - locationsId: Part of `name`. See documentation of `projectsId`. -// - projectsId: Part of `name`. Name of the Application resource to -// get. Example: apps/myapp. -func (r *ProjectsLocationsApplicationsService) Get(projectsId string, locationsId string, applicationsId string) *ProjectsLocationsApplicationsGetCall { - c := &ProjectsLocationsApplicationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.projectsId = projectsId - c.locationsId = locationsId - c.applicationsId = applicationsId - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsApplicationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsApplicationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsApplicationsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsApplicationsGetCall) Context(ctx context.Context) *ProjectsLocationsApplicationsGetCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsApplicationsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsApplicationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "projectsId": c.projectsId, - "locationsId": c.locationsId, - "applicationsId": c.applicationsId, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "appengine.projects.locations.applications.get" call. -// Exactly one of *Application or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Application.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 *ProjectsLocationsApplicationsGetCall) Do(opts ...googleapi.CallOption) (*Application, 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 := &Application{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Gets information about an application.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}", - // "httpMethod": "GET", - // "id": "appengine.projects.locations.applications.get", - // "parameterOrder": [ - // "projectsId", - // "locationsId", - // "applicationsId" - // ], - // "parameters": { - // "applicationsId": { - // "description": "Part of `name`. See documentation of `projectsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "locationsId": { - // "description": "Part of `name`. See documentation of `projectsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectsId": { - // "description": "Part of `name`. Name of the Application resource to get. Example: apps/myapp.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}", - // "response": { - // "$ref": "Application" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appengine.admin", - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" - // ] - // } - -} - -// method id "appengine.projects.locations.applications.repair": - -type ProjectsLocationsApplicationsRepairCall struct { - s *APIService - projectsId string - locationsId string - applicationsId string - repairapplicationrequest *RepairApplicationRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Repair: Recreates the required App Engine features for the specified -// App Engine application, for example a Cloud Storage bucket or App -// Engine service account. Use this method if you receive an error -// message about a missing feature, for example, Error retrieving the -// App Engine service account. If you have deleted your App Engine -// service account, this will not be able to recreate it. Instead, you -// should attempt to use the IAM undelete API if possible at -// https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete?apix_params=%7B"name"%3A"projects%2F-%2FserviceAccounts%2Funique_id"%2C"resource"%3A%7B%7D%7D -// . If the deletion was recent, the numeric ID can be found in the -// Cloud Console Activity Log. -// -// - applicationsId: Part of `name`. See documentation of `projectsId`. -// - locationsId: Part of `name`. See documentation of `projectsId`. -// - projectsId: Part of `name`. Name of the application to repair. -// Example: apps/myapp. -func (r *ProjectsLocationsApplicationsService) Repair(projectsId string, locationsId string, applicationsId string, repairapplicationrequest *RepairApplicationRequest) *ProjectsLocationsApplicationsRepairCall { - c := &ProjectsLocationsApplicationsRepairCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.projectsId = projectsId - c.locationsId = locationsId - c.applicationsId = applicationsId - c.repairapplicationrequest = repairapplicationrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsApplicationsRepairCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsRepairCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsApplicationsRepairCall) Context(ctx context.Context) *ProjectsLocationsApplicationsRepairCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsApplicationsRepairCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsApplicationsRepairCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.repairapplicationrequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:repair") - 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{ - "projectsId": c.projectsId, - "locationsId": c.locationsId, - "applicationsId": c.applicationsId, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "appengine.projects.locations.applications.repair" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsApplicationsRepairCall) 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 - // { - // "description": "Recreates the required App Engine features for the specified App Engine application, for example a Cloud Storage bucket or App Engine service account. Use this method if you receive an error message about a missing feature, for example, Error retrieving the App Engine service account. If you have deleted your App Engine service account, this will not be able to recreate it. Instead, you should attempt to use the IAM undelete API if possible at https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete?apix_params=%7B\"name\"%3A\"projects%2F-%2FserviceAccounts%2Funique_id\"%2C\"resource\"%3A%7B%7D%7D . If the deletion was recent, the numeric ID can be found in the Cloud Console Activity Log.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:repair", - // "httpMethod": "POST", - // "id": "appengine.projects.locations.applications.repair", - // "parameterOrder": [ - // "projectsId", - // "locationsId", - // "applicationsId" - // ], - // "parameters": { - // "applicationsId": { - // "description": "Part of `name`. See documentation of `projectsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "locationsId": { - // "description": "Part of `name`. See documentation of `projectsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectsId": { - // "description": "Part of `name`. Name of the application to repair. Example: apps/myapp", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:repair", - // "request": { - // "$ref": "RepairApplicationRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "appengine.projects.locations.applications.services.get": - -type ProjectsLocationsApplicationsServicesGetCall struct { - s *APIService - projectsId string - locationsId string - applicationsId string - servicesId string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets the current configuration of the specified service. -// -// - applicationsId: Part of `name`. See documentation of `projectsId`. -// - locationsId: Part of `name`. See documentation of `projectsId`. -// - projectsId: Part of `name`. Name of the resource requested. -// Example: apps/myapp/services/default. -// - servicesId: Part of `name`. See documentation of `projectsId`. -func (r *ProjectsLocationsApplicationsServicesService) Get(projectsId string, locationsId string, applicationsId string, servicesId string) *ProjectsLocationsApplicationsServicesGetCall { - c := &ProjectsLocationsApplicationsServicesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.projectsId = projectsId - c.locationsId = locationsId - c.applicationsId = applicationsId - c.servicesId = servicesId - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsApplicationsServicesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsServicesGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsApplicationsServicesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsApplicationsServicesGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsApplicationsServicesGetCall) Context(ctx context.Context) *ProjectsLocationsApplicationsServicesGetCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsApplicationsServicesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsApplicationsServicesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services/{servicesId}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "projectsId": c.projectsId, - "locationsId": c.locationsId, - "applicationsId": c.applicationsId, - "servicesId": c.servicesId, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "appengine.projects.locations.applications.services.get" call. -// Exactly one of *Service or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Service.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 *ProjectsLocationsApplicationsServicesGetCall) Do(opts ...googleapi.CallOption) (*Service, 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 := &Service{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Gets the current configuration of the specified service.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services/{servicesId}", - // "httpMethod": "GET", - // "id": "appengine.projects.locations.applications.services.get", - // "parameterOrder": [ - // "projectsId", - // "locationsId", - // "applicationsId", - // "servicesId" - // ], - // "parameters": { - // "applicationsId": { - // "description": "Part of `name`. See documentation of `projectsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "locationsId": { - // "description": "Part of `name`. See documentation of `projectsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectsId": { - // "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/services/default.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "servicesId": { - // "description": "Part of `name`. See documentation of `projectsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services/{servicesId}", - // "response": { - // "$ref": "Service" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appengine.admin", - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" - // ] - // } - -} - -// method id "appengine.projects.locations.applications.services.list": - -type ProjectsLocationsApplicationsServicesListCall struct { - s *APIService - projectsId string - locationsId string - applicationsId string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists all the services in the application. -// -// - applicationsId: Part of `parent`. See documentation of -// `projectsId`. -// - locationsId: Part of `parent`. See documentation of `projectsId`. -// - projectsId: Part of `parent`. Name of the parent Application -// resource. Example: apps/myapp. -func (r *ProjectsLocationsApplicationsServicesService) List(projectsId string, locationsId string, applicationsId string) *ProjectsLocationsApplicationsServicesListCall { - c := &ProjectsLocationsApplicationsServicesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.projectsId = projectsId - c.locationsId = locationsId - c.applicationsId = applicationsId - return c -} - -// PageSize sets the optional parameter "pageSize": Maximum results to -// return per page. -func (c *ProjectsLocationsApplicationsServicesListCall) PageSize(pageSize int64) *ProjectsLocationsApplicationsServicesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": Continuation token -// for fetching the next page of results. -func (c *ProjectsLocationsApplicationsServicesListCall) PageToken(pageToken string) *ProjectsLocationsApplicationsServicesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsApplicationsServicesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsServicesListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsApplicationsServicesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsApplicationsServicesListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsApplicationsServicesListCall) Context(ctx context.Context) *ProjectsLocationsApplicationsServicesListCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsApplicationsServicesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsApplicationsServicesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "projectsId": c.projectsId, - "locationsId": c.locationsId, - "applicationsId": c.applicationsId, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "appengine.projects.locations.applications.services.list" call. -// Exactly one of *ListServicesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListServicesResponse.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 *ProjectsLocationsApplicationsServicesListCall) Do(opts ...googleapi.CallOption) (*ListServicesResponse, 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 := &ListServicesResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Lists all the services in the application.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services", - // "httpMethod": "GET", - // "id": "appengine.projects.locations.applications.services.list", - // "parameterOrder": [ - // "projectsId", - // "locationsId", - // "applicationsId" - // ], - // "parameters": { - // "applicationsId": { - // "description": "Part of `parent`. See documentation of `projectsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "locationsId": { - // "description": "Part of `parent`. See documentation of `projectsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "Maximum results to return per page.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Continuation token for fetching the next page of results.", - // "location": "query", - // "type": "string" - // }, - // "projectsId": { - // "description": "Part of `parent`. Name of the parent Application resource. Example: apps/myapp.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services", - // "response": { - // "$ref": "ListServicesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appengine.admin", - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" - // ] - // } - -} - -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsApplicationsServicesListCall) Pages(ctx context.Context, f func(*ListServicesResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} diff --git a/appengine/v1alpha/appengine-api.json b/appengine/v1alpha/appengine-api.json index c0cc7bcfc1a..417f424876c 100644 --- a/appengine/v1alpha/appengine-api.json +++ b/appengine/v1alpha/appengine-api.json @@ -887,7 +887,7 @@ } } }, - "revision": "20230501", + "revision": "20230706", "rootUrl": "https://appengine.googleapis.com/", "schemas": { "AuthorizedCertificate": { @@ -1437,10 +1437,12 @@ "id": "ProjectState", "properties": { "currentReasons": { - "$ref": "Reasons" + "$ref": "Reasons", + "deprecated": true }, "previousReasons": { "$ref": "Reasons", + "deprecated": true, "description": "The previous and current reasons for a project state will be sent for a project event. CLHs that need to know the signal that caused the project event to trigger (edges) as opposed to just knowing the state can act upon differences in the previous and current reasons.Reasons will be provided for every system: service management, data governance, abuse, and billing.If this is a CCFE-triggered event used for reconciliation then the current reasons will be set to their *_CONTROL_PLANE_SYNC state. The previous reasons will contain the last known set of non-unknown non-control_plane_sync reasons for the state.Reasons fields are deprecated. New tenants should only use the state field. If you must know the reason(s) behind a specific state, please consult with CCFE team first (cloud-ccfe-discuss@google.com)." }, "state": { @@ -1578,6 +1580,14 @@ "ABORT_DEACTIVATION", "COMMIT_DEACTIVATION" ], + "enumDeprecated": [ + false, + false, + true, + true, + true, + true + ], "enumDescriptions": [ "An unknown reason indicates that we have not received a signal from service management about this project. Since projects are created by request of service management, this reason should never be set.", "Due to various reasons CCFE might proactively restate a project state to a CLH to ensure that the CLH and CCFE are both aware of the project state. This reason can be tied to any of the states.", diff --git a/appengine/v1beta/appengine-api.json b/appengine/v1beta/appengine-api.json index 705af16894c..72d8799e45f 100644 --- a/appengine/v1beta/appengine-api.json +++ b/appengine/v1beta/appengine-api.json @@ -118,13 +118,7 @@ "httpMethod": "POST", "id": "appengine.apps.create", "parameterOrder": [], - "parameters": { - "parent": { - "description": "The project and location in which the application should be created, specified in the format projects/*/locations/*", - "location": "query", - "type": "string" - } - }, + "parameters": {}, "path": "v1beta/apps", "request": { "$ref": "Application" @@ -1681,229 +1675,6 @@ } }, "resources": { - "applications": { - "methods": { - "create": { - "description": "Creates an App Engine application for a Google Cloud Platform project. Required fields: id - The ID of the target Cloud Platform project. location - The region (https://cloud.google.com/appengine/docs/locations) where you want the App Engine application located.For more information about App Engine applications, see Managing Projects, Applications, and Billing (https://cloud.google.com/appengine/docs/standard/python/console/).", - "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/applications", - "httpMethod": "POST", - "id": "appengine.projects.locations.applications.create", - "parameterOrder": [ - "projectsId", - "locationsId" - ], - "parameters": { - "locationsId": { - "description": "Part of `parent`. See documentation of `projectsId`.", - "location": "path", - "required": true, - "type": "string" - }, - "projectsId": { - "description": "Part of `parent`. The project and location in which the application should be created, specified in the format projects/*/locations/*", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "v1beta/projects/{projectsId}/locations/{locationsId}/applications", - "request": { - "$ref": "Application" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Gets information about an application.", - "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}", - "httpMethod": "GET", - "id": "appengine.projects.locations.applications.get", - "parameterOrder": [ - "projectsId", - "locationsId", - "applicationsId" - ], - "parameters": { - "applicationsId": { - "description": "Part of `name`. See documentation of `projectsId`.", - "location": "path", - "required": true, - "type": "string" - }, - "locationsId": { - "description": "Part of `name`. See documentation of `projectsId`.", - "location": "path", - "required": true, - "type": "string" - }, - "projectsId": { - "description": "Part of `name`. Name of the Application resource to get. Example: apps/myapp.", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}", - "response": { - "$ref": "Application" - }, - "scopes": [ - "https://www.googleapis.com/auth/appengine.admin", - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" - ] - }, - "repair": { - "description": "Recreates the required App Engine features for the specified App Engine application, for example a Cloud Storage bucket or App Engine service account. Use this method if you receive an error message about a missing feature, for example, Error retrieving the App Engine service account. If you have deleted your App Engine service account, this will not be able to recreate it. Instead, you should attempt to use the IAM undelete API if possible at https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete?apix_params=%7B\"name\"%3A\"projects%2F-%2FserviceAccounts%2Funique_id\"%2C\"resource\"%3A%7B%7D%7D . If the deletion was recent, the numeric ID can be found in the Cloud Console Activity Log.", - "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:repair", - "httpMethod": "POST", - "id": "appengine.projects.locations.applications.repair", - "parameterOrder": [ - "projectsId", - "locationsId", - "applicationsId" - ], - "parameters": { - "applicationsId": { - "description": "Part of `name`. See documentation of `projectsId`.", - "location": "path", - "required": true, - "type": "string" - }, - "locationsId": { - "description": "Part of `name`. See documentation of `projectsId`.", - "location": "path", - "required": true, - "type": "string" - }, - "projectsId": { - "description": "Part of `name`. Name of the application to repair. Example: apps/myapp", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:repair", - "request": { - "$ref": "RepairApplicationRequest" - }, - "response": { - "$ref": "Operation" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - }, - "resources": { - "services": { - "methods": { - "get": { - "description": "Gets the current configuration of the specified service.", - "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services/{servicesId}", - "httpMethod": "GET", - "id": "appengine.projects.locations.applications.services.get", - "parameterOrder": [ - "projectsId", - "locationsId", - "applicationsId", - "servicesId" - ], - "parameters": { - "applicationsId": { - "description": "Part of `name`. See documentation of `projectsId`.", - "location": "path", - "required": true, - "type": "string" - }, - "locationsId": { - "description": "Part of `name`. See documentation of `projectsId`.", - "location": "path", - "required": true, - "type": "string" - }, - "projectsId": { - "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/services/default.", - "location": "path", - "required": true, - "type": "string" - }, - "servicesId": { - "description": "Part of `name`. See documentation of `projectsId`.", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services/{servicesId}", - "response": { - "$ref": "Service" - }, - "scopes": [ - "https://www.googleapis.com/auth/appengine.admin", - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" - ] - }, - "list": { - "description": "Lists all the services in the application.", - "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services", - "httpMethod": "GET", - "id": "appengine.projects.locations.applications.services.list", - "parameterOrder": [ - "projectsId", - "locationsId", - "applicationsId" - ], - "parameters": { - "applicationsId": { - "description": "Part of `parent`. See documentation of `projectsId`.", - "location": "path", - "required": true, - "type": "string" - }, - "locationsId": { - "description": "Part of `parent`. See documentation of `projectsId`.", - "location": "path", - "required": true, - "type": "string" - }, - "pageSize": { - "description": "Maximum results to return per page.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Continuation token for fetching the next page of results.", - "location": "query", - "type": "string" - }, - "projectsId": { - "description": "Part of `parent`. Name of the parent Application resource. Example: apps/myapp.", - "location": "path", - "required": true, - "type": "string" - } - }, - "path": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services", - "response": { - "$ref": "ListServicesResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/appengine.admin", - "https://www.googleapis.com/auth/cloud-platform", - "https://www.googleapis.com/auth/cloud-platform.read-only" - ] - } - } - } - } - }, "operations": { "methods": { "get": { @@ -2002,7 +1773,7 @@ } } }, - "revision": "20230601", + "revision": "20230706", "rootUrl": "https://appengine.googleapis.com/", "schemas": { "ApiConfigHandler": { @@ -3575,10 +3346,12 @@ "id": "ProjectState", "properties": { "currentReasons": { - "$ref": "Reasons" + "$ref": "Reasons", + "deprecated": true }, "previousReasons": { "$ref": "Reasons", + "deprecated": true, "description": "The previous and current reasons for a project state will be sent for a project event. CLHs that need to know the signal that caused the project event to trigger (edges) as opposed to just knowing the state can act upon differences in the previous and current reasons.Reasons will be provided for every system: service management, data governance, abuse, and billing.If this is a CCFE-triggered event used for reconciliation then the current reasons will be set to their *_CONTROL_PLANE_SYNC state. The previous reasons will contain the last known set of non-unknown non-control_plane_sync reasons for the state.Reasons fields are deprecated. New tenants should only use the state field. If you must know the reason(s) behind a specific state, please consult with CCFE team first (cloud-ccfe-discuss@google.com)." }, "state": { @@ -3756,6 +3529,14 @@ "ABORT_DEACTIVATION", "COMMIT_DEACTIVATION" ], + "enumDeprecated": [ + false, + false, + true, + true, + true, + true + ], "enumDescriptions": [ "An unknown reason indicates that we have not received a signal from service management about this project. Since projects are created by request of service management, this reason should never be set.", "Due to various reasons CCFE might proactively restate a project state to a CLH to ensure that the CLH and CCFE are both aware of the project state. This reason can be tied to any of the states.", diff --git a/appengine/v1beta/appengine-gen.go b/appengine/v1beta/appengine-gen.go index 098211dc983..d116356da05 100644 --- a/appengine/v1beta/appengine-gen.go +++ b/appengine/v1beta/appengine-gen.go @@ -297,7 +297,6 @@ type ProjectsService struct { func NewProjectsLocationsService(s *APIService) *ProjectsLocationsService { rs := &ProjectsLocationsService{s: s} - rs.Applications = NewProjectsLocationsApplicationsService(s) rs.Operations = NewProjectsLocationsOperationsService(s) return rs } @@ -305,32 +304,9 @@ func NewProjectsLocationsService(s *APIService) *ProjectsLocationsService { type ProjectsLocationsService struct { s *APIService - Applications *ProjectsLocationsApplicationsService - Operations *ProjectsLocationsOperationsService } -func NewProjectsLocationsApplicationsService(s *APIService) *ProjectsLocationsApplicationsService { - rs := &ProjectsLocationsApplicationsService{s: s} - rs.Services = NewProjectsLocationsApplicationsServicesService(s) - return rs -} - -type ProjectsLocationsApplicationsService struct { - s *APIService - - Services *ProjectsLocationsApplicationsServicesService -} - -func NewProjectsLocationsApplicationsServicesService(s *APIService) *ProjectsLocationsApplicationsServicesService { - rs := &ProjectsLocationsApplicationsServicesService{s: s} - return rs -} - -type ProjectsLocationsApplicationsServicesService struct { - s *APIService -} - func NewProjectsLocationsOperationsService(s *APIService) *ProjectsLocationsOperationsService { rs := &ProjectsLocationsOperationsService{s: s} return rs @@ -4352,14 +4328,6 @@ func (r *AppsService) Create(application *Application) *AppsCreateCall { return c } -// Parent sets the optional parameter "parent": The project and location -// in which the application should be created, specified in the format -// projects/*/locations/* -func (c *AppsCreateCall) Parent(parent string) *AppsCreateCall { - c.urlParams_.Set("parent", parent) - return c -} - // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -4453,13 +4421,7 @@ func (c *AppsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { // "httpMethod": "POST", // "id": "appengine.apps.create", // "parameterOrder": [], - // "parameters": { - // "parent": { - // "description": "The project and location in which the application should be created, specified in the format projects/*/locations/*", - // "location": "query", - // "type": "string" - // } - // }, + // "parameters": {}, // "path": "v1beta/apps", // "request": { // "$ref": "Application" @@ -11325,907 +11287,6 @@ func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocat } } -// method id "appengine.projects.locations.applications.create": - -type ProjectsLocationsApplicationsCreateCall struct { - s *APIService - projectsId string - locationsId string - application *Application - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Create: Creates an App Engine application for a Google Cloud Platform -// project. Required fields: id - The ID of the target Cloud Platform -// project. location - The region -// (https://cloud.google.com/appengine/docs/locations) where you want -// the App Engine application located.For more information about App -// Engine applications, see Managing Projects, Applications, and Billing -// (https://cloud.google.com/appengine/docs/standard/python/console/). -// -// - locationsId: Part of `parent`. See documentation of `projectsId`. -// - projectsId: Part of `parent`. The project and location in which the -// application should be created, specified in the format -// projects/*/locations/*. -func (r *ProjectsLocationsApplicationsService) Create(projectsId string, locationsId string, application *Application) *ProjectsLocationsApplicationsCreateCall { - c := &ProjectsLocationsApplicationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.projectsId = projectsId - c.locationsId = locationsId - c.application = application - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsApplicationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsCreateCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsApplicationsCreateCall) Context(ctx context.Context) *ProjectsLocationsApplicationsCreateCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsApplicationsCreateCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsApplicationsCreateCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.application) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/projects/{projectsId}/locations/{locationsId}/applications") - 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{ - "projectsId": c.projectsId, - "locationsId": c.locationsId, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "appengine.projects.locations.applications.create" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsApplicationsCreateCall) 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 - // { - // "description": "Creates an App Engine application for a Google Cloud Platform project. Required fields: id - The ID of the target Cloud Platform project. location - The region (https://cloud.google.com/appengine/docs/locations) where you want the App Engine application located.For more information about App Engine applications, see Managing Projects, Applications, and Billing (https://cloud.google.com/appengine/docs/standard/python/console/).", - // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/applications", - // "httpMethod": "POST", - // "id": "appengine.projects.locations.applications.create", - // "parameterOrder": [ - // "projectsId", - // "locationsId" - // ], - // "parameters": { - // "locationsId": { - // "description": "Part of `parent`. See documentation of `projectsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectsId": { - // "description": "Part of `parent`. The project and location in which the application should be created, specified in the format projects/*/locations/*", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/projects/{projectsId}/locations/{locationsId}/applications", - // "request": { - // "$ref": "Application" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "appengine.projects.locations.applications.get": - -type ProjectsLocationsApplicationsGetCall struct { - s *APIService - projectsId string - locationsId string - applicationsId string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets information about an application. -// -// - applicationsId: Part of `name`. See documentation of `projectsId`. -// - locationsId: Part of `name`. See documentation of `projectsId`. -// - projectsId: Part of `name`. Name of the Application resource to -// get. Example: apps/myapp. -func (r *ProjectsLocationsApplicationsService) Get(projectsId string, locationsId string, applicationsId string) *ProjectsLocationsApplicationsGetCall { - c := &ProjectsLocationsApplicationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.projectsId = projectsId - c.locationsId = locationsId - c.applicationsId = applicationsId - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsApplicationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsApplicationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsApplicationsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsApplicationsGetCall) Context(ctx context.Context) *ProjectsLocationsApplicationsGetCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsApplicationsGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsApplicationsGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "projectsId": c.projectsId, - "locationsId": c.locationsId, - "applicationsId": c.applicationsId, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "appengine.projects.locations.applications.get" call. -// Exactly one of *Application or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Application.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 *ProjectsLocationsApplicationsGetCall) Do(opts ...googleapi.CallOption) (*Application, 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 := &Application{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Gets information about an application.", - // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}", - // "httpMethod": "GET", - // "id": "appengine.projects.locations.applications.get", - // "parameterOrder": [ - // "projectsId", - // "locationsId", - // "applicationsId" - // ], - // "parameters": { - // "applicationsId": { - // "description": "Part of `name`. See documentation of `projectsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "locationsId": { - // "description": "Part of `name`. See documentation of `projectsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectsId": { - // "description": "Part of `name`. Name of the Application resource to get. Example: apps/myapp.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}", - // "response": { - // "$ref": "Application" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appengine.admin", - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" - // ] - // } - -} - -// method id "appengine.projects.locations.applications.repair": - -type ProjectsLocationsApplicationsRepairCall struct { - s *APIService - projectsId string - locationsId string - applicationsId string - repairapplicationrequest *RepairApplicationRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header -} - -// Repair: Recreates the required App Engine features for the specified -// App Engine application, for example a Cloud Storage bucket or App -// Engine service account. Use this method if you receive an error -// message about a missing feature, for example, Error retrieving the -// App Engine service account. If you have deleted your App Engine -// service account, this will not be able to recreate it. Instead, you -// should attempt to use the IAM undelete API if possible at -// https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete?apix_params=%7B"name"%3A"projects%2F-%2FserviceAccounts%2Funique_id"%2C"resource"%3A%7B%7D%7D -// . If the deletion was recent, the numeric ID can be found in the -// Cloud Console Activity Log. -// -// - applicationsId: Part of `name`. See documentation of `projectsId`. -// - locationsId: Part of `name`. See documentation of `projectsId`. -// - projectsId: Part of `name`. Name of the application to repair. -// Example: apps/myapp. -func (r *ProjectsLocationsApplicationsService) Repair(projectsId string, locationsId string, applicationsId string, repairapplicationrequest *RepairApplicationRequest) *ProjectsLocationsApplicationsRepairCall { - c := &ProjectsLocationsApplicationsRepairCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.projectsId = projectsId - c.locationsId = locationsId - c.applicationsId = applicationsId - c.repairapplicationrequest = repairapplicationrequest - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsApplicationsRepairCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsRepairCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsApplicationsRepairCall) Context(ctx context.Context) *ProjectsLocationsApplicationsRepairCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsApplicationsRepairCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsApplicationsRepairCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.repairapplicationrequest) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:repair") - 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{ - "projectsId": c.projectsId, - "locationsId": c.locationsId, - "applicationsId": c.applicationsId, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "appengine.projects.locations.applications.repair" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsApplicationsRepairCall) 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 - // { - // "description": "Recreates the required App Engine features for the specified App Engine application, for example a Cloud Storage bucket or App Engine service account. Use this method if you receive an error message about a missing feature, for example, Error retrieving the App Engine service account. If you have deleted your App Engine service account, this will not be able to recreate it. Instead, you should attempt to use the IAM undelete API if possible at https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete?apix_params=%7B\"name\"%3A\"projects%2F-%2FserviceAccounts%2Funique_id\"%2C\"resource\"%3A%7B%7D%7D . If the deletion was recent, the numeric ID can be found in the Cloud Console Activity Log.", - // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:repair", - // "httpMethod": "POST", - // "id": "appengine.projects.locations.applications.repair", - // "parameterOrder": [ - // "projectsId", - // "locationsId", - // "applicationsId" - // ], - // "parameters": { - // "applicationsId": { - // "description": "Part of `name`. See documentation of `projectsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "locationsId": { - // "description": "Part of `name`. See documentation of `projectsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectsId": { - // "description": "Part of `name`. Name of the application to repair. Example: apps/myapp", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}:repair", - // "request": { - // "$ref": "RepairApplicationRequest" - // }, - // "response": { - // "$ref": "Operation" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/cloud-platform" - // ] - // } - -} - -// method id "appengine.projects.locations.applications.services.get": - -type ProjectsLocationsApplicationsServicesGetCall struct { - s *APIService - projectsId string - locationsId string - applicationsId string - servicesId string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// Get: Gets the current configuration of the specified service. -// -// - applicationsId: Part of `name`. See documentation of `projectsId`. -// - locationsId: Part of `name`. See documentation of `projectsId`. -// - projectsId: Part of `name`. Name of the resource requested. -// Example: apps/myapp/services/default. -// - servicesId: Part of `name`. See documentation of `projectsId`. -func (r *ProjectsLocationsApplicationsServicesService) Get(projectsId string, locationsId string, applicationsId string, servicesId string) *ProjectsLocationsApplicationsServicesGetCall { - c := &ProjectsLocationsApplicationsServicesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.projectsId = projectsId - c.locationsId = locationsId - c.applicationsId = applicationsId - c.servicesId = servicesId - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsApplicationsServicesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsServicesGetCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsApplicationsServicesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsApplicationsServicesGetCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsApplicationsServicesGetCall) Context(ctx context.Context) *ProjectsLocationsApplicationsServicesGetCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsApplicationsServicesGetCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsApplicationsServicesGetCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services/{servicesId}") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "projectsId": c.projectsId, - "locationsId": c.locationsId, - "applicationsId": c.applicationsId, - "servicesId": c.servicesId, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "appengine.projects.locations.applications.services.get" call. -// Exactly one of *Service or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Service.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 *ProjectsLocationsApplicationsServicesGetCall) Do(opts ...googleapi.CallOption) (*Service, 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 := &Service{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Gets the current configuration of the specified service.", - // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services/{servicesId}", - // "httpMethod": "GET", - // "id": "appengine.projects.locations.applications.services.get", - // "parameterOrder": [ - // "projectsId", - // "locationsId", - // "applicationsId", - // "servicesId" - // ], - // "parameters": { - // "applicationsId": { - // "description": "Part of `name`. See documentation of `projectsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "locationsId": { - // "description": "Part of `name`. See documentation of `projectsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "projectsId": { - // "description": "Part of `name`. Name of the resource requested. Example: apps/myapp/services/default.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "servicesId": { - // "description": "Part of `name`. See documentation of `projectsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services/{servicesId}", - // "response": { - // "$ref": "Service" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appengine.admin", - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" - // ] - // } - -} - -// method id "appengine.projects.locations.applications.services.list": - -type ProjectsLocationsApplicationsServicesListCall struct { - s *APIService - projectsId string - locationsId string - applicationsId string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header -} - -// List: Lists all the services in the application. -// -// - applicationsId: Part of `parent`. See documentation of -// `projectsId`. -// - locationsId: Part of `parent`. See documentation of `projectsId`. -// - projectsId: Part of `parent`. Name of the parent Application -// resource. Example: apps/myapp. -func (r *ProjectsLocationsApplicationsServicesService) List(projectsId string, locationsId string, applicationsId string) *ProjectsLocationsApplicationsServicesListCall { - c := &ProjectsLocationsApplicationsServicesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.projectsId = projectsId - c.locationsId = locationsId - c.applicationsId = applicationsId - return c -} - -// PageSize sets the optional parameter "pageSize": Maximum results to -// return per page. -func (c *ProjectsLocationsApplicationsServicesListCall) PageSize(pageSize int64) *ProjectsLocationsApplicationsServicesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": Continuation token -// for fetching the next page of results. -func (c *ProjectsLocationsApplicationsServicesListCall) PageToken(pageToken string) *ProjectsLocationsApplicationsServicesListCall { - c.urlParams_.Set("pageToken", pageToken) - return c -} - -// Fields allows partial responses to be retrieved. See -// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse -// for more information. -func (c *ProjectsLocationsApplicationsServicesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsApplicationsServicesListCall { - c.urlParams_.Set("fields", googleapi.CombineFields(s)) - return c -} - -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsApplicationsServicesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsApplicationsServicesListCall { - c.ifNoneMatch_ = entityTag - return c -} - -// Context sets the context to be used in this call's Do method. Any -// pending HTTP request will be aborted if the provided context is -// canceled. -func (c *ProjectsLocationsApplicationsServicesListCall) Context(ctx context.Context) *ProjectsLocationsApplicationsServicesListCall { - c.ctx_ = ctx - return c -} - -// Header returns an http.Header that can be modified by the caller to -// add HTTP headers to the request. -func (c *ProjectsLocationsApplicationsServicesListCall) Header() http.Header { - if c.header_ == nil { - c.header_ = make(http.Header) - } - return c.header_ -} - -func (c *ProjectsLocationsApplicationsServicesListCall) doRequest(alt string) (*http.Response, error) { - reqHeaders := make(http.Header) - reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) - for k, v := range c.header_ { - reqHeaders[k] = v - } - reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } - var body io.Reader = nil - c.urlParams_.Set("alt", alt) - c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services") - urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) - if err != nil { - return nil, err - } - req.Header = reqHeaders - googleapi.Expand(req.URL, map[string]string{ - "projectsId": c.projectsId, - "locationsId": c.locationsId, - "applicationsId": c.applicationsId, - }) - return gensupport.SendRequest(c.ctx_, c.s.client, req) -} - -// Do executes the "appengine.projects.locations.applications.services.list" call. -// Exactly one of *ListServicesResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListServicesResponse.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 *ProjectsLocationsApplicationsServicesListCall) Do(opts ...googleapi.CallOption) (*ListServicesResponse, 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 := &ListServicesResponse{ - ServerResponse: googleapi.ServerResponse{ - Header: res.Header, - HTTPStatusCode: res.StatusCode, - }, - } - target := &ret - if err := gensupport.DecodeResponse(target, res); err != nil { - return nil, err - } - return ret, nil - // { - // "description": "Lists all the services in the application.", - // "flatPath": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services", - // "httpMethod": "GET", - // "id": "appengine.projects.locations.applications.services.list", - // "parameterOrder": [ - // "projectsId", - // "locationsId", - // "applicationsId" - // ], - // "parameters": { - // "applicationsId": { - // "description": "Part of `parent`. See documentation of `projectsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "locationsId": { - // "description": "Part of `parent`. See documentation of `projectsId`.", - // "location": "path", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "Maximum results to return per page.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Continuation token for fetching the next page of results.", - // "location": "query", - // "type": "string" - // }, - // "projectsId": { - // "description": "Part of `parent`. Name of the parent Application resource. Example: apps/myapp.", - // "location": "path", - // "required": true, - // "type": "string" - // } - // }, - // "path": "v1beta/projects/{projectsId}/locations/{locationsId}/applications/{applicationsId}/services", - // "response": { - // "$ref": "ListServicesResponse" - // }, - // "scopes": [ - // "https://www.googleapis.com/auth/appengine.admin", - // "https://www.googleapis.com/auth/cloud-platform", - // "https://www.googleapis.com/auth/cloud-platform.read-only" - // ] - // } - -} - -// Pages invokes f for each page of results. -// A non-nil error returned from f will halt the iteration. -// The provided context supersedes any context provided to the Context method. -func (c *ProjectsLocationsApplicationsServicesListCall) Pages(ctx context.Context, f func(*ListServicesResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - for { - x, err := c.Do() - if err != nil { - return err - } - if err := f(x); err != nil { - return err - } - if x.NextPageToken == "" { - return nil - } - c.PageToken(x.NextPageToken) - } -} - // method id "appengine.projects.locations.operations.get": type ProjectsLocationsOperationsGetCall struct { diff --git a/compute/v1/compute-api.json b/compute/v1/compute-api.json index 3c21bcacaf0..504c47fa972 100644 --- a/compute/v1/compute-api.json +++ b/compute/v1/compute-api.json @@ -17437,7 +17437,8 @@ ] }, "moveInstance": { - "description": "Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior).", + "deprecated": true, + "description": "Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior). [Deprecated] This method is deprecated. See [moving instance across zones](/compute/docs/instances/moving-instance-across-zones) instead.", "flatPath": "projects/{project}/moveInstance", "httpMethod": "POST", "id": "compute.projects.moveInstance", @@ -33731,7 +33732,7 @@ } } }, - "revision": "20230620", + "revision": "20230701", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -33867,6 +33868,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -33989,6 +34020,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -34093,6 +34154,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -34460,6 +34551,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -34582,6 +34703,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -34686,6 +34837,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -35380,6 +35561,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -35502,6 +35713,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -35664,6 +35905,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -36245,6 +36516,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -36487,9 +36788,10 @@ }, "outlierDetection": { "$ref": "OutlierDetection", - "description": "Settings controlling the eviction of unhealthy hosts from the load balancing pool for the backend service. If not set, this feature is considered disabled. This field is applicable to either: - A regional backend service with the service_protocol set to HTTP, HTTPS, HTTP2, or GRPC, and load_balancing_scheme set to INTERNAL_MANAGED. - A global backend service with the load_balancing_scheme set to INTERNAL_SELF_MANAGED. " + "description": "Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool of each individual proxy instance that processes the traffic for the given backend service. If not set, this feature is considered disabled. Results of the outlier detection algorithm (ejection of endpoints from the load balancing pool and returning them back to the pool) are executed independently by each proxy instance of the load balancer. In most cases, more than one proxy instance handles the traffic received by a backend service. Thus, it is possible that an unhealthy endpoint is detected and ejected by only some of the proxies, and while this happens, other proxies may continue to send requests to the same unhealthy endpoint until they detect and eject the unhealthy endpoint. Applicable backend endpoints can be: - VM instances in an Instance Group - Endpoints in a Zonal NEG (GCE_VM_IP, GCE_VM_IP_PORT) - Endpoints in a Hybrid Connectivity NEG (NON_GCP_PRIVATE_IP_PORT) - Serverless NEGs, that resolve to Cloud Run, App Engine, or Cloud Functions Services - Private Service Connect NEGs, that resolve to Google-managed regional API endpoints or managed services published using Private Service Connect Applicable backend service types can be: - A global backend service with the loadBalancingScheme set to INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional backend service with the serviceProtocol set to HTTP, HTTPS, or HTTP2, and loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not supported for Serverless NEGs. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true." }, "port": { + "deprecated": true, "description": "Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80. For Internal TCP/UDP Load Balancing and Network Load Balancing, omit port.", "format": "int32", "type": "integer" @@ -36651,6 +36953,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -36994,6 +37326,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -37203,6 +37565,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -37918,6 +38310,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -38040,6 +38462,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -38144,6 +38596,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -38794,6 +39276,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -38988,6 +39500,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -39241,6 +39783,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -39363,6 +39935,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -39467,6 +40069,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -39608,6 +40240,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -39879,6 +40541,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -40115,6 +40807,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -40413,6 +41135,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -40533,6 +41285,7 @@ "type": "string" }, "displayName": { + "deprecated": true, "description": "Deprecated, please use short name instead. User-provided name of the Organization firewall policy. The name should be unique in the organization in which the firewall policy is created. This field is not applicable to network firewall policies. This name must be set on creation and cannot be changed. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.", "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?", "type": "string" @@ -40600,6 +41353,7 @@ "type": "string" }, "displayName": { + "deprecated": true, "description": "[Output Only] Deprecated, please use short name instead. The display name of the firewall policy of the association.", "type": "string" }, @@ -40676,6 +41430,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -41273,6 +42057,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -41395,6 +42209,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -41527,6 +42371,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -42144,6 +43018,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -42372,6 +43276,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -42501,6 +43435,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -42605,6 +43569,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -43088,6 +44082,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -43496,6 +44520,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -43671,6 +44725,7 @@ "type": "string" }, "sha1Checksum": { + "deprecated": true, "description": "[Deprecated] This field is deprecated. An optional SHA1 checksum of the disk image before unpackaging provided by the client when the disk image is created.", "pattern": "[a-f0-9]{40}", "type": "string" @@ -43840,6 +44895,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -44256,6 +45341,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -44497,6 +45612,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -44619,6 +45764,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -44729,6 +45904,10 @@ "description": "[Output Only] The URL of the Instance Group resource.", "type": "string" }, + "instanceLifecyclePolicy": { + "$ref": "InstanceGroupManagerInstanceLifecyclePolicy", + "description": "The repair policy for this managed instance group." + }, "instanceTemplate": { "description": "The URL of the instance template that is specified for this managed instance group. The group uses this template to create all new instances in the managed instance group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE.", "type": "string" @@ -44961,6 +46140,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -45035,6 +46244,24 @@ }, "type": "object" }, + "InstanceGroupManagerInstanceLifecyclePolicy": { + "id": "InstanceGroupManagerInstanceLifecyclePolicy", + "properties": { + "forceUpdateOnRepair": { + "description": "A bit indicating whether to forcefully apply the group's latest configuration when repairing a VM. Valid options are: - NO (default): If configuration updates are available, they are not forcefully applied during repair. Instead, configuration updates are applied according to the group's update policy. - YES: If configuration updates are available, they are applied during repair. ", + "enum": [ + "NO", + "YES" + ], + "enumDescriptions": [ + "", + "" + ], + "type": "string" + } + }, + "type": "object" + }, "InstanceGroupManagerList": { "description": "[Output Only] A list of managed instance groups.", "id": "InstanceGroupManagerList", @@ -45098,6 +46325,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -45504,6 +46761,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -45635,6 +46922,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -45811,6 +47128,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -45946,6 +47293,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -46086,6 +47463,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -46208,6 +47615,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -46640,6 +48077,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -46762,6 +48229,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -46866,6 +48363,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -47007,6 +48534,7 @@ "id": "InstancesGetEffectiveFirewallsResponseEffectiveFirewallPolicy", "properties": { "displayName": { + "deprecated": true, "description": "[Output Only] Deprecated, please use short name instead. The display name of the firewall policy.", "type": "string" }, @@ -47102,6 +48630,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -47562,6 +49120,7 @@ "type": "string" }, "googleReferenceId": { + "deprecated": true, "description": "[Output Only] Google reference ID, to be used when raising support tickets with Google or otherwise to debug backend connectivity issues. [Deprecated] This field is not used.", "type": "string" }, @@ -47788,6 +49347,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -47951,6 +49540,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -48086,6 +49705,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -48165,7 +49814,7 @@ "type": "object" }, "InterconnectDiagnostics": { - "description": "Diagnostics information about interconnect, contains detailed and current technical information about Google's side of the connection.", + "description": "Diagnostics information about the Interconnect connection, which contains detailed and current technical information about Google's side of the connection.", "id": "InterconnectDiagnostics", "properties": { "arpCaches": { @@ -48390,6 +50039,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -48620,6 +50299,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -49024,6 +50733,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -49333,6 +51072,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -49761,6 +51530,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -49993,6 +51792,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -50115,6 +51944,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -50219,6 +52078,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -50587,6 +52476,7 @@ "id": "Network", "properties": { "IPv4Range": { + "deprecated": true, "description": "Deprecated in favor of subnet mode networks. The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.", "pattern": "[0-9]{1,3}(?:\\.[0-9]{1,3}){3}/[0-9]{1,2}", "type": "string" @@ -50846,6 +52736,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -51012,6 +52932,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -51116,6 +53066,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -51299,6 +53279,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -51403,6 +53413,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -51670,6 +53710,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -51844,6 +53914,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -52041,6 +54141,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -52145,6 +54275,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -52394,6 +54554,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -52612,6 +54802,7 @@ "id": "NetworksGetEffectiveFirewallsResponseEffectiveFirewallPolicy", "properties": { "displayName": { + "deprecated": true, "description": "[Output Only] Deprecated, please use short name instead. The display name of the firewall policy.", "type": "string" }, @@ -52832,6 +55023,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -52986,6 +55207,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -53239,6 +55490,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -53343,6 +55624,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -53597,6 +55908,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -53719,6 +56060,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -53838,6 +56209,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -54028,6 +56429,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -54150,6 +56581,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -54254,6 +56715,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -54445,6 +56936,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -54691,6 +57212,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -54826,6 +57377,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -54948,6 +57529,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -55052,6 +57663,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -55117,54 +57758,54 @@ "properties": { "baseEjectionTime": { "$ref": "Duration", - "description": "The base time that a host is ejected for. The real ejection time is equal to the base ejection time multiplied by the number of times the host has been ejected. Defaults to 30000ms or 30s." + "description": "The base time that a backend endpoint is ejected for. Defaults to 30000ms or 30s. After a backend endpoint is returned back to the load balancing pool, it can be ejected again in another ejection analysis. Thus, the total ejection time is equal to the base ejection time multiplied by the number of times the backend endpoint has been ejected. Defaults to 30000ms or 30s." }, "consecutiveErrors": { - "description": "Number of errors before a host is ejected from the connection pool. When the backend host is accessed over HTTP, a 5xx return code qualifies as an error. Defaults to 5. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.", + "description": "Number of consecutive errors before a backend endpoint is ejected from the load balancing pool. When the backend endpoint is accessed over HTTP, a 5xx return code qualifies as an error. Defaults to 5.", "format": "int32", "type": "integer" }, "consecutiveGatewayFailure": { - "description": "The number of consecutive gateway failures (502, 503, 504 status or connection errors that are mapped to one of those status codes) before a consecutive gateway failure ejection occurs. Defaults to 3. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.", + "description": "The number of consecutive gateway failures (502, 503, 504 status or connection errors that are mapped to one of those status codes) before a consecutive gateway failure ejection occurs. Defaults to 3.", "format": "int32", "type": "integer" }, "enforcingConsecutiveErrors": { - "description": "The percentage chance that a host will be actually ejected when an outlier status is detected through consecutive 5xx. This setting can be used to disable ejection or to ramp it up slowly. Defaults to 0. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.", + "description": "The percentage chance that a backend endpoint will be ejected when an outlier status is detected through consecutive 5xx. This setting can be used to disable ejection or to ramp it up slowly. Defaults to 0.", "format": "int32", "type": "integer" }, "enforcingConsecutiveGatewayFailure": { - "description": "The percentage chance that a host will be actually ejected when an outlier status is detected through consecutive gateway failures. This setting can be used to disable ejection or to ramp it up slowly. Defaults to 100. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.", + "description": "The percentage chance that a backend endpoint will be ejected when an outlier status is detected through consecutive gateway failures. This setting can be used to disable ejection or to ramp it up slowly. Defaults to 100.", "format": "int32", "type": "integer" }, "enforcingSuccessRate": { - "description": "The percentage chance that a host will be actually ejected when an outlier status is detected through success rate statistics. This setting can be used to disable ejection or to ramp it up slowly. Defaults to 100.", + "description": "The percentage chance that a backend endpoint will be ejected when an outlier status is detected through success rate statistics. This setting can be used to disable ejection or to ramp it up slowly. Defaults to 100. Not supported when the backend service uses Serverless NEG.", "format": "int32", "type": "integer" }, "interval": { "$ref": "Duration", - "description": "Time interval between ejection analysis sweeps. This can result in both new ejections as well as hosts being returned to service. Defaults to 1 second." + "description": "Time interval between ejection analysis sweeps. This can result in both new ejections and backend endpoints being returned to service. The interval is equal to the number of seconds as defined in outlierDetection.interval.seconds plus the number of nanoseconds as defined in outlierDetection.interval.nanos. Defaults to 1 second." }, "maxEjectionPercent": { - "description": "Maximum percentage of hosts in the load balancing pool for the backend service that can be ejected. Defaults to 50%.", + "description": "Maximum percentage of backend endpoints in the load balancing pool for the backend service that can be ejected if the ejection conditions are met. Defaults to 50%.", "format": "int32", "type": "integer" }, "successRateMinimumHosts": { - "description": "The number of hosts in a cluster that must have enough request volume to detect success rate outliers. If the number of hosts is less than this setting, outlier detection via success rate statistics is not performed for any host in the cluster. Defaults to 5.", + "description": "The number of backend endpoints in the load balancing pool that must have enough request volume to detect success rate outliers. If the number of backend endpoints is fewer than this setting, outlier detection via success rate statistics is not performed for any backend endpoint in the load balancing pool. Defaults to 5. Not supported when the backend service uses Serverless NEG.", "format": "int32", "type": "integer" }, "successRateRequestVolume": { - "description": "The minimum number of total requests that must be collected in one interval (as defined by the interval duration above) to include this host in success rate based outlier detection. If the volume is lower than this setting, outlier detection via success rate statistics is not performed for that host. Defaults to 100.", + "description": "The minimum number of total requests that must be collected in one interval (as defined by the interval duration above) to include this backend endpoint in success rate based outlier detection. If the volume is lower than this setting, outlier detection via success rate statistics is not performed for that backend endpoint. Defaults to 100. Not supported when the backend service uses Serverless NEG.", "format": "int32", "type": "integer" }, "successRateStdevFactor": { - "description": "This factor is used to determine the ejection threshold for success rate outlier ejection. The ejection threshold is the difference between the mean success rate, and the product of this factor and the standard deviation of the mean success rate: mean - (stdev * success_rate_stdev_factor). This factor is divided by a thousand to get a double. That is, if the desired factor is 1.9, the runtime value should be 1900. Defaults to 1900.", + "description": "This factor is used to determine the ejection threshold for success rate outlier ejection. The ejection threshold is the difference between the mean success rate, and the product of this factor and the standard deviation of the mean success rate: mean - (stdev * successRateStdevFactor). This factor is divided by a thousand to get a double. That is, if the desired factor is 1.9, the runtime value should be 1900. Defaults to 1900. Not supported when the backend service uses Serverless NEG.", "format": "int32", "type": "integer" } @@ -55382,6 +58023,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -55552,6 +58223,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -55725,6 +58426,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -56324,6 +59055,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -56563,6 +59324,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -56684,6 +59475,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -56831,6 +59652,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -57412,6 +60263,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -57533,6 +60414,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -57702,6 +60613,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -57838,6 +60779,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -58085,6 +61056,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -58264,6 +61265,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -58427,6 +61458,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -58814,6 +61875,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -58935,6 +62026,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -59050,6 +62171,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -59198,6 +62349,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -59410,6 +62591,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -59647,6 +62858,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -60067,6 +63308,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -60221,6 +63492,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -60455,6 +63756,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -60858,6 +64189,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -61487,6 +64848,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -62041,6 +65432,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -62154,6 +65575,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -62464,6 +65915,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -63056,6 +66537,7 @@ "type": "array" }, "producerForwardingRule": { + "deprecated": true, "description": "The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is serving the endpoint identified by this service attachment.", "type": "string" }, @@ -63153,6 +66635,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -63329,6 +66841,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -63433,6 +66975,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -63867,6 +67439,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -64191,6 +67793,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -64313,6 +67945,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -64491,6 +68153,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -64623,6 +68315,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -64744,6 +68466,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -64860,6 +68612,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -65039,6 +68821,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -65387,6 +69199,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -65509,6 +69351,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -65699,6 +69571,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -65972,6 +69874,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -66076,6 +70008,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -66292,6 +70254,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -66396,6 +70388,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -66661,6 +70683,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -66783,6 +70835,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -66968,6 +71050,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -67090,6 +71202,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -67194,6 +71336,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -67408,6 +71580,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -67547,6 +71749,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -67703,6 +71935,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -67950,6 +72212,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -68054,6 +72346,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -68269,6 +72591,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -68391,6 +72743,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -68614,6 +72996,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -68736,6 +73148,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -68840,6 +73282,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -69129,6 +73601,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -69348,6 +73850,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -69452,6 +73984,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -69731,6 +74293,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -69967,6 +74559,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -70179,6 +74801,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -70301,6 +74953,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -70523,6 +75205,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -70806,6 +75518,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -70928,6 +75670,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -71032,6 +75804,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -71212,6 +76014,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", @@ -71421,6 +76253,36 @@ "UNDECLARED_PROPERTIES", "UNREACHABLE" ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Warning about failed cleanup of transient changes made by a failed operation.", "A link to a deprecated resource was created.", diff --git a/compute/v1/compute-gen.go b/compute/v1/compute-gen.go index 6617549790e..f7315454ff5 100644 --- a/compute/v1/compute-gen.go +++ b/compute/v1/compute-gen.go @@ -5700,13 +5700,32 @@ type BackendService struct { // scheme is set to INTERNAL. Network string `json:"network,omitempty"` - // OutlierDetection: Settings controlling the eviction of unhealthy - // hosts from the load balancing pool for the backend service. If not - // set, this feature is considered disabled. This field is applicable to - // either: - A regional backend service with the service_protocol set to - // HTTP, HTTPS, HTTP2, or GRPC, and load_balancing_scheme set to - // INTERNAL_MANAGED. - A global backend service with the - // load_balancing_scheme set to INTERNAL_SELF_MANAGED. + // OutlierDetection: Settings controlling the ejection of unhealthy + // backend endpoints from the load balancing pool of each individual + // proxy instance that processes the traffic for the given backend + // service. If not set, this feature is considered disabled. Results of + // the outlier detection algorithm (ejection of endpoints from the load + // balancing pool and returning them back to the pool) are executed + // independently by each proxy instance of the load balancer. In most + // cases, more than one proxy instance handles the traffic received by a + // backend service. Thus, it is possible that an unhealthy endpoint is + // detected and ejected by only some of the proxies, and while this + // happens, other proxies may continue to send requests to the same + // unhealthy endpoint until they detect and eject the unhealthy + // endpoint. Applicable backend endpoints can be: - VM instances in an + // Instance Group - Endpoints in a Zonal NEG (GCE_VM_IP, GCE_VM_IP_PORT) + // - Endpoints in a Hybrid Connectivity NEG (NON_GCP_PRIVATE_IP_PORT) - + // Serverless NEGs, that resolve to Cloud Run, App Engine, or Cloud + // Functions Services - Private Service Connect NEGs, that resolve to + // Google-managed regional API endpoints or managed services published + // using Private Service Connect Applicable backend service types can + // be: - A global backend service with the loadBalancingScheme set to + // INTERNAL_SELF_MANAGED or EXTERNAL_MANAGED. - A regional backend + // service with the serviceProtocol set to HTTP, HTTPS, or HTTP2, and + // loadBalancingScheme set to INTERNAL_MANAGED or EXTERNAL_MANAGED. Not + // supported for Serverless NEGs. Not supported when the backend service + // is referenced by a URL map that is bound to target gRPC proxy that + // has validateForProxyless field set to true. OutlierDetection *OutlierDetection `json:"outlierDetection,omitempty"` // Port: Deprecated in favor of portName. The TCP port to connect on the @@ -18946,6 +18965,10 @@ type InstanceGroupManager struct { // InstanceGroup: [Output Only] The URL of the Instance Group resource. InstanceGroup string `json:"instanceGroup,omitempty"` + // InstanceLifecyclePolicy: The repair policy for this managed instance + // group. + InstanceLifecyclePolicy *InstanceGroupManagerInstanceLifecyclePolicy `json:"instanceLifecyclePolicy,omitempty"` + // InstanceTemplate: The URL of the instance template that is specified // for this managed instance group. The group uses this template to // create all new instances in the managed instance group. The templates @@ -19381,6 +19404,43 @@ func (s *InstanceGroupManagerAutoHealingPolicy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type InstanceGroupManagerInstanceLifecyclePolicy struct { + // ForceUpdateOnRepair: A bit indicating whether to forcefully apply the + // group's latest configuration when repairing a VM. Valid options are: + // - NO (default): If configuration updates are available, they are not + // forcefully applied during repair. Instead, configuration updates are + // applied according to the group's update policy. - YES: If + // configuration updates are available, they are applied during repair. + // + // Possible values: + // "NO" + // "YES" + ForceUpdateOnRepair string `json:"forceUpdateOnRepair,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ForceUpdateOnRepair") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ForceUpdateOnRepair") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *InstanceGroupManagerInstanceLifecyclePolicy) MarshalJSON() ([]byte, error) { + type NoMethod InstanceGroupManagerInstanceLifecyclePolicy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // InstanceGroupManagerList: [Output Only] A list of managed instance // groups. type InstanceGroupManagerList struct { @@ -24534,9 +24594,9 @@ func (s *InterconnectCircuitInfo) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// InterconnectDiagnostics: Diagnostics information about interconnect, -// contains detailed and current technical information about Google's -// side of the connection. +// InterconnectDiagnostics: Diagnostics information about the +// Interconnect connection, which contains detailed and current +// technical information about Google's side of the connection. type InterconnectDiagnostics struct { // ArpCaches: A list of InterconnectDiagnostics.ARPEntry objects, // describing individual neighbors currently seen by the Google router @@ -35309,80 +35369,83 @@ func (s *OperationsScopedListWarningData) MarshalJSON() ([]byte, error) { // OutlierDetection: Settings controlling the eviction of unhealthy // hosts from the load balancing pool for the backend service. type OutlierDetection struct { - // BaseEjectionTime: The base time that a host is ejected for. The real - // ejection time is equal to the base ejection time multiplied by the - // number of times the host has been ejected. Defaults to 30000ms or - // 30s. + // BaseEjectionTime: The base time that a backend endpoint is ejected + // for. Defaults to 30000ms or 30s. After a backend endpoint is returned + // back to the load balancing pool, it can be ejected again in another + // ejection analysis. Thus, the total ejection time is equal to the base + // ejection time multiplied by the number of times the backend endpoint + // has been ejected. Defaults to 30000ms or 30s. BaseEjectionTime *Duration `json:"baseEjectionTime,omitempty"` - // ConsecutiveErrors: Number of errors before a host is ejected from the - // connection pool. When the backend host is accessed over HTTP, a 5xx - // return code qualifies as an error. Defaults to 5. Not supported when - // the backend service is referenced by a URL map that is bound to - // target gRPC proxy that has validateForProxyless field set to true. + // ConsecutiveErrors: Number of consecutive errors before a backend + // endpoint is ejected from the load balancing pool. When the backend + // endpoint is accessed over HTTP, a 5xx return code qualifies as an + // error. Defaults to 5. ConsecutiveErrors int64 `json:"consecutiveErrors,omitempty"` // ConsecutiveGatewayFailure: The number of consecutive gateway failures // (502, 503, 504 status or connection errors that are mapped to one of // those status codes) before a consecutive gateway failure ejection - // occurs. Defaults to 3. Not supported when the backend service is - // referenced by a URL map that is bound to target gRPC proxy that has - // validateForProxyless field set to true. + // occurs. Defaults to 3. ConsecutiveGatewayFailure int64 `json:"consecutiveGatewayFailure,omitempty"` - // EnforcingConsecutiveErrors: The percentage chance that a host will be - // actually ejected when an outlier status is detected through + // EnforcingConsecutiveErrors: The percentage chance that a backend + // endpoint will be ejected when an outlier status is detected through // consecutive 5xx. This setting can be used to disable ejection or to - // ramp it up slowly. Defaults to 0. Not supported when the backend - // service is referenced by a URL map that is bound to target gRPC proxy - // that has validateForProxyless field set to true. + // ramp it up slowly. Defaults to 0. EnforcingConsecutiveErrors int64 `json:"enforcingConsecutiveErrors,omitempty"` - // EnforcingConsecutiveGatewayFailure: The percentage chance that a host - // will be actually ejected when an outlier status is detected through - // consecutive gateway failures. This setting can be used to disable - // ejection or to ramp it up slowly. Defaults to 100. Not supported when - // the backend service is referenced by a URL map that is bound to - // target gRPC proxy that has validateForProxyless field set to true. + // EnforcingConsecutiveGatewayFailure: The percentage chance that a + // backend endpoint will be ejected when an outlier status is detected + // through consecutive gateway failures. This setting can be used to + // disable ejection or to ramp it up slowly. Defaults to 100. EnforcingConsecutiveGatewayFailure int64 `json:"enforcingConsecutiveGatewayFailure,omitempty"` - // EnforcingSuccessRate: The percentage chance that a host will be - // actually ejected when an outlier status is detected through success + // EnforcingSuccessRate: The percentage chance that a backend endpoint + // will be ejected when an outlier status is detected through success // rate statistics. This setting can be used to disable ejection or to - // ramp it up slowly. Defaults to 100. + // ramp it up slowly. Defaults to 100. Not supported when the backend + // service uses Serverless NEG. EnforcingSuccessRate int64 `json:"enforcingSuccessRate,omitempty"` // Interval: Time interval between ejection analysis sweeps. This can - // result in both new ejections as well as hosts being returned to - // service. Defaults to 1 second. + // result in both new ejections and backend endpoints being returned to + // service. The interval is equal to the number of seconds as defined in + // outlierDetection.interval.seconds plus the number of nanoseconds as + // defined in outlierDetection.interval.nanos. Defaults to 1 second. Interval *Duration `json:"interval,omitempty"` - // MaxEjectionPercent: Maximum percentage of hosts in the load balancing - // pool for the backend service that can be ejected. Defaults to 50%. + // MaxEjectionPercent: Maximum percentage of backend endpoints in the + // load balancing pool for the backend service that can be ejected if + // the ejection conditions are met. Defaults to 50%. MaxEjectionPercent int64 `json:"maxEjectionPercent,omitempty"` - // SuccessRateMinimumHosts: The number of hosts in a cluster that must - // have enough request volume to detect success rate outliers. If the - // number of hosts is less than this setting, outlier detection via - // success rate statistics is not performed for any host in the cluster. - // Defaults to 5. + // SuccessRateMinimumHosts: The number of backend endpoints in the load + // balancing pool that must have enough request volume to detect success + // rate outliers. If the number of backend endpoints is fewer than this + // setting, outlier detection via success rate statistics is not + // performed for any backend endpoint in the load balancing pool. + // Defaults to 5. Not supported when the backend service uses Serverless + // NEG. SuccessRateMinimumHosts int64 `json:"successRateMinimumHosts,omitempty"` // SuccessRateRequestVolume: The minimum number of total requests that // must be collected in one interval (as defined by the interval - // duration above) to include this host in success rate based outlier - // detection. If the volume is lower than this setting, outlier - // detection via success rate statistics is not performed for that host. - // Defaults to 100. + // duration above) to include this backend endpoint in success rate + // based outlier detection. If the volume is lower than this setting, + // outlier detection via success rate statistics is not performed for + // that backend endpoint. Defaults to 100. Not supported when the + // backend service uses Serverless NEG. SuccessRateRequestVolume int64 `json:"successRateRequestVolume,omitempty"` // SuccessRateStdevFactor: This factor is used to determine the ejection // threshold for success rate outlier ejection. The ejection threshold // is the difference between the mean success rate, and the product of // this factor and the standard deviation of the mean success rate: mean - // - (stdev * success_rate_stdev_factor). This factor is divided by a + // - (stdev * successRateStdevFactor). This factor is divided by a // thousand to get a double. That is, if the desired factor is 1.9, the - // runtime value should be 1900. Defaults to 1900. + // runtime value should be 1900. Defaults to 1900. Not supported when + // the backend service uses Serverless NEG. SuccessRateStdevFactor int64 `json:"successRateStdevFactor,omitempty"` // ForceSendFields is a list of field names (e.g. "BaseEjectionTime") to @@ -134694,7 +134757,9 @@ type ProjectsMoveInstanceCall struct { // method might cause unexpected behavior. For more information, see the // known issue // (/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_ -// the_moveinstance_api_or_the_causes_unexpected_behavior). +// the_moveinstance_api_or_the_causes_unexpected_behavior). [Deprecated] +// This method is deprecated. See moving instance across zones +// (/compute/docs/instances/moving-instance-across-zones) instead. // // - project: Project ID for this request. func (r *ProjectsService) MoveInstance(project string, instancemoverequest *InstanceMoveRequest) *ProjectsMoveInstanceCall { @@ -134811,7 +134876,8 @@ func (c *ProjectsMoveInstanceCall) Do(opts ...googleapi.CallOption) (*Operation, } return ret, nil // { - // "description": "Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior).", + // "deprecated": true, + // "description": "Moves an instance and its attached persistent disks from one zone to another. *Note*: Moving VMs or disks by using this method might cause unexpected behavior. For more information, see the [known issue](/compute/docs/troubleshooting/known-issues#moving_vms_or_disks_using_the_moveinstance_api_or_the_causes_unexpected_behavior). [Deprecated] This method is deprecated. See [moving instance across zones](/compute/docs/instances/moving-instance-across-zones) instead.", // "flatPath": "projects/{project}/moveInstance", // "httpMethod": "POST", // "id": "compute.projects.moveInstance", diff --git a/datamigration/v1/datamigration-api.json b/datamigration/v1/datamigration-api.json index 428f6ecad84..a4092afa8a9 100644 --- a/datamigration/v1/datamigration-api.json +++ b/datamigration/v1/datamigration-api.json @@ -706,7 +706,7 @@ ], "parameters": { "commitId": { - "description": "Request a specific commit ID. If not specified, the entities from the latest commit are returned.", + "description": "Optional. Request a specific commit ID. If not specified, the entities from the latest commit are returned.", "location": "query", "type": "string" }, @@ -718,23 +718,23 @@ "type": "string" }, "filter": { - "description": "Filter the returned entities based on AIP-160 standard.", + "description": "Optional. Filter the returned entities based on AIP-160 standard.", "location": "query", "type": "string" }, "pageSize": { - "description": "The maximum number of entities to return. The service may return fewer entities than the value specifies.", + "description": "Optional. The maximum number of entities to return. The service may return fewer entities than the value specifies.", "format": "int32", "location": "query", "type": "integer" }, "pageToken": { - "description": "The nextPageToken value received in the previous call to conversionWorkspace.describeDatabaseEntities, used in the subsequent request to retrieve the next page of results. On first call this should be left blank. When paginating, all other parameters provided to conversionWorkspace.describeDatabaseEntities must match the call that provided the page token.", + "description": "Optional. The nextPageToken value received in the previous call to conversionWorkspace.describeDatabaseEntities, used in the subsequent request to retrieve the next page of results. On first call this should be left blank. When paginating, all other parameters provided to conversionWorkspace.describeDatabaseEntities must match the call that provided the page token.", "location": "query", "type": "string" }, "tree": { - "description": "The tree to fetch.", + "description": "Required. The tree to fetch.", "enum": [ "DB_TREE_TYPE_UNSPECIFIED", "SOURCE_TREE", @@ -751,9 +751,26 @@ "type": "string" }, "uncommitted": { - "description": "Whether to retrieve the latest committed version of the entities or the latest version. This field is ignored if a specific commit_id is specified.", + "description": "Optional. Whether to retrieve the latest committed version of the entities or the latest version. This field is ignored if a specific commit_id is specified.", "location": "query", "type": "boolean" + }, + "view": { + "description": "Optional. Results view based on AIP-157", + "enum": [ + "DATABASE_ENTITY_VIEW_UNSPECIFIED", + "DATABASE_ENTITY_VIEW_BASIC", + "DATABASE_ENTITY_VIEW_FULL", + "DATABASE_ENTITY_VIEW_ROOT_SUMMARY" + ], + "enumDescriptions": [ + "Unspecified view. Defaults to basic view.", + "Default view. Does not return DDLs or Issues.", + "Return full entity details including mappings, ddl and issues.", + "Top-most (Database, Schema) nodes which are returned contains summary details for their decendents such as the number of entities per type and issues rollups. When this view is used, only a single page of result is returned and the page_size property of the request is ignored. The returned page will only include the top-most node types." + ], + "location": "query", + "type": "string" } }, "path": "v1/{+conversionWorkspace}:describeDatabaseEntities", @@ -1058,6 +1075,99 @@ "resources": { "mappingRules": { "methods": { + "create": { + "description": "Creates a new mapping rule for a given conversion workspace.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}/mappingRules", + "httpMethod": "POST", + "id": "datamigration.projects.locations.conversionWorkspaces.mappingRules.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "mappingRuleId": { + "description": "Required. The ID of the rule to create.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent which owns this collection of mapping rules.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+parent}/mappingRules", + "request": { + "$ref": "MappingRule" + }, + "response": { + "$ref": "MappingRule" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single mapping rule.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}/mappingRules/{mappingRulesId}", + "httpMethod": "DELETE", + "id": "datamigration.projects.locations.conversionWorkspaces.mappingRules.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the mapping rule resource to delete.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+/mappingRules/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the details of a mapping rule.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}/mappingRules/{mappingRulesId}", + "httpMethod": "GET", + "id": "datamigration.projects.locations.conversionWorkspaces.mappingRules.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the mapping rule resource to get. Example: conversionWorkspaces/123/mappingRules/rule123 In order to retrieve a previous revision of the mapping rule, also provide the revision ID. Example: conversionWorkspace/123/mappingRules/rule123@c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+/mappingRules/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "MappingRule" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "import": { "description": "Imports the mapping rules for a given conversion workspace. Supports various formats of external rules files.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}/mappingRules:import", @@ -1085,6 +1195,42 @@ "scopes": [ "https://www.googleapis.com/auth/cloud-platform" ] + }, + "list": { + "description": "Lists the mapping rules for a specific conversion workspace.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}/mappingRules", + "httpMethod": "GET", + "id": "datamigration.projects.locations.conversionWorkspaces.mappingRules.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of rules to return. The service may return fewer than this value.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The nextPageToken value received in the previous call to mappingRules.list, used in the subsequent request to retrieve the next page of results. On first call this should be left blank. When paginating, all other parameters provided to mappingRules.list must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Name of the conversion workspace resource whose mapping rules are listed in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/mappingRules", + "response": { + "$ref": "ListMappingRulesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } } @@ -1114,7 +1260,7 @@ "type": "string" }, "requestId": { - "description": "A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + "description": "Optional. A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", "location": "query", "type": "string" } @@ -1951,7 +2097,7 @@ } } }, - "revision": "20230622", + "revision": "20230703", "rootUrl": "https://datamigration.googleapis.com/", "schemas": { "AlloyDbConnectionProfile": { @@ -2002,10 +2148,18 @@ "description": "Request message for 'ApplyConversionWorkspace' request.", "id": "ApplyConversionWorkspaceRequest", "properties": { + "autoCommit": { + "description": "Optional. Specifies whether the conversion workspace is to be committed automatically after the apply.", + "type": "boolean" + }, "connectionProfile": { - "description": "Fully qualified (Uri) name of the destination connection profile.", + "description": "Optional. Fully qualified (Uri) name of the destination connection profile.", "type": "string" }, + "dryRun": { + "description": "Optional. Only validates the apply process, but doesn't change the destination database. Only works for PostgreSQL destination connection profile.", + "type": "boolean" + }, "filter": { "description": "Filter which entities to apply. Leaving this field empty will apply all of the entities. Supports Google AIP 160 based filtering.", "type": "string" @@ -2013,16 +2167,40 @@ }, "type": "object" }, + "ApplyHash": { + "description": "Apply a hash function on the value.", + "id": "ApplyHash", + "properties": { + "uuidFromBytes": { + "$ref": "Empty", + "description": "Optional. Generate UUID from the data's byte array" + } + }, + "type": "object" + }, "ApplyJobDetails": { "description": "Details regarding an Apply background job.", "id": "ApplyJobDetails", "properties": { "connectionProfile": { - "description": "The connection profile which was used for the apply job.", + "description": "Output only. The connection profile which was used for the apply job.", + "readOnly": true, "type": "string" }, "filter": { - "description": "AIP-160 based filter used to specify the entities to apply", + "description": "Output only. AIP-160 based filter used to specify the entities to apply", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "AssignSpecificValue": { + "description": "Set to a specific value (value is converted to fit the target data type)", + "id": "AssignSpecificValue", + "properties": { + "value": { + "description": "Required. Specific value to be assigned", "type": "string" } }, @@ -2082,14 +2260,16 @@ "properties": { "applyJobDetails": { "$ref": "ApplyJobDetails", - "description": "Apply job details." + "description": "Output only. Apply job details.", + "readOnly": true }, "completionComment": { - "description": "Job completion comment, such as how many entities were seeded, how many warnings were found during conversion, and similar information.", + "description": "Output only. Job completion comment, such as how many entities were seeded, how many warnings were found during conversion, and similar information.", + "readOnly": true, "type": "string" }, "completionState": { - "description": "Job completion state, i.e. the final state after the job completed.", + "description": "Output only. Job completion state, i.e. the final state after the job completed.", "enum": [ "JOB_COMPLETION_STATE_UNSPECIFIED", "SUCCEEDED", @@ -2100,11 +2280,13 @@ "Success.", "Error." ], + "readOnly": true, "type": "string" }, "convertJobDetails": { "$ref": "ConvertJobDetails", - "description": "Convert job details." + "description": "Output only. Convert job details.", + "readOnly": true }, "finishTime": { "description": "The timestamp when the background job was finished.", @@ -2117,7 +2299,8 @@ }, "importRulesJobDetails": { "$ref": "ImportRulesJobDetails", - "description": "Import rules job details." + "description": "Output only. Import rules job details.", + "readOnly": true }, "jobType": { "description": "The type of job that was executed.", @@ -2138,12 +2321,14 @@ "type": "string" }, "requestAutocommit": { - "description": "Whether the client requested the conversion workspace to be committed after a successful completion of the job.", + "description": "Output only. Whether the client requested the conversion workspace to be committed after a successful completion of the job.", + "readOnly": true, "type": "boolean" }, "seedJobDetails": { "$ref": "SeedJobDetails", - "description": "Seed job details." + "description": "Output only. Seed job details.", + "readOnly": true }, "startTime": { "description": "The timestamp when the background job was started.", @@ -2473,6 +2658,33 @@ }, "type": "object" }, + "ConditionalColumnSetValue": { + "description": "Options to configure rule type ConditionalColumnSetValue. The rule is used to transform the data which is being replicated/migrated. The rule filter field can refer to one or more entities. The rule scope can be one of: Column.", + "id": "ConditionalColumnSetValue", + "properties": { + "customFeatures": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. Custom engine specific features.", + "type": "object" + }, + "sourceNumericFilter": { + "$ref": "SourceNumericFilter", + "description": "Optional. Optional filter on source column precision and scale. Used for fixed point numbers such as NUMERIC/NUMBER data types." + }, + "sourceTextFilter": { + "$ref": "SourceTextFilter", + "description": "Optional. Optional filter on source column length. Used for text based data types like varchar." + }, + "valueTransformation": { + "$ref": "ValueTransformation", + "description": "Required. Description of data transformation during migration." + } + }, + "type": "object" + }, "ConnectionProfile": { "description": "A connection profile definition.", "id": "ConnectionProfile", @@ -2634,14 +2846,14 @@ "description": "Required. The destination engine details." }, "displayName": { - "description": "The display name for the workspace.", + "description": "Optional. The display name for the workspace.", "type": "string" }, "globalSettings": { "additionalProperties": { "type": "string" }, - "description": "A generic list of settings for the workspace. The settings are database pair dependant and can indicate default behavior for the mapping rules engine or turn on or off specific features. Such examples can be: convert_foreign_key_to_interleave=true, skip_triggers=false, ignore_non_table_synonyms=true", + "description": "Optional. A generic list of settings for the workspace. The settings are database pair dependant and can indicate default behavior for the mapping rules engine or turn on or off specific features. Such examples can be: convert_foreign_key_to_interleave=true, skip_triggers=false, ignore_non_table_synonyms=true", "type": "object" }, "hasUncommittedChanges": { @@ -2697,11 +2909,15 @@ "id": "ConvertConversionWorkspaceRequest", "properties": { "autoCommit": { - "description": "Specifies whether the conversion workspace is to be committed automatically after the conversion.", + "description": "Optional. Specifies whether the conversion workspace is to be committed automatically after the conversion.", + "type": "boolean" + }, + "convertFullPath": { + "description": "Optional. Automatically convert the full entity path for each entity specified by the filter. For example, if the filter specifies a table, that table schema (and database if there is one) will also be converted.", "type": "boolean" }, "filter": { - "description": "Filter the entities to convert. Leaving this field empty will convert all of the entities. Supports Google AIP-160 style filtering.", + "description": "Optional. Filter the entities to convert. Leaving this field empty will convert all of the entities. Supports Google AIP-160 style filtering.", "type": "string" } }, @@ -2712,12 +2928,24 @@ "id": "ConvertJobDetails", "properties": { "filter": { - "description": "AIP-160 based filter used to specify the entities to convert", + "description": "Output only. AIP-160 based filter used to specify the entities to convert", + "readOnly": true, "type": "string" } }, "type": "object" }, + "ConvertRowIdToColumn": { + "description": "Options to configure rule type ConvertROWIDToColumn. The rule is used to add column rowid to destination tables based on an Oracle rowid function/property. The rule filter field can refer to one or more entities. The rule scope can be one of: Table. This rule requires additional filter to be specified beyond the basic rule filter field, which is whether or not to work on tables which already have a primary key defined.", + "id": "ConvertRowIdToColumn", + "properties": { + "onlyIfNoPrimaryKey": { + "description": "Required. Only work on tables without primary key defined", + "type": "boolean" + } + }, + "type": "object" + }, "DatabaseEngineInfo": { "description": "The type and version of a source or destination database.", "id": "DatabaseEngineInfo", @@ -2749,6 +2977,10 @@ "description": "The base entity type for all the database related entities. The message contains the entity name, the name of its parent, the entity type, and the specific details per entity type.", "id": "DatabaseEntity", "properties": { + "database": { + "$ref": "DatabaseInstanceEntity", + "description": "Database." + }, "databaseFunction": { "$ref": "FunctionEntity", "description": "Function." @@ -2757,6 +2989,13 @@ "$ref": "PackageEntity", "description": "Package." }, + "entityDdl": { + "description": "Details about the entity DDL script. Multiple DDL scripts are provided for child entities such as a table entity will have one DDL for the table with additional DDLs for each index, constraint and such.", + "items": { + "$ref": "EntityDdl" + }, + "type": "array" + }, "entityType": { "description": "The type of the database entity (table, view, index, ...).", "enum": [ @@ -2797,6 +3036,13 @@ ], "type": "string" }, + "issues": { + "description": "Details about the various issues found for the entity.", + "items": { + "$ref": "EntityIssue" + }, + "type": "array" + }, "mappings": { "description": "Details about entity mappings. For source tree entities, this holds the draft entities which were generated by the mapping rules. For draft tree entities, this holds the source entities which were converted to form the draft entity. Destination entities will have no mapping details.", "items": { @@ -2804,6 +3050,10 @@ }, "type": "array" }, + "materializedView": { + "$ref": "MaterializedViewEntity", + "description": "Materialized view." + }, "parentEntity": { "description": "The full name of the parent entity (e.g. schema name).", "type": "string" @@ -2848,6 +3098,10 @@ ], "type": "string" }, + "udt": { + "$ref": "UDTEntity", + "description": "UDT." + }, "view": { "$ref": "ViewEntity", "description": "View." @@ -2855,6 +3109,21 @@ }, "type": "object" }, + "DatabaseInstanceEntity": { + "description": "DatabaseInstance acts as a parent entity to other database entities.", + "id": "DatabaseInstanceEntity", + "properties": { + "customFeatures": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Custom engine specific features.", + "type": "object" + } + }, + "type": "object" + }, "DatabaseType": { "description": "A message defining the database engine and provider.", "id": "DatabaseType", @@ -2928,6 +3197,36 @@ }, "type": "object" }, + "DoubleComparisonFilter": { + "description": "Filter based on relation between source value and compare value of type double in ConditionalColumnSetValue", + "id": "DoubleComparisonFilter", + "properties": { + "value": { + "description": "Required. Double compare value to be used", + "format": "double", + "type": "number" + }, + "valueComparison": { + "description": "Required. Relation between source value and compare value", + "enum": [ + "VALUE_COMPARISON_UNSPECIFIED", + "VALUE_COMPARISON_IF_VALUE_SMALLER_THAN", + "VALUE_COMPARISON_IF_VALUE_SMALLER_EQUAL_THAN", + "VALUE_COMPARISON_IF_VALUE_LARGER_THAN", + "VALUE_COMPARISON_IF_VALUE_LARGER_EQUAL_THAN" + ], + "enumDescriptions": [ + "Value comparison unspecified.", + "Value is smaller than the Compare value.", + "Value is smaller or equal than the Compare value.", + "Value is larger than the Compare value.", + "Value is larger or equal than the Compare value." + ], + "type": "string" + } + }, + "type": "object" + }, "DumpFlag": { "description": "Dump flag definition.", "id": "DumpFlag", @@ -2974,16 +3273,24 @@ }, "type": "object" }, - "EntityMapping": { - "description": "Details of the mappings of a database entity.", - "id": "EntityMapping", + "EntityDdl": { + "description": "A single DDL statement for a specific entity", + "id": "EntityDdl", "properties": { - "draftEntity": { - "description": "Target entity full name. The draft entity can also include a column, index or constraint using the same naming notation schema.table.column.", + "ddl": { + "description": "The actual ddl code.", "type": "string" }, - "draftType": { - "description": "Type of draft entity.", + "ddlType": { + "description": "Type of DDL (Create, Alter).", + "type": "string" + }, + "entity": { + "description": "The name of the database entity the ddl refers to.", + "type": "string" + }, + "entityType": { + "description": "The entity type (if the DDL is for a sub entity).", "enum": [ "DATABASE_ENTITY_TYPE_UNSPECIFIED", "DATABASE_ENTITY_TYPE_SCHEMA", @@ -3022,19 +3329,30 @@ ], "type": "string" }, - "mappingLog": { - "description": "Entity mapping log entries. Multiple rules can be effective and contribute changes to a converted entity, such as a rule can handle the entity name, another rule can handle an entity type. In addition, rules which did not change the entity are also logged along with the reason preventing them to do so.", + "issueId": { + "description": "EntityIssues found for this ddl.", "items": { - "$ref": "EntityMappingLogEntry" + "type": "string" }, "type": "array" + } + }, + "type": "object" + }, + "EntityIssue": { + "description": "Issue related to the entity.", + "id": "EntityIssue", + "properties": { + "code": { + "description": "Error/Warning code", + "type": "string" }, - "sourceEntity": { - "description": "Source entity full name. The source entity can also be a column, index or constraint using the same naming notation schema.table.column.", + "ddl": { + "description": "The ddl which caused the issue, if relevant.", "type": "string" }, - "sourceType": { - "description": "Type of source entity.", + "entityType": { + "description": "The entity type (if the DDL is for a sub entity).", "enum": [ "DATABASE_ENTITY_TYPE_UNSPECIFIED", "DATABASE_ENTITY_TYPE_SCHEMA", @@ -3072,71 +3390,249 @@ "Database." ], "type": "string" - } - }, - "type": "object" - }, - "EntityMappingLogEntry": { - "description": "A single record of a rule which was used for a mapping.", - "id": "EntityMappingLogEntry", - "properties": { - "mappingComment": { - "description": "Comment.", - "type": "string" }, - "ruleId": { - "description": "Which rule caused this log entry.", + "id": { + "description": "Unique Issue ID.", "type": "string" }, - "ruleRevisionId": { - "description": "Rule revision ID.", - "type": "string" - } - }, - "type": "object" - }, - "Expr": { - "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", - "id": "Expr", - "properties": { - "description": { - "description": "Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.", + "message": { + "description": "Issue detailed message", "type": "string" }, - "expression": { - "description": "Textual representation of an expression in Common Expression Language syntax.", - "type": "string" + "position": { + "$ref": "Position", + "description": "The position of the issue found, if relevant." }, - "location": { - "description": "Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.", + "severity": { + "description": "Severity of the issue", + "enum": [ + "ISSUE_SEVERITY_UNSPECIFIED", + "ISSUE_SEVERITY_INFO", + "ISSUE_SEVERITY_WARNING", + "ISSUE_SEVERITY_ERROR" + ], + "enumDescriptions": [ + "Unspecified issue severity", + "Info", + "Warning", + "Error" + ], "type": "string" }, - "title": { - "description": "Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.", + "type": { + "description": "The type of the issue.", + "enum": [ + "ISSUE_TYPE_UNSPECIFIED", + "ISSUE_TYPE_DDL", + "ISSUE_TYPE_APPLY", + "ISSUE_TYPE_CONVERT" + ], + "enumDescriptions": [ + "Unspecified issue type.", + "Issue originated from the DDL", + "Issue originated during the apply process", + "Issue originated during the convert process" + ], "type": "string" } }, "type": "object" }, - "FetchStaticIpsResponse": { - "description": "Response message for a 'FetchStaticIps' request.", - "id": "FetchStaticIpsResponse", + "EntityMapping": { + "description": "Details of the mappings of a database entity.", + "id": "EntityMapping", "properties": { - "nextPageToken": { - "description": "A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "draftEntity": { + "description": "Target entity full name. The draft entity can also include a column, index or constraint using the same naming notation schema.table.column.", "type": "string" }, - "staticIps": { - "description": "List of static IPs.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "ForwardSshTunnelConnectivity": { + "draftType": { + "description": "Type of draft entity.", + "enum": [ + "DATABASE_ENTITY_TYPE_UNSPECIFIED", + "DATABASE_ENTITY_TYPE_SCHEMA", + "DATABASE_ENTITY_TYPE_TABLE", + "DATABASE_ENTITY_TYPE_COLUMN", + "DATABASE_ENTITY_TYPE_CONSTRAINT", + "DATABASE_ENTITY_TYPE_INDEX", + "DATABASE_ENTITY_TYPE_TRIGGER", + "DATABASE_ENTITY_TYPE_VIEW", + "DATABASE_ENTITY_TYPE_SEQUENCE", + "DATABASE_ENTITY_TYPE_STORED_PROCEDURE", + "DATABASE_ENTITY_TYPE_FUNCTION", + "DATABASE_ENTITY_TYPE_SYNONYM", + "DATABASE_ENTITY_TYPE_DATABASE_PACKAGE", + "DATABASE_ENTITY_TYPE_UDT", + "DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW", + "DATABASE_ENTITY_TYPE_DATABASE" + ], + "enumDescriptions": [ + "Unspecified database entity type.", + "Schema.", + "Table.", + "Column.", + "Constraint.", + "Index.", + "Trigger.", + "View.", + "Sequence.", + "Stored Procedure.", + "Function.", + "Synonym.", + "Package.", + "UDT.", + "Materialized View.", + "Database." + ], + "type": "string" + }, + "mappingLog": { + "description": "Entity mapping log entries. Multiple rules can be effective and contribute changes to a converted entity, such as a rule can handle the entity name, another rule can handle an entity type. In addition, rules which did not change the entity are also logged along with the reason preventing them to do so.", + "items": { + "$ref": "EntityMappingLogEntry" + }, + "type": "array" + }, + "sourceEntity": { + "description": "Source entity full name. The source entity can also be a column, index or constraint using the same naming notation schema.table.column.", + "type": "string" + }, + "sourceType": { + "description": "Type of source entity.", + "enum": [ + "DATABASE_ENTITY_TYPE_UNSPECIFIED", + "DATABASE_ENTITY_TYPE_SCHEMA", + "DATABASE_ENTITY_TYPE_TABLE", + "DATABASE_ENTITY_TYPE_COLUMN", + "DATABASE_ENTITY_TYPE_CONSTRAINT", + "DATABASE_ENTITY_TYPE_INDEX", + "DATABASE_ENTITY_TYPE_TRIGGER", + "DATABASE_ENTITY_TYPE_VIEW", + "DATABASE_ENTITY_TYPE_SEQUENCE", + "DATABASE_ENTITY_TYPE_STORED_PROCEDURE", + "DATABASE_ENTITY_TYPE_FUNCTION", + "DATABASE_ENTITY_TYPE_SYNONYM", + "DATABASE_ENTITY_TYPE_DATABASE_PACKAGE", + "DATABASE_ENTITY_TYPE_UDT", + "DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW", + "DATABASE_ENTITY_TYPE_DATABASE" + ], + "enumDescriptions": [ + "Unspecified database entity type.", + "Schema.", + "Table.", + "Column.", + "Constraint.", + "Index.", + "Trigger.", + "View.", + "Sequence.", + "Stored Procedure.", + "Function.", + "Synonym.", + "Package.", + "UDT.", + "Materialized View.", + "Database." + ], + "type": "string" + } + }, + "type": "object" + }, + "EntityMappingLogEntry": { + "description": "A single record of a rule which was used for a mapping.", + "id": "EntityMappingLogEntry", + "properties": { + "mappingComment": { + "description": "Comment.", + "type": "string" + }, + "ruleId": { + "description": "Which rule caused this log entry.", + "type": "string" + }, + "ruleRevisionId": { + "description": "Rule revision ID.", + "type": "string" + } + }, + "type": "object" + }, + "EntityMove": { + "description": "Options to configure rule type EntityMove. The rule is used to move an entity to a new schema. The rule filter field can refer to one or more entities. The rule scope can be one of: Table, Column, Constraint, Index, View, Function, Stored Procedure, Materialized View, Sequence, UDT", + "id": "EntityMove", + "properties": { + "newSchema": { + "description": "Required. The new schema", + "type": "string" + } + }, + "type": "object" + }, + "Expr": { + "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \u003c 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' \u0026\u0026 document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", + "id": "Expr", + "properties": { + "description": { + "description": "Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.", + "type": "string" + }, + "expression": { + "description": "Textual representation of an expression in Common Expression Language syntax.", + "type": "string" + }, + "location": { + "description": "Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.", + "type": "string" + }, + "title": { + "description": "Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.", + "type": "string" + } + }, + "type": "object" + }, + "FetchStaticIpsResponse": { + "description": "Response message for a 'FetchStaticIps' request.", + "id": "FetchStaticIpsResponse", + "properties": { + "nextPageToken": { + "description": "A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "staticIps": { + "description": "List of static IPs.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "FilterTableColumns": { + "description": "Options to configure rule type FilterTableColumns. The rule is used to filter the list of columns to include or exclude from a table. The rule filter field can refer to one entity. The rule scope can be: Table Only one of the two lists can be specified for the rule.", + "id": "FilterTableColumns", + "properties": { + "excludeColumns": { + "description": "Optional. List of columns to be excluded for a particular table.", + "items": { + "type": "string" + }, + "type": "array" + }, + "includeColumns": { + "description": "Optional. List of columns to be included for a particular table.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ForwardSshTunnelConnectivity": { "description": "Forward SSH Tunnel connectivity.", "id": "ForwardSshTunnelConnectivity", "properties": { @@ -3279,18 +3775,18 @@ "id": "ImportMappingRulesRequest", "properties": { "autoCommit": { - "description": "Should the conversion workspace be committed automatically after the import operation.", + "description": "Required. Should the conversion workspace be committed automatically after the import operation.", "type": "boolean" }, "rulesFiles": { - "description": "One or more rules files.", + "description": "Required. One or more rules files.", "items": { "$ref": "RulesFile" }, "type": "array" }, "rulesFormat": { - "description": "The format of the rules content file.", + "description": "Required. The format of the rules content file.", "enum": [ "IMPORT_RULES_FILE_FORMAT_UNSPECIFIED", "IMPORT_RULES_FILE_FORMAT_HARBOUR_BRIDGE_SESSION_FILE", @@ -3311,7 +3807,7 @@ "id": "ImportRulesJobDetails", "properties": { "fileFormat": { - "description": "The requested file format.", + "description": "Output only. The requested file format.", "enum": [ "IMPORT_RULES_FILE_FORMAT_UNSPECIFIED", "IMPORT_RULES_FILE_FORMAT_HARBOUR_BRIDGE_SESSION_FILE", @@ -3322,13 +3818,15 @@ "HarbourBridge session file.", "Ora2Pg configuration file." ], + "readOnly": true, "type": "string" }, "files": { - "description": "File names used for the import rules job.", + "description": "Output only. File names used for the import rules job.", "items": { "type": "string" }, + "readOnly": true, "type": "array" } }, @@ -3368,6 +3866,36 @@ }, "type": "object" }, + "IntComparisonFilter": { + "description": "Filter based on relation between source value and compare value of type integer in ConditionalColumnSetValue", + "id": "IntComparisonFilter", + "properties": { + "value": { + "description": "Required. Integer compare value to be used", + "format": "int64", + "type": "string" + }, + "valueComparison": { + "description": "Required. Relation between source value and compare value", + "enum": [ + "VALUE_COMPARISON_UNSPECIFIED", + "VALUE_COMPARISON_IF_VALUE_SMALLER_THAN", + "VALUE_COMPARISON_IF_VALUE_SMALLER_EQUAL_THAN", + "VALUE_COMPARISON_IF_VALUE_LARGER_THAN", + "VALUE_COMPARISON_IF_VALUE_LARGER_EQUAL_THAN" + ], + "enumDescriptions": [ + "Value comparison unspecified.", + "Value is smaller than the Compare value.", + "Value is smaller or equal than the Compare value.", + "Value is larger than the Compare value.", + "Value is larger or equal than the Compare value." + ], + "type": "string" + } + }, + "type": "object" + }, "ListConnectionProfilesResponse": { "description": "Response message for 'ListConnectionProfiles' request.", "id": "ListConnectionProfilesResponse", @@ -3436,6 +3964,24 @@ }, "type": "object" }, + "ListMappingRulesResponse": { + "description": "Response message for 'ListMappingRulesRequest' request.", + "id": "ListMappingRulesResponse", + "properties": { + "mappingRules": { + "description": "The list of conversion workspace mapping rules.", + "items": { + "$ref": "MappingRule" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, "ListMigrationJobsResponse": { "description": "Response message for 'ListMigrationJobs' request.", "id": "ListMigrationJobsResponse", @@ -3550,6 +4096,190 @@ }, "type": "object" }, + "MappingRule": { + "description": "Definition of a transformation that is to be applied to a group of entities in the source schema. Several such transformations can be applied to an entity sequentially to define the corresponding entity in the target schema.", + "id": "MappingRule", + "properties": { + "conditionalColumnSetValue": { + "$ref": "ConditionalColumnSetValue", + "description": "Optional. Rule to specify how the data contained in a column should be transformed (such as trimmed, rounded, etc) provided that the data meets certain criteria." + }, + "convertRowidColumn": { + "$ref": "ConvertRowIdToColumn", + "description": "Optional. Rule to specify how multiple tables should be converted with an additional rowid column." + }, + "displayName": { + "description": "Optional. A human readable name", + "type": "string" + }, + "entityMove": { + "$ref": "EntityMove", + "description": "Optional. Rule to specify how multiple entities should be relocated into a different schema." + }, + "filter": { + "$ref": "MappingRuleFilter", + "description": "Required. The rule filter" + }, + "filterTableColumns": { + "$ref": "FilterTableColumns", + "description": "Optional. Rule to specify the list of columns to include or exclude from a table." + }, + "multiColumnDataTypeChange": { + "$ref": "MultiColumnDatatypeChange", + "description": "Optional. Rule to specify how multiple columns should be converted to a different data type." + }, + "multiEntityRename": { + "$ref": "MultiEntityRename", + "description": "Optional. Rule to specify how multiple entities should be renamed." + }, + "name": { + "description": "Full name of the mapping rule resource, in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{set}/mappingRule/{rule}.", + "type": "string" + }, + "revisionCreateTime": { + "description": "Output only. The timestamp that the revision was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "revisionId": { + "description": "Output only. The revision ID of the mapping rule. A new revision is committed whenever the mapping rule is changed in any way. The format is an 8-character hexadecimal string.", + "readOnly": true, + "type": "string" + }, + "ruleOrder": { + "description": "Required. The order in which the rule is applied. Lower order rules are applied before higher value rules so they may end up being overridden.", + "format": "int64", + "type": "string" + }, + "ruleScope": { + "description": "Required. The rule scope", + "enum": [ + "DATABASE_ENTITY_TYPE_UNSPECIFIED", + "DATABASE_ENTITY_TYPE_SCHEMA", + "DATABASE_ENTITY_TYPE_TABLE", + "DATABASE_ENTITY_TYPE_COLUMN", + "DATABASE_ENTITY_TYPE_CONSTRAINT", + "DATABASE_ENTITY_TYPE_INDEX", + "DATABASE_ENTITY_TYPE_TRIGGER", + "DATABASE_ENTITY_TYPE_VIEW", + "DATABASE_ENTITY_TYPE_SEQUENCE", + "DATABASE_ENTITY_TYPE_STORED_PROCEDURE", + "DATABASE_ENTITY_TYPE_FUNCTION", + "DATABASE_ENTITY_TYPE_SYNONYM", + "DATABASE_ENTITY_TYPE_DATABASE_PACKAGE", + "DATABASE_ENTITY_TYPE_UDT", + "DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW", + "DATABASE_ENTITY_TYPE_DATABASE" + ], + "enumDescriptions": [ + "Unspecified database entity type.", + "Schema.", + "Table.", + "Column.", + "Constraint.", + "Index.", + "Trigger.", + "View.", + "Sequence.", + "Stored Procedure.", + "Function.", + "Synonym.", + "Package.", + "UDT.", + "Materialized View.", + "Database." + ], + "type": "string" + }, + "setTablePrimaryKey": { + "$ref": "SetTablePrimaryKey", + "description": "Optional. Rule to specify the primary key for a table" + }, + "singleColumnChange": { + "$ref": "SingleColumnChange", + "description": "Optional. Rule to specify how a single column is converted." + }, + "singleEntityRename": { + "$ref": "SingleEntityRename", + "description": "Optional. Rule to specify how a single entity should be renamed." + }, + "singlePackageChange": { + "$ref": "SinglePackageChange", + "description": "Optional. Rule to specify how a single package is converted." + }, + "sourceSqlChange": { + "$ref": "SourceSqlChange", + "description": "Optional. Rule to change the sql code for an entity, for example, function, procedure." + }, + "state": { + "description": "Optional. The mapping rule state", + "enum": [ + "STATE_UNSPECIFIED", + "ENABLED", + "DISABLED", + "DELETED" + ], + "enumDescriptions": [ + "The state of the mapping rule is unknown.", + "The rule is enabled.", + "The rule is disabled.", + "The rule is logically deleted." + ], + "type": "string" + } + }, + "type": "object" + }, + "MappingRuleFilter": { + "description": "A filter defining the entities that a mapping rule should be applied to. When more than one field is specified, the rule is applied only to entities which match all the fields.", + "id": "MappingRuleFilter", + "properties": { + "entities": { + "description": "Optional. The rule should be applied to specific entities defined by their fully qualified names.", + "items": { + "type": "string" + }, + "type": "array" + }, + "entityNameContains": { + "description": "Optional. The rule should be applied to entities whose non-qualified name contains the given string.", + "type": "string" + }, + "entityNamePrefix": { + "description": "Optional. The rule should be applied to entities whose non-qualified name starts with the given prefix.", + "type": "string" + }, + "entityNameSuffix": { + "description": "Optional. The rule should be applied to entities whose non-qualified name ends with the given suffix.", + "type": "string" + }, + "parentEntity": { + "description": "Optional. The rule should be applied to entities whose parent entity (fully qualified name) matches the given value. For example, if the rule applies to a table entity, the expected value should be a schema (schema). If the rule applies to a column or index entity, the expected value can be either a schema (schema) or a table (schema.table)", + "type": "string" + } + }, + "type": "object" + }, + "MaterializedViewEntity": { + "description": "MaterializedView's parent is a schema.", + "id": "MaterializedViewEntity", + "properties": { + "customFeatures": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Custom engine specific features.", + "type": "object" + }, + "sqlCode": { + "description": "The SQL code which creates the view.", + "type": "string" + } + }, + "type": "object" + }, "MigrationJob": { "description": "Represents a Database Migration Service migration job object.", "id": "MigrationJob", @@ -3751,11 +4481,13 @@ "UNSUPPORTED_TABLE_DEFINITION", "UNSUPPORTED_DEFINER", "CANT_RESTART_RUNNING_MIGRATION", + "SOURCE_ALREADY_SETUP", "TABLES_WITH_LIMITED_SUPPORT", "UNSUPPORTED_DATABASE_LOCALE", "UNSUPPORTED_DATABASE_FDW_CONFIG", "ERROR_RDBMS", - "SOURCE_SIZE_EXCEEDS_THRESHOLD" + "SOURCE_SIZE_EXCEEDS_THRESHOLD", + "EXISTING_CONFLICTING_DATABASES" ], "enumDescriptions": [ "An unknown error occurred", @@ -3778,11 +4510,13 @@ "The table definition is not support due to missing primary key or replica identity.", "The definer is not supported.", "Migration is already running at the time of restart request.", + "The source already has a replication setup.", "The source has tables with limited support. E.g. PostgreSQL tables without primary keys.", "The source uses an unsupported locale.", "The source uses an unsupported Foreign Data Wrapper configuration.", "There was an underlying RDBMS error.", - "The source DB size in Bytes exceeds a certain threshold. The migration might require an increase of quota, or might not be supported." + "The source DB size in Bytes exceeds a certain threshold. The migration might require an increase of quota, or might not be supported.", + "The destination DB contains existing databases that are conflicting with those in the source DB." ], "readOnly": true, "type": "string" @@ -3800,6 +4534,86 @@ }, "type": "object" }, + "MultiColumnDatatypeChange": { + "description": "Options to configure rule type MultiColumnDatatypeChange. The rule is used to change the data type and associated properties of multiple columns at once. The rule filter field can refer to one or more entities. The rule scope can be one of:Column. This rule requires additional filters to be specified beyond the basic rule filter field, which is the source data type, but the rule supports additional filtering capabilities such as the minimum and maximum field length. All additional filters which are specified are required to be met in order for the rule to be applied (logical AND between the fields).", + "id": "MultiColumnDatatypeChange", + "properties": { + "customFeatures": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. Custom engine specific features.", + "type": "object" + }, + "newDataType": { + "description": "Required. New data type.", + "type": "string" + }, + "overrideFractionalSecondsPrecision": { + "description": "Optional. Column fractional seconds precision - used only for timestamp based datatypes - if not specified and relevant uses the source column fractional seconds precision.", + "format": "int32", + "type": "integer" + }, + "overrideLength": { + "description": "Optional. Column length - e.g. varchar (50) - if not specified and relevant uses the source column length.", + "format": "int64", + "type": "string" + }, + "overridePrecision": { + "description": "Optional. Column precision - when relevant - if not specified and relevant uses the source column precision.", + "format": "int32", + "type": "integer" + }, + "overrideScale": { + "description": "Optional. Column scale - when relevant - if not specified and relevant uses the source column scale.", + "format": "int32", + "type": "integer" + }, + "sourceDataTypeFilter": { + "description": "Required. Filter on source data type.", + "type": "string" + }, + "sourceNumericFilter": { + "$ref": "SourceNumericFilter", + "description": "Optional. Filter for fixed point number data types such as NUMERIC/NUMBER." + }, + "sourceTextFilter": { + "$ref": "SourceTextFilter", + "description": "Optional. Filter for text-based data types like varchar." + } + }, + "type": "object" + }, + "MultiEntityRename": { + "description": "Options to configure rule type MultiEntityRename. The rule is used to rename multiple entities. The rule filter field can refer to one or more entities. The rule scope can be one of: Database, Schema, Table, Column, Constraint, Index, View, Function, Stored Procedure, Materialized View, Sequence, UDT", + "id": "MultiEntityRename", + "properties": { + "newNamePattern": { + "description": "Optional. The pattern used to generate the new entity's name. This pattern must include the characters '{name}', which will be replaced with the name of the original entity. For example, the pattern 't_{name}' for an entity name jobs would be converted to 't_jobs'. If unspecified, the default value for this field is '{name}'", + "type": "string" + }, + "sourceNameTransformation": { + "description": "Optional. Additional transformation that can be done on the source entity name before it is being used by the new_name_pattern, for example lower case. If no transformation is desired, use NO_TRANSFORMATION", + "enum": [ + "ENTITY_NAME_TRANSFORMATION_UNSPECIFIED", + "ENTITY_NAME_TRANSFORMATION_NO_TRANSFORMATION", + "ENTITY_NAME_TRANSFORMATION_LOWER_CASE", + "ENTITY_NAME_TRANSFORMATION_UPPER_CASE", + "ENTITY_NAME_TRANSFORMATION_CAPITALIZED_CASE" + ], + "enumDescriptions": [ + "Entity name transformation unspecified.", + "No transformation.", + "Transform to lower case.", + "Transform to upper case.", + "Transform to capitalized case." + ], + "type": "string" + } + }, + "type": "object" + }, "MySqlConnectionProfile": { "description": "Specifies connection parameters required specifically for MySQL databases.", "id": "MySqlConnectionProfile", @@ -3975,6 +4789,33 @@ }, "type": "object" }, + "Position": { + "description": "Issue position.", + "id": "Position", + "properties": { + "column": { + "description": "Issue column number", + "format": "int32", + "type": "integer" + }, + "length": { + "description": "Issue length", + "format": "int32", + "type": "integer" + }, + "line": { + "description": "Issue line number", + "format": "int32", + "type": "integer" + }, + "offset": { + "description": "Issue offset", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "PostgreSqlConnectionProfile": { "description": "Specifies connection parameters required specifically for PostgreSQL databases.", "id": "PostgreSqlConnectionProfile", @@ -4205,16 +5046,28 @@ "properties": {}, "type": "object" }, + "RoundToScale": { + "description": "This allows the data to change scale, for example if the source is 2 digits after the decimal point, specify round to scale value = 2. If for example the value needs to be converted to an integer, use round to scale value = 0.", + "id": "RoundToScale", + "properties": { + "scale": { + "description": "Required. Scale value to be used", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "RulesFile": { "description": "Details of a single rules file.", "id": "RulesFile", "properties": { "rulesContent": { - "description": "The text content of the rules that needs to be converted.", + "description": "Required. The text content of the rules that needs to be converted.", "type": "string" }, "rulesSourceFilename": { - "description": "The filename of the rules that needs to be converted. The filename is used mainly so that future logs of the import rules job contain it, and can therefore be searched by it.", + "description": "Required. The filename of the rules that needs to be converted. The filename is used mainly so that future logs of the import rules job contain it, and can therefore be searched by it.", "type": "string" } }, @@ -4258,11 +5111,11 @@ "type": "boolean" }, "destinationConnectionProfile": { - "description": "Fully qualified (Uri) name of the destination connection profile.", + "description": "Optional. Fully qualified (Uri) name of the destination connection profile.", "type": "string" }, "sourceConnectionProfile": { - "description": "Fully qualified (Uri) name of the source connection profile.", + "description": "Optional. Fully qualified (Uri) name of the source connection profile.", "type": "string" } }, @@ -4273,7 +5126,8 @@ "id": "SeedJobDetails", "properties": { "connectionProfile": { - "description": "The connection profile which was used for the seed job.", + "description": "Output only. The connection profile which was used for the seed job.", + "readOnly": true, "type": "string" } }, @@ -4339,6 +5193,200 @@ }, "type": "object" }, + "SetTablePrimaryKey": { + "description": "Options to configure rule type SetTablePrimaryKey. The rule is used to specify the columns and name to configure/alter the primary key of a table. The rule filter field can refer to one entity. The rule scope can be one of: Table.", + "id": "SetTablePrimaryKey", + "properties": { + "primaryKey": { + "description": "Optional. Name for the primary key", + "type": "string" + }, + "primaryKeyColumns": { + "description": "Required. List of column names for the primary key", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "SingleColumnChange": { + "description": "Options to configure rule type SingleColumnChange. The rule is used to change the properties of a column. The rule filter field can refer to one entity. The rule scope can be one of: Column. When using this rule, if a field is not specified than the destination column's configuration will be the same as the one in the source column..", + "id": "SingleColumnChange", + "properties": { + "array": { + "description": "Optional. Is the column of array type.", + "type": "boolean" + }, + "arrayLength": { + "description": "Optional. The length of the array, only relevant if the column type is an array.", + "format": "int32", + "type": "integer" + }, + "autoGenerated": { + "description": "Optional. Is the column auto-generated/identity.", + "type": "boolean" + }, + "charset": { + "description": "Optional. Charset override - instead of table level charset.", + "type": "string" + }, + "collation": { + "description": "Optional. Collation override - instead of table level collation.", + "type": "string" + }, + "comment": { + "description": "Optional. Comment associated with the column.", + "type": "string" + }, + "customFeatures": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. Custom engine specific features.", + "type": "object" + }, + "dataType": { + "description": "Optional. Column data type name.", + "type": "string" + }, + "fractionalSecondsPrecision": { + "description": "Optional. Column fractional seconds precision - e.g. 2 as in timestamp (2) - when relevant.", + "format": "int32", + "type": "integer" + }, + "length": { + "description": "Optional. Column length - e.g. 50 as in varchar (50) - when relevant.", + "format": "int64", + "type": "string" + }, + "nullable": { + "description": "Optional. Is the column nullable.", + "type": "boolean" + }, + "precision": { + "description": "Optional. Column precision - e.g. 8 as in double (8,2) - when relevant.", + "format": "int32", + "type": "integer" + }, + "scale": { + "description": "Optional. Column scale - e.g. 2 as in double (8,2) - when relevant.", + "format": "int32", + "type": "integer" + }, + "setValues": { + "description": "Optional. Specifies the list of values allowed in the column.", + "items": { + "type": "string" + }, + "type": "array" + }, + "udt": { + "description": "Optional. Is the column a UDT (User-defined Type).", + "type": "boolean" + } + }, + "type": "object" + }, + "SingleEntityRename": { + "description": "Options to configure rule type SingleEntityRename. The rule is used to rename an entity. The rule filter field can refer to only one entity. The rule scope can be one of: Database, Schema, Table, Column, Constraint, Index, View, Function, Stored Procedure, Materialized View, Sequence, UDT, Synonym", + "id": "SingleEntityRename", + "properties": { + "newName": { + "description": "Required. The new name of the destination entity", + "type": "string" + } + }, + "type": "object" + }, + "SinglePackageChange": { + "description": "Options to configure rule type SinglePackageChange. The rule is used to alter the sql code for a package entities. The rule filter field can refer to one entity. The rule scope can be: Package", + "id": "SinglePackageChange", + "properties": { + "packageBody": { + "description": "Optional. Sql code for package body", + "type": "string" + }, + "packageDescription": { + "description": "Optional. Sql code for package description", + "type": "string" + } + }, + "type": "object" + }, + "SourceNumericFilter": { + "description": "Filter for fixed point number data types such as NUMERIC/NUMBER", + "id": "SourceNumericFilter", + "properties": { + "numericFilterOption": { + "description": "Required. Enum to set the option defining the datatypes numeric filter has to be applied to", + "enum": [ + "NUMERIC_FILTER_OPTION_UNSPECIFIED", + "NUMERIC_FILTER_OPTION_ALL", + "NUMERIC_FILTER_OPTION_LIMIT", + "NUMERIC_FILTER_OPTION_LIMITLESS" + ], + "enumDescriptions": [ + "Numeric filter option unspecified", + "Numeric filter option that matches all numeric columns.", + "Numeric filter option that matches columns having numeric datatypes with specified precision and scale within the limited range of filter.", + "Numeric filter option that matches only the numeric columns with no precision and scale specified." + ], + "type": "string" + }, + "sourceMaxPrecisionFilter": { + "description": "Optional. The filter will match columns with precision smaller than or equal to this number.", + "format": "int32", + "type": "integer" + }, + "sourceMaxScaleFilter": { + "description": "Optional. The filter will match columns with scale smaller than or equal to this number.", + "format": "int32", + "type": "integer" + }, + "sourceMinPrecisionFilter": { + "description": "Optional. The filter will match columns with precision greater than or equal to this number.", + "format": "int32", + "type": "integer" + }, + "sourceMinScaleFilter": { + "description": "Optional. The filter will match columns with scale greater than or equal to this number.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "SourceSqlChange": { + "description": "Options to configure rule type SourceSqlChange. The rule is used to alter the sql code for database entities. The rule filter field can refer to one entity. The rule scope can be: StoredProcedure, Function, Trigger, View", + "id": "SourceSqlChange", + "properties": { + "sqlCode": { + "description": "Required. Sql code for source (stored procedure, function, trigger or view)", + "type": "string" + } + }, + "type": "object" + }, + "SourceTextFilter": { + "description": "Filter for text-based data types like varchar.", + "id": "SourceTextFilter", + "properties": { + "sourceMaxLengthFilter": { + "description": "Optional. The filter will match columns with length smaller than or equal to this number.", + "format": "int64", + "type": "string" + }, + "sourceMinLengthFilter": { + "description": "Optional. The filter will match columns with length greater than or equal to this number.", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "SqlAclEntry": { "description": "An entry for an Access Control list.", "id": "SqlAclEntry", @@ -4688,6 +5736,29 @@ }, "type": "object" }, + "UDTEntity": { + "description": "UDT's parent is a schema.", + "id": "UDTEntity", + "properties": { + "customFeatures": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Custom engine specific features.", + "type": "object" + }, + "udtBody": { + "description": "The SQL code which creates the udt body.", + "type": "string" + }, + "udtSqlCode": { + "description": "The SQL code which creates the udt.", + "type": "string" + } + }, + "type": "object" + }, "UserPassword": { "description": "The username/password for a database user. Used for specifying initial users at cluster creation time.", "id": "UserPassword", @@ -4708,10 +5779,99 @@ }, "type": "object" }, + "ValueListFilter": { + "description": "A list of values to filter by in ConditionalColumnSetValue", + "id": "ValueListFilter", + "properties": { + "ignoreCase": { + "description": "Required. Whether to ignore case when filtering by values. Defaults to false", + "type": "boolean" + }, + "valuePresentList": { + "description": "Required. Indicates whether the filter matches rows with values that are present in the list or those with values not present in it.", + "enum": [ + "VALUE_PRESENT_IN_LIST_UNSPECIFIED", + "VALUE_PRESENT_IN_LIST_IF_VALUE_LIST", + "VALUE_PRESENT_IN_LIST_IF_VALUE_NOT_LIST" + ], + "enumDescriptions": [ + "Value present in list unspecified", + "If the source value is in the supplied list at value_list", + "If the source value is not in the supplied list at value_list" + ], + "type": "string" + }, + "values": { + "description": "Required. The list to be used to filter by", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ValueTransformation": { + "description": "Description of data transformation during migration as part of the ConditionalColumnSetValue.", + "id": "ValueTransformation", + "properties": { + "applyHash": { + "$ref": "ApplyHash", + "description": "Optional. Applies a hash function on the data" + }, + "assignMaxValue": { + "$ref": "Empty", + "description": "Optional. Set to max_value - if integer or numeric, will use int.maxvalue, etc" + }, + "assignMinValue": { + "$ref": "Empty", + "description": "Optional. Set to min_value - if integer or numeric, will use int.minvalue, etc" + }, + "assignNull": { + "$ref": "Empty", + "description": "Optional. Set to null" + }, + "assignSpecificValue": { + "$ref": "AssignSpecificValue", + "description": "Optional. Set to a specific value (value is converted to fit the target data type)" + }, + "doubleComparison": { + "$ref": "DoubleComparisonFilter", + "description": "Optional. Filter on relation between source value and compare value of type double." + }, + "intComparison": { + "$ref": "IntComparisonFilter", + "description": "Optional. Filter on relation between source value and compare value of type integer." + }, + "isNull": { + "$ref": "Empty", + "description": "Optional. Value is null" + }, + "roundScale": { + "$ref": "RoundToScale", + "description": "Optional. Allows the data to change scale" + }, + "valueList": { + "$ref": "ValueListFilter", + "description": "Optional. Value is found in the specified list." + } + }, + "type": "object" + }, "VerifyMigrationJobRequest": { "description": "Request message for 'VerifyMigrationJob' request.", "id": "VerifyMigrationJobRequest", - "properties": {}, + "properties": { + "migrationJob": { + "$ref": "MigrationJob", + "description": "Optional. The changed migration job parameters to verify. It will not update the migration job." + }, + "updateMask": { + "description": "Optional. Field mask is used to specify the changed fields to be verified. It will not update the migration job.", + "format": "google-fieldmask", + "type": "string" + } + }, "type": "object" }, "ViewEntity": { diff --git a/datamigration/v1/datamigration-gen.go b/datamigration/v1/datamigration-gen.go index 88df6d82a7f..6c0ad8e815f 100644 --- a/datamigration/v1/datamigration-gen.go +++ b/datamigration/v1/datamigration-gen.go @@ -319,29 +319,37 @@ func (s *AlloyDbSettings) MarshalJSON() ([]byte, error) { // ApplyConversionWorkspaceRequest: Request message for // 'ApplyConversionWorkspace' request. type ApplyConversionWorkspaceRequest struct { - // ConnectionProfile: Fully qualified (Uri) name of the destination - // connection profile. + // AutoCommit: Optional. Specifies whether the conversion workspace is + // to be committed automatically after the apply. + AutoCommit bool `json:"autoCommit,omitempty"` + + // ConnectionProfile: Optional. Fully qualified (Uri) name of the + // destination connection profile. ConnectionProfile string `json:"connectionProfile,omitempty"` + // DryRun: Optional. Only validates the apply process, but doesn't + // change the destination database. Only works for PostgreSQL + // destination connection profile. + DryRun bool `json:"dryRun,omitempty"` + // Filter: Filter which entities to apply. Leaving this field empty will // apply all of the entities. Supports Google AIP 160 based filtering. Filter string `json:"filter,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConnectionProfile") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "AutoCommit") to + // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ConnectionProfile") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "AutoCommit") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } @@ -351,13 +359,42 @@ func (s *ApplyConversionWorkspaceRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ApplyHash: Apply a hash function on the value. +type ApplyHash struct { + // UuidFromBytes: Optional. Generate UUID from the data's byte array + UuidFromBytes *Empty `json:"uuidFromBytes,omitempty"` + + // ForceSendFields is a list of field names (e.g. "UuidFromBytes") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "UuidFromBytes") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ApplyHash) MarshalJSON() ([]byte, error) { + type NoMethod ApplyHash + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ApplyJobDetails: Details regarding an Apply background job. type ApplyJobDetails struct { - // ConnectionProfile: The connection profile which was used for the - // apply job. + // ConnectionProfile: Output only. The connection profile which was used + // for the apply job. ConnectionProfile string `json:"connectionProfile,omitempty"` - // Filter: AIP-160 based filter used to specify the entities to apply + // Filter: Output only. AIP-160 based filter used to specify the + // entities to apply Filter string `json:"filter,omitempty"` // ForceSendFields is a list of field names (e.g. "ConnectionProfile") @@ -384,6 +421,35 @@ func (s *ApplyJobDetails) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AssignSpecificValue: Set to a specific value (value is converted to +// fit the target data type) +type AssignSpecificValue struct { + // Value: Required. Specific value to be assigned + Value string `json:"value,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Value") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Value") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AssignSpecificValue) MarshalJSON() ([]byte, error) { + type NoMethod AssignSpecificValue + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AuditConfig: Specifies the audit configuration for a service. The // configuration determines which permission types are logged, and what // identities, if any, are exempted from logging. An AuditConfig must @@ -483,16 +549,16 @@ func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { // BackgroundJobLogEntry: Execution log of a background job. type BackgroundJobLogEntry struct { - // ApplyJobDetails: Apply job details. + // ApplyJobDetails: Output only. Apply job details. ApplyJobDetails *ApplyJobDetails `json:"applyJobDetails,omitempty"` - // CompletionComment: Job completion comment, such as how many entities - // were seeded, how many warnings were found during conversion, and - // similar information. + // CompletionComment: Output only. Job completion comment, such as how + // many entities were seeded, how many warnings were found during + // conversion, and similar information. CompletionComment string `json:"completionComment,omitempty"` - // CompletionState: Job completion state, i.e. the final state after the - // job completed. + // CompletionState: Output only. Job completion state, i.e. the final + // state after the job completed. // // Possible values: // "JOB_COMPLETION_STATE_UNSPECIFIED" - The status is not specified. @@ -501,7 +567,7 @@ type BackgroundJobLogEntry struct { // "FAILED" - Error. CompletionState string `json:"completionState,omitempty"` - // ConvertJobDetails: Convert job details. + // ConvertJobDetails: Output only. Convert job details. ConvertJobDetails *ConvertJobDetails `json:"convertJobDetails,omitempty"` // FinishTime: The timestamp when the background job was finished. @@ -510,7 +576,7 @@ type BackgroundJobLogEntry struct { // Id: The background job log entry ID. Id string `json:"id,omitempty"` - // ImportRulesJobDetails: Import rules job details. + // ImportRulesJobDetails: Output only. Import rules job details. ImportRulesJobDetails *ImportRulesJobDetails `json:"importRulesJobDetails,omitempty"` // JobType: The type of job that was executed. @@ -528,11 +594,12 @@ type BackgroundJobLogEntry struct { // mapping rules from an external source such as an ora2pg config file. JobType string `json:"jobType,omitempty"` - // RequestAutocommit: Whether the client requested the conversion - // workspace to be committed after a successful completion of the job. + // RequestAutocommit: Output only. Whether the client requested the + // conversion workspace to be committed after a successful completion of + // the job. RequestAutocommit bool `json:"requestAutocommit,omitempty"` - // SeedJobDetails: Seed job details. + // SeedJobDetails: Output only. Seed job details. SeedJobDetails *SeedJobDetails `json:"seedJobDetails,omitempty"` // StartTime: The timestamp when the background job was started. @@ -955,6 +1022,51 @@ func (s *CommitConversionWorkspaceRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ConditionalColumnSetValue: Options to configure rule type +// ConditionalColumnSetValue. The rule is used to transform the data +// which is being replicated/migrated. The rule filter field can refer +// to one or more entities. The rule scope can be one of: Column. +type ConditionalColumnSetValue struct { + // CustomFeatures: Optional. Custom engine specific features. + CustomFeatures googleapi.RawMessage `json:"customFeatures,omitempty"` + + // SourceNumericFilter: Optional. Optional filter on source column + // precision and scale. Used for fixed point numbers such as + // NUMERIC/NUMBER data types. + SourceNumericFilter *SourceNumericFilter `json:"sourceNumericFilter,omitempty"` + + // SourceTextFilter: Optional. Optional filter on source column length. + // Used for text based data types like varchar. + SourceTextFilter *SourceTextFilter `json:"sourceTextFilter,omitempty"` + + // ValueTransformation: Required. Description of data transformation + // during migration. + ValueTransformation *ValueTransformation `json:"valueTransformation,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CustomFeatures") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CustomFeatures") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ConditionalColumnSetValue) MarshalJSON() ([]byte, error) { + type NoMethod ConditionalColumnSetValue + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ConnectionProfile: A connection profile definition. type ConnectionProfile struct { // Alloydb: An AlloyDB cluster connection profile. @@ -1122,13 +1234,13 @@ type ConversionWorkspace struct { // Destination: Required. The destination engine details. Destination *DatabaseEngineInfo `json:"destination,omitempty"` - // DisplayName: The display name for the workspace. + // DisplayName: Optional. The display name for the workspace. DisplayName string `json:"displayName,omitempty"` - // GlobalSettings: A generic list of settings for the workspace. The - // settings are database pair dependant and can indicate default - // behavior for the mapping rules engine or turn on or off specific - // features. Such examples can be: + // GlobalSettings: Optional. A generic list of settings for the + // workspace. The settings are database pair dependant and can indicate + // default behavior for the mapping rules engine or turn on or off + // specific features. Such examples can be: // convert_foreign_key_to_interleave=true, skip_triggers=false, // ignore_non_table_synonyms=true GlobalSettings map[string]string `json:"globalSettings,omitempty"` @@ -1218,12 +1330,19 @@ func (s *ConversionWorkspaceInfo) MarshalJSON() ([]byte, error) { // ConvertConversionWorkspaceRequest: Request message for // 'ConvertConversionWorkspace' request. type ConvertConversionWorkspaceRequest struct { - // AutoCommit: Specifies whether the conversion workspace is to be - // committed automatically after the conversion. + // AutoCommit: Optional. Specifies whether the conversion workspace is + // to be committed automatically after the conversion. AutoCommit bool `json:"autoCommit,omitempty"` - // Filter: Filter the entities to convert. Leaving this field empty will - // convert all of the entities. Supports Google AIP-160 style filtering. + // ConvertFullPath: Optional. Automatically convert the full entity path + // for each entity specified by the filter. For example, if the filter + // specifies a table, that table schema (and database if there is one) + // will also be converted. + ConvertFullPath bool `json:"convertFullPath,omitempty"` + + // Filter: Optional. Filter the entities to convert. Leaving this field + // empty will convert all of the entities. Supports Google AIP-160 style + // filtering. Filter string `json:"filter,omitempty"` // ForceSendFields is a list of field names (e.g. "AutoCommit") to @@ -1251,7 +1370,8 @@ func (s *ConvertConversionWorkspaceRequest) MarshalJSON() ([]byte, error) { // ConvertJobDetails: Details regarding a Convert background job. type ConvertJobDetails struct { - // Filter: AIP-160 based filter used to specify the entities to convert + // Filter: Output only. AIP-160 based filter used to specify the + // entities to convert Filter string `json:"filter,omitempty"` // ForceSendFields is a list of field names (e.g. "Filter") to @@ -1277,6 +1397,42 @@ func (s *ConvertJobDetails) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ConvertRowIdToColumn: Options to configure rule type +// ConvertROWIDToColumn. The rule is used to add column rowid to +// destination tables based on an Oracle rowid function/property. The +// rule filter field can refer to one or more entities. The rule scope +// can be one of: Table. This rule requires additional filter to be +// specified beyond the basic rule filter field, which is whether or not +// to work on tables which already have a primary key defined. +type ConvertRowIdToColumn struct { + // OnlyIfNoPrimaryKey: Required. Only work on tables without primary key + // defined + OnlyIfNoPrimaryKey bool `json:"onlyIfNoPrimaryKey,omitempty"` + + // ForceSendFields is a list of field names (e.g. "OnlyIfNoPrimaryKey") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "OnlyIfNoPrimaryKey") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *ConvertRowIdToColumn) MarshalJSON() ([]byte, error) { + type NoMethod ConvertRowIdToColumn + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // DatabaseEngineInfo: The type and version of a source or destination // database. type DatabaseEngineInfo struct { @@ -1320,12 +1476,21 @@ func (s *DatabaseEngineInfo) MarshalJSON() ([]byte, error) { // entities. The message contains the entity name, the name of its // parent, the entity type, and the specific details per entity type. type DatabaseEntity struct { + // Database: Database. + Database *DatabaseInstanceEntity `json:"database,omitempty"` + // DatabaseFunction: Function. DatabaseFunction *FunctionEntity `json:"databaseFunction,omitempty"` // DatabasePackage: Package. DatabasePackage *PackageEntity `json:"databasePackage,omitempty"` + // EntityDdl: Details about the entity DDL script. Multiple DDL scripts + // are provided for child entities such as a table entity will have one + // DDL for the table with additional DDLs for each index, constraint and + // such. + EntityDdl []*EntityDdl `json:"entityDdl,omitempty"` + // EntityType: The type of the database entity (table, view, index, // ...). // @@ -1349,6 +1514,9 @@ type DatabaseEntity struct { // "DATABASE_ENTITY_TYPE_DATABASE" - Database. EntityType string `json:"entityType,omitempty"` + // Issues: Details about the various issues found for the entity. + Issues []*EntityIssue `json:"issues,omitempty"` + // Mappings: Details about entity mappings. For source tree entities, // this holds the draft entities which were generated by the mapping // rules. For draft tree entities, this holds the source entities which @@ -1356,6 +1524,9 @@ type DatabaseEntity struct { // have no mapping details. Mappings []*EntityMapping `json:"mappings,omitempty"` + // MaterializedView: Materialized view. + MaterializedView *MaterializedViewEntity `json:"materializedView,omitempty"` + // ParentEntity: The full name of the parent entity (e.g. schema name). ParentEntity string `json:"parentEntity,omitempty"` @@ -1388,10 +1559,42 @@ type DatabaseEntity struct { // database. Tree string `json:"tree,omitempty"` + // Udt: UDT. + Udt *UDTEntity `json:"udt,omitempty"` + // View: View. View *ViewEntity `json:"view,omitempty"` - // ForceSendFields is a list of field names (e.g. "DatabaseFunction") to + // ForceSendFields is a list of field names (e.g. "Database") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Database") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DatabaseEntity) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseEntity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// DatabaseInstanceEntity: DatabaseInstance acts as a parent entity to +// other database entities. +type DatabaseInstanceEntity struct { + // CustomFeatures: Custom engine specific features. + CustomFeatures googleapi.RawMessage `json:"customFeatures,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CustomFeatures") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1399,7 +1602,7 @@ type DatabaseEntity struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DatabaseFunction") to + // NullFields is a list of field names (e.g. "CustomFeatures") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -1409,8 +1612,8 @@ type DatabaseEntity struct { NullFields []string `json:"-"` } -func (s *DatabaseEntity) MarshalJSON() ([]byte, error) { - type NoMethod DatabaseEntity +func (s *DatabaseInstanceEntity) MarshalJSON() ([]byte, error) { + type NoMethod DatabaseInstanceEntity raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } @@ -1533,6 +1736,64 @@ func (s *DescribeDatabaseEntitiesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// DoubleComparisonFilter: Filter based on relation between source value +// and compare value of type double in ConditionalColumnSetValue +type DoubleComparisonFilter struct { + // Value: Required. Double compare value to be used + Value float64 `json:"value,omitempty"` + + // ValueComparison: Required. Relation between source value and compare + // value + // + // Possible values: + // "VALUE_COMPARISON_UNSPECIFIED" - Value comparison unspecified. + // "VALUE_COMPARISON_IF_VALUE_SMALLER_THAN" - Value is smaller than + // the Compare value. + // "VALUE_COMPARISON_IF_VALUE_SMALLER_EQUAL_THAN" - Value is smaller + // or equal than the Compare value. + // "VALUE_COMPARISON_IF_VALUE_LARGER_THAN" - Value is larger than the + // Compare value. + // "VALUE_COMPARISON_IF_VALUE_LARGER_EQUAL_THAN" - Value is larger or + // equal than the Compare value. + ValueComparison string `json:"valueComparison,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Value") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Value") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *DoubleComparisonFilter) MarshalJSON() ([]byte, error) { + type NoMethod DoubleComparisonFilter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *DoubleComparisonFilter) UnmarshalJSON(data []byte) error { + type NoMethod DoubleComparisonFilter + var s1 struct { + Value gensupport.JSONFloat64 `json:"value"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.Value = float64(s1.Value) + return nil +} + // DumpFlag: Dump flag definition. type DumpFlag struct { // Name: The name of the flag @@ -1636,14 +1897,18 @@ func (s *EncryptionConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// EntityMapping: Details of the mappings of a database entity. -type EntityMapping struct { - // DraftEntity: Target entity full name. The draft entity can also - // include a column, index or constraint using the same naming notation - // schema.table.column. - DraftEntity string `json:"draftEntity,omitempty"` +// EntityDdl: A single DDL statement for a specific entity +type EntityDdl struct { + // Ddl: The actual ddl code. + Ddl string `json:"ddl,omitempty"` - // DraftType: Type of draft entity. + // DdlType: Type of DDL (Create, Alter). + DdlType string `json:"ddlType,omitempty"` + + // Entity: The name of the database entity the ddl refers to. + Entity string `json:"entity,omitempty"` + + // EntityType: The entity type (if the DDL is for a sub entity). // // Possible values: // "DATABASE_ENTITY_TYPE_UNSPECIFIED" - Unspecified database entity @@ -1663,21 +1928,43 @@ type EntityMapping struct { // "DATABASE_ENTITY_TYPE_UDT" - UDT. // "DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW" - Materialized View. // "DATABASE_ENTITY_TYPE_DATABASE" - Database. - DraftType string `json:"draftType,omitempty"` + EntityType string `json:"entityType,omitempty"` - // MappingLog: Entity mapping log entries. Multiple rules can be - // effective and contribute changes to a converted entity, such as a - // rule can handle the entity name, another rule can handle an entity - // type. In addition, rules which did not change the entity are also - // logged along with the reason preventing them to do so. - MappingLog []*EntityMappingLogEntry `json:"mappingLog,omitempty"` + // IssueId: EntityIssues found for this ddl. + IssueId []string `json:"issueId,omitempty"` - // SourceEntity: Source entity full name. The source entity can also be - // a column, index or constraint using the same naming notation - // schema.table.column. - SourceEntity string `json:"sourceEntity,omitempty"` + // ForceSendFields is a list of field names (e.g. "Ddl") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` - // SourceType: Type of source entity. + // NullFields is a list of field names (e.g. "Ddl") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EntityDdl) MarshalJSON() ([]byte, error) { + type NoMethod EntityDdl + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EntityIssue: Issue related to the entity. +type EntityIssue struct { + // Code: Error/Warning code + Code string `json:"code,omitempty"` + + // Ddl: The ddl which caused the issue, if relevant. + Ddl string `json:"ddl,omitempty"` + + // EntityType: The entity type (if the DDL is for a sub entity). // // Possible values: // "DATABASE_ENTITY_TYPE_UNSPECIFIED" - Unspecified database entity @@ -1697,9 +1984,36 @@ type EntityMapping struct { // "DATABASE_ENTITY_TYPE_UDT" - UDT. // "DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW" - Materialized View. // "DATABASE_ENTITY_TYPE_DATABASE" - Database. - SourceType string `json:"sourceType,omitempty"` + EntityType string `json:"entityType,omitempty"` - // ForceSendFields is a list of field names (e.g. "DraftEntity") to + // Id: Unique Issue ID. + Id string `json:"id,omitempty"` + + // Message: Issue detailed message + Message string `json:"message,omitempty"` + + // Position: The position of the issue found, if relevant. + Position *Position `json:"position,omitempty"` + + // Severity: Severity of the issue + // + // Possible values: + // "ISSUE_SEVERITY_UNSPECIFIED" - Unspecified issue severity + // "ISSUE_SEVERITY_INFO" - Info + // "ISSUE_SEVERITY_WARNING" - Warning + // "ISSUE_SEVERITY_ERROR" - Error + Severity string `json:"severity,omitempty"` + + // Type: The type of the issue. + // + // Possible values: + // "ISSUE_TYPE_UNSPECIFIED" - Unspecified issue type. + // "ISSUE_TYPE_DDL" - Issue originated from the DDL + // "ISSUE_TYPE_APPLY" - Issue originated during the apply process + // "ISSUE_TYPE_CONVERT" - Issue originated during the convert process + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1707,32 +2021,118 @@ type EntityMapping struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DraftEntity") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *EntityMapping) MarshalJSON() ([]byte, error) { - type NoMethod EntityMapping +func (s *EntityIssue) MarshalJSON() ([]byte, error) { + type NoMethod EntityIssue raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// EntityMappingLogEntry: A single record of a rule which was used for a -// mapping. -type EntityMappingLogEntry struct { - // MappingComment: Comment. - MappingComment string `json:"mappingComment,omitempty"` - - // RuleId: Which rule caused this log entry. - RuleId string `json:"ruleId,omitempty"` +// EntityMapping: Details of the mappings of a database entity. +type EntityMapping struct { + // DraftEntity: Target entity full name. The draft entity can also + // include a column, index or constraint using the same naming notation + // schema.table.column. + DraftEntity string `json:"draftEntity,omitempty"` - // RuleRevisionId: Rule revision ID. - RuleRevisionId string `json:"ruleRevisionId,omitempty"` + // DraftType: Type of draft entity. + // + // Possible values: + // "DATABASE_ENTITY_TYPE_UNSPECIFIED" - Unspecified database entity + // type. + // "DATABASE_ENTITY_TYPE_SCHEMA" - Schema. + // "DATABASE_ENTITY_TYPE_TABLE" - Table. + // "DATABASE_ENTITY_TYPE_COLUMN" - Column. + // "DATABASE_ENTITY_TYPE_CONSTRAINT" - Constraint. + // "DATABASE_ENTITY_TYPE_INDEX" - Index. + // "DATABASE_ENTITY_TYPE_TRIGGER" - Trigger. + // "DATABASE_ENTITY_TYPE_VIEW" - View. + // "DATABASE_ENTITY_TYPE_SEQUENCE" - Sequence. + // "DATABASE_ENTITY_TYPE_STORED_PROCEDURE" - Stored Procedure. + // "DATABASE_ENTITY_TYPE_FUNCTION" - Function. + // "DATABASE_ENTITY_TYPE_SYNONYM" - Synonym. + // "DATABASE_ENTITY_TYPE_DATABASE_PACKAGE" - Package. + // "DATABASE_ENTITY_TYPE_UDT" - UDT. + // "DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW" - Materialized View. + // "DATABASE_ENTITY_TYPE_DATABASE" - Database. + DraftType string `json:"draftType,omitempty"` + + // MappingLog: Entity mapping log entries. Multiple rules can be + // effective and contribute changes to a converted entity, such as a + // rule can handle the entity name, another rule can handle an entity + // type. In addition, rules which did not change the entity are also + // logged along with the reason preventing them to do so. + MappingLog []*EntityMappingLogEntry `json:"mappingLog,omitempty"` + + // SourceEntity: Source entity full name. The source entity can also be + // a column, index or constraint using the same naming notation + // schema.table.column. + SourceEntity string `json:"sourceEntity,omitempty"` + + // SourceType: Type of source entity. + // + // Possible values: + // "DATABASE_ENTITY_TYPE_UNSPECIFIED" - Unspecified database entity + // type. + // "DATABASE_ENTITY_TYPE_SCHEMA" - Schema. + // "DATABASE_ENTITY_TYPE_TABLE" - Table. + // "DATABASE_ENTITY_TYPE_COLUMN" - Column. + // "DATABASE_ENTITY_TYPE_CONSTRAINT" - Constraint. + // "DATABASE_ENTITY_TYPE_INDEX" - Index. + // "DATABASE_ENTITY_TYPE_TRIGGER" - Trigger. + // "DATABASE_ENTITY_TYPE_VIEW" - View. + // "DATABASE_ENTITY_TYPE_SEQUENCE" - Sequence. + // "DATABASE_ENTITY_TYPE_STORED_PROCEDURE" - Stored Procedure. + // "DATABASE_ENTITY_TYPE_FUNCTION" - Function. + // "DATABASE_ENTITY_TYPE_SYNONYM" - Synonym. + // "DATABASE_ENTITY_TYPE_DATABASE_PACKAGE" - Package. + // "DATABASE_ENTITY_TYPE_UDT" - UDT. + // "DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW" - Materialized View. + // "DATABASE_ENTITY_TYPE_DATABASE" - Database. + SourceType string `json:"sourceType,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DraftEntity") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DraftEntity") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EntityMapping) MarshalJSON() ([]byte, error) { + type NoMethod EntityMapping + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// EntityMappingLogEntry: A single record of a rule which was used for a +// mapping. +type EntityMappingLogEntry struct { + // MappingComment: Comment. + MappingComment string `json:"mappingComment,omitempty"` + + // RuleId: Which rule caused this log entry. + RuleId string `json:"ruleId,omitempty"` + + // RuleRevisionId: Rule revision ID. + RuleRevisionId string `json:"ruleRevisionId,omitempty"` // ForceSendFields is a list of field names (e.g. "MappingComment") to // unconditionally include in API requests. By default, fields with @@ -1758,6 +2158,38 @@ func (s *EntityMappingLogEntry) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// EntityMove: Options to configure rule type EntityMove. The rule is +// used to move an entity to a new schema. The rule filter field can +// refer to one or more entities. The rule scope can be one of: Table, +// Column, Constraint, Index, View, Function, Stored Procedure, +// Materialized View, Sequence, UDT +type EntityMove struct { + // NewSchema: Required. The new schema + NewSchema string `json:"newSchema,omitempty"` + + // ForceSendFields is a list of field names (e.g. "NewSchema") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NewSchema") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EntityMove) MarshalJSON() ([]byte, error) { + type NoMethod EntityMove + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Expr: Represents a textual expression in the Common Expression // Language (CEL) syntax. CEL is a C-like expression language. The // syntax and semantics of CEL are documented at @@ -1856,6 +2288,44 @@ func (s *FetchStaticIpsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// FilterTableColumns: Options to configure rule type +// FilterTableColumns. The rule is used to filter the list of columns to +// include or exclude from a table. The rule filter field can refer to +// one entity. The rule scope can be: Table Only one of the two lists +// can be specified for the rule. +type FilterTableColumns struct { + // ExcludeColumns: Optional. List of columns to be excluded for a + // particular table. + ExcludeColumns []string `json:"excludeColumns,omitempty"` + + // IncludeColumns: Optional. List of columns to be included for a + // particular table. + IncludeColumns []string `json:"includeColumns,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ExcludeColumns") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ExcludeColumns") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *FilterTableColumns) MarshalJSON() ([]byte, error) { + type NoMethod FilterTableColumns + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ForwardSshTunnelConnectivity: Forward SSH Tunnel connectivity. type ForwardSshTunnelConnectivity struct { // Hostname: Required. Hostname for the SSH tunnel. @@ -2067,14 +2537,14 @@ func (s *GoogleCloudClouddmsV1OperationMetadata) MarshalJSON() ([]byte, error) { // ImportMappingRulesRequest: Request message for 'ImportMappingRules' // request. type ImportMappingRulesRequest struct { - // AutoCommit: Should the conversion workspace be committed + // AutoCommit: Required. Should the conversion workspace be committed // automatically after the import operation. AutoCommit bool `json:"autoCommit,omitempty"` - // RulesFiles: One or more rules files. + // RulesFiles: Required. One or more rules files. RulesFiles []*RulesFile `json:"rulesFiles,omitempty"` - // RulesFormat: The format of the rules content file. + // RulesFormat: Required. The format of the rules content file. // // Possible values: // "IMPORT_RULES_FILE_FORMAT_UNSPECIFIED" - Unspecified rules format. @@ -2110,7 +2580,7 @@ func (s *ImportMappingRulesRequest) MarshalJSON() ([]byte, error) { // ImportRulesJobDetails: Details regarding an Import Rules background // job. type ImportRulesJobDetails struct { - // FileFormat: The requested file format. + // FileFormat: Output only. The requested file format. // // Possible values: // "IMPORT_RULES_FILE_FORMAT_UNSPECIFIED" - Unspecified rules format. @@ -2120,7 +2590,7 @@ type ImportRulesJobDetails struct { // configuration file. FileFormat string `json:"fileFormat,omitempty"` - // Files: File names used for the import rules job. + // Files: Output only. File names used for the import rules job. Files []string `json:"files,omitempty"` // ForceSendFields is a list of field names (e.g. "FileFormat") to @@ -2189,6 +2659,50 @@ func (s *IndexEntity) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// IntComparisonFilter: Filter based on relation between source value +// and compare value of type integer in ConditionalColumnSetValue +type IntComparisonFilter struct { + // Value: Required. Integer compare value to be used + Value int64 `json:"value,omitempty,string"` + + // ValueComparison: Required. Relation between source value and compare + // value + // + // Possible values: + // "VALUE_COMPARISON_UNSPECIFIED" - Value comparison unspecified. + // "VALUE_COMPARISON_IF_VALUE_SMALLER_THAN" - Value is smaller than + // the Compare value. + // "VALUE_COMPARISON_IF_VALUE_SMALLER_EQUAL_THAN" - Value is smaller + // or equal than the Compare value. + // "VALUE_COMPARISON_IF_VALUE_LARGER_THAN" - Value is larger than the + // Compare value. + // "VALUE_COMPARISON_IF_VALUE_LARGER_EQUAL_THAN" - Value is larger or + // equal than the Compare value. + ValueComparison string `json:"valueComparison,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Value") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Value") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *IntComparisonFilter) MarshalJSON() ([]byte, error) { + type NoMethod IntComparisonFilter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListConnectionProfilesResponse: Response message for // 'ListConnectionProfiles' request. type ListConnectionProfilesResponse struct { @@ -2311,6 +2825,44 @@ func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ListMappingRulesResponse: Response message for +// 'ListMappingRulesRequest' request. +type ListMappingRulesResponse struct { + // MappingRules: The list of conversion workspace mapping rules. + MappingRules []*MappingRule `json:"mappingRules,omitempty"` + + // NextPageToken: A token which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "MappingRules") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MappingRules") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ListMappingRulesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListMappingRulesResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ListMigrationJobsResponse: Response message for 'ListMigrationJobs' // request. type ListMigrationJobsResponse struct { @@ -2509,89 +3061,307 @@ func (s *MachineConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// MigrationJob: Represents a Database Migration Service migration job -// object. -type MigrationJob struct { - // CmekKeyName: The CMEK (customer-managed encryption key) fully - // qualified key name used for the migration job. This field supports - // all migration jobs types except for: * Mysql to Mysql (use the cmek - // field in the cloudsql connection profile instead). * PostrgeSQL to - // PostgreSQL (use the cmek field in the cloudsql connection profile - // instead). * PostgreSQL to AlloyDB (use the kms_key_name field in the - // alloydb connection profile instead). Each Cloud CMEK key has the - // following format: - // projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_ - // NAME] - CmekKeyName string `json:"cmekKeyName,omitempty"` - - // ConversionWorkspace: The conversion workspace used by the migration. - ConversionWorkspace *ConversionWorkspaceInfo `json:"conversionWorkspace,omitempty"` - - // CreateTime: Output only. The timestamp when the migration job - // resource was created. A timestamp in RFC3339 UTC "Zulu" format, - // accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z". - CreateTime string `json:"createTime,omitempty"` - - // Destination: Required. The resource name (URI) of the destination - // connection profile. - Destination string `json:"destination,omitempty"` +// MappingRule: Definition of a transformation that is to be applied to +// a group of entities in the source schema. Several such +// transformations can be applied to an entity sequentially to define +// the corresponding entity in the target schema. +type MappingRule struct { + // ConditionalColumnSetValue: Optional. Rule to specify how the data + // contained in a column should be transformed (such as trimmed, + // rounded, etc) provided that the data meets certain criteria. + ConditionalColumnSetValue *ConditionalColumnSetValue `json:"conditionalColumnSetValue,omitempty"` - // DestinationDatabase: The database engine type and provider of the - // destination. - DestinationDatabase *DatabaseType `json:"destinationDatabase,omitempty"` + // ConvertRowidColumn: Optional. Rule to specify how multiple tables + // should be converted with an additional rowid column. + ConvertRowidColumn *ConvertRowIdToColumn `json:"convertRowidColumn,omitempty"` - // DisplayName: The migration job display name. + // DisplayName: Optional. A human readable name DisplayName string `json:"displayName,omitempty"` - // DumpFlags: The initial dump flags. This field and the "dump_path" - // field are mutually exclusive. - DumpFlags *DumpFlags `json:"dumpFlags,omitempty"` + // EntityMove: Optional. Rule to specify how multiple entities should be + // relocated into a different schema. + EntityMove *EntityMove `json:"entityMove,omitempty"` - // DumpPath: The path to the dump file in Google Cloud Storage, in the - // format: (gs://[BUCKET_NAME]/[OBJECT_NAME]). This field and the - // "dump_flags" field are mutually exclusive. - DumpPath string `json:"dumpPath,omitempty"` + // Filter: Required. The rule filter + Filter *MappingRuleFilter `json:"filter,omitempty"` - // Duration: Output only. The duration of the migration job (in - // seconds). A duration in seconds with up to nine fractional digits, - // terminated by 's'. Example: "3.5s". - Duration string `json:"duration,omitempty"` + // FilterTableColumns: Optional. Rule to specify the list of columns to + // include or exclude from a table. + FilterTableColumns *FilterTableColumns `json:"filterTableColumns,omitempty"` - // EndTime: Output only. If the migration job is completed, the time - // when it was completed. - EndTime string `json:"endTime,omitempty"` + // MultiColumnDataTypeChange: Optional. Rule to specify how multiple + // columns should be converted to a different data type. + MultiColumnDataTypeChange *MultiColumnDatatypeChange `json:"multiColumnDataTypeChange,omitempty"` - // Error: Output only. The error details in case of state FAILED. - Error *Status `json:"error,omitempty"` + // MultiEntityRename: Optional. Rule to specify how multiple entities + // should be renamed. + MultiEntityRename *MultiEntityRename `json:"multiEntityRename,omitempty"` - // Filter: This field can be used to select the entities to migrate as - // part of the migration job. It uses AIP-160 notation to select a - // subset of the entities configured on the associated - // conversion-workspace. This field should not be set on migration-jobs - // that are not associated with a conversion workspace. - Filter string `json:"filter,omitempty"` + // Name: Full name of the mapping rule resource, in the form of: + // projects/{project}/locations/{location}/conversionWorkspaces/{set}/map + // pingRule/{rule}. + Name string `json:"name,omitempty"` - // Labels: The resource labels for migration job to use to annotate any - // related underlying resources such as Compute Engine VMs. An object - // containing a list of "key": "value" pairs. Example: `{ "name": - // "wrench", "mass": "1.3kg", "count": "3" }`. - Labels map[string]string `json:"labels,omitempty"` + // RevisionCreateTime: Output only. The timestamp that the revision was + // created. + RevisionCreateTime string `json:"revisionCreateTime,omitempty"` - // Name: The name (URI) of this migration job resource, in the form of: - // projects/{project}/locations/{location}/migrationJobs/{migrationJob}. - Name string `json:"name,omitempty"` + // RevisionId: Output only. The revision ID of the mapping rule. A new + // revision is committed whenever the mapping rule is changed in any + // way. The format is an 8-character hexadecimal string. + RevisionId string `json:"revisionId,omitempty"` - // Phase: Output only. The current migration job phase. + // RuleOrder: Required. The order in which the rule is applied. Lower + // order rules are applied before higher value rules so they may end up + // being overridden. + RuleOrder int64 `json:"ruleOrder,omitempty,string"` + + // RuleScope: Required. The rule scope // // Possible values: - // "PHASE_UNSPECIFIED" - The phase of the migration job is unknown. - // "FULL_DUMP" - The migration job is in the full dump phase. - // "CDC" - The migration job is CDC phase. - // "PROMOTE_IN_PROGRESS" - The migration job is running the promote - // phase. - // "WAITING_FOR_SOURCE_WRITES_TO_STOP" - Only RDS flow - waiting for - // source writes to stop - // "PREPARING_THE_DUMP" - Only RDS flow - the sources writes stopped, + // "DATABASE_ENTITY_TYPE_UNSPECIFIED" - Unspecified database entity + // type. + // "DATABASE_ENTITY_TYPE_SCHEMA" - Schema. + // "DATABASE_ENTITY_TYPE_TABLE" - Table. + // "DATABASE_ENTITY_TYPE_COLUMN" - Column. + // "DATABASE_ENTITY_TYPE_CONSTRAINT" - Constraint. + // "DATABASE_ENTITY_TYPE_INDEX" - Index. + // "DATABASE_ENTITY_TYPE_TRIGGER" - Trigger. + // "DATABASE_ENTITY_TYPE_VIEW" - View. + // "DATABASE_ENTITY_TYPE_SEQUENCE" - Sequence. + // "DATABASE_ENTITY_TYPE_STORED_PROCEDURE" - Stored Procedure. + // "DATABASE_ENTITY_TYPE_FUNCTION" - Function. + // "DATABASE_ENTITY_TYPE_SYNONYM" - Synonym. + // "DATABASE_ENTITY_TYPE_DATABASE_PACKAGE" - Package. + // "DATABASE_ENTITY_TYPE_UDT" - UDT. + // "DATABASE_ENTITY_TYPE_MATERIALIZED_VIEW" - Materialized View. + // "DATABASE_ENTITY_TYPE_DATABASE" - Database. + RuleScope string `json:"ruleScope,omitempty"` + + // SetTablePrimaryKey: Optional. Rule to specify the primary key for a + // table + SetTablePrimaryKey *SetTablePrimaryKey `json:"setTablePrimaryKey,omitempty"` + + // SingleColumnChange: Optional. Rule to specify how a single column is + // converted. + SingleColumnChange *SingleColumnChange `json:"singleColumnChange,omitempty"` + + // SingleEntityRename: Optional. Rule to specify how a single entity + // should be renamed. + SingleEntityRename *SingleEntityRename `json:"singleEntityRename,omitempty"` + + // SinglePackageChange: Optional. Rule to specify how a single package + // is converted. + SinglePackageChange *SinglePackageChange `json:"singlePackageChange,omitempty"` + + // SourceSqlChange: Optional. Rule to change the sql code for an entity, + // for example, function, procedure. + SourceSqlChange *SourceSqlChange `json:"sourceSqlChange,omitempty"` + + // State: Optional. The mapping rule state + // + // Possible values: + // "STATE_UNSPECIFIED" - The state of the mapping rule is unknown. + // "ENABLED" - The rule is enabled. + // "DISABLED" - The rule is disabled. + // "DELETED" - The rule is logically deleted. + State string `json:"state,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "ConditionalColumnSetValue") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. + // "ConditionalColumnSetValue") to include in API requests with the JSON + // null value. By default, fields with empty values are omitted from API + // requests. However, any field with an empty value appearing in + // NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MappingRule) MarshalJSON() ([]byte, error) { + type NoMethod MappingRule + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MappingRuleFilter: A filter defining the entities that a mapping rule +// should be applied to. When more than one field is specified, the rule +// is applied only to entities which match all the fields. +type MappingRuleFilter struct { + // Entities: Optional. The rule should be applied to specific entities + // defined by their fully qualified names. + Entities []string `json:"entities,omitempty"` + + // EntityNameContains: Optional. The rule should be applied to entities + // whose non-qualified name contains the given string. + EntityNameContains string `json:"entityNameContains,omitempty"` + + // EntityNamePrefix: Optional. The rule should be applied to entities + // whose non-qualified name starts with the given prefix. + EntityNamePrefix string `json:"entityNamePrefix,omitempty"` + + // EntityNameSuffix: Optional. The rule should be applied to entities + // whose non-qualified name ends with the given suffix. + EntityNameSuffix string `json:"entityNameSuffix,omitempty"` + + // ParentEntity: Optional. The rule should be applied to entities whose + // parent entity (fully qualified name) matches the given value. For + // example, if the rule applies to a table entity, the expected value + // should be a schema (schema). If the rule applies to a column or index + // entity, the expected value can be either a schema (schema) or a table + // (schema.table) + ParentEntity string `json:"parentEntity,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Entities") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Entities") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *MappingRuleFilter) MarshalJSON() ([]byte, error) { + type NoMethod MappingRuleFilter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MaterializedViewEntity: MaterializedView's parent is a schema. +type MaterializedViewEntity struct { + // CustomFeatures: Custom engine specific features. + CustomFeatures googleapi.RawMessage `json:"customFeatures,omitempty"` + + // SqlCode: The SQL code which creates the view. + SqlCode string `json:"sqlCode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CustomFeatures") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CustomFeatures") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *MaterializedViewEntity) MarshalJSON() ([]byte, error) { + type NoMethod MaterializedViewEntity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MigrationJob: Represents a Database Migration Service migration job +// object. +type MigrationJob struct { + // CmekKeyName: The CMEK (customer-managed encryption key) fully + // qualified key name used for the migration job. This field supports + // all migration jobs types except for: * Mysql to Mysql (use the cmek + // field in the cloudsql connection profile instead). * PostrgeSQL to + // PostgreSQL (use the cmek field in the cloudsql connection profile + // instead). * PostgreSQL to AlloyDB (use the kms_key_name field in the + // alloydb connection profile instead). Each Cloud CMEK key has the + // following format: + // projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_ + // NAME] + CmekKeyName string `json:"cmekKeyName,omitempty"` + + // ConversionWorkspace: The conversion workspace used by the migration. + ConversionWorkspace *ConversionWorkspaceInfo `json:"conversionWorkspace,omitempty"` + + // CreateTime: Output only. The timestamp when the migration job + // resource was created. A timestamp in RFC3339 UTC "Zulu" format, + // accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z". + CreateTime string `json:"createTime,omitempty"` + + // Destination: Required. The resource name (URI) of the destination + // connection profile. + Destination string `json:"destination,omitempty"` + + // DestinationDatabase: The database engine type and provider of the + // destination. + DestinationDatabase *DatabaseType `json:"destinationDatabase,omitempty"` + + // DisplayName: The migration job display name. + DisplayName string `json:"displayName,omitempty"` + + // DumpFlags: The initial dump flags. This field and the "dump_path" + // field are mutually exclusive. + DumpFlags *DumpFlags `json:"dumpFlags,omitempty"` + + // DumpPath: The path to the dump file in Google Cloud Storage, in the + // format: (gs://[BUCKET_NAME]/[OBJECT_NAME]). This field and the + // "dump_flags" field are mutually exclusive. + DumpPath string `json:"dumpPath,omitempty"` + + // Duration: Output only. The duration of the migration job (in + // seconds). A duration in seconds with up to nine fractional digits, + // terminated by 's'. Example: "3.5s". + Duration string `json:"duration,omitempty"` + + // EndTime: Output only. If the migration job is completed, the time + // when it was completed. + EndTime string `json:"endTime,omitempty"` + + // Error: Output only. The error details in case of state FAILED. + Error *Status `json:"error,omitempty"` + + // Filter: This field can be used to select the entities to migrate as + // part of the migration job. It uses AIP-160 notation to select a + // subset of the entities configured on the associated + // conversion-workspace. This field should not be set on migration-jobs + // that are not associated with a conversion workspace. + Filter string `json:"filter,omitempty"` + + // Labels: The resource labels for migration job to use to annotate any + // related underlying resources such as Compute Engine VMs. An object + // containing a list of "key": "value" pairs. Example: `{ "name": + // "wrench", "mass": "1.3kg", "count": "3" }`. + Labels map[string]string `json:"labels,omitempty"` + + // Name: The name (URI) of this migration job resource, in the form of: + // projects/{project}/locations/{location}/migrationJobs/{migrationJob}. + Name string `json:"name,omitempty"` + + // Phase: Output only. The current migration job phase. + // + // Possible values: + // "PHASE_UNSPECIFIED" - The phase of the migration job is unknown. + // "FULL_DUMP" - The migration job is in the full dump phase. + // "CDC" - The migration job is CDC phase. + // "PROMOTE_IN_PROGRESS" - The migration job is running the promote + // phase. + // "WAITING_FOR_SOURCE_WRITES_TO_STOP" - Only RDS flow - waiting for + // source writes to stop + // "PREPARING_THE_DUMP" - Only RDS flow - the sources writes stopped, // waiting for dump to begin Phase string `json:"phase,omitempty"` @@ -2720,6 +3490,8 @@ type MigrationJobVerificationError struct { // "UNSUPPORTED_DEFINER" - The definer is not supported. // "CANT_RESTART_RUNNING_MIGRATION" - Migration is already running at // the time of restart request. + // "SOURCE_ALREADY_SETUP" - The source already has a replication + // setup. // "TABLES_WITH_LIMITED_SUPPORT" - The source has tables with limited // support. E.g. PostgreSQL tables without primary keys. // "UNSUPPORTED_DATABASE_LOCALE" - The source uses an unsupported @@ -2730,6 +3502,8 @@ type MigrationJobVerificationError struct { // "SOURCE_SIZE_EXCEEDS_THRESHOLD" - The source DB size in Bytes // exceeds a certain threshold. The migration might require an increase // of quota, or might not be supported. + // "EXISTING_CONFLICTING_DATABASES" - The destination DB contains + // existing databases that are conflicting with those in the source DB. ErrorCode string `json:"errorCode,omitempty"` // ErrorDetailMessage: Output only. A specific detailed error message, @@ -2763,6 +3537,129 @@ func (s *MigrationJobVerificationError) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// MultiColumnDatatypeChange: Options to configure rule type +// MultiColumnDatatypeChange. The rule is used to change the data type +// and associated properties of multiple columns at once. The rule +// filter field can refer to one or more entities. The rule scope can be +// one of:Column. This rule requires additional filters to be specified +// beyond the basic rule filter field, which is the source data type, +// but the rule supports additional filtering capabilities such as the +// minimum and maximum field length. All additional filters which are +// specified are required to be met in order for the rule to be applied +// (logical AND between the fields). +type MultiColumnDatatypeChange struct { + // CustomFeatures: Optional. Custom engine specific features. + CustomFeatures googleapi.RawMessage `json:"customFeatures,omitempty"` + + // NewDataType: Required. New data type. + NewDataType string `json:"newDataType,omitempty"` + + // OverrideFractionalSecondsPrecision: Optional. Column fractional + // seconds precision - used only for timestamp based datatypes - if not + // specified and relevant uses the source column fractional seconds + // precision. + OverrideFractionalSecondsPrecision int64 `json:"overrideFractionalSecondsPrecision,omitempty"` + + // OverrideLength: Optional. Column length - e.g. varchar (50) - if not + // specified and relevant uses the source column length. + OverrideLength int64 `json:"overrideLength,omitempty,string"` + + // OverridePrecision: Optional. Column precision - when relevant - if + // not specified and relevant uses the source column precision. + OverridePrecision int64 `json:"overridePrecision,omitempty"` + + // OverrideScale: Optional. Column scale - when relevant - if not + // specified and relevant uses the source column scale. + OverrideScale int64 `json:"overrideScale,omitempty"` + + // SourceDataTypeFilter: Required. Filter on source data type. + SourceDataTypeFilter string `json:"sourceDataTypeFilter,omitempty"` + + // SourceNumericFilter: Optional. Filter for fixed point number data + // types such as NUMERIC/NUMBER. + SourceNumericFilter *SourceNumericFilter `json:"sourceNumericFilter,omitempty"` + + // SourceTextFilter: Optional. Filter for text-based data types like + // varchar. + SourceTextFilter *SourceTextFilter `json:"sourceTextFilter,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CustomFeatures") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CustomFeatures") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *MultiColumnDatatypeChange) MarshalJSON() ([]byte, error) { + type NoMethod MultiColumnDatatypeChange + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// MultiEntityRename: Options to configure rule type MultiEntityRename. +// The rule is used to rename multiple entities. The rule filter field +// can refer to one or more entities. The rule scope can be one of: +// Database, Schema, Table, Column, Constraint, Index, View, Function, +// Stored Procedure, Materialized View, Sequence, UDT +type MultiEntityRename struct { + // NewNamePattern: Optional. The pattern used to generate the new + // entity's name. This pattern must include the characters '{name}', + // which will be replaced with the name of the original entity. For + // example, the pattern 't_{name}' for an entity name jobs would be + // converted to 't_jobs'. If unspecified, the default value for this + // field is '{name}' + NewNamePattern string `json:"newNamePattern,omitempty"` + + // SourceNameTransformation: Optional. Additional transformation that + // can be done on the source entity name before it is being used by the + // new_name_pattern, for example lower case. If no transformation is + // desired, use NO_TRANSFORMATION + // + // Possible values: + // "ENTITY_NAME_TRANSFORMATION_UNSPECIFIED" - Entity name + // transformation unspecified. + // "ENTITY_NAME_TRANSFORMATION_NO_TRANSFORMATION" - No transformation. + // "ENTITY_NAME_TRANSFORMATION_LOWER_CASE" - Transform to lower case. + // "ENTITY_NAME_TRANSFORMATION_UPPER_CASE" - Transform to upper case. + // "ENTITY_NAME_TRANSFORMATION_CAPITALIZED_CASE" - Transform to + // capitalized case. + SourceNameTransformation string `json:"sourceNameTransformation,omitempty"` + + // ForceSendFields is a list of field names (e.g. "NewNamePattern") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NewNamePattern") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *MultiEntityRename) MarshalJSON() ([]byte, error) { + type NoMethod MultiEntityRename + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // MySqlConnectionProfile: Specifies connection parameters required // specifically for MySQL databases. type MySqlConnectionProfile struct { @@ -3093,6 +3990,43 @@ func (s *Policy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// Position: Issue position. +type Position struct { + // Column: Issue column number + Column int64 `json:"column,omitempty"` + + // Length: Issue length + Length int64 `json:"length,omitempty"` + + // Line: Issue line number + Line int64 `json:"line,omitempty"` + + // Offset: Issue offset + Offset int64 `json:"offset,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Column") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Column") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Position) MarshalJSON() ([]byte, error) { + type NoMethod Position + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // PostgreSqlConnectionProfile: Specifies connection parameters required // specifically for PostgreSQL databases. type PostgreSqlConnectionProfile struct { @@ -3413,15 +4347,46 @@ func (s *ReverseSshConnectivity) MarshalJSON() ([]byte, error) { type RollbackConversionWorkspaceRequest struct { } -// RulesFile: Details of a single rules file. -type RulesFile struct { - // RulesContent: The text content of the rules that needs to be - // converted. - RulesContent string `json:"rulesContent,omitempty"` +// RoundToScale: This allows the data to change scale, for example if +// the source is 2 digits after the decimal point, specify round to +// scale value = 2. If for example the value needs to be converted to an +// integer, use round to scale value = 0. +type RoundToScale struct { + // Scale: Required. Scale value to be used + Scale int64 `json:"scale,omitempty"` - // RulesSourceFilename: The filename of the rules that needs to be - // converted. The filename is used mainly so that future logs of the - // import rules job contain it, and can therefore be searched by it. + // ForceSendFields is a list of field names (e.g. "Scale") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Scale") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RoundToScale) MarshalJSON() ([]byte, error) { + type NoMethod RoundToScale + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RulesFile: Details of a single rules file. +type RulesFile struct { + // RulesContent: Required. The text content of the rules that needs to + // be converted. + RulesContent string `json:"rulesContent,omitempty"` + + // RulesSourceFilename: Required. The filename of the rules that needs + // to be converted. The filename is used mainly so that future logs of + // the import rules job contain it, and can therefore be searched by it. RulesSourceFilename string `json:"rulesSourceFilename,omitempty"` // ForceSendFields is a list of field names (e.g. "RulesContent") to @@ -3521,12 +4486,12 @@ type SeedConversionWorkspaceRequest struct { // automatically after the seed operation. AutoCommit bool `json:"autoCommit,omitempty"` - // DestinationConnectionProfile: Fully qualified (Uri) name of the - // destination connection profile. + // DestinationConnectionProfile: Optional. Fully qualified (Uri) name of + // the destination connection profile. DestinationConnectionProfile string `json:"destinationConnectionProfile,omitempty"` - // SourceConnectionProfile: Fully qualified (Uri) name of the source - // connection profile. + // SourceConnectionProfile: Optional. Fully qualified (Uri) name of the + // source connection profile. SourceConnectionProfile string `json:"sourceConnectionProfile,omitempty"` // ForceSendFields is a list of field names (e.g. "AutoCommit") to @@ -3554,8 +4519,8 @@ func (s *SeedConversionWorkspaceRequest) MarshalJSON() ([]byte, error) { // SeedJobDetails: Details regarding a Seed background job. type SeedJobDetails struct { - // ConnectionProfile: The connection profile which was used for the seed - // job. + // ConnectionProfile: Output only. The connection profile which was used + // for the seed job. ConnectionProfile string `json:"connectionProfile,omitempty"` // ForceSendFields is a list of field names (e.g. "ConnectionProfile") @@ -3668,6 +4633,314 @@ func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SetTablePrimaryKey: Options to configure rule type +// SetTablePrimaryKey. The rule is used to specify the columns and name +// to configure/alter the primary key of a table. The rule filter field +// can refer to one entity. The rule scope can be one of: Table. +type SetTablePrimaryKey struct { + // PrimaryKey: Optional. Name for the primary key + PrimaryKey string `json:"primaryKey,omitempty"` + + // PrimaryKeyColumns: Required. List of column names for the primary key + PrimaryKeyColumns []string `json:"primaryKeyColumns,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PrimaryKey") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PrimaryKey") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SetTablePrimaryKey) MarshalJSON() ([]byte, error) { + type NoMethod SetTablePrimaryKey + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SingleColumnChange: Options to configure rule type +// SingleColumnChange. The rule is used to change the properties of a +// column. The rule filter field can refer to one entity. The rule scope +// can be one of: Column. When using this rule, if a field is not +// specified than the destination column's configuration will be the +// same as the one in the source column.. +type SingleColumnChange struct { + // Array: Optional. Is the column of array type. + Array bool `json:"array,omitempty"` + + // ArrayLength: Optional. The length of the array, only relevant if the + // column type is an array. + ArrayLength int64 `json:"arrayLength,omitempty"` + + // AutoGenerated: Optional. Is the column auto-generated/identity. + AutoGenerated bool `json:"autoGenerated,omitempty"` + + // Charset: Optional. Charset override - instead of table level charset. + Charset string `json:"charset,omitempty"` + + // Collation: Optional. Collation override - instead of table level + // collation. + Collation string `json:"collation,omitempty"` + + // Comment: Optional. Comment associated with the column. + Comment string `json:"comment,omitempty"` + + // CustomFeatures: Optional. Custom engine specific features. + CustomFeatures googleapi.RawMessage `json:"customFeatures,omitempty"` + + // DataType: Optional. Column data type name. + DataType string `json:"dataType,omitempty"` + + // FractionalSecondsPrecision: Optional. Column fractional seconds + // precision - e.g. 2 as in timestamp (2) - when relevant. + FractionalSecondsPrecision int64 `json:"fractionalSecondsPrecision,omitempty"` + + // Length: Optional. Column length - e.g. 50 as in varchar (50) - when + // relevant. + Length int64 `json:"length,omitempty,string"` + + // Nullable: Optional. Is the column nullable. + Nullable bool `json:"nullable,omitempty"` + + // Precision: Optional. Column precision - e.g. 8 as in double (8,2) - + // when relevant. + Precision int64 `json:"precision,omitempty"` + + // Scale: Optional. Column scale - e.g. 2 as in double (8,2) - when + // relevant. + Scale int64 `json:"scale,omitempty"` + + // SetValues: Optional. Specifies the list of values allowed in the + // column. + SetValues []string `json:"setValues,omitempty"` + + // Udt: Optional. Is the column a UDT (User-defined Type). + Udt bool `json:"udt,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Array") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Array") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SingleColumnChange) MarshalJSON() ([]byte, error) { + type NoMethod SingleColumnChange + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SingleEntityRename: Options to configure rule type +// SingleEntityRename. The rule is used to rename an entity. The rule +// filter field can refer to only one entity. The rule scope can be one +// of: Database, Schema, Table, Column, Constraint, Index, View, +// Function, Stored Procedure, Materialized View, Sequence, UDT, Synonym +type SingleEntityRename struct { + // NewName: Required. The new name of the destination entity + NewName string `json:"newName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "NewName") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NewName") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SingleEntityRename) MarshalJSON() ([]byte, error) { + type NoMethod SingleEntityRename + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SinglePackageChange: Options to configure rule type +// SinglePackageChange. The rule is used to alter the sql code for a +// package entities. The rule filter field can refer to one entity. The +// rule scope can be: Package +type SinglePackageChange struct { + // PackageBody: Optional. Sql code for package body + PackageBody string `json:"packageBody,omitempty"` + + // PackageDescription: Optional. Sql code for package description + PackageDescription string `json:"packageDescription,omitempty"` + + // ForceSendFields is a list of field names (e.g. "PackageBody") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PackageBody") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SinglePackageChange) MarshalJSON() ([]byte, error) { + type NoMethod SinglePackageChange + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SourceNumericFilter: Filter for fixed point number data types such as +// NUMERIC/NUMBER +type SourceNumericFilter struct { + // NumericFilterOption: Required. Enum to set the option defining the + // datatypes numeric filter has to be applied to + // + // Possible values: + // "NUMERIC_FILTER_OPTION_UNSPECIFIED" - Numeric filter option + // unspecified + // "NUMERIC_FILTER_OPTION_ALL" - Numeric filter option that matches + // all numeric columns. + // "NUMERIC_FILTER_OPTION_LIMIT" - Numeric filter option that matches + // columns having numeric datatypes with specified precision and scale + // within the limited range of filter. + // "NUMERIC_FILTER_OPTION_LIMITLESS" - Numeric filter option that + // matches only the numeric columns with no precision and scale + // specified. + NumericFilterOption string `json:"numericFilterOption,omitempty"` + + // SourceMaxPrecisionFilter: Optional. The filter will match columns + // with precision smaller than or equal to this number. + SourceMaxPrecisionFilter int64 `json:"sourceMaxPrecisionFilter,omitempty"` + + // SourceMaxScaleFilter: Optional. The filter will match columns with + // scale smaller than or equal to this number. + SourceMaxScaleFilter int64 `json:"sourceMaxScaleFilter,omitempty"` + + // SourceMinPrecisionFilter: Optional. The filter will match columns + // with precision greater than or equal to this number. + SourceMinPrecisionFilter int64 `json:"sourceMinPrecisionFilter,omitempty"` + + // SourceMinScaleFilter: Optional. The filter will match columns with + // scale greater than or equal to this number. + SourceMinScaleFilter int64 `json:"sourceMinScaleFilter,omitempty"` + + // ForceSendFields is a list of field names (e.g. "NumericFilterOption") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "NumericFilterOption") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *SourceNumericFilter) MarshalJSON() ([]byte, error) { + type NoMethod SourceNumericFilter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SourceSqlChange: Options to configure rule type SourceSqlChange. The +// rule is used to alter the sql code for database entities. The rule +// filter field can refer to one entity. The rule scope can be: +// StoredProcedure, Function, Trigger, View +type SourceSqlChange struct { + // SqlCode: Required. Sql code for source (stored procedure, function, + // trigger or view) + SqlCode string `json:"sqlCode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "SqlCode") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "SqlCode") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SourceSqlChange) MarshalJSON() ([]byte, error) { + type NoMethod SourceSqlChange + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SourceTextFilter: Filter for text-based data types like varchar. +type SourceTextFilter struct { + // SourceMaxLengthFilter: Optional. The filter will match columns with + // length smaller than or equal to this number. + SourceMaxLengthFilter int64 `json:"sourceMaxLengthFilter,omitempty,string"` + + // SourceMinLengthFilter: Optional. The filter will match columns with + // length greater than or equal to this number. + SourceMinLengthFilter int64 `json:"sourceMinLengthFilter,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. + // "SourceMaxLengthFilter") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "SourceMaxLengthFilter") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *SourceTextFilter) MarshalJSON() ([]byte, error) { + type NoMethod SourceTextFilter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // SqlAclEntry: An entry for an Access Control list. type SqlAclEntry struct { // ExpireTime: The time when this access control entry expires in RFC @@ -4187,6 +5460,41 @@ func (s *TriggerEntity) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// UDTEntity: UDT's parent is a schema. +type UDTEntity struct { + // CustomFeatures: Custom engine specific features. + CustomFeatures googleapi.RawMessage `json:"customFeatures,omitempty"` + + // UdtBody: The SQL code which creates the udt body. + UdtBody string `json:"udtBody,omitempty"` + + // UdtSqlCode: The SQL code which creates the udt. + UdtSqlCode string `json:"udtSqlCode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CustomFeatures") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "CustomFeatures") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *UDTEntity) MarshalJSON() ([]byte, error) { + type NoMethod UDTEntity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // UserPassword: The username/password for a database user. Used for // specifying initial users at cluster creation time. type UserPassword struct { @@ -4223,23 +5531,30 @@ func (s *UserPassword) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// VerifyMigrationJobRequest: Request message for 'VerifyMigrationJob' -// request. -type VerifyMigrationJobRequest struct { -} - -// ViewEntity: View's parent is a schema. -type ViewEntity struct { - // Constraints: View constraints. - Constraints []*ConstraintEntity `json:"constraints,omitempty"` - - // CustomFeatures: Custom engine specific features. - CustomFeatures googleapi.RawMessage `json:"customFeatures,omitempty"` - - // SqlCode: The SQL code which creates the view. - SqlCode string `json:"sqlCode,omitempty"` +// ValueListFilter: A list of values to filter by in +// ConditionalColumnSetValue +type ValueListFilter struct { + // IgnoreCase: Required. Whether to ignore case when filtering by + // values. Defaults to false + IgnoreCase bool `json:"ignoreCase,omitempty"` - // ForceSendFields is a list of field names (e.g. "Constraints") to + // ValuePresentList: Required. Indicates whether the filter matches rows + // with values that are present in the list or those with values not + // present in it. + // + // Possible values: + // "VALUE_PRESENT_IN_LIST_UNSPECIFIED" - Value present in list + // unspecified + // "VALUE_PRESENT_IN_LIST_IF_VALUE_LIST" - If the source value is in + // the supplied list at value_list + // "VALUE_PRESENT_IN_LIST_IF_VALUE_NOT_LIST" - If the source value is + // not in the supplied list at value_list + ValuePresentList string `json:"valuePresentList,omitempty"` + + // Values: Required. The list to be used to filter by + Values []string `json:"values,omitempty"` + + // ForceSendFields is a list of field names (e.g. "IgnoreCase") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4247,12 +5562,141 @@ type ViewEntity struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Constraints") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IgnoreCase") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ValueListFilter) MarshalJSON() ([]byte, error) { + type NoMethod ValueListFilter + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ValueTransformation: Description of data transformation during +// migration as part of the ConditionalColumnSetValue. +type ValueTransformation struct { + // ApplyHash: Optional. Applies a hash function on the data + ApplyHash *ApplyHash `json:"applyHash,omitempty"` + + // AssignMaxValue: Optional. Set to max_value - if integer or numeric, + // will use int.maxvalue, etc + AssignMaxValue *Empty `json:"assignMaxValue,omitempty"` + + // AssignMinValue: Optional. Set to min_value - if integer or numeric, + // will use int.minvalue, etc + AssignMinValue *Empty `json:"assignMinValue,omitempty"` + + // AssignNull: Optional. Set to null + AssignNull *Empty `json:"assignNull,omitempty"` + + // AssignSpecificValue: Optional. Set to a specific value (value is + // converted to fit the target data type) + AssignSpecificValue *AssignSpecificValue `json:"assignSpecificValue,omitempty"` + + // DoubleComparison: Optional. Filter on relation between source value + // and compare value of type double. + DoubleComparison *DoubleComparisonFilter `json:"doubleComparison,omitempty"` + + // IntComparison: Optional. Filter on relation between source value and + // compare value of type integer. + IntComparison *IntComparisonFilter `json:"intComparison,omitempty"` + + // IsNull: Optional. Value is null + IsNull *Empty `json:"isNull,omitempty"` + + // RoundScale: Optional. Allows the data to change scale + RoundScale *RoundToScale `json:"roundScale,omitempty"` + + // ValueList: Optional. Value is found in the specified list. + ValueList *ValueListFilter `json:"valueList,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ApplyHash") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ApplyHash") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ValueTransformation) MarshalJSON() ([]byte, error) { + type NoMethod ValueTransformation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// VerifyMigrationJobRequest: Request message for 'VerifyMigrationJob' +// request. +type VerifyMigrationJobRequest struct { + // MigrationJob: Optional. The changed migration job parameters to + // verify. It will not update the migration job. + MigrationJob *MigrationJob `json:"migrationJob,omitempty"` + + // UpdateMask: Optional. Field mask is used to specify the changed + // fields to be verified. It will not update the migration job. + UpdateMask string `json:"updateMask,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MigrationJob") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MigrationJob") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *VerifyMigrationJobRequest) MarshalJSON() ([]byte, error) { + type NoMethod VerifyMigrationJobRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ViewEntity: View's parent is a schema. +type ViewEntity struct { + // Constraints: View constraints. + Constraints []*ConstraintEntity `json:"constraints,omitempty"` + + // CustomFeatures: Custom engine specific features. + CustomFeatures googleapi.RawMessage `json:"customFeatures,omitempty"` + + // SqlCode: The SQL code which creates the view. + SqlCode string `json:"sqlCode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Constraints") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Constraints") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } @@ -7342,7 +8786,7 @@ func (c *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall) Page return c } -// Tree sets the optional parameter "tree": The tree to fetch. +// Tree sets the optional parameter "tree": Required. The tree to fetch. // // Possible values: // @@ -7363,6 +8807,35 @@ func (c *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall) Unco return c } +// View sets the optional parameter "view": Results view based on +// AIP-157 +// +// Possible values: +// +// "DATABASE_ENTITY_VIEW_UNSPECIFIED" - Unspecified view. Defaults to +// +// basic view. +// +// "DATABASE_ENTITY_VIEW_BASIC" - Default view. Does not return DDLs +// +// or Issues. +// +// "DATABASE_ENTITY_VIEW_FULL" - Return full entity details including +// +// mappings, ddl and issues. +// +// "DATABASE_ENTITY_VIEW_ROOT_SUMMARY" - Top-most (Database, Schema) +// +// nodes which are returned contains summary details for their +// decendents such as the number of entities per type and issues +// rollups. When this view is used, only a single page of result is +// returned and the page_size property of the request is ignored. The +// returned page will only include the top-most node types. +func (c *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall) View(view string) *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall { + c.urlParams_.Set("view", view) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -7471,7 +8944,7 @@ func (c *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall) Do(o // ], // "parameters": { // "commitId": { - // "description": "Request a specific commit ID. If not specified, the entities from the latest commit are returned.", + // "description": "Optional. Request a specific commit ID. If not specified, the entities from the latest commit are returned.", // "location": "query", // "type": "string" // }, @@ -7483,23 +8956,23 @@ func (c *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall) Do(o // "type": "string" // }, // "filter": { - // "description": "Filter the returned entities based on AIP-160 standard.", + // "description": "Optional. Filter the returned entities based on AIP-160 standard.", // "location": "query", // "type": "string" // }, // "pageSize": { - // "description": "The maximum number of entities to return. The service may return fewer entities than the value specifies.", + // "description": "Optional. The maximum number of entities to return. The service may return fewer entities than the value specifies.", // "format": "int32", // "location": "query", // "type": "integer" // }, // "pageToken": { - // "description": "The nextPageToken value received in the previous call to conversionWorkspace.describeDatabaseEntities, used in the subsequent request to retrieve the next page of results. On first call this should be left blank. When paginating, all other parameters provided to conversionWorkspace.describeDatabaseEntities must match the call that provided the page token.", + // "description": "Optional. The nextPageToken value received in the previous call to conversionWorkspace.describeDatabaseEntities, used in the subsequent request to retrieve the next page of results. On first call this should be left blank. When paginating, all other parameters provided to conversionWorkspace.describeDatabaseEntities must match the call that provided the page token.", // "location": "query", // "type": "string" // }, // "tree": { - // "description": "The tree to fetch.", + // "description": "Required. The tree to fetch.", // "enum": [ // "DB_TREE_TYPE_UNSPECIFIED", // "SOURCE_TREE", @@ -7516,9 +8989,26 @@ func (c *ProjectsLocationsConversionWorkspacesDescribeDatabaseEntitiesCall) Do(o // "type": "string" // }, // "uncommitted": { - // "description": "Whether to retrieve the latest committed version of the entities or the latest version. This field is ignored if a specific commit_id is specified.", + // "description": "Optional. Whether to retrieve the latest committed version of the entities or the latest version. This field is ignored if a specific commit_id is specified.", // "location": "query", // "type": "boolean" + // }, + // "view": { + // "description": "Optional. Results view based on AIP-157", + // "enum": [ + // "DATABASE_ENTITY_VIEW_UNSPECIFIED", + // "DATABASE_ENTITY_VIEW_BASIC", + // "DATABASE_ENTITY_VIEW_FULL", + // "DATABASE_ENTITY_VIEW_ROOT_SUMMARY" + // ], + // "enumDescriptions": [ + // "Unspecified view. Defaults to basic view.", + // "Default view. Does not return DDLs or Issues.", + // "Return full entity details including mappings, ddl and issues.", + // "Top-most (Database, Schema) nodes which are returned contains summary details for their decendents such as the number of entities per type and issues rollups. When this view is used, only a single page of result is returned and the page_size property of the request is ignored. The returned page will only include the top-most node types." + // ], + // "location": "query", + // "type": "string" // } // }, // "path": "v1/{+conversionWorkspace}:describeDatabaseEntities", @@ -9047,35 +10537,49 @@ func (c *ProjectsLocationsConversionWorkspacesTestIamPermissionsCall) Do(opts .. } -// method id "datamigration.projects.locations.conversionWorkspaces.mappingRules.import": +// method id "datamigration.projects.locations.conversionWorkspaces.mappingRules.create": -type ProjectsLocationsConversionWorkspacesMappingRulesImportCall struct { - s *Service - parent string - importmappingrulesrequest *ImportMappingRulesRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsConversionWorkspacesMappingRulesCreateCall struct { + s *Service + parent string + mappingrule *MappingRule + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Import: Imports the mapping rules for a given conversion workspace. -// Supports various formats of external rules files. +// Create: Creates a new mapping rule for a given conversion workspace. // -// - parent: Name of the conversion workspace resource to import the -// rules to in the form of: -// projects/{project}/locations/{location}/conversionWorkspaces/{conver -// sion_workspace}. -func (r *ProjectsLocationsConversionWorkspacesMappingRulesService) Import(parent string, importmappingrulesrequest *ImportMappingRulesRequest) *ProjectsLocationsConversionWorkspacesMappingRulesImportCall { - c := &ProjectsLocationsConversionWorkspacesMappingRulesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The parent which owns this collection of mapping rules. +func (r *ProjectsLocationsConversionWorkspacesMappingRulesService) Create(parent string, mappingrule *MappingRule) *ProjectsLocationsConversionWorkspacesMappingRulesCreateCall { + c := &ProjectsLocationsConversionWorkspacesMappingRulesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent - c.importmappingrulesrequest = importmappingrulesrequest + c.mappingrule = mappingrule + return c +} + +// MappingRuleId sets the optional parameter "mappingRuleId": Required. +// The ID of the rule to create. +func (c *ProjectsLocationsConversionWorkspacesMappingRulesCreateCall) MappingRuleId(mappingRuleId string) *ProjectsLocationsConversionWorkspacesMappingRulesCreateCall { + c.urlParams_.Set("mappingRuleId", mappingRuleId) + return c +} + +// RequestId sets the optional parameter "requestId": A unique ID used +// to identify the request. If the server receives two requests with the +// same ID, then the second request is ignored. It is recommended to +// always set this value to a UUID. The ID must contain only letters +// (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The +// maximum length is 40 characters. +func (c *ProjectsLocationsConversionWorkspacesMappingRulesCreateCall) RequestId(requestId string) *ProjectsLocationsConversionWorkspacesMappingRulesCreateCall { + c.urlParams_.Set("requestId", requestId) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsConversionWorkspacesMappingRulesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversionWorkspacesMappingRulesImportCall { +func (c *ProjectsLocationsConversionWorkspacesMappingRulesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversionWorkspacesMappingRulesCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -9083,21 +10587,21 @@ func (c *ProjectsLocationsConversionWorkspacesMappingRulesImportCall) Fields(s . // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsConversionWorkspacesMappingRulesImportCall) Context(ctx context.Context) *ProjectsLocationsConversionWorkspacesMappingRulesImportCall { +func (c *ProjectsLocationsConversionWorkspacesMappingRulesCreateCall) Context(ctx context.Context) *ProjectsLocationsConversionWorkspacesMappingRulesCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsConversionWorkspacesMappingRulesImportCall) Header() http.Header { +func (c *ProjectsLocationsConversionWorkspacesMappingRulesCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsConversionWorkspacesMappingRulesImportCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsConversionWorkspacesMappingRulesCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -9105,14 +10609,14 @@ func (c *ProjectsLocationsConversionWorkspacesMappingRulesImportCall) doRequest( } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.importmappingrulesrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.mappingrule) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/mappingRules:import") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/mappingRules") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -9125,14 +10629,14 @@ func (c *ProjectsLocationsConversionWorkspacesMappingRulesImportCall) doRequest( return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.conversionWorkspaces.mappingRules.import" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx +// Do executes the "datamigration.projects.locations.conversionWorkspaces.mappingRules.create" call. +// Exactly one of *MappingRule or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at +// *MappingRule.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 *ProjectsLocationsConversionWorkspacesMappingRulesImportCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsConversionWorkspacesMappingRulesCreateCall) Do(opts ...googleapi.CallOption) (*MappingRule, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9151,7 +10655,7 @@ func (c *ProjectsLocationsConversionWorkspacesMappingRulesImportCall) Do(opts .. if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &MappingRule{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9163,28 +10667,38 @@ func (c *ProjectsLocationsConversionWorkspacesMappingRulesImportCall) Do(opts .. } return ret, nil // { - // "description": "Imports the mapping rules for a given conversion workspace. Supports various formats of external rules files.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}/mappingRules:import", + // "description": "Creates a new mapping rule for a given conversion workspace.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}/mappingRules", // "httpMethod": "POST", - // "id": "datamigration.projects.locations.conversionWorkspaces.mappingRules.import", + // "id": "datamigration.projects.locations.conversionWorkspaces.mappingRules.create", // "parameterOrder": [ // "parent" // ], // "parameters": { + // "mappingRuleId": { + // "description": "Required. The ID of the rule to create.", + // "location": "query", + // "type": "string" + // }, // "parent": { - // "description": "Required. Name of the conversion workspace resource to import the rules to in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.", + // "description": "Required. The parent which owns this collection of mapping rules.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", // "required": true, // "type": "string" + // }, + // "requestId": { + // "description": "A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + // "location": "query", + // "type": "string" // } // }, - // "path": "v1/{+parent}/mappingRules:import", + // "path": "v1/{+parent}/mappingRules", // "request": { - // "$ref": "ImportMappingRulesRequest" + // "$ref": "MappingRule" // }, // "response": { - // "$ref": "Operation" + // "$ref": "MappingRule" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -9193,31 +10707,22 @@ func (c *ProjectsLocationsConversionWorkspacesMappingRulesImportCall) Do(opts .. } -// method id "datamigration.projects.locations.migrationJobs.create": +// method id "datamigration.projects.locations.conversionWorkspaces.mappingRules.delete": -type ProjectsLocationsMigrationJobsCreateCall struct { - s *Service - parent string - migrationjob *MigrationJob - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsConversionWorkspacesMappingRulesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new migration job in a given project and location. +// Delete: Deletes a single mapping rule. // -// - parent: The parent which owns this collection of migration jobs. -func (r *ProjectsLocationsMigrationJobsService) Create(parent string, migrationjob *MigrationJob) *ProjectsLocationsMigrationJobsCreateCall { - c := &ProjectsLocationsMigrationJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.migrationjob = migrationjob - return c -} - -// MigrationJobId sets the optional parameter "migrationJobId": -// Required. The ID of the instance to create. -func (c *ProjectsLocationsMigrationJobsCreateCall) MigrationJobId(migrationJobId string) *ProjectsLocationsMigrationJobsCreateCall { - c.urlParams_.Set("migrationJobId", migrationJobId) +// - name: Name of the mapping rule resource to delete. +func (r *ProjectsLocationsConversionWorkspacesMappingRulesService) Delete(name string) *ProjectsLocationsConversionWorkspacesMappingRulesDeleteCall { + c := &ProjectsLocationsConversionWorkspacesMappingRulesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name return c } @@ -9227,7 +10732,7 @@ func (c *ProjectsLocationsMigrationJobsCreateCall) MigrationJobId(migrationJobId // always set this value to a UUID. The ID must contain only letters // (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The // maximum length is 40 characters. -func (c *ProjectsLocationsMigrationJobsCreateCall) RequestId(requestId string) *ProjectsLocationsMigrationJobsCreateCall { +func (c *ProjectsLocationsConversionWorkspacesMappingRulesDeleteCall) RequestId(requestId string) *ProjectsLocationsConversionWorkspacesMappingRulesDeleteCall { c.urlParams_.Set("requestId", requestId) return c } @@ -9235,7 +10740,7 @@ func (c *ProjectsLocationsMigrationJobsCreateCall) RequestId(requestId string) * // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsMigrationJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsCreateCall { +func (c *ProjectsLocationsConversionWorkspacesMappingRulesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversionWorkspacesMappingRulesDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -9243,21 +10748,21 @@ func (c *ProjectsLocationsMigrationJobsCreateCall) Fields(s ...googleapi.Field) // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsMigrationJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsCreateCall { +func (c *ProjectsLocationsConversionWorkspacesMappingRulesDeleteCall) Context(ctx context.Context) *ProjectsLocationsConversionWorkspacesMappingRulesDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsMigrationJobsCreateCall) Header() http.Header { +func (c *ProjectsLocationsConversionWorkspacesMappingRulesDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsMigrationJobsCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsConversionWorkspacesMappingRulesDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -9265,34 +10770,29 @@ func (c *ProjectsLocationsMigrationJobsCreateCall) doRequest(alt string) (*http. } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.migrationjob) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/migrationJobs") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "datamigration.projects.locations.migrationJobs.create" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.ServerResponse.Header or (if a response was returned at -// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified -// to check whether the returned error was because -// http.StatusNotModified was returned. -func (c *ProjectsLocationsMigrationJobsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// Do executes the "datamigration.projects.locations.conversionWorkspaces.mappingRules.delete" call. +// Exactly one of *Empty or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Empty.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsConversionWorkspacesMappingRulesDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -9311,7 +10811,7 @@ func (c *ProjectsLocationsMigrationJobsCreateCall) Do(opts ...googleapi.CallOpti if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &Empty{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -9323,28 +10823,686 @@ func (c *ProjectsLocationsMigrationJobsCreateCall) Do(opts ...googleapi.CallOpti } return ret, nil // { - // "description": "Creates a new migration job in a given project and location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs", - // "httpMethod": "POST", - // "id": "datamigration.projects.locations.migrationJobs.create", + // "description": "Deletes a single mapping rule.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}/mappingRules/{mappingRulesId}", + // "httpMethod": "DELETE", + // "id": "datamigration.projects.locations.conversionWorkspaces.mappingRules.delete", // "parameterOrder": [ - // "parent" + // "name" // ], // "parameters": { - // "migrationJobId": { - // "description": "Required. The ID of the instance to create.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent which owns this collection of migration jobs.", + // "name": { + // "description": "Required. Name of the mapping rule resource to delete.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+/mappingRules/[^/]+$", // "required": true, // "type": "string" // }, // "requestId": { - // "description": "A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + // "description": "Optional. A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Empty" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.conversionWorkspaces.mappingRules.get": + +type ProjectsLocationsConversionWorkspacesMappingRulesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the details of a mapping rule. +// +// - name: Name of the mapping rule resource to get. Example: +// conversionWorkspaces/123/mappingRules/rule123 In order to retrieve +// a previous revision of the mapping rule, also provide the revision +// ID. Example: +// conversionWorkspace/123/mappingRules/rule123@c7cfa2a8c7cfa2a8c7cfa2a +// 8c7cfa2a8. +func (r *ProjectsLocationsConversionWorkspacesMappingRulesService) Get(name string) *ProjectsLocationsConversionWorkspacesMappingRulesGetCall { + c := &ProjectsLocationsConversionWorkspacesMappingRulesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConversionWorkspacesMappingRulesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversionWorkspacesMappingRulesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsConversionWorkspacesMappingRulesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversionWorkspacesMappingRulesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConversionWorkspacesMappingRulesGetCall) Context(ctx context.Context) *ProjectsLocationsConversionWorkspacesMappingRulesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConversionWorkspacesMappingRulesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversionWorkspacesMappingRulesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.conversionWorkspaces.mappingRules.get" call. +// Exactly one of *MappingRule or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *MappingRule.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 *ProjectsLocationsConversionWorkspacesMappingRulesGetCall) Do(opts ...googleapi.CallOption) (*MappingRule, 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 := &MappingRule{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the details of a mapping rule.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}/mappingRules/{mappingRulesId}", + // "httpMethod": "GET", + // "id": "datamigration.projects.locations.conversionWorkspaces.mappingRules.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the mapping rule resource to get. Example: conversionWorkspaces/123/mappingRules/rule123 In order to retrieve a previous revision of the mapping rule, also provide the revision ID. Example: conversionWorkspace/123/mappingRules/rule123@c7cfa2a8c7cfa2a8c7cfa2a8c7cfa2a8", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+/mappingRules/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "MappingRule" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.conversionWorkspaces.mappingRules.import": + +type ProjectsLocationsConversionWorkspacesMappingRulesImportCall struct { + s *Service + parent string + importmappingrulesrequest *ImportMappingRulesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Import: Imports the mapping rules for a given conversion workspace. +// Supports various formats of external rules files. +// +// - parent: Name of the conversion workspace resource to import the +// rules to in the form of: +// projects/{project}/locations/{location}/conversionWorkspaces/{conver +// sion_workspace}. +func (r *ProjectsLocationsConversionWorkspacesMappingRulesService) Import(parent string, importmappingrulesrequest *ImportMappingRulesRequest) *ProjectsLocationsConversionWorkspacesMappingRulesImportCall { + c := &ProjectsLocationsConversionWorkspacesMappingRulesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.importmappingrulesrequest = importmappingrulesrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConversionWorkspacesMappingRulesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversionWorkspacesMappingRulesImportCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConversionWorkspacesMappingRulesImportCall) Context(ctx context.Context) *ProjectsLocationsConversionWorkspacesMappingRulesImportCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConversionWorkspacesMappingRulesImportCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversionWorkspacesMappingRulesImportCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.importmappingrulesrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/mappingRules:import") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.conversionWorkspaces.mappingRules.import" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsConversionWorkspacesMappingRulesImportCall) 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 + // { + // "description": "Imports the mapping rules for a given conversion workspace. Supports various formats of external rules files.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}/mappingRules:import", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.conversionWorkspaces.mappingRules.import", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. Name of the conversion workspace resource to import the rules to in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/mappingRules:import", + // "request": { + // "$ref": "ImportMappingRulesRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "datamigration.projects.locations.conversionWorkspaces.mappingRules.list": + +type ProjectsLocationsConversionWorkspacesMappingRulesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the mapping rules for a specific conversion workspace. +// +// - parent: Name of the conversion workspace resource whose mapping +// rules are listed in the form of: +// projects/{project}/locations/{location}/conversionWorkspaces/{conver +// sion_workspace}. +func (r *ProjectsLocationsConversionWorkspacesMappingRulesService) List(parent string) *ProjectsLocationsConversionWorkspacesMappingRulesListCall { + c := &ProjectsLocationsConversionWorkspacesMappingRulesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of rules to return. The service may return fewer than this value. +func (c *ProjectsLocationsConversionWorkspacesMappingRulesListCall) PageSize(pageSize int64) *ProjectsLocationsConversionWorkspacesMappingRulesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The nextPageToken +// value received in the previous call to mappingRules.list, used in the +// subsequent request to retrieve the next page of results. On first +// call this should be left blank. When paginating, all other parameters +// provided to mappingRules.list must match the call that provided the +// page token. +func (c *ProjectsLocationsConversionWorkspacesMappingRulesListCall) PageToken(pageToken string) *ProjectsLocationsConversionWorkspacesMappingRulesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsConversionWorkspacesMappingRulesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversionWorkspacesMappingRulesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsConversionWorkspacesMappingRulesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversionWorkspacesMappingRulesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsConversionWorkspacesMappingRulesListCall) Context(ctx context.Context) *ProjectsLocationsConversionWorkspacesMappingRulesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsConversionWorkspacesMappingRulesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsConversionWorkspacesMappingRulesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/mappingRules") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.conversionWorkspaces.mappingRules.list" call. +// Exactly one of *ListMappingRulesResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListMappingRulesResponse.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 *ProjectsLocationsConversionWorkspacesMappingRulesListCall) Do(opts ...googleapi.CallOption) (*ListMappingRulesResponse, 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 := &ListMappingRulesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists the mapping rules for a specific conversion workspace.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/conversionWorkspaces/{conversionWorkspacesId}/mappingRules", + // "httpMethod": "GET", + // "id": "datamigration.projects.locations.conversionWorkspaces.mappingRules.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "pageSize": { + // "description": "The maximum number of rules to return. The service may return fewer than this value.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "The nextPageToken value received in the previous call to mappingRules.list, used in the subsequent request to retrieve the next page of results. On first call this should be left blank. When paginating, all other parameters provided to mappingRules.list must match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. Name of the conversion workspace resource whose mapping rules are listed in the form of: projects/{project}/locations/{location}/conversionWorkspaces/{conversion_workspace}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/conversionWorkspaces/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/mappingRules", + // "response": { + // "$ref": "ListMappingRulesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsConversionWorkspacesMappingRulesListCall) Pages(ctx context.Context, f func(*ListMappingRulesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + +// method id "datamigration.projects.locations.migrationJobs.create": + +type ProjectsLocationsMigrationJobsCreateCall struct { + s *Service + parent string + migrationjob *MigrationJob + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new migration job in a given project and location. +// +// - parent: The parent which owns this collection of migration jobs. +func (r *ProjectsLocationsMigrationJobsService) Create(parent string, migrationjob *MigrationJob) *ProjectsLocationsMigrationJobsCreateCall { + c := &ProjectsLocationsMigrationJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.migrationjob = migrationjob + return c +} + +// MigrationJobId sets the optional parameter "migrationJobId": +// Required. The ID of the instance to create. +func (c *ProjectsLocationsMigrationJobsCreateCall) MigrationJobId(migrationJobId string) *ProjectsLocationsMigrationJobsCreateCall { + c.urlParams_.Set("migrationJobId", migrationJobId) + return c +} + +// RequestId sets the optional parameter "requestId": A unique ID used +// to identify the request. If the server receives two requests with the +// same ID, then the second request is ignored. It is recommended to +// always set this value to a UUID. The ID must contain only letters +// (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The +// maximum length is 40 characters. +func (c *ProjectsLocationsMigrationJobsCreateCall) RequestId(requestId string) *ProjectsLocationsMigrationJobsCreateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsMigrationJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMigrationJobsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsMigrationJobsCreateCall) Context(ctx context.Context) *ProjectsLocationsMigrationJobsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsMigrationJobsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMigrationJobsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.migrationjob) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/migrationJobs") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "datamigration.projects.locations.migrationJobs.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.ServerResponse.Header or (if a response was returned at +// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified +// to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsMigrationJobsCreateCall) 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 + // { + // "description": "Creates a new migration job in a given project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/migrationJobs", + // "httpMethod": "POST", + // "id": "datamigration.projects.locations.migrationJobs.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "migrationJobId": { + // "description": "Required. The ID of the instance to create.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent which owns this collection of migration jobs.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "Optional. A unique ID used to identify the request. If the server receives two requests with the same ID, then the second request is ignored. It is recommended to always set this value to a UUID. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens (-). The maximum length is 40 characters.", // "location": "query", // "type": "string" // } diff --git a/datamigration/v1beta1/datamigration-api.json b/datamigration/v1beta1/datamigration-api.json index 5846ba96610..a5c0233928c 100644 --- a/datamigration/v1beta1/datamigration-api.json +++ b/datamigration/v1beta1/datamigration-api.json @@ -1049,7 +1049,7 @@ } } }, - "revision": "20230426", + "revision": "20230703", "rootUrl": "https://datamigration.googleapis.com/", "schemas": { "AuditConfig": { @@ -1771,7 +1771,8 @@ "UNSUPPORTED_DATABASE_LOCALE", "UNSUPPORTED_DATABASE_FDW_CONFIG", "ERROR_RDBMS", - "SOURCE_SIZE_EXCEEDS_THRESHOLD" + "SOURCE_SIZE_EXCEEDS_THRESHOLD", + "EXISTING_CONFLICTING_DATABASES" ], "enumDescriptions": [ "An unknown error occurred", @@ -1787,7 +1788,8 @@ "The source uses an unsupported locale.", "The source uses an unsupported Foreign Data Wrapper configuration.", "There was an underlying RDBMS error.", - "The source DB size in Bytes exceeds a certain threshold. The migration might require an increase of quota, or might not be supported." + "The source DB size in Bytes exceeds a certain threshold. The migration might require an increase of quota, or might not be supported.", + "The destination DB contains existing databases that are conflicting with those in the source DB." ], "readOnly": true, "type": "string" diff --git a/datamigration/v1beta1/datamigration-gen.go b/datamigration/v1beta1/datamigration-gen.go index 034a15069c9..e8b47acf8cb 100644 --- a/datamigration/v1beta1/datamigration-gen.go +++ b/datamigration/v1beta1/datamigration-gen.go @@ -1196,6 +1196,8 @@ type MigrationJobVerificationError struct { // "SOURCE_SIZE_EXCEEDS_THRESHOLD" - The source DB size in Bytes // exceeds a certain threshold. The migration might require an increase // of quota, or might not be supported. + // "EXISTING_CONFLICTING_DATABASES" - The destination DB contains + // existing databases that are conflicting with those in the source DB. ErrorCode string `json:"errorCode,omitempty"` // ErrorDetailMessage: Output only. A specific detailed error message, diff --git a/dns/v1beta2/dns-api.json b/dns/v1beta2/dns-api.json index fcffdf0442b..9e49ad00281 100644 --- a/dns/v1beta2/dns-api.json +++ b/dns/v1beta2/dns-api.json @@ -1821,7 +1821,7 @@ } } }, - "revision": "20230330", + "revision": "20230706", "rootUrl": "https://dns.googleapis.com/", "schemas": { "Change": { @@ -3023,7 +3023,8 @@ "$ref": "RRSetRoutingPolicyGeoPolicy" }, "geoPolicy": { - "$ref": "RRSetRoutingPolicyGeoPolicy" + "$ref": "RRSetRoutingPolicyGeoPolicy", + "deprecated": true }, "kind": { "default": "dns#rRSetRoutingPolicy", @@ -3036,7 +3037,8 @@ "$ref": "RRSetRoutingPolicyWrrPolicy" }, "wrrPolicy": { - "$ref": "RRSetRoutingPolicyWrrPolicy" + "$ref": "RRSetRoutingPolicyWrrPolicy", + "deprecated": true } }, "type": "object"