diff --git a/api-list.json b/api-list.json index 2f2180db980..f359beebd0e 100644 --- a/api-list.json +++ b/api-list.json @@ -2479,21 +2479,6 @@ "documentationLink": "https://developers.google.com/domains/rdap/", "preferred": true }, - { - "kind": "discovery#directoryItem", - "id": "doubleclickbidmanager:v1.1", - "name": "doubleclickbidmanager", - "version": "v1.1", - "title": "DoubleClick Bid Manager API", - "description": "DoubleClick Bid Manager API allows users to manage and create campaigns and reports.", - "discoveryRestUrl": "https://doubleclickbidmanager.googleapis.com/$discovery/rest?version=v1.1", - "icons": { - "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", - "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" - }, - "documentationLink": "https://developers.google.com/bid-manager/", - "preferred": false - }, { "kind": "discovery#directoryItem", "id": "doubleclickbidmanager:v2", diff --git a/beyondcorp/v1alpha/beyondcorp-api.json b/beyondcorp/v1alpha/beyondcorp-api.json index a32aa1db85d..5ce19502cda 100644 --- a/beyondcorp/v1alpha/beyondcorp-api.json +++ b/beyondcorp/v1alpha/beyondcorp-api.json @@ -241,27 +241,6 @@ "parent" ], "parameters": { - "filter": { - "description": "Optional. Filter partnerTenants to be returned. See [List Sub-Collections] (https://cloud.google.com/apis/design/design_patterns#list_sub-collections) for more details. All fields can be used in the filter. Usage: field_filter=\"fieldName1=fieldVal1 AND fieldName2=fieldVal2\". NOTE: Only `AND` conditions are allowed.", - "location": "query", - "type": "string" - }, - "orderBy": { - "description": "Optional. Specifies the ordering of results. Currently, only ordering by the \"name\" and \"create_time\" fields are supported. See [Sorting order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more information.", - "location": "query", - "type": "string" - }, - "pageSize": { - "description": "Optional. The maximum number of items to return. The service may return fewer than this value. If unspecified, at most 50 items will be returned. The maximum value is 1000; values above 1000 are coerced to 1000. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's next_page_token to determine if there are more instances left to be queried.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Optional. A token identifying a page of results the server should return.", - "location": "query", - "type": "string" - }, "parent": { "description": "Required. The parent organization to which the PartnerTenants belong. Format: `organizations/{organization_id}/locations/global`", "location": "path", @@ -410,6 +389,36 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "delete": { + "description": "Deletes an existing BrowserDlpRule.", + "flatPath": "v1alpha/organizations/{organizationsId}/locations/global/partnerTenants/{partnerTenantsId}/browserDlpRules/{browserDlpRulesId}", + "httpMethod": "DELETE", + "id": "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the BrowserDlpRule using the form: `organizations/{organization_id}/locations/global/partnerTenants/{partner_tenant_id}/browserDlpRules/{browser_dlp_rule_id}`", + "location": "path", + "pattern": "^organizations/[^/]+/locations/global/partnerTenants/[^/]+/browserDlpRules/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "get": { "description": "Gets details of a single BrowserDlpRule.", "flatPath": "v1alpha/organizations/{organizationsId}/locations/global/partnerTenants/{partnerTenantsId}/browserDlpRules/{browserDlpRulesId}", @@ -466,6 +475,45 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "patch": { + "description": "Update an existing BrowserDlpRule in a given organization and PartnerTenant.", + "flatPath": "v1alpha/organizations/{organizationsId}/locations/global/partnerTenants/{partnerTenantsId}/browserDlpRules/{browserDlpRulesId}", + "httpMethod": "PATCH", + "id": "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. Unique resource name. The name is ignored when creating BrowserDlpRule.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/global/partnerTenants/[^/]+/browserDlpRules/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Required. Supported fields include: rule_setting.value.*, group.id/group.email.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "request": { + "$ref": "GoogleCloudBeyondcorpPartnerservicesV1alphaBrowserDlpRule" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "setIamPolicy": { "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", "flatPath": "v1alpha/organizations/{organizationsId}/locations/global/partnerTenants/{partnerTenantsId}/browserDlpRules/{browserDlpRulesId}:setIamPolicy", @@ -645,6 +693,70 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "list": { + "description": "Lists ProxyConfigs for PartnerTenant in a given organization.", + "flatPath": "v1alpha/organizations/{organizationsId}/locations/global/partnerTenants/{partnerTenantsId}/proxyConfigs", + "httpMethod": "GET", + "id": "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent organization to which the ProxyConfigs belong. Format: `organizations/{organization_id}/locations/global/partnerTenants/{partner_tenant_id}`", + "location": "path", + "pattern": "^organizations/[^/]+/locations/global/partnerTenants/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/proxyConfigs", + "response": { + "$ref": "GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates a single proxy config.", + "flatPath": "v1alpha/organizations/{organizationsId}/locations/global/partnerTenants/{partnerTenantsId}/proxyConfigs/{proxyConfigsId}", + "httpMethod": "PATCH", + "id": "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. ProxyConfig resource name.", + "location": "path", + "pattern": "^organizations/[^/]+/locations/global/partnerTenants/[^/]+/proxyConfigs/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Required. Mutable fields include: display_name, proxy_uri, routing_info, transport_info, encryption_info.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "request": { + "$ref": "GoogleCloudBeyondcorpPartnerservicesV1alphaProxyConfig" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "setIamPolicy": { "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", "flatPath": "v1alpha/organizations/{organizationsId}/locations/global/partnerTenants/{partnerTenantsId}/proxyConfigs/{proxyConfigsId}:setIamPolicy", @@ -3856,7 +3968,7 @@ } } }, - "revision": "20230531", + "revision": "20230613", "rootUrl": "https://beyondcorp.googleapis.com/", "schemas": { "AllocatedConnection": { @@ -5539,21 +5651,24 @@ "description": "Message for response to listing PartnerTenants.", "id": "GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse", "properties": { - "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" - }, "partnerTenants": { "description": "The list of PartnerTenant objects.", "items": { "$ref": "GoogleCloudBeyondcorpPartnerservicesV1alphaPartnerTenant" }, "type": "array" - }, - "unreachable": { - "description": "Locations that could not be reached.", + } + }, + "type": "object" + }, + "GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse": { + "description": "Message for response to listing ProxyConfigs.", + "id": "GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse", + "properties": { + "proxyConfigs": { + "description": "The list of ProxyConfig objects.", "items": { - "type": "string" + "$ref": "GoogleCloudBeyondcorpPartnerservicesV1alphaProxyConfig" }, "type": "array" } diff --git a/beyondcorp/v1alpha/beyondcorp-gen.go b/beyondcorp/v1alpha/beyondcorp-gen.go index 9d755915a2a..5e0c9e0a551 100644 --- a/beyondcorp/v1alpha/beyondcorp-gen.go +++ b/beyondcorp/v1alpha/beyondcorp-gen.go @@ -2768,22 +2768,48 @@ func (s *GoogleCloudBeyondcorpPartnerservicesV1alphaGroup) MarshalJSON() ([]byte // // Message for response to listing PartnerTenants. type GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse struct { - // 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"` - // PartnerTenants: The list of PartnerTenant objects. PartnerTenants []*GoogleCloudBeyondcorpPartnerservicesV1alphaPartnerTenant `json:"partnerTenants,omitempty"` - // Unreachable: Locations that could not be reached. - Unreachable []string `json:"unreachable,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "PartnerTenants") 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. "PartnerTenants") 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 *GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse: +// Message for response to listing ProxyConfigs. +type GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse struct { + // ProxyConfigs: The list of ProxyConfig objects. + ProxyConfigs []*GoogleCloudBeyondcorpPartnerservicesV1alphaProxyConfig `json:"proxyConfigs,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // ForceSendFields is a list of field names (e.g. "ProxyConfigs") 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 @@ -2791,7 +2817,7 @@ type GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse struc // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NextPageToken") to include + // NullFields is a list of field names (e.g. "ProxyConfigs") 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 @@ -2800,8 +2826,8 @@ type GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse struc NullFields []string `json:"-"` } -func (s *GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse +func (s *GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } @@ -5725,46 +5751,6 @@ func (r *OrganizationsLocationsGlobalPartnerTenantsService) List(parent string) return c } -// Filter sets the optional parameter "filter": Filter partnerTenants to -// be returned. See [List Sub-Collections] -// (https://cloud.google.com/apis/design/design_patterns#list_sub-collections) -// for more details. All fields can be used in the filter. Usage: -// field_filter="fieldName1=fieldVal1 AND fieldName2=fieldVal2". NOTE: -// Only `AND` conditions are allowed. -func (c *OrganizationsLocationsGlobalPartnerTenantsListCall) Filter(filter string) *OrganizationsLocationsGlobalPartnerTenantsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// OrderBy sets the optional parameter "orderBy": Specifies the ordering -// of results. Currently, only ordering by the "name" and "create_time" -// fields are supported. See Sorting order -// (https://cloud.google.com/apis/design/design_patterns#sorting_order) -// for more information. -func (c *OrganizationsLocationsGlobalPartnerTenantsListCall) OrderBy(orderBy string) *OrganizationsLocationsGlobalPartnerTenantsListCall { - c.urlParams_.Set("orderBy", orderBy) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of items to return. The service may return fewer than this value. If -// unspecified, at most 50 items will be returned. The maximum value is -// 1000; values above 1000 are coerced to 1000. Regardless of the -// page_size value, the response may include a partial list and a caller -// should only rely on response's next_page_token to determine if there -// are more instances left to be queried. -func (c *OrganizationsLocationsGlobalPartnerTenantsListCall) PageSize(pageSize int64) *OrganizationsLocationsGlobalPartnerTenantsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A token -// identifying a page of results the server should return. -func (c *OrganizationsLocationsGlobalPartnerTenantsListCall) PageToken(pageToken string) *OrganizationsLocationsGlobalPartnerTenantsListCall { - 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. @@ -5877,27 +5863,6 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsListCall) Do(opts ...googleap // "parent" // ], // "parameters": { - // "filter": { - // "description": "Optional. Filter partnerTenants to be returned. See [List Sub-Collections] (https://cloud.google.com/apis/design/design_patterns#list_sub-collections) for more details. All fields can be used in the filter. Usage: field_filter=\"fieldName1=fieldVal1 AND fieldName2=fieldVal2\". NOTE: Only `AND` conditions are allowed.", - // "location": "query", - // "type": "string" - // }, - // "orderBy": { - // "description": "Optional. Specifies the ordering of results. Currently, only ordering by the \"name\" and \"create_time\" fields are supported. See [Sorting order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more information.", - // "location": "query", - // "type": "string" - // }, - // "pageSize": { - // "description": "Optional. The maximum number of items to return. The service may return fewer than this value. If unspecified, at most 50 items will be returned. The maximum value is 1000; values above 1000 are coerced to 1000. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's next_page_token to determine if there are more instances left to be queried.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "Optional. A token identifying a page of results the server should return.", - // "location": "query", - // "type": "string" - // }, // "parent": { // "description": "Required. The parent organization to which the PartnerTenants belong. Format: `organizations/{organization_id}/locations/global`", // "location": "path", @@ -5917,27 +5882,6 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsListCall) Do(opts ...googleap } -// 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 *OrganizationsLocationsGlobalPartnerTenantsListCall) Pages(ctx context.Context, f func(*GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse) 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 "beyondcorp.organizations.locations.global.partnerTenants.patch": type OrganizationsLocationsGlobalPartnerTenantsPatchCall struct { @@ -6588,6 +6532,163 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesCreateCall) Do } +// method id "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.delete": + +type OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes an existing BrowserDlpRule. +// +// - name: The resource name of the BrowserDlpRule using the form: +// `organizations/{organization_id}/locations/global/partnerTenants/{pa +// rtner_tenant_id}/browserDlpRules/{browser_dlp_rule_id}`. +func (r *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesService) Delete(name string) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesDeleteCall { + c := &OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. The server will guarantee +// that for at least 60 minutes after the first request. For example, +// consider a situation where you make an initial request and the +// request times out. If you make the request again with the same +// request ID, the server can check if original operation with the same +// request ID was received, and if so, will ignore the second request. +// This prevents clients from accidentally creating duplicate +// commitments. The request ID must be a valid UUID with the exception +// that zero UUID is not supported +// (00000000-0000-0000-0000-000000000000). +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesDeleteCall) RequestId(requestId string) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesDeleteCall { + 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 *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesDeleteCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesDeleteCall { + 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 *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesDeleteCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesDeleteCall { + 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 *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.delete" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes an existing BrowserDlpRule.", + // "flatPath": "v1alpha/organizations/{organizationsId}/locations/global/partnerTenants/{partnerTenantsId}/browserDlpRules/{browserDlpRulesId}", + // "httpMethod": "DELETE", + // "id": "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name of the BrowserDlpRule using the form: `organizations/{organization_id}/locations/global/partnerTenants/{partner_tenant_id}/browserDlpRules/{browser_dlp_rule_id}`", + // "location": "path", + // "pattern": "^organizations/[^/]+/locations/global/partnerTenants/[^/]+/browserDlpRules/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.get": type OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetCall struct { @@ -6914,22 +7015,202 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesGetIamPolicyCa } -// method id "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.setIamPolicy": +// method id "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.patch": -type OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesSetIamPolicyCall struct { - s *Service - resource string - googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall struct { + s *Service + name string + googlecloudbeyondcorppartnerservicesv1alphabrowserdlprule *GoogleCloudBeyondcorpPartnerservicesV1alphaBrowserDlpRule + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy. Can return `NOT_FOUND`, -// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// Patch: Update an existing BrowserDlpRule in a given organization and +// PartnerTenant. // -// - resource: REQUIRED: The resource for which the policy is being +// - name: Output only. Unique resource name. The name is ignored when +// creating BrowserDlpRule. +func (r *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesService) Patch(name string, googlecloudbeyondcorppartnerservicesv1alphabrowserdlprule *GoogleCloudBeyondcorpPartnerservicesV1alphaBrowserDlpRule) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall { + c := &OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudbeyondcorppartnerservicesv1alphabrowserdlprule = googlecloudbeyondcorppartnerservicesv1alphabrowserdlprule + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. The server will guarantee +// that for at least 60 minutes since the first request. For example, +// consider a situation where you make an initial request and the +// request times out. If you make the request again with the same +// request ID, the server can check if original operation with the same +// request ID was received, and if so, will ignore the second request. +// This prevents clients from accidentally creating duplicate +// commitments. The request ID must be a valid UUID with the exception +// that zero UUID is not supported +// (00000000-0000-0000-0000-000000000000). +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall) RequestId(requestId string) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. +// Supported fields include: rule_setting.value.*, group.id/group.email. +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall) UpdateMask(updateMask string) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall { + c.urlParams_.Set("updateMask", updateMask) + 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 *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall { + 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 *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall { + 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 *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall) 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.googlecloudbeyondcorppartnerservicesv1alphabrowserdlprule) + 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, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.patch" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Update an existing BrowserDlpRule in a given organization and PartnerTenant.", + // "flatPath": "v1alpha/organizations/{organizationsId}/locations/global/partnerTenants/{partnerTenantsId}/browserDlpRules/{browserDlpRulesId}", + // "httpMethod": "PATCH", + // "id": "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. Unique resource name. The name is ignored when creating BrowserDlpRule.", + // "location": "path", + // "pattern": "^organizations/[^/]+/locations/global/partnerTenants/[^/]+/browserDlpRules/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. Supported fields include: rule_setting.value.*, group.id/group.email.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "request": { + // "$ref": "GoogleCloudBeyondcorpPartnerservicesV1alphaBrowserDlpRule" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "beyondcorp.organizations.locations.global.partnerTenants.browserDlpRules.setIamPolicy": + +type OrganizationsLocationsGlobalPartnerTenantsBrowserDlpRulesSetIamPolicyCall struct { + s *Service + resource string + googleiamv1setiampolicyrequest *GoogleIamV1SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being // specified. See Resource names // (https://cloud.google.com/apis/design/resource_names) for the // appropriate value for this field. @@ -7862,6 +8143,337 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsGetIamPolicyCall) } +// method id "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.list": + +type OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists ProxyConfigs for PartnerTenant in a given organization. +// +// - parent: The parent organization to which the ProxyConfigs belong. +// Format: +// `organizations/{organization_id}/locations/global/partnerTenants/{pa +// rtner_tenant_id}`. +func (r *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsService) List(parent string) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall { + c := &OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.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. +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall { + 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 *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall { + 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 *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall { + 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 *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/proxyConfigs") + 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 "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.list" call. +// Exactly one of +// *GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse +// or error will be non-nil. Any non-2xx status code is an error. +// Response headers are in either +// *GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse.S +// erverResponse.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 *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse, 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 := &GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse{ + 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 ProxyConfigs for PartnerTenant in a given organization.", + // "flatPath": "v1alpha/organizations/{organizationsId}/locations/global/partnerTenants/{partnerTenantsId}/proxyConfigs", + // "httpMethod": "GET", + // "id": "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "parent": { + // "description": "Required. The parent organization to which the ProxyConfigs belong. Format: `organizations/{organization_id}/locations/global/partnerTenants/{partner_tenant_id}`", + // "location": "path", + // "pattern": "^organizations/[^/]+/locations/global/partnerTenants/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1alpha/{+parent}/proxyConfigs", + // "response": { + // "$ref": "GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.patch": + +type OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall struct { + s *Service + name string + googlecloudbeyondcorppartnerservicesv1alphaproxyconfig *GoogleCloudBeyondcorpPartnerservicesV1alphaProxyConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a single proxy config. +// +// - name: Output only. ProxyConfig resource name. +func (r *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsService) Patch(name string, googlecloudbeyondcorppartnerservicesv1alphaproxyconfig *GoogleCloudBeyondcorpPartnerservicesV1alphaProxyConfig) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall { + c := &OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlecloudbeyondcorppartnerservicesv1alphaproxyconfig = googlecloudbeyondcorppartnerservicesv1alphaproxyconfig + return c +} + +// RequestId sets the optional parameter "requestId": An optional +// request ID to identify requests. Specify a unique request ID so that +// if you must retry your request, the server will know to ignore the +// request if it has already been completed. The server will guarantee +// that for at least 60 minutes after the first request. For example, +// consider a situation where you make an initial request and the +// request times out. If you make the request again with the same +// request ID, the server can check if original operation with the same +// request ID was received, and if so, will ignore the second request. +// This prevents clients from accidentally creating duplicate +// commitments. The request ID must be a valid UUID with the exception +// that zero UUID is not supported +// (00000000-0000-0000-0000-000000000000). +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall) RequestId(requestId string) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. +// Mutable fields include: display_name, proxy_uri, routing_info, +// transport_info, encryption_info. +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall) UpdateMask(updateMask string) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + 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 *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall) Fields(s ...googleapi.Field) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall { + 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 *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall) Context(ctx context.Context) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall { + 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 *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall) 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.googlecloudbeyondcorppartnerservicesv1alphaproxyconfig) + 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, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.patch" call. +// Exactly one of *GoogleLongrunningOperation or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response +// was returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Updates a single proxy config.", + // "flatPath": "v1alpha/organizations/{organizationsId}/locations/global/partnerTenants/{partnerTenantsId}/proxyConfigs/{proxyConfigsId}", + // "httpMethod": "PATCH", + // "id": "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.patch", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Output only. ProxyConfig resource name.", + // "location": "path", + // "pattern": "^organizations/[^/]+/locations/global/partnerTenants/[^/]+/proxyConfigs/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. Mutable fields include: display_name, proxy_uri, routing_info, transport_info, encryption_info.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1alpha/{+name}", + // "request": { + // "$ref": "GoogleCloudBeyondcorpPartnerservicesV1alphaProxyConfig" + // }, + // "response": { + // "$ref": "GoogleLongrunningOperation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.setIamPolicy": type OrganizationsLocationsGlobalPartnerTenantsProxyConfigsSetIamPolicyCall struct { diff --git a/ids/v1/ids-api.json b/ids/v1/ids-api.json index fab5f38d4fe..483e9650bf6 100644 --- a/ids/v1/ids-api.json +++ b/ids/v1/ids-api.json @@ -574,7 +574,7 @@ } } }, - "revision": "20230404", + "revision": "20230612", "rootUrl": "https://ids.googleapis.com/", "schemas": { "AuditConfig": { @@ -842,7 +842,7 @@ "type": "object" }, "Location": { - "description": "A resource that represents Google Cloud Platform location.", + "description": "A resource that represents a Google Cloud location.", "id": "Location", "properties": { "displayName": { diff --git a/ids/v1/ids-gen.go b/ids/v1/ids-gen.go index 964fda1d651..80110eb2ccc 100644 --- a/ids/v1/ids-gen.go +++ b/ids/v1/ids-gen.go @@ -633,7 +633,7 @@ func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Location: A resource that represents Google Cloud Platform location. +// Location: A resource that represents a Google Cloud location. type Location struct { // DisplayName: The friendly name for this location, typically a nearby // city name. For example, "Tokyo". diff --git a/migrationcenter/v1alpha1/migrationcenter-api.json b/migrationcenter/v1alpha1/migrationcenter-api.json index 9e1ba86b900..dc972013b30 100644 --- a/migrationcenter/v1alpha1/migrationcenter-api.json +++ b/migrationcenter/v1alpha1/migrationcenter-api.json @@ -2102,7 +2102,7 @@ } } }, - "revision": "20230602", + "revision": "20230613", "rootUrl": "https://migrationcenter.googleapis.com/", "schemas": { "AddAssetsToGroupRequest": { @@ -2398,7 +2398,7 @@ "type": "object" }, "performanceSamples": { - "description": "Asset performance data samples.", + "description": "Asset performance data samples. Samples that are older than 40 days are ignored.", "items": { "$ref": "PerformanceSample" }, @@ -4383,7 +4383,7 @@ "description": "Network usage sample." }, "sampleTime": { - "description": "Time the sample was collected.", + "description": "Required. Time the sample was collected.", "format": "google-datetime", "type": "string" } @@ -4816,9 +4816,17 @@ "description": "Text describing the pricing track specified for this Preference Set", "type": "string" }, + "soleTenantFinding": { + "$ref": "ReportSummarySoleTenantFinding", + "description": "A set of findings that applies to Stole-Tenant machines in the input." + }, "topPriority": { "description": "Text describing the business priority specified for this Preference Set", "type": "string" + }, + "vmwareEngineFinding": { + "$ref": "ReportSummaryVMWareEngineFinding", + "description": "A set of findings that applies to VMWare machines in the input." } }, "type": "object" @@ -4920,6 +4928,53 @@ }, "type": "object" }, + "ReportSummarySoleTenantFinding": { + "description": "A set of findings that applies to assets destined for Sole-Tenant nodes.", + "id": "ReportSummarySoleTenantFinding", + "properties": { + "allocatedAssetCount": { + "description": "Count of assets which are allocated", + "format": "int64", + "type": "string" + }, + "allocatedRegions": { + "description": "Set of regions in which the assets are allocated", + "items": { + "type": "string" + }, + "type": "array" + }, + "nodeAllocations": { + "description": "Set of per-nodetype allocation records", + "items": { + "$ref": "ReportSummarySoleTenantNodeAllocation" + }, + "type": "array" + } + }, + "type": "object" + }, + "ReportSummarySoleTenantNodeAllocation": { + "description": "Represents the assets allocated to a specific Sole-Tenant node type.", + "id": "ReportSummarySoleTenantNodeAllocation", + "properties": { + "allocatedAssetCount": { + "description": "Count of assets allocated to these nodes", + "format": "int64", + "type": "string" + }, + "node": { + "$ref": "SoleTenantNodeType", + "description": "Sole Tenant node type, e.g. \"m3-node-128-3904\"" + }, + "nodeCount": { + "description": "Count of this node type to be provisioned", + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "ReportSummaryUtilizationChartData": { "description": "Utilization Chart is a specific type of visualization which displays a metric classified into \"Used\" and \"Free\" buckets.", "id": "ReportSummaryUtilizationChartData", @@ -4937,6 +4992,64 @@ }, "type": "object" }, + "ReportSummaryVMWareEngineFinding": { + "description": "A set of findings that applies to assets destined for VMWare Engine.", + "id": "ReportSummaryVMWareEngineFinding", + "properties": { + "allocatedAssetCount": { + "description": "Count of assets which are allocated", + "format": "int64", + "type": "string" + }, + "allocatedRegions": { + "description": "Set of regions in which the assets were allocated", + "items": { + "type": "string" + }, + "type": "array" + }, + "nodeAllocations": { + "description": "Set of per-nodetype allocation records", + "items": { + "$ref": "ReportSummaryVMWareNodeAllocation" + }, + "type": "array" + } + }, + "type": "object" + }, + "ReportSummaryVMWareNode": { + "description": "A VMWare Engine Node", + "id": "ReportSummaryVMWareNode", + "properties": { + "code": { + "description": "Code to identify VMware Engine node series, e.g. \"ve1-standard-72\". Based on the displayName of cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locations.nodeTypes", + "type": "string" + } + }, + "type": "object" + }, + "ReportSummaryVMWareNodeAllocation": { + "description": "Represents assets allocated to a specific VMWare Node type.", + "id": "ReportSummaryVMWareNodeAllocation", + "properties": { + "allocatedAssetCount": { + "description": "Count of assets allocated to these nodes", + "format": "int64", + "type": "string" + }, + "nodeCount": { + "description": "Count of this node type to be provisioned", + "format": "int64", + "type": "string" + }, + "vmwareNode": { + "$ref": "ReportSummaryVMWareNode", + "description": "VMWare node type, e.g. \"ve1-standard-72\"" + } + }, + "type": "object" + }, "RunImportJobRequest": { "description": "A request to run an import job.", "id": "RunImportJobRequest", @@ -5093,6 +5206,68 @@ }, "type": "object" }, + "SoleTenancyPreferences": { + "description": "Preferences concerning Sole Tenancy nodes and VMs.", + "id": "SoleTenancyPreferences", + "properties": { + "commitmentPlan": { + "description": "Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with.", + "enum": [ + "COMMITMENT_PLAN_UNSPECIFIED", + "ON_DEMAND", + "COMMITMENT_1_YEAR", + "COMMITMENT_3_YEAR" + ], + "enumDescriptions": [ + "Unspecified commitment plan.", + "No commitment plan (on-demand usage).", + "1 year commitment.", + "3 years commitment." + ], + "type": "string" + }, + "cpuOvercommitRatio": { + "description": "CPU overcommit ratio. Acceptable values are between 1.0 and 2.0 inclusive.", + "format": "double", + "type": "number" + }, + "hostMaintenancePolicy": { + "description": "Sole Tenancy nodes maintenance policy.", + "enum": [ + "HOST_MAINTENANCE_POLICY_UNSPECIFIED", + "HOST_MAINTENANCE_POLICY_DEFAULT", + "HOST_MAINTENANCE_POLICY_RESTART_IN_PLACE", + "HOST_MAINTENANCE_POLICY_MIGRATE_WITHIN_NODE_GROUP" + ], + "enumDescriptions": [ + "Unspecified host maintenance policy.", + "Default host maintenance policy.", + "Restart in place host maintenance policy.", + "Migrate within node group host maintenance policy." + ], + "type": "string" + }, + "nodeTypes": { + "description": "A list of sole tenant node types. An empty list means that all possible node types will be considered.", + "items": { + "$ref": "SoleTenantNodeType" + }, + "type": "array" + } + }, + "type": "object" + }, + "SoleTenantNodeType": { + "description": "A Sole Tenant node type.", + "id": "SoleTenantNodeType", + "properties": { + "nodeName": { + "description": "Name of the Sole Tenant node. Consult https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes", + "type": "string" + } + }, + "type": "object" + }, "Source": { "description": "Source represents an object from which asset information is streamed to Migration Center.", "id": "Source", @@ -5541,6 +5716,30 @@ "Virtual machine sizing will match the reported usage, with little slack. Using this option can help reduce costs." ], "type": "string" + }, + "soleTenancyPreferences": { + "$ref": "SoleTenancyPreferences", + "description": "Preferences concerning Sole Tenant nodes and virtual machines." + }, + "targetProduct": { + "description": "Target product for assets using this preference set. Specify either target product or business goal, but not both.", + "enum": [ + "COMPUTE_MIGRATION_TARGET_PRODUCT_UNSPECIFIED", + "COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE", + "COMPUTE_MIGRATION_TARGET_PRODUCT_VMWARE_ENGINE", + "COMPUTE_MIGRATION_TARGET_PRODUCT_SOLE_TENANCY" + ], + "enumDescriptions": [ + "Unspecified (default value).", + "Prefer to migrate to Google Cloud Compute Engine.", + "Prefer to migrate to Google Cloud VMware Engine.", + "Prefer to migrate to Google Cloud Sole Tenant Nodes." + ], + "type": "string" + }, + "vmwareEnginePreferences": { + "$ref": "VmwareEnginePreferences", + "description": "Preferences concerning insights and recommendations for Google Cloud VMware Engine." } }, "type": "object" @@ -5596,6 +5795,48 @@ "properties": {}, "type": "object" }, + "VmwareEnginePreferences": { + "description": "The user preferences relating to Google Cloud VMware Engine target platform.", + "id": "VmwareEnginePreferences", + "properties": { + "commitmentPlan": { + "description": "Commitment plan to consider when calculating costs for virtual machine insights and recommendations. If you are unsure which value to set, a 3 year commitment plan is often a good value to start with.", + "enum": [ + "COMMITMENT_PLAN_UNSPECIFIED", + "ON_DEMAND", + "COMMITMENT_1_YEAR_MONTHLY_PAYMENTS", + "COMMITMENT_3_YEAR_MONTHLY_PAYMENTS", + "COMMITMENT_1_YEAR_UPFRONT_PAYMENT", + "COMMITMENT_3_YEAR_UPFRONT_PAYMENT" + ], + "enumDescriptions": [ + "Unspecified commitment plan.", + "No commitment plan (on-demand usage).", + "1 year commitment (monthly payments).", + "3 year commitment (monthly payments).", + "1 year commitment (upfront payment).", + "3 years commitment (upfront payment)." + ], + "type": "string" + }, + "cpuOvercommitRatio": { + "description": "CPU overcommit ratio. Acceptable values are between 1.0 and 8.0, with 0.1 increment.", + "format": "double", + "type": "number" + }, + "memoryOvercommitRatio": { + "description": "Memory overcommit ratio. Acceptable values are 1.0, 1.25, 1.5, 1.75 and 2.0.", + "format": "double", + "type": "number" + }, + "storageDeduplicationCompressionRatio": { + "description": "The Deduplication and Compression ratio is based on the logical (Used Before) space required to store data before applying deduplication and compression, in relation to the physical (Used After) space required after applying deduplication and compression. Specifically, the ratio is the Used Before space divided by the Used After space. For example, if the Used Before space is 3 GB, but the physical Used After space is 1 GB, the deduplication and compression ratio is 3x. Acceptable values are between 1.0 and 4.0.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, "VmwarePlatformDetails": { "description": "VMware specific details.", "id": "VmwarePlatformDetails", diff --git a/migrationcenter/v1alpha1/migrationcenter-gen.go b/migrationcenter/v1alpha1/migrationcenter-gen.go index decb54c81cc..bb1341228e3 100644 --- a/migrationcenter/v1alpha1/migrationcenter-gen.go +++ b/migrationcenter/v1alpha1/migrationcenter-gen.go @@ -794,7 +794,8 @@ type AssetFrame struct { // Labels: Labels as key value pairs. Labels map[string]string `json:"labels,omitempty"` - // PerformanceSamples: Asset performance data samples. + // PerformanceSamples: Asset performance data samples. Samples that are + // older than 40 days are ignored. PerformanceSamples []*PerformanceSample `json:"performanceSamples,omitempty"` // ReportTime: The time the data was reported. @@ -4040,7 +4041,7 @@ type PerformanceSample struct { // Network: Network usage sample. Network *NetworkUsageSample `json:"network,omitempty"` - // SampleTime: Time the sample was collected. + // SampleTime: Required. Time the sample was collected. SampleTime string `json:"sampleTime,omitempty"` // ForceSendFields is a list of field names (e.g. "Cpu") to @@ -4699,10 +4700,18 @@ type ReportSummaryGroupPreferenceSetFinding struct { // Preference Set PricingTrack string `json:"pricingTrack,omitempty"` + // SoleTenantFinding: A set of findings that applies to Stole-Tenant + // machines in the input. + SoleTenantFinding *ReportSummarySoleTenantFinding `json:"soleTenantFinding,omitempty"` + // TopPriority: Text describing the business priority specified for this // Preference Set TopPriority string `json:"topPriority,omitempty"` + // VmwareEngineFinding: A set of findings that applies to VMWare + // machines in the input. + VmwareEngineFinding *ReportSummaryVMWareEngineFinding `json:"vmwareEngineFinding,omitempty"` + // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -4880,6 +4889,78 @@ func (s *ReportSummaryMachineSeriesAllocation) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ReportSummarySoleTenantFinding: A set of findings that applies to +// assets destined for Sole-Tenant nodes. +type ReportSummarySoleTenantFinding struct { + // AllocatedAssetCount: Count of assets which are allocated + AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"` + + // AllocatedRegions: Set of regions in which the assets are allocated + AllocatedRegions []string `json:"allocatedRegions,omitempty"` + + // NodeAllocations: Set of per-nodetype allocation records + NodeAllocations []*ReportSummarySoleTenantNodeAllocation `json:"nodeAllocations,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AllocatedAssetCount") + // 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. "AllocatedAssetCount") 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 *ReportSummarySoleTenantFinding) MarshalJSON() ([]byte, error) { + type NoMethod ReportSummarySoleTenantFinding + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ReportSummarySoleTenantNodeAllocation: Represents the assets +// allocated to a specific Sole-Tenant node type. +type ReportSummarySoleTenantNodeAllocation struct { + // AllocatedAssetCount: Count of assets allocated to these nodes + AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"` + + // Node: Sole Tenant node type, e.g. "m3-node-128-3904" + Node *SoleTenantNodeType `json:"node,omitempty"` + + // NodeCount: Count of this node type to be provisioned + NodeCount int64 `json:"nodeCount,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "AllocatedAssetCount") + // 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. "AllocatedAssetCount") 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 *ReportSummarySoleTenantNodeAllocation) MarshalJSON() ([]byte, error) { + type NoMethod ReportSummarySoleTenantNodeAllocation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ReportSummaryUtilizationChartData: Utilization Chart is a specific // type of visualization which displays a metric classified into "Used" // and "Free" buckets. @@ -4913,6 +4994,109 @@ func (s *ReportSummaryUtilizationChartData) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// ReportSummaryVMWareEngineFinding: A set of findings that applies to +// assets destined for VMWare Engine. +type ReportSummaryVMWareEngineFinding struct { + // AllocatedAssetCount: Count of assets which are allocated + AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"` + + // AllocatedRegions: Set of regions in which the assets were allocated + AllocatedRegions []string `json:"allocatedRegions,omitempty"` + + // NodeAllocations: Set of per-nodetype allocation records + NodeAllocations []*ReportSummaryVMWareNodeAllocation `json:"nodeAllocations,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AllocatedAssetCount") + // 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. "AllocatedAssetCount") 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 *ReportSummaryVMWareEngineFinding) MarshalJSON() ([]byte, error) { + type NoMethod ReportSummaryVMWareEngineFinding + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ReportSummaryVMWareNode: A VMWare Engine Node +type ReportSummaryVMWareNode struct { + // Code: Code to identify VMware Engine node series, e.g. + // "ve1-standard-72". Based on the displayName of + // cloud.google.com/vmware-engine/docs/reference/rest/v1/projects.locatio + // ns.nodeTypes + Code string `json:"code,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ReportSummaryVMWareNode) MarshalJSON() ([]byte, error) { + type NoMethod ReportSummaryVMWareNode + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ReportSummaryVMWareNodeAllocation: Represents assets allocated to a +// specific VMWare Node type. +type ReportSummaryVMWareNodeAllocation struct { + // AllocatedAssetCount: Count of assets allocated to these nodes + AllocatedAssetCount int64 `json:"allocatedAssetCount,omitempty,string"` + + // NodeCount: Count of this node type to be provisioned + NodeCount int64 `json:"nodeCount,omitempty,string"` + + // VmwareNode: VMWare node type, e.g. "ve1-standard-72" + VmwareNode *ReportSummaryVMWareNode `json:"vmwareNode,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AllocatedAssetCount") + // 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. "AllocatedAssetCount") 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 *ReportSummaryVMWareNodeAllocation) MarshalJSON() ([]byte, error) { + type NoMethod ReportSummaryVMWareNodeAllocation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // RunImportJobRequest: A request to run an import job. type RunImportJobRequest struct { // RequestId: Optional. An optional request ID to identify requests. @@ -5195,6 +5379,109 @@ func (s *Settings) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SoleTenancyPreferences: Preferences concerning Sole Tenancy nodes and +// VMs. +type SoleTenancyPreferences struct { + // CommitmentPlan: Commitment plan to consider when calculating costs + // for virtual machine insights and recommendations. If you are unsure + // which value to set, a 3 year commitment plan is often a good value to + // start with. + // + // Possible values: + // "COMMITMENT_PLAN_UNSPECIFIED" - Unspecified commitment plan. + // "ON_DEMAND" - No commitment plan (on-demand usage). + // "COMMITMENT_1_YEAR" - 1 year commitment. + // "COMMITMENT_3_YEAR" - 3 years commitment. + CommitmentPlan string `json:"commitmentPlan,omitempty"` + + // CpuOvercommitRatio: CPU overcommit ratio. Acceptable values are + // between 1.0 and 2.0 inclusive. + CpuOvercommitRatio float64 `json:"cpuOvercommitRatio,omitempty"` + + // HostMaintenancePolicy: Sole Tenancy nodes maintenance policy. + // + // Possible values: + // "HOST_MAINTENANCE_POLICY_UNSPECIFIED" - Unspecified host + // maintenance policy. + // "HOST_MAINTENANCE_POLICY_DEFAULT" - Default host maintenance + // policy. + // "HOST_MAINTENANCE_POLICY_RESTART_IN_PLACE" - Restart in place host + // maintenance policy. + // "HOST_MAINTENANCE_POLICY_MIGRATE_WITHIN_NODE_GROUP" - Migrate + // within node group host maintenance policy. + HostMaintenancePolicy string `json:"hostMaintenancePolicy,omitempty"` + + // NodeTypes: A list of sole tenant node types. An empty list means that + // all possible node types will be considered. + NodeTypes []*SoleTenantNodeType `json:"nodeTypes,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CommitmentPlan") 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. "CommitmentPlan") 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 *SoleTenancyPreferences) MarshalJSON() ([]byte, error) { + type NoMethod SoleTenancyPreferences + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *SoleTenancyPreferences) UnmarshalJSON(data []byte) error { + type NoMethod SoleTenancyPreferences + var s1 struct { + CpuOvercommitRatio gensupport.JSONFloat64 `json:"cpuOvercommitRatio"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.CpuOvercommitRatio = float64(s1.CpuOvercommitRatio) + return nil +} + +// SoleTenantNodeType: A Sole Tenant node type. +type SoleTenantNodeType struct { + // NodeName: Name of the Sole Tenant node. Consult + // https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes + NodeName string `json:"nodeName,omitempty"` + + // ForceSendFields is a list of field names (e.g. "NodeName") 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. "NodeName") 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 *SoleTenantNodeType) MarshalJSON() ([]byte, error) { + type NoMethod SoleTenantNodeType + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // Source: Source represents an object from which asset information is // streamed to Migration Center. type Source struct { @@ -5780,6 +6067,28 @@ type VirtualMachinePreferences struct { // can help reduce costs. SizingOptimizationStrategy string `json:"sizingOptimizationStrategy,omitempty"` + // SoleTenancyPreferences: Preferences concerning Sole Tenant nodes and + // virtual machines. + SoleTenancyPreferences *SoleTenancyPreferences `json:"soleTenancyPreferences,omitempty"` + + // TargetProduct: Target product for assets using this preference set. + // Specify either target product or business goal, but not both. + // + // Possible values: + // "COMPUTE_MIGRATION_TARGET_PRODUCT_UNSPECIFIED" - Unspecified + // (default value). + // "COMPUTE_MIGRATION_TARGET_PRODUCT_COMPUTE_ENGINE" - Prefer to + // migrate to Google Cloud Compute Engine. + // "COMPUTE_MIGRATION_TARGET_PRODUCT_VMWARE_ENGINE" - Prefer to + // migrate to Google Cloud VMware Engine. + // "COMPUTE_MIGRATION_TARGET_PRODUCT_SOLE_TENANCY" - Prefer to migrate + // to Google Cloud Sole Tenant Nodes. + TargetProduct string `json:"targetProduct,omitempty"` + + // VmwareEnginePreferences: Preferences concerning insights and + // recommendations for Google Cloud VMware Engine. + VmwareEnginePreferences *VmwareEnginePreferences `json:"vmwareEnginePreferences,omitempty"` + // ForceSendFields is a list of field names (e.g. "CommitmentPlan") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -5858,6 +6167,88 @@ func (s *VmwareDiskConfig) MarshalJSON() ([]byte, error) { type VmwareEngineMigrationTarget struct { } +// VmwareEnginePreferences: The user preferences relating to Google +// Cloud VMware Engine target platform. +type VmwareEnginePreferences struct { + // CommitmentPlan: Commitment plan to consider when calculating costs + // for virtual machine insights and recommendations. If you are unsure + // which value to set, a 3 year commitment plan is often a good value to + // start with. + // + // Possible values: + // "COMMITMENT_PLAN_UNSPECIFIED" - Unspecified commitment plan. + // "ON_DEMAND" - No commitment plan (on-demand usage). + // "COMMITMENT_1_YEAR_MONTHLY_PAYMENTS" - 1 year commitment (monthly + // payments). + // "COMMITMENT_3_YEAR_MONTHLY_PAYMENTS" - 3 year commitment (monthly + // payments). + // "COMMITMENT_1_YEAR_UPFRONT_PAYMENT" - 1 year commitment (upfront + // payment). + // "COMMITMENT_3_YEAR_UPFRONT_PAYMENT" - 3 years commitment (upfront + // payment). + CommitmentPlan string `json:"commitmentPlan,omitempty"` + + // CpuOvercommitRatio: CPU overcommit ratio. Acceptable values are + // between 1.0 and 8.0, with 0.1 increment. + CpuOvercommitRatio float64 `json:"cpuOvercommitRatio,omitempty"` + + // MemoryOvercommitRatio: Memory overcommit ratio. Acceptable values are + // 1.0, 1.25, 1.5, 1.75 and 2.0. + MemoryOvercommitRatio float64 `json:"memoryOvercommitRatio,omitempty"` + + // StorageDeduplicationCompressionRatio: The Deduplication and + // Compression ratio is based on the logical (Used Before) space + // required to store data before applying deduplication and compression, + // in relation to the physical (Used After) space required after + // applying deduplication and compression. Specifically, the ratio is + // the Used Before space divided by the Used After space. For example, + // if the Used Before space is 3 GB, but the physical Used After space + // is 1 GB, the deduplication and compression ratio is 3x. Acceptable + // values are between 1.0 and 4.0. + StorageDeduplicationCompressionRatio float64 `json:"storageDeduplicationCompressionRatio,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CommitmentPlan") 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. "CommitmentPlan") 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 *VmwareEnginePreferences) MarshalJSON() ([]byte, error) { + type NoMethod VmwareEnginePreferences + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +func (s *VmwareEnginePreferences) UnmarshalJSON(data []byte) error { + type NoMethod VmwareEnginePreferences + var s1 struct { + CpuOvercommitRatio gensupport.JSONFloat64 `json:"cpuOvercommitRatio"` + MemoryOvercommitRatio gensupport.JSONFloat64 `json:"memoryOvercommitRatio"` + StorageDeduplicationCompressionRatio gensupport.JSONFloat64 `json:"storageDeduplicationCompressionRatio"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.CpuOvercommitRatio = float64(s1.CpuOvercommitRatio) + s.MemoryOvercommitRatio = float64(s1.MemoryOvercommitRatio) + s.StorageDeduplicationCompressionRatio = float64(s1.StorageDeduplicationCompressionRatio) + return nil +} + // VmwarePlatformDetails: VMware specific details. type VmwarePlatformDetails struct { // EsxVersion: ESX version.