From d0a5bba72f27be94c09b7dc7174b12657ab9bd75 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Thu, 14 May 2026 01:45:56 +0000 Subject: [PATCH 01/16] fix(androidpublisher): update the API #### androidpublisher:v3 The following keys were changed: - schemas.AutoRenewingPlan.properties.recurringPrice.description --- discovery/androidpublisher-v3.json | 4 ++-- src/apis/androidpublisher/v3.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/discovery/androidpublisher-v3.json b/discovery/androidpublisher-v3.json index 60bd30895c..1437bc9949 100644 --- a/discovery/androidpublisher-v3.json +++ b/discovery/androidpublisher-v3.json @@ -5637,7 +5637,7 @@ } } }, - "revision": "20260506", + "revision": "20260511", "rootUrl": "https://androidpublisher.googleapis.com/", "schemas": { "Abi": { @@ -6308,7 +6308,7 @@ }, "recurringPrice": { "$ref": "Money", - "description": "The current recurring price of the auto renewing plan. Note that the price does not take into account discounts and does not include taxes for tax-exclusive pricing, please call orders.get API instead if transaction details are needed." + "description": "The current recurring price of the auto renewing plan. Note that the price does not take into account discounts and does not include taxes. For tax-exclusive pricing, please call orders.get API instead if transaction details are needed." } }, "type": "object" diff --git a/src/apis/androidpublisher/v3.ts b/src/apis/androidpublisher/v3.ts index 21084a3028..432ddf25f5 100644 --- a/src/apis/androidpublisher/v3.ts +++ b/src/apis/androidpublisher/v3.ts @@ -621,7 +621,7 @@ export namespace androidpublisher_v3 { */ priceStepUpConsentDetails?: Schema$PriceStepUpConsentDetails; /** - * The current recurring price of the auto renewing plan. Note that the price does not take into account discounts and does not include taxes for tax-exclusive pricing, please call orders.get API instead if transaction details are needed. + * The current recurring price of the auto renewing plan. Note that the price does not take into account discounts and does not include taxes. For tax-exclusive pricing, please call orders.get API instead if transaction details are needed. */ recurringPrice?: Schema$Money; } From 6bbab243effc7c01c8358f24b202aa5c2317b8a9 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Thu, 14 May 2026 01:45:56 +0000 Subject: [PATCH 02/16] fix(cloudnumberregistry): update the API --- discovery/cloudnumberregistry-v1alpha.json | 2534 ++++++ src/apis/cloudnumberregistry/README.md | 28 + src/apis/cloudnumberregistry/index.ts | 49 + src/apis/cloudnumberregistry/package.json | 43 + src/apis/cloudnumberregistry/tsconfig.json | 10 + src/apis/cloudnumberregistry/v1alpha.ts | 6880 +++++++++++++++++ .../cloudnumberregistry/webpack.config.js | 79 + 7 files changed, 9623 insertions(+) create mode 100644 discovery/cloudnumberregistry-v1alpha.json create mode 100644 src/apis/cloudnumberregistry/README.md create mode 100644 src/apis/cloudnumberregistry/index.ts create mode 100644 src/apis/cloudnumberregistry/package.json create mode 100644 src/apis/cloudnumberregistry/tsconfig.json create mode 100644 src/apis/cloudnumberregistry/v1alpha.ts create mode 100644 src/apis/cloudnumberregistry/webpack.config.js diff --git a/discovery/cloudnumberregistry-v1alpha.json b/discovery/cloudnumberregistry-v1alpha.json new file mode 100644 index 0000000000..d4c544c518 --- /dev/null +++ b/discovery/cloudnumberregistry-v1alpha.json @@ -0,0 +1,2534 @@ +{ + "auth": { + "oauth2": { + "scopes": { + "https://www.googleapis.com/auth/cloud-platform": { + "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account." + } + } + } + }, + "basePath": "", + "baseUrl": "https://cloudnumberregistry.googleapis.com/", + "batchPath": "batch", + "canonicalName": "Cloud Number Registry", + "description": "", + "discoveryVersion": "v1", + "documentationLink": "https://docs.cloud.google.com/number-registry/reference/rest", + "fullyEncodeReservedExpansion": true, + "icons": { + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" + }, + "id": "cloudnumberregistry:v1alpha", + "kind": "discovery#restDescription", + "mtlsRootUrl": "https://cloudnumberregistry.mtls.googleapis.com/", + "name": "cloudnumberregistry", + "ownerDomain": "google.com", + "ownerName": "Google", + "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, + "alt": { + "default": "json", + "description": "Data format for response.", + "enum": [ + "json", + "media", + "proto" + ], + "enumDescriptions": [ + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" + ], + "location": "query", + "type": "string" + }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, + "fields": { + "description": "Selector specifying which fields to include in a partial response.", + "location": "query", + "type": "string" + }, + "key": { + "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", + "location": "query", + "type": "string" + }, + "oauth_token": { + "description": "OAuth 2.0 token for the current user.", + "location": "query", + "type": "string" + }, + "prettyPrint": { + "default": "true", + "description": "Returns response with indentations and line breaks.", + "location": "query", + "type": "boolean" + }, + "quotaUser": { + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query", + "type": "string" + }, + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", + "location": "query", + "type": "string" + }, + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", + "location": "query", + "type": "string" + } + }, + "protocol": "rest", + "resources": { + "projects": { + "resources": { + "locations": { + "methods": { + "get": { + "description": "Gets information about a location.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}", + "httpMethod": "GET", + "id": "cloudnumberregistry.projects.locations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Resource name for the location.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "Location" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.", + "flatPath": "v1alpha/projects/{projectsId}/locations", + "httpMethod": "GET", + "id": "cloudnumberregistry.projects.locations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "extraLocationTypes": { + "description": "Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.", + "location": "query", + "repeated": true, + "type": "string" + }, + "filter": { + "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + "location": "query", + "type": "string" + }, + "name": { + "description": "The resource that owns the locations collection, if applicable.", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The maximum number of results to return. If not set, the service selects a default.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+name}/locations", + "response": { + "$ref": "ListLocationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "customRanges": { + "methods": { + "create": { + "description": "Creates a new CustomRange in a given project and location.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/customRanges", + "httpMethod": "POST", + "id": "cloudnumberregistry.projects.locations.customRanges.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "customRangeId": { + "description": "Required. Id of the requesting object.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Value for parent.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "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" + } + }, + "path": "v1alpha/{+parent}/customRanges", + "request": { + "$ref": "CustomRange" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single CustomRange.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/customRanges/{customRangesId}", + "httpMethod": "DELETE", + "id": "cloudnumberregistry.projects.locations.customRanges.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "force": { + "description": "Optional. If set to true, all associated resources will be deleted.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. Name of the resource", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/customRanges/[^/]+$", + "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": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "findFreeIpRanges": { + "description": "Finds free IP ranges in a single CustomRange.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/customRanges/{customRangesId}:findFreeIpRanges", + "httpMethod": "GET", + "id": "cloudnumberregistry.projects.locations.customRanges.findFreeIpRanges", + "parameterOrder": [ + "name" + ], + "parameters": { + "cidrPrefixLength": { + "description": "Required. The prefix length of the free IP ranges to find.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "name": { + "description": "Required. Name of the CustomRange.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/customRanges/[^/]+$", + "required": true, + "type": "string" + }, + "rangeCount": { + "description": "Optional. The number of free IP ranges to find.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "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" + } + }, + "path": "v1alpha/{+name}:findFreeIpRanges", + "response": { + "$ref": "FindCustomRangeFreeIpRangesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single CustomRange.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/customRanges/{customRangesId}", + "httpMethod": "GET", + "id": "cloudnumberregistry.projects.locations.customRanges.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the resource", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/customRanges/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "CustomRange" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists CustomRanges in a given project and location.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/customRanges", + "httpMethod": "GET", + "id": "cloudnumberregistry.projects.locations.customRanges.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filtering results.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Hint for how to order the results.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.", + "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. Parent value for ListCustomRangesRequest", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/customRanges", + "response": { + "$ref": "ListCustomRangesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the parameters of a single CustomRange.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/customRanges/{customRangesId}", + "httpMethod": "PATCH", + "id": "cloudnumberregistry.projects.locations.customRanges.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Identifier. name of resource", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/customRanges/[^/]+$", + "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": "Optional. Field mask is used to specify the fields to be overwritten in the CustomRange resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "request": { + "$ref": "CustomRange" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "showUtilization": { + "description": "Gets the details of a single CustomRange and its utilization.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/customRanges/{customRangesId}:showUtilization", + "httpMethod": "GET", + "id": "cloudnumberregistry.projects.locations.customRanges.showUtilization", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the resource", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/customRanges/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}:showUtilization", + "response": { + "$ref": "ShowCustomRangeUtilizationResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "discoveredRanges": { + "methods": { + "findFreeIpRanges": { + "description": "Finds free IP ranges in a single DiscoveredRange.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/discoveredRanges/{discoveredRangesId}:findFreeIpRanges", + "httpMethod": "GET", + "id": "cloudnumberregistry.projects.locations.discoveredRanges.findFreeIpRanges", + "parameterOrder": [ + "name" + ], + "parameters": { + "cidrPrefixLength": { + "description": "Required. The prefix length of the free IP ranges to find.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "name": { + "description": "Required. Name of the DiscoveredRange.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/discoveredRanges/[^/]+$", + "required": true, + "type": "string" + }, + "rangeCount": { + "description": "Optional. The number of free IP ranges to find.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "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" + } + }, + "path": "v1alpha/{+name}:findFreeIpRanges", + "response": { + "$ref": "FindDiscoveredRangeFreeIpRangesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single DiscoveredRange.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/discoveredRanges/{discoveredRangesId}", + "httpMethod": "GET", + "id": "cloudnumberregistry.projects.locations.discoveredRanges.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the resource", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/discoveredRanges/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "DiscoveredRange" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists DiscoveredRanges in a given project and location.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/discoveredRanges", + "httpMethod": "GET", + "id": "cloudnumberregistry.projects.locations.discoveredRanges.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filtering results.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Hint for how to order the results.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.", + "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. Parent value for ListDiscoveredRangesRequest", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/discoveredRanges", + "response": { + "$ref": "ListDiscoveredRangesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "showUtilization": { + "description": "Gets the details of a single DiscoveredRange and its utilization.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/discoveredRanges/{discoveredRangesId}:showUtilization", + "httpMethod": "GET", + "id": "cloudnumberregistry.projects.locations.discoveredRanges.showUtilization", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the resource", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/discoveredRanges/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}:showUtilization", + "response": { + "$ref": "ShowDiscoveredRangeUtilizationResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "ipamAdminScopes": { + "methods": { + "checkAvailability": { + "description": "Checks the availability of IPAM admin scopes in a given project and location.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/ipamAdminScopes:checkAvailability", + "httpMethod": "GET", + "id": "cloudnumberregistry.projects.locations.ipamAdminScopes.checkAvailability", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Parent value for the IpamAdminScopes.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "scopes": { + "description": "Required. The scopes of the IpamAdminScopes to look for.", + "location": "query", + "repeated": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/ipamAdminScopes:checkAvailability", + "response": { + "$ref": "CheckAvailabilityIpamAdminScopesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "cleanup": { + "description": "Cleans up a single IpamAdminScope.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/ipamAdminScopes/{ipamAdminScopesId}:cleanup", + "httpMethod": "POST", + "id": "cloudnumberregistry.projects.locations.ipamAdminScopes.cleanup", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the resource", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/ipamAdminScopes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}:cleanup", + "request": { + "$ref": "CleanupIpamAdminScopeRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "create": { + "description": "Creates a new IpamAdminScope in a given project and location.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/ipamAdminScopes", + "httpMethod": "POST", + "id": "cloudnumberregistry.projects.locations.ipamAdminScopes.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "ipamAdminScopeId": { + "description": "Required. Id of the requesting object.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Value for parent.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "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" + } + }, + "path": "v1alpha/{+parent}/ipamAdminScopes", + "request": { + "$ref": "IpamAdminScope" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single IpamAdminScope.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/ipamAdminScopes/{ipamAdminScopesId}", + "httpMethod": "DELETE", + "id": "cloudnumberregistry.projects.locations.ipamAdminScopes.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "force": { + "description": "Optional. If set to true, all associated resources will be deleted.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. Name of the resource", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/ipamAdminScopes/[^/]+$", + "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": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "disable": { + "description": "Disables a single IpamAdminScope.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/ipamAdminScopes/{ipamAdminScopesId}:disable", + "httpMethod": "POST", + "id": "cloudnumberregistry.projects.locations.ipamAdminScopes.disable", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the resource", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/ipamAdminScopes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}:disable", + "request": { + "$ref": "DisableIpamAdminScopeRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single IpamAdminScope.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/ipamAdminScopes/{ipamAdminScopesId}", + "httpMethod": "GET", + "id": "cloudnumberregistry.projects.locations.ipamAdminScopes.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the resource", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/ipamAdminScopes/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "IpamAdminScope" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "List all IPAM admin scopes in a given project and location.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/ipamAdminScopes", + "httpMethod": "GET", + "id": "cloudnumberregistry.projects.locations.ipamAdminScopes.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filtering results", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Hint for how to order the results", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.", + "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. Parent value for ListIpamAdminScopesRequest", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/ipamAdminScopes", + "response": { + "$ref": "ListIpamAdminScopesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the parameters of a single IpamAdminScope.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/ipamAdminScopes/{ipamAdminScopesId}", + "httpMethod": "PATCH", + "id": "cloudnumberregistry.projects.locations.ipamAdminScopes.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Identifier. name of resource", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/ipamAdminScopes/[^/]+$", + "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": "Optional. Field mask is used to specify the fields to be overwritten in the IpamAdminScope resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "request": { + "$ref": "IpamAdminScope" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "operations": { + "methods": { + "cancel": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", + "httpMethod": "POST", + "id": "cloudnumberregistry.projects.locations.operations.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be cancelled.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}:cancel", + "request": { + "$ref": "CancelOperationRequest" + }, + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "DELETE", + "id": "cloudnumberregistry.projects.locations.operations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource to be deleted.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}", + "httpMethod": "GET", + "id": "cloudnumberregistry.projects.locations.operations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name of the operation resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/operations", + "httpMethod": "GET", + "id": "cloudnumberregistry.projects.locations.operations.list", + "parameterOrder": [ + "name" + ], + "parameters": { + "filter": { + "description": "The standard list filter.", + "location": "query", + "type": "string" + }, + "name": { + "description": "The name of the operation's parent resource.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The standard list page size.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "The standard list page token.", + "location": "query", + "type": "string" + }, + "returnPartialSuccess": { + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `\"projects/example/locations/-\"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1alpha/{+name}/operations", + "response": { + "$ref": "ListOperationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "realms": { + "methods": { + "create": { + "description": "Creates a new Realm in a given project and location.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/realms", + "httpMethod": "POST", + "id": "cloudnumberregistry.projects.locations.realms.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Value for parent.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "realmId": { + "description": "Required. Id of the requesting object.", + "location": "query", + "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.", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+parent}/realms", + "request": { + "$ref": "Realm" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single Realm.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/realms/{realmsId}", + "httpMethod": "DELETE", + "id": "cloudnumberregistry.projects.locations.realms.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "force": { + "description": "Optional. If set to true, all associated resources will be deleted.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. Name of the resource", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/realms/[^/]+$", + "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.", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single Realm.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/realms/{realmsId}", + "httpMethod": "GET", + "id": "cloudnumberregistry.projects.locations.realms.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the resource", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/realms/[^/]+$", + "required": true, + "type": "string" + }, + "view": { + "description": "Optional. The view of the Realm.", + "enum": [ + "REALM_VIEW_UNSPECIFIED", + "BASIC", + "FULL", + "AGGREGATE" + ], + "enumDescriptions": [ + "Unspecified view. Defaults to BASIC.", + "Basic view.", + "Full view. Includes the same data as the BASIC view.", + "Aggregate includes data about the child resources of the Realm." + ], + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "Realm" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Realms in a given project and location.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/realms", + "httpMethod": "GET", + "id": "cloudnumberregistry.projects.locations.realms.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filtering results", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Hint for how to order the results", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.", + "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. Parent value for ListRealmsRequest", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "view": { + "description": "Optional. The view of the Realm.", + "enum": [ + "REALM_VIEW_UNSPECIFIED", + "BASIC", + "FULL", + "AGGREGATE" + ], + "enumDescriptions": [ + "Unspecified view. Defaults to BASIC.", + "Basic view.", + "Full view. Includes the same data as the BASIC view.", + "Aggregate includes data about the child resources of the Realm." + ], + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+parent}/realms", + "response": { + "$ref": "ListRealmsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the parameters of a single Realm.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/realms/{realmsId}", + "httpMethod": "PATCH", + "id": "cloudnumberregistry.projects.locations.realms.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Identifier. Unique name/ID of the realm", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/realms/[^/]+$", + "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.", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Optional. Field mask is used to specify the fields to be overwritten in the Realm resource by the update.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "request": { + "$ref": "Realm" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "registryBooks": { + "methods": { + "create": { + "description": "Creates a new RegistryBook in a given project and location.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/registryBooks", + "httpMethod": "POST", + "id": "cloudnumberregistry.projects.locations.registryBooks.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Value for parent.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "registryBookId": { + "description": "Required. Id of the requesting object.", + "location": "query", + "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" + } + }, + "path": "v1alpha/{+parent}/registryBooks", + "request": { + "$ref": "RegistryBook" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single RegistryBook.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/registryBooks/{registryBooksId}", + "httpMethod": "DELETE", + "id": "cloudnumberregistry.projects.locations.registryBooks.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "force": { + "description": "Optional. If set to true, all associated resources will be deleted.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Required. Name of the resource", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/registryBooks/[^/]+$", + "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": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single RegistryBook.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/registryBooks/{registryBooksId}", + "httpMethod": "GET", + "id": "cloudnumberregistry.projects.locations.registryBooks.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the resource", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/registryBooks/[^/]+$", + "required": true, + "type": "string" + }, + "view": { + "description": "Optional. The view of the RegistryBook.", + "enum": [ + "REGISTRY_BOOK_VIEW_UNSPECIFIED", + "BASIC", + "FULL", + "AGGREGATE" + ], + "enumDescriptions": [ + "Unspecified view. Defaults to BASIC.", + "Basic view.", + "Full view. Includes the same data as the BASIC view.", + "Aggregate includes data about the child resources of the RegistryBook." + ], + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "RegistryBook" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists RegistryBooks in a given project and location.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/registryBooks", + "httpMethod": "GET", + "id": "cloudnumberregistry.projects.locations.registryBooks.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filtering results", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Hint for how to order the results", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.", + "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. Parent value for ListRegistryBooksRequest", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "view": { + "description": "Optional. The view of the RegistryBook.", + "enum": [ + "REGISTRY_BOOK_VIEW_UNSPECIFIED", + "BASIC", + "FULL", + "AGGREGATE" + ], + "enumDescriptions": [ + "Unspecified view. Defaults to BASIC.", + "Basic view.", + "Full view. Includes the same data as the BASIC view.", + "Aggregate includes data about the child resources of the RegistryBook." + ], + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+parent}/registryBooks", + "response": { + "$ref": "ListRegistryBooksResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the parameters of a single RegistryBook.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/registryBooks/{registryBooksId}", + "httpMethod": "PATCH", + "id": "cloudnumberregistry.projects.locations.registryBooks.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Identifier. name of resource", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/registryBooks/[^/]+$", + "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": "Optional. Field mask is used to specify the fields to be overwritten in the RegistryBook resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "request": { + "$ref": "RegistryBook" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "searchIpResources": { + "description": "Searches IP resources in a given RegistryBook.", + "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/registryBooks/{registryBooksId}:searchIpResources", + "httpMethod": "POST", + "id": "cloudnumberregistry.projects.locations.registryBooks.searchIpResources", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the RegistryBook to search in.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/registryBooks/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}:searchIpResources", + "request": { + "$ref": "SearchIpResourcesRequest" + }, + "response": { + "$ref": "SearchIpResourcesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } + } + } + } + }, + "revision": "20260506", + "rootUrl": "https://cloudnumberregistry.googleapis.com/", + "schemas": { + "AggregatedData": { + "description": "Aggregated data for the RegistryBook.", + "id": "AggregatedData", + "properties": { + "customRangesCount": { + "description": "Output only. Number of custom ranges in the RegistryBook.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "customRealmsCount": { + "description": "Output only. Number of custom realms in the RegistryBook.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "discoveredRangesCount": { + "description": "Output only. Number of discovered ranges in the RegistryBook.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "discoveredRealmsCount": { + "description": "Output only. Number of discovered realms in the RegistryBook.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "uniqueScopesCount": { + "description": "Output only. Number of scopes unique to the RegistryBook.", + "format": "int32", + "readOnly": true, + "type": "integer" + } + }, + "type": "object" + }, + "Attribute": { + "description": "Message describing Attribute object", + "id": "Attribute", + "properties": { + "key": { + "description": "Required. Key of attribute", + "type": "string" + }, + "value": { + "description": "Required. Value of attribute", + "type": "string" + } + }, + "type": "object" + }, + "CancelOperationRequest": { + "description": "The request message for Operations.CancelOperation.", + "id": "CancelOperationRequest", + "properties": {}, + "type": "object" + }, + "CheckAvailabilityIpamAdminScopesResponse": { + "description": "Message for response to checking the availability of IpamAdminScopes", + "id": "CheckAvailabilityIpamAdminScopesResponse", + "properties": { + "scopeAvailabilities": { + "description": "The details of the requested scopes.", + "items": { + "$ref": "IpamAdminScopeAvailability" + }, + "type": "array" + } + }, + "type": "object" + }, + "CleanupIpamAdminScopeRequest": { + "description": "Message for cleaning up a IpamAdminScope", + "id": "CleanupIpamAdminScopeRequest", + "properties": { + "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).", + "type": "string" + } + }, + "type": "object" + }, + "CustomRange": { + "description": "Message describing CustomRange object", + "id": "CustomRange", + "properties": { + "attributes": { + "description": "Optional. The attributes of the CustomRange.", + "items": { + "$ref": "Attribute" + }, + "type": "array" + }, + "description": { + "description": "Optional. Description of the CustomRange.", + "type": "string" + }, + "ipv4CidrRange": { + "description": "Optional. The IPv4 CIDR range of the CustomRange.", + "type": "string" + }, + "ipv6CidrRange": { + "description": "Optional. The IPv6 CIDR range of the CustomRange.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Labels as key value pairs", + "type": "object" + }, + "name": { + "description": "Required. Identifier. name of resource", + "type": "string" + }, + "parentRange": { + "description": "Optional. The parent range of the CustomRange. Do not allow setting parent range if realm is specified. Format must follow this pattern: projects/{project}/locations/{location}/customRanges/{custom_range}", + "type": "string" + }, + "realm": { + "description": "Optional. The realm of the CustomRange. The realm must be in the same project as the custom range. Do not allow setting realm if parent range is specified, since the realm should be inherited from the parent range. Format must follow this pattern: projects/{project}/locations/{location}/realms/{realm}", + "type": "string" + }, + "registryBook": { + "description": "Output only. The registry book of the CustomRange. This field is inherited from the realm or parent range depending on which one is specified.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "DisableIpamAdminScopeRequest": { + "description": "Message for disabling a IpamAdminScope", + "id": "DisableIpamAdminScopeRequest", + "properties": { + "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).", + "type": "string" + } + }, + "type": "object" + }, + "DiscoveredRange": { + "description": "Message describing DiscoveredRange object", + "id": "DiscoveredRange", + "properties": { + "attributes": { + "description": "Optional. The attributes of the DiscoveredRange.", + "items": { + "$ref": "Attribute" + }, + "type": "array" + }, + "childCidrOverlapAllowed": { + "description": "Output only. If true, allow child ranges of this range to overlap with each other.", + "readOnly": true, + "type": "boolean" + }, + "createTime": { + "description": "Output only. [Output only] Create time stamp", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Optional. Description of the DiscoveredRange.", + "type": "string" + }, + "discoveryMetadata": { + "$ref": "DiscoveryMetadata", + "description": "Output only. Owner metadata for this DiscoveredRange. A unique set of metadata is associated with each DiscoveredRange. If an IP range is shared by multiple resources (e.g., an Address resource and an Instance resource, or multiple ForwardingRules),separate DiscoveredRanges are created, each with a distinct owner. This ensures each DiscoveredRange has its own unique set of attributes, labels, create time and update time.", + "readOnly": true + }, + "ipv4CidrRange": { + "description": "Optional. The IPv4 CIDR range of the DiscoveredRange.", + "type": "string" + }, + "ipv6CidrRange": { + "description": "Optional. The IPv6 CIDR range of the DiscoveredRange.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Labels as key value pairs", + "type": "object" + }, + "name": { + "description": "Required. Identifier. Name of the DiscoveredRange.", + "type": "string" + }, + "parentRange": { + "description": "Optional. The parent range of the DiscoveredRange.", + "type": "string" + }, + "realm": { + "description": "Optional. The realm of the DiscoveredRange.", + "type": "string" + }, + "registryBook": { + "description": "Output only. The registry book of the DiscoveredRange.", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. [Output only] Update time stamp", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "DiscoveryMetadata": { + "description": "Discovery metadata of the discovered resource.", + "id": "DiscoveryMetadata", + "properties": { + "createTime": { + "description": "Output only. The time when the resource was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "eventTime": { + "description": "Output only. The time when the event happened.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "resource": { + "description": "Output only. The resource name of the discovered resource, should be API-agnostic. Example: \"projects/{project_number}/networks/{network_id}\".", + "readOnly": true, + "type": "string" + }, + "resourceUri": { + "description": "Output only. The resource uri of the discovered resource.", + "readOnly": true, + "type": "string" + }, + "sourceId": { + "description": "Output only. The canonical google.aip.dev/122 name of the source resource.", + "readOnly": true, + "type": "string" + }, + "sourceSubId": { + "description": "Output only. A single source resource can be the source of multiple CNR resources. This sub_id is used to distinguish between the different CNR resources derived from the same upstream resource. For example, a single subnetwork can be the source of multiple ranges, one for each protocol. In this case, the sub_id could be \"private-ipv4\" or \"private-ipv6\".", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. The state of the resource.", + "enum": [ + "RESOURCE_STATE_UNSPECIFIED", + "INVALID", + "EXISTS", + "DOES_NOT_EXIST", + "ERROR" + ], + "enumDescriptions": [ + "Unspecified state.", + "The resource is in an invalid state.", + "The resource exists in the backing store (is not tombstoned or completely missing) and there were no failures reading out the resource level metadata.", + "Resource does not exist or has been deleted or soft-deleted.", + "There was an error reading out the resource level metadata." + ], + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. The time when the resource was last modified.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "Empty": { + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", + "id": "Empty", + "properties": {}, + "type": "object" + }, + "FindCustomRangeFreeIpRangesResponse": { + "description": "Message for the response to finding free IP ranges.", + "id": "FindCustomRangeFreeIpRangesResponse", + "properties": { + "freeIpCidrRanges": { + "description": "Output only. Free IP CIDR ranges found in the CustomRange.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "FindDiscoveredRangeFreeIpRangesResponse": { + "description": "Message for the response to finding free IP ranges.", + "id": "FindDiscoveredRangeFreeIpRangesResponse", + "properties": { + "freeIpCidrRanges": { + "description": "Output only. Free IP CIDR ranges found in the DiscoveredRange.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "IpamAdminScope": { + "description": "Message describing IpamAdminScope object", + "id": "IpamAdminScope", + "properties": { + "createTime": { + "description": "Output only. [Output only] Create time stamp", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "enabledAddonPlatforms": { + "description": "Required. Addon platforms that are enabled for this IPAM admin scope. Cloud Number Registry only discovers the IP addresses from the enabled platforms.", + "items": { + "enum": [ + "ADD_ON_PLATFORM_UNSPECIFIED", + "COMPUTE_ENGINE", + "GCE" + ], + "enumDeprecated": [ + false, + false, + true + ], + "enumDescriptions": [ + "Unspecified add-on platform.", + "Google Compute Engine.", + "Deprecated: Use COMPUTE_ENGINE instead." + ], + "type": "string" + }, + "type": "array" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Labels as key value pairs", + "type": "object" + }, + "name": { + "description": "Required. Identifier. name of resource", + "type": "string" + }, + "scopes": { + "description": "Required. Administrative scopes enabled for IP address discovery and management. For example, \"organizations/1234567890\". Minimum of 1 scope is required. In preview, only one organization scope is allowed.", + "items": { + "type": "string" + }, + "type": "array" + }, + "state": { + "description": "Output only. State of resource discovery pipeline.", + "enum": [ + "DISCOVERY_PIPELINE_STATE_UNSPECIFIED", + "INTERNAL_FAILURE", + "FAILED", + "SETUP_IN_PROGRESS", + "READY_FOR_USE", + "DELETING_IN_PROGRESS", + "UPDATING", + "RECOVERING", + "DISABLED", + "DELETION_COMPLETED", + "CLEANUP_IN_PROGRESS", + "READY_FOR_DELETION" + ], + "enumDescriptions": [ + "Unspecified state.", + "Internal failure.", + "Failure.", + "Setup in progress.", + "Ready for use.", + "Deleting in progress.", + "Updating.", + "Recovering.", + "Disabled.", + "Deleting completed.", + "Cleanup in progress.", + "Ready for deletion." + ], + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. [Output only] Update time stamp", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "IpamAdminScopeAvailability": { + "description": "Message for the availability of an IpamAdminScope", + "id": "IpamAdminScopeAvailability", + "properties": { + "adminProject": { + "description": "The admin project of the IpamAdminScope if it exists.", + "format": "int64", + "type": "string" + }, + "availability": { + "description": "The availability of the scope.", + "enum": [ + "AVAILABILITY_UNSPECIFIED", + "AVAILABLE", + "UNAVAILABLE" + ], + "enumDescriptions": [ + "Unspecified availability.", + "The scope is available.", + "The scope is not available." + ], + "type": "string" + }, + "scope": { + "description": "The scope of the IpamAdminScope.", + "type": "string" + } + }, + "type": "object" + }, + "ListCustomRangesResponse": { + "description": "Message for response to listing CustomRanges", + "id": "ListCustomRangesResponse", + "properties": { + "customRanges": { + "description": "The list of CustomRange", + "items": { + "$ref": "CustomRange" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListDiscoveredRangesResponse": { + "description": "Message for response to listing DiscoveredRanges", + "id": "ListDiscoveredRangesResponse", + "properties": { + "discoveredRanges": { + "description": "The list of DiscoveredRange", + "items": { + "$ref": "DiscoveredRange" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListIpamAdminScopesResponse": { + "description": "Message for response to listing ipamAdminScopes", + "id": "ListIpamAdminScopesResponse", + "properties": { + "ipamAdminScopes": { + "description": "The list of IpamAdminScope", + "items": { + "$ref": "IpamAdminScope" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListLocationsResponse": { + "description": "The response message for Locations.ListLocations.", + "id": "ListLocationsResponse", + "properties": { + "locations": { + "description": "A list of locations that matches the specified filter in the request.", + "items": { + "$ref": "Location" + }, + "type": "array" + }, + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + } + }, + "type": "object" + }, + "ListOperationsResponse": { + "description": "The response message for Operations.ListOperations.", + "id": "ListOperationsResponse", + "properties": { + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + }, + "operations": { + "description": "A list of operations that matches the specified filter in the request.", + "items": { + "$ref": "Operation" + }, + "type": "array" + }, + "unreachable": { + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections. For example, when attempting to list all resources across all supported locations.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListRealmsResponse": { + "description": "Message for response to listing Realms", + "id": "ListRealmsResponse", + "properties": { + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + }, + "realms": { + "description": "The list of Realm", + "items": { + "$ref": "Realm" + }, + "type": "array" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListRegistryBooksResponse": { + "description": "Message for response to listing RegistryBooks", + "id": "ListRegistryBooksResponse", + "properties": { + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + }, + "registryBooks": { + "description": "The list of RegistryBook", + "items": { + "$ref": "RegistryBook" + }, + "type": "array" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "Location": { + "description": "A resource that represents a Google Cloud location.", + "id": "Location", + "properties": { + "displayName": { + "description": "The friendly name for this location, typically a nearby city name. For example, \"Tokyo\".", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Cross-service attributes for the location. For example {\"cloud.googleapis.com/region\": \"us-east1\"}", + "type": "object" + }, + "locationId": { + "description": "The canonical id for this location. For example: `\"us-east1\"`.", + "type": "string" + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata. For example the available capacity at the given location.", + "type": "object" + }, + "name": { + "description": "Resource name for the location, which may vary between implementations. For example: `\"projects/example-project/locations/us-east1\"`", + "type": "string" + } + }, + "type": "object" + }, + "Operation": { + "description": "This resource represents a long-running operation that is the result of a network API call.", + "id": "Operation", + "properties": { + "done": { + "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", + "type": "boolean" + }, + "error": { + "$ref": "Status", + "description": "The error result of the operation in case of failure or cancellation." + }, + "metadata": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "type": "object" + }, + "name": { + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", + "type": "string" + }, + "response": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "type": "object" + } + }, + "type": "object" + }, + "OperationMetadata": { + "description": "Represents the metadata of the long-running operation.", + "id": "OperationMetadata", + "properties": { + "apiVersion": { + "description": "Output only. API version used to start the operation.", + "readOnly": true, + "type": "string" + }, + "createTime": { + "description": "Output only. The time the operation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "endTime": { + "description": "Output only. The time the operation finished running.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "requestedCancellation": { + "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "readOnly": true, + "type": "boolean" + }, + "statusMessage": { + "description": "Output only. Human-readable status of the operation, if any.", + "readOnly": true, + "type": "string" + }, + "target": { + "description": "Output only. Server-defined resource path for the target of the operation.", + "readOnly": true, + "type": "string" + }, + "verb": { + "description": "Output only. Name of the verb executed by the operation.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "Range": { + "description": "Message describing either a CustomRange or a DiscoveredRange.", + "id": "Range", + "properties": { + "customRange": { + "$ref": "CustomRange", + "description": "A custom range." + }, + "discoveredRange": { + "$ref": "DiscoveredRange", + "description": "A discovered range." + }, + "utilization": { + "$ref": "RangeUtilization", + "description": "The utilization of the range." + } + }, + "type": "object" + }, + "RangeUtilization": { + "description": "Message for the utilization of an IP range", + "id": "RangeUtilization", + "properties": { + "totalConsumed": { + "description": "Output only. The total number of IP addresses consumed in the range.", + "readOnly": true, + "type": "string" + }, + "totalProduced": { + "description": "Output only. The total number of IP addresses produced in the range.", + "readOnly": true, + "type": "string" + }, + "usage": { + "description": "Output only. The usage of the range as a percentage. This is marked as optional so that we have presence tracking and API responses show 0.0 instead of NULL.", + "format": "double", + "readOnly": true, + "type": "number" + } + }, + "type": "object" + }, + "Realm": { + "description": "Message describing Realm object", + "id": "Realm", + "properties": { + "aggregatedData": { + "$ref": "RealmAggregatedData", + "description": "Output only. Aggregated data for the Realm. Populated only when the view is AGGREGATE.", + "readOnly": true + }, + "createTime": { + "description": "Output only. [Output only] Create time stamp", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "discoveryMetadata": { + "$ref": "DiscoveryMetadata", + "description": "Output only. Discovery metadata of the realm.", + "readOnly": true + }, + "ipVersion": { + "description": "Optional. IP version of the realm.", + "enum": [ + "IP_VERSION_UNSPECIFIED", + "IPV4", + "IPV6" + ], + "enumDescriptions": [ + "Unspecified IP version.", + "IPv4 IP version.", + "IPv6 IP version." + ], + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Labels as key value pairs", + "type": "object" + }, + "managementType": { + "description": "Required. Management type of realm.", + "enum": [ + "MANAGEMENT_TYPE_UNSPECIFIED", + "CNR", + "USER" + ], + "enumDescriptions": [ + "Unspecified management type.", + "Managed by Cloud Number Registry.", + "Managed by User." + ], + "type": "string" + }, + "name": { + "description": "Required. Identifier. Unique name/ID of the realm", + "type": "string" + }, + "registryBook": { + "description": "Required. URI of the registry book that claims the realm.", + "type": "string" + }, + "trafficType": { + "description": "Required. Traffic type of realm.", + "enum": [ + "TRAFFIC_TYPE_UNSPECIFIED", + "UNSET", + "INTERNET", + "PRIVATE", + "LINKLOCAL" + ], + "enumDescriptions": [ + "Unspecified traffic type.", + "Unset traffic type.", + "Internet traffic.", + "Private traffic.", + "Linklocal traffic." + ], + "type": "string" + }, + "updateTime": { + "description": "Output only. [Output only] Update time stamp", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "RealmAggregatedData": { + "description": "Aggregated data for the Realm.", + "id": "RealmAggregatedData", + "properties": { + "customRangesCount": { + "description": "Output only. Number of custom ranges in the Realm.", + "format": "int32", + "readOnly": true, + "type": "integer" + }, + "discoveredRangesCount": { + "description": "Output only. Number of discovered ranges in the Realm.", + "format": "int32", + "readOnly": true, + "type": "integer" + } + }, + "type": "object" + }, + "RegistryBook": { + "description": "Message describing RegistryBook object", + "id": "RegistryBook", + "properties": { + "aggregatedData": { + "$ref": "AggregatedData", + "description": "Output only. Aggregated data for the RegistryBook. Populated only when the view is AGGREGATE.", + "readOnly": true + }, + "claimedScopes": { + "description": "Optional. List of scopes claimed by the RegistryBook. In Preview, Only project scope is supported. Each scope is in the format of projects/{project}. Each scope can only be claimed once.", + "items": { + "type": "string" + }, + "type": "array" + }, + "createTime": { + "description": "Output only. [Output only] Create time stamp", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "isDefault": { + "description": "Output only. Whether the RegistryBook is the default one.", + "readOnly": true, + "type": "boolean" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Labels as key value pairs", + "type": "object" + }, + "name": { + "description": "Required. Identifier. name of resource", + "type": "string" + }, + "updateTime": { + "description": "Output only. [Output only] Update time stamp", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "SearchIpResourcesRequest": { + "description": "Message for searching IP resources", + "id": "SearchIpResourcesRequest", + "properties": { + "orderBy": { + "description": "Optional. Hint for how to order the results", + "type": "string" + }, + "pageSize": { + "description": "Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.", + "format": "int32", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A token identifying a page of results the server should return.", + "type": "string" + }, + "query": { + "description": "Optional. Search query. This string filters resources in an AIP-160-like format. It has some limitations. You can only specify top level conjunctions or attribute level negations. Each restriction can only be used once except the attribute restriction. The available restrictions for ranges are: - `realm`: The realm name to search in. - `ip_address`: The IP address to search for within ranges. - `ip_version`: The IP version to filter by (e.g., \"IPV4\", \"IPV6\"). - `parent_range`: The parent range of the range to search for. - `attribute_text`: The attribute text to search for within ranges. - `attribute`: The attribute key and value to filter by. The available restrictions for realms are: - `ip_version`: The IP version to search for. Only one of attribute_text or multiple attribute filters can be specified. Examples: - `realm=test-realm` - `realm=test-realm AND ip_address=10.0.0.0` - `realm=test-realm AND ip_version=IPV6` - `realm=test-realm AND attribute_text=test` - `ip_address=10.0.0.0 AND attribute:(key1=value1) AND attribute:(key2=value2)` - `attribute_text=test AND parent_range=projects/123/locations/global/discoveredRanges/test-parent-range`", + "type": "string" + }, + "searchResourceTypes": { + "description": "Optional. The type of resources to search for. If not specified, the server will return ranges.", + "items": { + "enum": [ + "SEARCH_RESOURCE_TYPE_UNSPECIFIED", + "RANGES", + "REALMS" + ], + "enumDescriptions": [ + "Unspecified search type.", + "Search for ranges.", + "Search for realms." + ], + "type": "string" + }, + "type": "array" + }, + "showUtilization": { + "description": "Optional. Whether to show the utilization of the ranges in the response.", + "type": "boolean" + } + }, + "type": "object" + }, + "SearchIpResourcesResponse": { + "description": "Message for response to searching IP resources", + "id": "SearchIpResourcesResponse", + "properties": { + "nextPageToken": { + "description": "A token identifying a page of results the server should return.", + "type": "string" + }, + "ranges": { + "deprecated": true, + "description": "Deprecated: Use results field instead. The list of ranges matching the search query.", + "items": { + "$ref": "Range" + }, + "type": "array" + }, + "results": { + "description": "The list of results matching the search query.", + "items": { + "$ref": "SearchIpResourcesResult" + }, + "type": "array" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "SearchIpResourcesResult": { + "description": "A result matching the search query, which can be either a range or a realm.", + "id": "SearchIpResourcesResult", + "properties": { + "range": { + "$ref": "Range", + "description": "A range matching the search query." + }, + "realm": { + "$ref": "Realm", + "description": "A realm matching the search query." + } + }, + "type": "object" + }, + "ShowCustomRangeUtilizationResponse": { + "description": "Message for the response to getting the utilization of a CustomRange", + "id": "ShowCustomRangeUtilizationResponse", + "properties": { + "customRange": { + "$ref": "CustomRange", + "description": "The CustomRange resource." + }, + "rangeUtilization": { + "$ref": "RangeUtilization", + "description": "The utilization of the CustomRange." + } + }, + "type": "object" + }, + "ShowDiscoveredRangeUtilizationResponse": { + "description": "Message for the response to getting the utilization of a DiscoveredRange", + "id": "ShowDiscoveredRangeUtilizationResponse", + "properties": { + "discoveredRange": { + "$ref": "DiscoveredRange", + "description": "The DiscoveredRange resource." + }, + "rangeUtilization": { + "$ref": "RangeUtilization", + "description": "The utilization of the DiscoveredRange." + } + }, + "type": "object" + }, + "Status": { + "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", + "id": "Status", + "properties": { + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "format": "int32", + "type": "integer" + }, + "details": { + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "items": { + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL.", + "type": "any" + }, + "type": "object" + }, + "type": "array" + }, + "message": { + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", + "type": "string" + } + }, + "type": "object" + } + }, + "servicePath": "", + "title": "Cloud Number Registry API", + "version": "v1alpha", + "version_module": true +} \ No newline at end of file diff --git a/src/apis/cloudnumberregistry/README.md b/src/apis/cloudnumberregistry/README.md new file mode 100644 index 0000000000..2659a2d9a9 --- /dev/null +++ b/src/apis/cloudnumberregistry/README.md @@ -0,0 +1,28 @@ +Google Inc. logo + +# cloudnumberregistry + +> + +## Installation + +```sh +$ npm install @googleapis/cloudnumberregistry +``` + +## Usage +All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client). +Information on classes can be found in [Googleapis Documentation](https://googleapis.dev/nodejs/googleapis/latest/cloudnumberregistry/classes/Cloudnumberregistry.html). + +## License +This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/main/LICENSE). + +## Contributing +We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/main/.github/CONTRIBUTING.md). + +## Questions/problems? +* Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client). +* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues). + + +*Crafted with ❤️ by the Google Node.js team* diff --git a/src/apis/cloudnumberregistry/index.ts b/src/apis/cloudnumberregistry/index.ts new file mode 100644 index 0000000000..d91fd9ab05 --- /dev/null +++ b/src/apis/cloudnumberregistry/index.ts @@ -0,0 +1,49 @@ +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/*! THIS FILE IS AUTO-GENERATED */ + +import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common'; +import {cloudnumberregistry_v1alpha} from './v1alpha'; + +export const VERSIONS = { + v1alpha: cloudnumberregistry_v1alpha.Cloudnumberregistry, +}; + +export function cloudnumberregistry( + version: 'v1alpha' +): cloudnumberregistry_v1alpha.Cloudnumberregistry; +export function cloudnumberregistry( + options: cloudnumberregistry_v1alpha.Options +): cloudnumberregistry_v1alpha.Cloudnumberregistry; +export function cloudnumberregistry< + T = cloudnumberregistry_v1alpha.Cloudnumberregistry, +>( + this: GoogleConfigurable, + versionOrOptions: 'v1alpha' | cloudnumberregistry_v1alpha.Options +) { + return getAPI('cloudnumberregistry', versionOrOptions, VERSIONS, this); +} + +const auth = new AuthPlus(); +export {auth}; +export {cloudnumberregistry_v1alpha}; +export { + AuthPlus, + GlobalOptions, + APIRequestContext, + GoogleConfigurable, + StreamMethodOptions, + MethodOptions, + BodyResponseCallback, +} from 'googleapis-common'; diff --git a/src/apis/cloudnumberregistry/package.json b/src/apis/cloudnumberregistry/package.json new file mode 100644 index 0000000000..ce470697fe --- /dev/null +++ b/src/apis/cloudnumberregistry/package.json @@ -0,0 +1,43 @@ +{ + "name": "@googleapis/cloudnumberregistry", + "version": "0.1.0", + "description": "cloudnumberregistry", + "main": "build/index.js", + "types": "build/index.d.ts", + "keywords": [ + "google" + ], + "author": "Google LLC", + "license": "Apache-2.0", + "homepage": "https://github.com/googleapis/google-api-nodejs-client", + "bugs": { + "url": "https://github.com/googleapis/google-api-nodejs-client/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/googleapis/google-api-nodejs-client.git" + }, + "engines": { + "node": ">=12.0.0" + }, + "scripts": { + "fix": "gts fix", + "lint": "gts check", + "compile": "tsc -p .", + "prepare": "npm run compile", + "webpack": "webpack" + }, + "dependencies": { + "googleapis-common": "^8.0.0" + }, + "devDependencies": { + "@microsoft/api-documenter": "^7.8.10", + "@microsoft/api-extractor": "^7.8.10", + "gts": "^6.0.0", + "null-loader": "^4.0.0", + "ts-loader": "^9.0.0", + "typescript": "5.7.3", + "webpack": "^5.0.0", + "webpack-cli": "^5.0.0" + } +} diff --git a/src/apis/cloudnumberregistry/tsconfig.json b/src/apis/cloudnumberregistry/tsconfig.json new file mode 100644 index 0000000000..e081090496 --- /dev/null +++ b/src/apis/cloudnumberregistry/tsconfig.json @@ -0,0 +1,10 @@ +{ + "extends": "./node_modules/gts/tsconfig-google.json", + "compilerOptions": { + "rootDir": ".", + "outDir": "build" + }, + "include": [ + "*.ts", + ] +} diff --git a/src/apis/cloudnumberregistry/v1alpha.ts b/src/apis/cloudnumberregistry/v1alpha.ts new file mode 100644 index 0000000000..ad67379039 --- /dev/null +++ b/src/apis/cloudnumberregistry/v1alpha.ts @@ -0,0 +1,6880 @@ +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ + +import { + OAuth2Client, + JWT, + Compute, + UserRefreshClient, + BaseExternalAccountClient, + GaxiosResponseWithHTTP2, + GoogleConfigurable, + createAPIRequest, + MethodOptions, + StreamMethodOptions, + GlobalOptions, + GoogleAuth, + BodyResponseCallback, + APIRequestContext, +} from 'googleapis-common'; +import {Readable} from 'stream'; + +export namespace cloudnumberregistry_v1alpha { + export interface Options extends GlobalOptions { + version: 'v1alpha'; + } + + interface StandardParameters { + /** + * Auth client or API Key for the request + */ + auth?: + | string + | OAuth2Client + | JWT + | Compute + | UserRefreshClient + | BaseExternalAccountClient + | GoogleAuth; + + /** + * V1 error format. + */ + '$.xgafv'?: string; + /** + * OAuth access token. + */ + access_token?: string; + /** + * Data format for response. + */ + alt?: string; + /** + * JSONP + */ + callback?: string; + /** + * Selector specifying which fields to include in a partial response. + */ + fields?: string; + /** + * API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + */ + key?: string; + /** + * OAuth 2.0 token for the current user. + */ + oauth_token?: string; + /** + * Returns response with indentations and line breaks. + */ + prettyPrint?: boolean; + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + */ + quotaUser?: string; + /** + * Legacy upload protocol for media (e.g. "media", "multipart"). + */ + uploadType?: string; + /** + * Upload protocol for media (e.g. "raw", "multipart"). + */ + upload_protocol?: string; + } + + /** + * Cloud Number Registry API + * + * + * + * @example + * ```js + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * ``` + */ + export class Cloudnumberregistry { + context: APIRequestContext; + projects: Resource$Projects; + + constructor(options: GlobalOptions, google?: GoogleConfigurable) { + this.context = { + _options: options || {}, + google, + }; + + this.projects = new Resource$Projects(this.context); + } + } + + /** + * Aggregated data for the RegistryBook. + */ + export interface Schema$AggregatedData { + /** + * Output only. Number of custom ranges in the RegistryBook. + */ + customRangesCount?: number | null; + /** + * Output only. Number of custom realms in the RegistryBook. + */ + customRealmsCount?: number | null; + /** + * Output only. Number of discovered ranges in the RegistryBook. + */ + discoveredRangesCount?: number | null; + /** + * Output only. Number of discovered realms in the RegistryBook. + */ + discoveredRealmsCount?: number | null; + /** + * Output only. Number of scopes unique to the RegistryBook. + */ + uniqueScopesCount?: number | null; + } + /** + * Message describing Attribute object + */ + export interface Schema$Attribute { + /** + * Required. Key of attribute + */ + key?: string | null; + /** + * Required. Value of attribute + */ + value?: string | null; + } + /** + * The request message for Operations.CancelOperation. + */ + export interface Schema$CancelOperationRequest {} + /** + * Message for response to checking the availability of IpamAdminScopes + */ + export interface Schema$CheckAvailabilityIpamAdminScopesResponse { + /** + * The details of the requested scopes. + */ + scopeAvailabilities?: Schema$IpamAdminScopeAvailability[]; + } + /** + * Message for cleaning up a IpamAdminScope + */ + export interface Schema$CleanupIpamAdminScopeRequest { + /** + * 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). + */ + requestId?: string | null; + } + /** + * Message describing CustomRange object + */ + export interface Schema$CustomRange { + /** + * Optional. The attributes of the CustomRange. + */ + attributes?: Schema$Attribute[]; + /** + * Optional. Description of the CustomRange. + */ + description?: string | null; + /** + * Optional. The IPv4 CIDR range of the CustomRange. + */ + ipv4CidrRange?: string | null; + /** + * Optional. The IPv6 CIDR range of the CustomRange. + */ + ipv6CidrRange?: string | null; + /** + * Optional. Labels as key value pairs + */ + labels?: {[key: string]: string} | null; + /** + * Required. Identifier. name of resource + */ + name?: string | null; + /** + * Optional. The parent range of the CustomRange. Do not allow setting parent range if realm is specified. Format must follow this pattern: projects/{project\}/locations/{location\}/customRanges/{custom_range\} + */ + parentRange?: string | null; + /** + * Optional. The realm of the CustomRange. The realm must be in the same project as the custom range. Do not allow setting realm if parent range is specified, since the realm should be inherited from the parent range. Format must follow this pattern: projects/{project\}/locations/{location\}/realms/{realm\} + */ + realm?: string | null; + /** + * Output only. The registry book of the CustomRange. This field is inherited from the realm or parent range depending on which one is specified. + */ + registryBook?: string | null; + } + /** + * Message for disabling a IpamAdminScope + */ + export interface Schema$DisableIpamAdminScopeRequest { + /** + * 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). + */ + requestId?: string | null; + } + /** + * Message describing DiscoveredRange object + */ + export interface Schema$DiscoveredRange { + /** + * Optional. The attributes of the DiscoveredRange. + */ + attributes?: Schema$Attribute[]; + /** + * Output only. If true, allow child ranges of this range to overlap with each other. + */ + childCidrOverlapAllowed?: boolean | null; + /** + * Output only. [Output only] Create time stamp + */ + createTime?: string | null; + /** + * Optional. Description of the DiscoveredRange. + */ + description?: string | null; + /** + * Output only. Owner metadata for this DiscoveredRange. A unique set of metadata is associated with each DiscoveredRange. If an IP range is shared by multiple resources (e.g., an Address resource and an Instance resource, or multiple ForwardingRules),separate DiscoveredRanges are created, each with a distinct owner. This ensures each DiscoveredRange has its own unique set of attributes, labels, create time and update time. + */ + discoveryMetadata?: Schema$DiscoveryMetadata; + /** + * Optional. The IPv4 CIDR range of the DiscoveredRange. + */ + ipv4CidrRange?: string | null; + /** + * Optional. The IPv6 CIDR range of the DiscoveredRange. + */ + ipv6CidrRange?: string | null; + /** + * Optional. Labels as key value pairs + */ + labels?: {[key: string]: string} | null; + /** + * Required. Identifier. Name of the DiscoveredRange. + */ + name?: string | null; + /** + * Optional. The parent range of the DiscoveredRange. + */ + parentRange?: string | null; + /** + * Optional. The realm of the DiscoveredRange. + */ + realm?: string | null; + /** + * Output only. The registry book of the DiscoveredRange. + */ + registryBook?: string | null; + /** + * Output only. [Output only] Update time stamp + */ + updateTime?: string | null; + } + /** + * Discovery metadata of the discovered resource. + */ + export interface Schema$DiscoveryMetadata { + /** + * Output only. The time when the resource was created. + */ + createTime?: string | null; + /** + * Output only. The time when the event happened. + */ + eventTime?: string | null; + /** + * Output only. The resource name of the discovered resource, should be API-agnostic. Example: "projects/{project_number\}/networks/{network_id\}". + */ + resource?: string | null; + /** + * Output only. The resource uri of the discovered resource. + */ + resourceUri?: string | null; + /** + * Output only. The canonical google.aip.dev/122 name of the source resource. + */ + sourceId?: string | null; + /** + * Output only. A single source resource can be the source of multiple CNR resources. This sub_id is used to distinguish between the different CNR resources derived from the same upstream resource. For example, a single subnetwork can be the source of multiple ranges, one for each protocol. In this case, the sub_id could be "private-ipv4" or "private-ipv6". + */ + sourceSubId?: string | null; + /** + * Output only. The state of the resource. + */ + state?: string | null; + /** + * Output only. The time when the resource was last modified. + */ + updateTime?: string | null; + } + /** + * A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \} + */ + export interface Schema$Empty {} + /** + * Message for the response to finding free IP ranges. + */ + export interface Schema$FindCustomRangeFreeIpRangesResponse { + /** + * Output only. Free IP CIDR ranges found in the CustomRange. + */ + freeIpCidrRanges?: string[] | null; + } + /** + * Message for the response to finding free IP ranges. + */ + export interface Schema$FindDiscoveredRangeFreeIpRangesResponse { + /** + * Output only. Free IP CIDR ranges found in the DiscoveredRange. + */ + freeIpCidrRanges?: string[] | null; + } + /** + * Message describing IpamAdminScope object + */ + export interface Schema$IpamAdminScope { + /** + * Output only. [Output only] Create time stamp + */ + createTime?: string | null; + /** + * Required. Addon platforms that are enabled for this IPAM admin scope. Cloud Number Registry only discovers the IP addresses from the enabled platforms. + */ + enabledAddonPlatforms?: string[] | null; + /** + * Optional. Labels as key value pairs + */ + labels?: {[key: string]: string} | null; + /** + * Required. Identifier. name of resource + */ + name?: string | null; + /** + * Required. Administrative scopes enabled for IP address discovery and management. For example, "organizations/1234567890". Minimum of 1 scope is required. In preview, only one organization scope is allowed. + */ + scopes?: string[] | null; + /** + * Output only. State of resource discovery pipeline. + */ + state?: string | null; + /** + * Output only. [Output only] Update time stamp + */ + updateTime?: string | null; + } + /** + * Message for the availability of an IpamAdminScope + */ + export interface Schema$IpamAdminScopeAvailability { + /** + * The admin project of the IpamAdminScope if it exists. + */ + adminProject?: string | null; + /** + * The availability of the scope. + */ + availability?: string | null; + /** + * The scope of the IpamAdminScope. + */ + scope?: string | null; + } + /** + * Message for response to listing CustomRanges + */ + export interface Schema$ListCustomRangesResponse { + /** + * The list of CustomRange + */ + customRanges?: Schema$CustomRange[]; + /** + * A token identifying a page of results the server should return. + */ + nextPageToken?: string | null; + /** + * Locations that could not be reached. + */ + unreachable?: string[] | null; + } + /** + * Message for response to listing DiscoveredRanges + */ + export interface Schema$ListDiscoveredRangesResponse { + /** + * The list of DiscoveredRange + */ + discoveredRanges?: Schema$DiscoveredRange[]; + /** + * A token identifying a page of results the server should return. + */ + nextPageToken?: string | null; + /** + * Locations that could not be reached. + */ + unreachable?: string[] | null; + } + /** + * Message for response to listing ipamAdminScopes + */ + export interface Schema$ListIpamAdminScopesResponse { + /** + * The list of IpamAdminScope + */ + ipamAdminScopes?: Schema$IpamAdminScope[]; + /** + * A token identifying a page of results the server should return. + */ + nextPageToken?: string | null; + /** + * Locations that could not be reached. + */ + unreachable?: string[] | null; + } + /** + * The response message for Locations.ListLocations. + */ + export interface Schema$ListLocationsResponse { + /** + * A list of locations that matches the specified filter in the request. + */ + locations?: Schema$Location[]; + /** + * The standard List next-page token. + */ + nextPageToken?: string | null; + } + /** + * The response message for Operations.ListOperations. + */ + export interface Schema$ListOperationsResponse { + /** + * The standard List next-page token. + */ + nextPageToken?: string | null; + /** + * A list of operations that matches the specified filter in the request. + */ + operations?: Schema$Operation[]; + /** + * Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections. For example, when attempting to list all resources across all supported locations. + */ + unreachable?: string[] | null; + } + /** + * Message for response to listing Realms + */ + export interface Schema$ListRealmsResponse { + /** + * A token identifying a page of results the server should return. + */ + nextPageToken?: string | null; + /** + * The list of Realm + */ + realms?: Schema$Realm[]; + /** + * Locations that could not be reached. + */ + unreachable?: string[] | null; + } + /** + * Message for response to listing RegistryBooks + */ + export interface Schema$ListRegistryBooksResponse { + /** + * A token identifying a page of results the server should return. + */ + nextPageToken?: string | null; + /** + * The list of RegistryBook + */ + registryBooks?: Schema$RegistryBook[]; + /** + * Locations that could not be reached. + */ + unreachable?: string[] | null; + } + /** + * A resource that represents a Google Cloud location. + */ + export interface Schema$Location { + /** + * The friendly name for this location, typically a nearby city name. For example, "Tokyo". + */ + displayName?: string | null; + /** + * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"\} + */ + labels?: {[key: string]: string} | null; + /** + * The canonical id for this location. For example: `"us-east1"`. + */ + locationId?: string | null; + /** + * Service-specific metadata. For example the available capacity at the given location. + */ + metadata?: {[key: string]: any} | null; + /** + * Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"` + */ + name?: string | null; + } + /** + * This resource represents a long-running operation that is the result of a network API call. + */ + export interface Schema$Operation { + /** + * If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. + */ + done?: boolean | null; + /** + * The error result of the operation in case of failure or cancellation. + */ + error?: Schema$Status; + /** + * Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. + */ + metadata?: {[key: string]: any} | null; + /** + * The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id\}`. + */ + name?: string | null; + /** + * The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + */ + response?: {[key: string]: any} | null; + } + /** + * Represents the metadata of the long-running operation. + */ + export interface Schema$OperationMetadata { + /** + * Output only. API version used to start the operation. + */ + apiVersion?: string | null; + /** + * Output only. The time the operation was created. + */ + createTime?: string | null; + /** + * Output only. The time the operation finished running. + */ + endTime?: string | null; + /** + * Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. + */ + requestedCancellation?: boolean | null; + /** + * Output only. Human-readable status of the operation, if any. + */ + statusMessage?: string | null; + /** + * Output only. Server-defined resource path for the target of the operation. + */ + target?: string | null; + /** + * Output only. Name of the verb executed by the operation. + */ + verb?: string | null; + } + /** + * Message describing either a CustomRange or a DiscoveredRange. + */ + export interface Schema$Range { + /** + * A custom range. + */ + customRange?: Schema$CustomRange; + /** + * A discovered range. + */ + discoveredRange?: Schema$DiscoveredRange; + /** + * The utilization of the range. + */ + utilization?: Schema$RangeUtilization; + } + /** + * Message for the utilization of an IP range + */ + export interface Schema$RangeUtilization { + /** + * Output only. The total number of IP addresses consumed in the range. + */ + totalConsumed?: string | null; + /** + * Output only. The total number of IP addresses produced in the range. + */ + totalProduced?: string | null; + /** + * Output only. The usage of the range as a percentage. This is marked as optional so that we have presence tracking and API responses show 0.0 instead of NULL. + */ + usage?: number | null; + } + /** + * Message describing Realm object + */ + export interface Schema$Realm { + /** + * Output only. Aggregated data for the Realm. Populated only when the view is AGGREGATE. + */ + aggregatedData?: Schema$RealmAggregatedData; + /** + * Output only. [Output only] Create time stamp + */ + createTime?: string | null; + /** + * Output only. Discovery metadata of the realm. + */ + discoveryMetadata?: Schema$DiscoveryMetadata; + /** + * Optional. IP version of the realm. + */ + ipVersion?: string | null; + /** + * Optional. Labels as key value pairs + */ + labels?: {[key: string]: string} | null; + /** + * Required. Management type of realm. + */ + managementType?: string | null; + /** + * Required. Identifier. Unique name/ID of the realm + */ + name?: string | null; + /** + * Required. URI of the registry book that claims the realm. + */ + registryBook?: string | null; + /** + * Required. Traffic type of realm. + */ + trafficType?: string | null; + /** + * Output only. [Output only] Update time stamp + */ + updateTime?: string | null; + } + /** + * Aggregated data for the Realm. + */ + export interface Schema$RealmAggregatedData { + /** + * Output only. Number of custom ranges in the Realm. + */ + customRangesCount?: number | null; + /** + * Output only. Number of discovered ranges in the Realm. + */ + discoveredRangesCount?: number | null; + } + /** + * Message describing RegistryBook object + */ + export interface Schema$RegistryBook { + /** + * Output only. Aggregated data for the RegistryBook. Populated only when the view is AGGREGATE. + */ + aggregatedData?: Schema$AggregatedData; + /** + * Optional. List of scopes claimed by the RegistryBook. In Preview, Only project scope is supported. Each scope is in the format of projects/{project\}. Each scope can only be claimed once. + */ + claimedScopes?: string[] | null; + /** + * Output only. [Output only] Create time stamp + */ + createTime?: string | null; + /** + * Output only. Whether the RegistryBook is the default one. + */ + isDefault?: boolean | null; + /** + * Optional. Labels as key value pairs + */ + labels?: {[key: string]: string} | null; + /** + * Required. Identifier. name of resource + */ + name?: string | null; + /** + * Output only. [Output only] Update time stamp + */ + updateTime?: string | null; + } + /** + * Message for searching IP resources + */ + export interface Schema$SearchIpResourcesRequest { + /** + * Optional. Hint for how to order the results + */ + orderBy?: string | null; + /** + * Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. + */ + pageSize?: number | null; + /** + * Optional. A token identifying a page of results the server should return. + */ + pageToken?: string | null; + /** + * Optional. Search query. This string filters resources in an AIP-160-like format. It has some limitations. You can only specify top level conjunctions or attribute level negations. Each restriction can only be used once except the attribute restriction. The available restrictions for ranges are: - `realm`: The realm name to search in. - `ip_address`: The IP address to search for within ranges. - `ip_version`: The IP version to filter by (e.g., "IPV4", "IPV6"). - `parent_range`: The parent range of the range to search for. - `attribute_text`: The attribute text to search for within ranges. - `attribute`: The attribute key and value to filter by. The available restrictions for realms are: - `ip_version`: The IP version to search for. Only one of attribute_text or multiple attribute filters can be specified. Examples: - `realm=test-realm` - `realm=test-realm AND ip_address=10.0.0.0` - `realm=test-realm AND ip_version=IPV6` - `realm=test-realm AND attribute_text=test` - `ip_address=10.0.0.0 AND attribute:(key1=value1) AND attribute:(key2=value2)` - `attribute_text=test AND parent_range=projects/123/locations/global/discoveredRanges/test-parent-range` + */ + query?: string | null; + /** + * Optional. The type of resources to search for. If not specified, the server will return ranges. + */ + searchResourceTypes?: string[] | null; + /** + * Optional. Whether to show the utilization of the ranges in the response. + */ + showUtilization?: boolean | null; + } + /** + * Message for response to searching IP resources + */ + export interface Schema$SearchIpResourcesResponse { + /** + * A token identifying a page of results the server should return. + */ + nextPageToken?: string | null; + /** + * Deprecated: Use results field instead. The list of ranges matching the search query. + */ + ranges?: Schema$Range[]; + /** + * The list of results matching the search query. + */ + results?: Schema$SearchIpResourcesResult[]; + /** + * Locations that could not be reached. + */ + unreachable?: string[] | null; + } + /** + * A result matching the search query, which can be either a range or a realm. + */ + export interface Schema$SearchIpResourcesResult { + /** + * A range matching the search query. + */ + range?: Schema$Range; + /** + * A realm matching the search query. + */ + realm?: Schema$Realm; + } + /** + * Message for the response to getting the utilization of a CustomRange + */ + export interface Schema$ShowCustomRangeUtilizationResponse { + /** + * The CustomRange resource. + */ + customRange?: Schema$CustomRange; + /** + * The utilization of the CustomRange. + */ + rangeUtilization?: Schema$RangeUtilization; + } + /** + * Message for the response to getting the utilization of a DiscoveredRange + */ + export interface Schema$ShowDiscoveredRangeUtilizationResponse { + /** + * The DiscoveredRange resource. + */ + discoveredRange?: Schema$DiscoveredRange; + /** + * The utilization of the DiscoveredRange. + */ + rangeUtilization?: Schema$RangeUtilization; + } + /** + * The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). + */ + export interface Schema$Status { + /** + * The status code, which should be an enum value of google.rpc.Code. + */ + code?: number | null; + /** + * A list of messages that carry the error details. There is a common set of message types for APIs to use. + */ + details?: Array<{[key: string]: any}> | null; + /** + * A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. + */ + message?: string | null; + } + + export class Resource$Projects { + context: APIRequestContext; + locations: Resource$Projects$Locations; + constructor(context: APIRequestContext) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + + export class Resource$Projects$Locations { + context: APIRequestContext; + customRanges: Resource$Projects$Locations$Customranges; + discoveredRanges: Resource$Projects$Locations$Discoveredranges; + ipamAdminScopes: Resource$Projects$Locations$Ipamadminscopes; + operations: Resource$Projects$Locations$Operations; + realms: Resource$Projects$Locations$Realms; + registryBooks: Resource$Projects$Locations$Registrybooks; + constructor(context: APIRequestContext) { + this.context = context; + this.customRanges = new Resource$Projects$Locations$Customranges( + this.context + ); + this.discoveredRanges = new Resource$Projects$Locations$Discoveredranges( + this.context + ); + this.ipamAdminScopes = new Resource$Projects$Locations$Ipamadminscopes( + this.context + ); + this.operations = new Resource$Projects$Locations$Operations( + this.context + ); + this.realms = new Resource$Projects$Locations$Realms(this.context); + this.registryBooks = new Resource$Projects$Locations$Registrybooks( + this.context + ); + } + + /** + * Gets information about a location. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudnumberregistry.projects.locations.get({ + * // Resource name for the location. + * name: 'projects/my-project/locations/my-location', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "displayName": "my_displayName", + * // "labels": {}, + * // "locationId": "my_locationId", + * // "metadata": {}, + * // "name": "my_name" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Projects$Locations$Get, + options: StreamMethodOptions + ): Promise>; + get( + params?: Params$Resource$Projects$Locations$Get, + options?: MethodOptions + ): Promise>; + get( + params: Params$Resource$Projects$Locations$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Locations$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Locations$Get, + callback: BodyResponseCallback + ): void; + get(callback: BodyResponseCallback): void; + get( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project\}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudnumberregistry.projects.locations.list({ + * // Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. + * extraLocationTypes: 'placeholder-value', + * // A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). + * filter: 'placeholder-value', + * // The resource that owns the locations collection, if applicable. + * name: 'projects/my-project', + * // The maximum number of results to return. If not set, the service selects a default. + * pageSize: 'placeholder-value', + * // A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. + * pageToken: 'placeholder-value', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "locations": [], + * // "nextPageToken": "my_nextPageToken" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Projects$Locations$List, + options: StreamMethodOptions + ): Promise>; + list( + params?: Params$Resource$Projects$Locations$List, + options?: MethodOptions + ): Promise>; + list( + params: Params$Resource$Projects$Locations$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Projects$Locations$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Projects$Locations$List, + callback: BodyResponseCallback + ): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + | Params$Resource$Projects$Locations$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}/locations').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Get extends StandardParameters { + /** + * Resource name for the location. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$List extends StandardParameters { + /** + * Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. + */ + extraLocationTypes?: string[]; + /** + * A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). + */ + filter?: string; + /** + * The resource that owns the locations collection, if applicable. + */ + name?: string; + /** + * The maximum number of results to return. If not set, the service selects a default. + */ + pageSize?: number; + /** + * A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. + */ + pageToken?: string; + } + + export class Resource$Projects$Locations$Customranges { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Creates a new CustomRange in a given project and location. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudnumberregistry.projects.locations.customRanges.create({ + * // Required. Id of the requesting object. + * customRangeId: 'placeholder-value', + * // Required. Value for parent. + * parent: 'projects/my-project/locations/my-location', + * // 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). + * requestId: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "attributes": [], + * // "description": "my_description", + * // "ipv4CidrRange": "my_ipv4CidrRange", + * // "ipv6CidrRange": "my_ipv6CidrRange", + * // "labels": {}, + * // "name": "my_name", + * // "parentRange": "my_parentRange", + * // "realm": "my_realm", + * // "registryBook": "my_registryBook" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + create( + params: Params$Resource$Projects$Locations$Customranges$Create, + options: StreamMethodOptions + ): Promise>; + create( + params?: Params$Resource$Projects$Locations$Customranges$Create, + options?: MethodOptions + ): Promise>; + create( + params: Params$Resource$Projects$Locations$Customranges$Create, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Projects$Locations$Customranges$Create, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Projects$Locations$Customranges$Create, + callback: BodyResponseCallback + ): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Customranges$Create + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Customranges$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Customranges$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+parent}/customRanges').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Deletes a single CustomRange. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudnumberregistry.projects.locations.customRanges.delete({ + * // Optional. If set to true, all associated resources will be deleted. + * force: 'placeholder-value', + * // Required. Name of the resource + * name: 'projects/my-project/locations/my-location/customRanges/my-customRange', + * // 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). + * requestId: 'placeholder-value', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + delete( + params: Params$Resource$Projects$Locations$Customranges$Delete, + options: StreamMethodOptions + ): Promise>; + delete( + params?: Params$Resource$Projects$Locations$Customranges$Delete, + options?: MethodOptions + ): Promise>; + delete( + params: Params$Resource$Projects$Locations$Customranges$Delete, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Locations$Customranges$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Locations$Customranges$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Customranges$Delete + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Customranges$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Customranges$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Finds free IP ranges in a single CustomRange. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = + * await cloudnumberregistry.projects.locations.customRanges.findFreeIpRanges({ + * // Required. The prefix length of the free IP ranges to find. + * cidrPrefixLength: 'placeholder-value', + * // Required. Name of the CustomRange. + * name: 'projects/my-project/locations/my-location/customRanges/my-customRange', + * // Optional. The number of free IP ranges to find. + * rangeCount: 'placeholder-value', + * // 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). + * requestId: 'placeholder-value', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "freeIpCidrRanges": [] + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + findFreeIpRanges( + params: Params$Resource$Projects$Locations$Customranges$Findfreeipranges, + options: StreamMethodOptions + ): Promise>; + findFreeIpRanges( + params?: Params$Resource$Projects$Locations$Customranges$Findfreeipranges, + options?: MethodOptions + ): Promise< + GaxiosResponseWithHTTP2 + >; + findFreeIpRanges( + params: Params$Resource$Projects$Locations$Customranges$Findfreeipranges, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + findFreeIpRanges( + params: Params$Resource$Projects$Locations$Customranges$Findfreeipranges, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + findFreeIpRanges( + params: Params$Resource$Projects$Locations$Customranges$Findfreeipranges, + callback: BodyResponseCallback + ): void; + findFreeIpRanges( + callback: BodyResponseCallback + ): void; + findFreeIpRanges( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Customranges$Findfreeipranges + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise< + GaxiosResponseWithHTTP2 + > + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Customranges$Findfreeipranges; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Customranges$Findfreeipranges; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}:findFreeIpRanges').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Gets details of a single CustomRange. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudnumberregistry.projects.locations.customRanges.get({ + * // Required. Name of the resource + * name: 'projects/my-project/locations/my-location/customRanges/my-customRange', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "attributes": [], + * // "description": "my_description", + * // "ipv4CidrRange": "my_ipv4CidrRange", + * // "ipv6CidrRange": "my_ipv6CidrRange", + * // "labels": {}, + * // "name": "my_name", + * // "parentRange": "my_parentRange", + * // "realm": "my_realm", + * // "registryBook": "my_registryBook" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Projects$Locations$Customranges$Get, + options: StreamMethodOptions + ): Promise>; + get( + params?: Params$Resource$Projects$Locations$Customranges$Get, + options?: MethodOptions + ): Promise>; + get( + params: Params$Resource$Projects$Locations$Customranges$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Locations$Customranges$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Locations$Customranges$Get, + callback: BodyResponseCallback + ): void; + get(callback: BodyResponseCallback): void; + get( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Customranges$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Customranges$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Customranges$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Lists CustomRanges in a given project and location. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudnumberregistry.projects.locations.customRanges.list({ + * // Optional. Filtering results. + * filter: 'placeholder-value', + * // Optional. Hint for how to order the results. + * orderBy: 'placeholder-value', + * // Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. + * pageSize: 'placeholder-value', + * // Optional. A token identifying a page of results the server should return. + * pageToken: 'placeholder-value', + * // Required. Parent value for ListCustomRangesRequest + * parent: 'projects/my-project/locations/my-location', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "customRanges": [], + * // "nextPageToken": "my_nextPageToken", + * // "unreachable": [] + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Projects$Locations$Customranges$List, + options: StreamMethodOptions + ): Promise>; + list( + params?: Params$Resource$Projects$Locations$Customranges$List, + options?: MethodOptions + ): Promise>; + list( + params: Params$Resource$Projects$Locations$Customranges$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Projects$Locations$Customranges$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Projects$Locations$Customranges$List, + callback: BodyResponseCallback + ): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Customranges$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Customranges$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Customranges$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+parent}/customRanges').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Updates the parameters of a single CustomRange. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudnumberregistry.projects.locations.customRanges.patch({ + * // Required. Identifier. name of resource + * name: 'projects/my-project/locations/my-location/customRanges/my-customRange', + * // 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). + * requestId: 'placeholder-value', + * // Optional. Field mask is used to specify the fields to be overwritten in the CustomRange resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. + * updateMask: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "attributes": [], + * // "description": "my_description", + * // "ipv4CidrRange": "my_ipv4CidrRange", + * // "ipv6CidrRange": "my_ipv6CidrRange", + * // "labels": {}, + * // "name": "my_name", + * // "parentRange": "my_parentRange", + * // "realm": "my_realm", + * // "registryBook": "my_registryBook" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + patch( + params: Params$Resource$Projects$Locations$Customranges$Patch, + options: StreamMethodOptions + ): Promise>; + patch( + params?: Params$Resource$Projects$Locations$Customranges$Patch, + options?: MethodOptions + ): Promise>; + patch( + params: Params$Resource$Projects$Locations$Customranges$Patch, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Projects$Locations$Customranges$Patch, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Projects$Locations$Customranges$Patch, + callback: BodyResponseCallback + ): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Customranges$Patch + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Customranges$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Customranges$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Gets the details of a single CustomRange and its utilization. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = + * await cloudnumberregistry.projects.locations.customRanges.showUtilization({ + * // Required. Name of the resource + * name: 'projects/my-project/locations/my-location/customRanges/my-customRange', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "customRange": {}, + * // "rangeUtilization": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + showUtilization( + params: Params$Resource$Projects$Locations$Customranges$Showutilization, + options: StreamMethodOptions + ): Promise>; + showUtilization( + params?: Params$Resource$Projects$Locations$Customranges$Showutilization, + options?: MethodOptions + ): Promise< + GaxiosResponseWithHTTP2 + >; + showUtilization( + params: Params$Resource$Projects$Locations$Customranges$Showutilization, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + showUtilization( + params: Params$Resource$Projects$Locations$Customranges$Showutilization, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + showUtilization( + params: Params$Resource$Projects$Locations$Customranges$Showutilization, + callback: BodyResponseCallback + ): void; + showUtilization( + callback: BodyResponseCallback + ): void; + showUtilization( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Customranges$Showutilization + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise< + GaxiosResponseWithHTTP2 + > + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Customranges$Showutilization; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Customranges$Showutilization; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}:showUtilization').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + } + + export interface Params$Resource$Projects$Locations$Customranges$Create extends StandardParameters { + /** + * Required. Id of the requesting object. + */ + customRangeId?: string; + /** + * Required. Value for parent. + */ + parent?: string; + /** + * 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). + */ + requestId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$CustomRange; + } + export interface Params$Resource$Projects$Locations$Customranges$Delete extends StandardParameters { + /** + * Optional. If set to true, all associated resources will be deleted. + */ + force?: boolean; + /** + * Required. Name of the resource + */ + name?: string; + /** + * 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). + */ + requestId?: string; + } + export interface Params$Resource$Projects$Locations$Customranges$Findfreeipranges extends StandardParameters { + /** + * Required. The prefix length of the free IP ranges to find. + */ + cidrPrefixLength?: number; + /** + * Required. Name of the CustomRange. + */ + name?: string; + /** + * Optional. The number of free IP ranges to find. + */ + rangeCount?: number; + /** + * 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). + */ + requestId?: string; + } + export interface Params$Resource$Projects$Locations$Customranges$Get extends StandardParameters { + /** + * Required. Name of the resource + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Customranges$List extends StandardParameters { + /** + * Optional. Filtering results. + */ + filter?: string; + /** + * Optional. Hint for how to order the results. + */ + orderBy?: string; + /** + * Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. + */ + pageSize?: number; + /** + * Optional. A token identifying a page of results the server should return. + */ + pageToken?: string; + /** + * Required. Parent value for ListCustomRangesRequest + */ + parent?: string; + } + export interface Params$Resource$Projects$Locations$Customranges$Patch extends StandardParameters { + /** + * Required. Identifier. name of resource + */ + name?: string; + /** + * 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). + */ + requestId?: string; + /** + * Optional. Field mask is used to specify the fields to be overwritten in the CustomRange resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$CustomRange; + } + export interface Params$Resource$Projects$Locations$Customranges$Showutilization extends StandardParameters { + /** + * Required. Name of the resource + */ + name?: string; + } + + export class Resource$Projects$Locations$Discoveredranges { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Finds free IP ranges in a single DiscoveredRange. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = + * await cloudnumberregistry.projects.locations.discoveredRanges.findFreeIpRanges( + * { + * // Required. The prefix length of the free IP ranges to find. + * cidrPrefixLength: 'placeholder-value', + * // Required. Name of the DiscoveredRange. + * name: 'projects/my-project/locations/my-location/discoveredRanges/my-discoveredRange', + * // Optional. The number of free IP ranges to find. + * rangeCount: 'placeholder-value', + * // 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). + * requestId: 'placeholder-value', + * }, + * ); + * console.log(res.data); + * + * // Example response + * // { + * // "freeIpCidrRanges": [] + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + findFreeIpRanges( + params: Params$Resource$Projects$Locations$Discoveredranges$Findfreeipranges, + options: StreamMethodOptions + ): Promise>; + findFreeIpRanges( + params?: Params$Resource$Projects$Locations$Discoveredranges$Findfreeipranges, + options?: MethodOptions + ): Promise< + GaxiosResponseWithHTTP2 + >; + findFreeIpRanges( + params: Params$Resource$Projects$Locations$Discoveredranges$Findfreeipranges, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + findFreeIpRanges( + params: Params$Resource$Projects$Locations$Discoveredranges$Findfreeipranges, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + findFreeIpRanges( + params: Params$Resource$Projects$Locations$Discoveredranges$Findfreeipranges, + callback: BodyResponseCallback + ): void; + findFreeIpRanges( + callback: BodyResponseCallback + ): void; + findFreeIpRanges( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Discoveredranges$Findfreeipranges + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise< + GaxiosResponseWithHTTP2 + > + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Discoveredranges$Findfreeipranges; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Discoveredranges$Findfreeipranges; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}:findFreeIpRanges').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Gets details of a single DiscoveredRange. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudnumberregistry.projects.locations.discoveredRanges.get( + * { + * // Required. Name of the resource + * name: 'projects/my-project/locations/my-location/discoveredRanges/my-discoveredRange', + * }, + * ); + * console.log(res.data); + * + * // Example response + * // { + * // "attributes": [], + * // "childCidrOverlapAllowed": false, + * // "createTime": "my_createTime", + * // "description": "my_description", + * // "discoveryMetadata": {}, + * // "ipv4CidrRange": "my_ipv4CidrRange", + * // "ipv6CidrRange": "my_ipv6CidrRange", + * // "labels": {}, + * // "name": "my_name", + * // "parentRange": "my_parentRange", + * // "realm": "my_realm", + * // "registryBook": "my_registryBook", + * // "updateTime": "my_updateTime" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Projects$Locations$Discoveredranges$Get, + options: StreamMethodOptions + ): Promise>; + get( + params?: Params$Resource$Projects$Locations$Discoveredranges$Get, + options?: MethodOptions + ): Promise>; + get( + params: Params$Resource$Projects$Locations$Discoveredranges$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Locations$Discoveredranges$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Locations$Discoveredranges$Get, + callback: BodyResponseCallback + ): void; + get(callback: BodyResponseCallback): void; + get( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Discoveredranges$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Discoveredranges$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Discoveredranges$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Lists DiscoveredRanges in a given project and location. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = + * await cloudnumberregistry.projects.locations.discoveredRanges.list({ + * // Optional. Filtering results. + * filter: 'placeholder-value', + * // Optional. Hint for how to order the results. + * orderBy: 'placeholder-value', + * // Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. + * pageSize: 'placeholder-value', + * // Optional. A token identifying a page of results the server should return. + * pageToken: 'placeholder-value', + * // Required. Parent value for ListDiscoveredRangesRequest + * parent: 'projects/my-project/locations/my-location', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "discoveredRanges": [], + * // "nextPageToken": "my_nextPageToken", + * // "unreachable": [] + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Projects$Locations$Discoveredranges$List, + options: StreamMethodOptions + ): Promise>; + list( + params?: Params$Resource$Projects$Locations$Discoveredranges$List, + options?: MethodOptions + ): Promise>; + list( + params: Params$Resource$Projects$Locations$Discoveredranges$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Projects$Locations$Discoveredranges$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Projects$Locations$Discoveredranges$List, + callback: BodyResponseCallback + ): void; + list( + callback: BodyResponseCallback + ): void; + list( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Discoveredranges$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Discoveredranges$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Discoveredranges$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+parent}/discoveredRanges').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Gets the details of a single DiscoveredRange and its utilization. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = + * await cloudnumberregistry.projects.locations.discoveredRanges.showUtilization( + * { + * // Required. Name of the resource + * name: 'projects/my-project/locations/my-location/discoveredRanges/my-discoveredRange', + * }, + * ); + * console.log(res.data); + * + * // Example response + * // { + * // "discoveredRange": {}, + * // "rangeUtilization": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + showUtilization( + params: Params$Resource$Projects$Locations$Discoveredranges$Showutilization, + options: StreamMethodOptions + ): Promise>; + showUtilization( + params?: Params$Resource$Projects$Locations$Discoveredranges$Showutilization, + options?: MethodOptions + ): Promise< + GaxiosResponseWithHTTP2 + >; + showUtilization( + params: Params$Resource$Projects$Locations$Discoveredranges$Showutilization, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + showUtilization( + params: Params$Resource$Projects$Locations$Discoveredranges$Showutilization, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + showUtilization( + params: Params$Resource$Projects$Locations$Discoveredranges$Showutilization, + callback: BodyResponseCallback + ): void; + showUtilization( + callback: BodyResponseCallback + ): void; + showUtilization( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Discoveredranges$Showutilization + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise< + GaxiosResponseWithHTTP2 + > + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Discoveredranges$Showutilization; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Discoveredranges$Showutilization; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}:showUtilization').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + } + + export interface Params$Resource$Projects$Locations$Discoveredranges$Findfreeipranges extends StandardParameters { + /** + * Required. The prefix length of the free IP ranges to find. + */ + cidrPrefixLength?: number; + /** + * Required. Name of the DiscoveredRange. + */ + name?: string; + /** + * Optional. The number of free IP ranges to find. + */ + rangeCount?: number; + /** + * 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). + */ + requestId?: string; + } + export interface Params$Resource$Projects$Locations$Discoveredranges$Get extends StandardParameters { + /** + * Required. Name of the resource + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Discoveredranges$List extends StandardParameters { + /** + * Optional. Filtering results. + */ + filter?: string; + /** + * Optional. Hint for how to order the results. + */ + orderBy?: string; + /** + * Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. + */ + pageSize?: number; + /** + * Optional. A token identifying a page of results the server should return. + */ + pageToken?: string; + /** + * Required. Parent value for ListDiscoveredRangesRequest + */ + parent?: string; + } + export interface Params$Resource$Projects$Locations$Discoveredranges$Showutilization extends StandardParameters { + /** + * Required. Name of the resource + */ + name?: string; + } + + export class Resource$Projects$Locations$Ipamadminscopes { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Checks the availability of IPAM admin scopes in a given project and location. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = + * await cloudnumberregistry.projects.locations.ipamAdminScopes.checkAvailability( + * { + * // Required. Parent value for the IpamAdminScopes. + * parent: 'projects/my-project/locations/my-location', + * // Required. The scopes of the IpamAdminScopes to look for. + * scopes: 'placeholder-value', + * }, + * ); + * console.log(res.data); + * + * // Example response + * // { + * // "scopeAvailabilities": [] + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + checkAvailability( + params: Params$Resource$Projects$Locations$Ipamadminscopes$Checkavailability, + options: StreamMethodOptions + ): Promise>; + checkAvailability( + params?: Params$Resource$Projects$Locations$Ipamadminscopes$Checkavailability, + options?: MethodOptions + ): Promise< + GaxiosResponseWithHTTP2 + >; + checkAvailability( + params: Params$Resource$Projects$Locations$Ipamadminscopes$Checkavailability, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + checkAvailability( + params: Params$Resource$Projects$Locations$Ipamadminscopes$Checkavailability, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + checkAvailability( + params: Params$Resource$Projects$Locations$Ipamadminscopes$Checkavailability, + callback: BodyResponseCallback + ): void; + checkAvailability( + callback: BodyResponseCallback + ): void; + checkAvailability( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Ipamadminscopes$Checkavailability + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise< + GaxiosResponseWithHTTP2 + > + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Ipamadminscopes$Checkavailability; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Ipamadminscopes$Checkavailability; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + '/v1alpha/{+parent}/ipamAdminScopes:checkAvailability' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * Cleans up a single IpamAdminScope. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = + * await cloudnumberregistry.projects.locations.ipamAdminScopes.cleanup({ + * // Required. Name of the resource + * name: 'projects/my-project/locations/my-location/ipamAdminScopes/my-ipamAdminScope', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "requestId": "my_requestId" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + cleanup( + params: Params$Resource$Projects$Locations$Ipamadminscopes$Cleanup, + options: StreamMethodOptions + ): Promise>; + cleanup( + params?: Params$Resource$Projects$Locations$Ipamadminscopes$Cleanup, + options?: MethodOptions + ): Promise>; + cleanup( + params: Params$Resource$Projects$Locations$Ipamadminscopes$Cleanup, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + cleanup( + params: Params$Resource$Projects$Locations$Ipamadminscopes$Cleanup, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + cleanup( + params: Params$Resource$Projects$Locations$Ipamadminscopes$Cleanup, + callback: BodyResponseCallback + ): void; + cleanup(callback: BodyResponseCallback): void; + cleanup( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Ipamadminscopes$Cleanup + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Ipamadminscopes$Cleanup; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Ipamadminscopes$Cleanup; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}:cleanup').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Creates a new IpamAdminScope in a given project and location. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = + * await cloudnumberregistry.projects.locations.ipamAdminScopes.create({ + * // Required. Id of the requesting object. + * ipamAdminScopeId: 'placeholder-value', + * // Required. Value for parent. + * parent: 'projects/my-project/locations/my-location', + * // 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). + * requestId: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "createTime": "my_createTime", + * // "enabledAddonPlatforms": [], + * // "labels": {}, + * // "name": "my_name", + * // "scopes": [], + * // "state": "my_state", + * // "updateTime": "my_updateTime" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + create( + params: Params$Resource$Projects$Locations$Ipamadminscopes$Create, + options: StreamMethodOptions + ): Promise>; + create( + params?: Params$Resource$Projects$Locations$Ipamadminscopes$Create, + options?: MethodOptions + ): Promise>; + create( + params: Params$Resource$Projects$Locations$Ipamadminscopes$Create, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Projects$Locations$Ipamadminscopes$Create, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Projects$Locations$Ipamadminscopes$Create, + callback: BodyResponseCallback + ): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Ipamadminscopes$Create + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Ipamadminscopes$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Ipamadminscopes$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+parent}/ipamAdminScopes').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Deletes a single IpamAdminScope. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = + * await cloudnumberregistry.projects.locations.ipamAdminScopes.delete({ + * // Optional. If set to true, all associated resources will be deleted. + * force: 'placeholder-value', + * // Required. Name of the resource + * name: 'projects/my-project/locations/my-location/ipamAdminScopes/my-ipamAdminScope', + * // 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). + * requestId: 'placeholder-value', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + delete( + params: Params$Resource$Projects$Locations$Ipamadminscopes$Delete, + options: StreamMethodOptions + ): Promise>; + delete( + params?: Params$Resource$Projects$Locations$Ipamadminscopes$Delete, + options?: MethodOptions + ): Promise>; + delete( + params: Params$Resource$Projects$Locations$Ipamadminscopes$Delete, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Locations$Ipamadminscopes$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Locations$Ipamadminscopes$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Ipamadminscopes$Delete + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Ipamadminscopes$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Ipamadminscopes$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Disables a single IpamAdminScope. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = + * await cloudnumberregistry.projects.locations.ipamAdminScopes.disable({ + * // Required. Name of the resource + * name: 'projects/my-project/locations/my-location/ipamAdminScopes/my-ipamAdminScope', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "requestId": "my_requestId" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + disable( + params: Params$Resource$Projects$Locations$Ipamadminscopes$Disable, + options: StreamMethodOptions + ): Promise>; + disable( + params?: Params$Resource$Projects$Locations$Ipamadminscopes$Disable, + options?: MethodOptions + ): Promise>; + disable( + params: Params$Resource$Projects$Locations$Ipamadminscopes$Disable, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + disable( + params: Params$Resource$Projects$Locations$Ipamadminscopes$Disable, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + disable( + params: Params$Resource$Projects$Locations$Ipamadminscopes$Disable, + callback: BodyResponseCallback + ): void; + disable(callback: BodyResponseCallback): void; + disable( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Ipamadminscopes$Disable + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Ipamadminscopes$Disable; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Ipamadminscopes$Disable; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}:disable').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Gets details of a single IpamAdminScope. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudnumberregistry.projects.locations.ipamAdminScopes.get({ + * // Required. Name of the resource + * name: 'projects/my-project/locations/my-location/ipamAdminScopes/my-ipamAdminScope', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "createTime": "my_createTime", + * // "enabledAddonPlatforms": [], + * // "labels": {}, + * // "name": "my_name", + * // "scopes": [], + * // "state": "my_state", + * // "updateTime": "my_updateTime" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Projects$Locations$Ipamadminscopes$Get, + options: StreamMethodOptions + ): Promise>; + get( + params?: Params$Resource$Projects$Locations$Ipamadminscopes$Get, + options?: MethodOptions + ): Promise>; + get( + params: Params$Resource$Projects$Locations$Ipamadminscopes$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Locations$Ipamadminscopes$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Locations$Ipamadminscopes$Get, + callback: BodyResponseCallback + ): void; + get(callback: BodyResponseCallback): void; + get( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Ipamadminscopes$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Ipamadminscopes$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Ipamadminscopes$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * List all IPAM admin scopes in a given project and location. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudnumberregistry.projects.locations.ipamAdminScopes.list( + * { + * // Optional. Filtering results + * filter: 'placeholder-value', + * // Optional. Hint for how to order the results + * orderBy: 'placeholder-value', + * // Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. + * pageSize: 'placeholder-value', + * // Optional. A token identifying a page of results the server should return. + * pageToken: 'placeholder-value', + * // Required. Parent value for ListIpamAdminScopesRequest + * parent: 'projects/my-project/locations/my-location', + * }, + * ); + * console.log(res.data); + * + * // Example response + * // { + * // "ipamAdminScopes": [], + * // "nextPageToken": "my_nextPageToken", + * // "unreachable": [] + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Projects$Locations$Ipamadminscopes$List, + options: StreamMethodOptions + ): Promise>; + list( + params?: Params$Resource$Projects$Locations$Ipamadminscopes$List, + options?: MethodOptions + ): Promise>; + list( + params: Params$Resource$Projects$Locations$Ipamadminscopes$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Projects$Locations$Ipamadminscopes$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Projects$Locations$Ipamadminscopes$List, + callback: BodyResponseCallback + ): void; + list( + callback: BodyResponseCallback + ): void; + list( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Ipamadminscopes$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Ipamadminscopes$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Ipamadminscopes$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+parent}/ipamAdminScopes').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Updates the parameters of a single IpamAdminScope. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = + * await cloudnumberregistry.projects.locations.ipamAdminScopes.patch({ + * // Required. Identifier. name of resource + * name: 'projects/my-project/locations/my-location/ipamAdminScopes/my-ipamAdminScope', + * // 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). + * requestId: 'placeholder-value', + * // Optional. Field mask is used to specify the fields to be overwritten in the IpamAdminScope resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. + * updateMask: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "createTime": "my_createTime", + * // "enabledAddonPlatforms": [], + * // "labels": {}, + * // "name": "my_name", + * // "scopes": [], + * // "state": "my_state", + * // "updateTime": "my_updateTime" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + patch( + params: Params$Resource$Projects$Locations$Ipamadminscopes$Patch, + options: StreamMethodOptions + ): Promise>; + patch( + params?: Params$Resource$Projects$Locations$Ipamadminscopes$Patch, + options?: MethodOptions + ): Promise>; + patch( + params: Params$Resource$Projects$Locations$Ipamadminscopes$Patch, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Projects$Locations$Ipamadminscopes$Patch, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Projects$Locations$Ipamadminscopes$Patch, + callback: BodyResponseCallback + ): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Ipamadminscopes$Patch + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Ipamadminscopes$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Ipamadminscopes$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Ipamadminscopes$Checkavailability extends StandardParameters { + /** + * Required. Parent value for the IpamAdminScopes. + */ + parent?: string; + /** + * Required. The scopes of the IpamAdminScopes to look for. + */ + scopes?: string[]; + } + export interface Params$Resource$Projects$Locations$Ipamadminscopes$Cleanup extends StandardParameters { + /** + * Required. Name of the resource + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$CleanupIpamAdminScopeRequest; + } + export interface Params$Resource$Projects$Locations$Ipamadminscopes$Create extends StandardParameters { + /** + * Required. Id of the requesting object. + */ + ipamAdminScopeId?: string; + /** + * Required. Value for parent. + */ + parent?: string; + /** + * 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). + */ + requestId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$IpamAdminScope; + } + export interface Params$Resource$Projects$Locations$Ipamadminscopes$Delete extends StandardParameters { + /** + * Optional. If set to true, all associated resources will be deleted. + */ + force?: boolean; + /** + * Required. Name of the resource + */ + name?: string; + /** + * 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). + */ + requestId?: string; + } + export interface Params$Resource$Projects$Locations$Ipamadminscopes$Disable extends StandardParameters { + /** + * Required. Name of the resource + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$DisableIpamAdminScopeRequest; + } + export interface Params$Resource$Projects$Locations$Ipamadminscopes$Get extends StandardParameters { + /** + * Required. Name of the resource + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Ipamadminscopes$List extends StandardParameters { + /** + * Optional. Filtering results + */ + filter?: string; + /** + * Optional. Hint for how to order the results + */ + orderBy?: string; + /** + * Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. + */ + pageSize?: number; + /** + * Optional. A token identifying a page of results the server should return. + */ + pageToken?: string; + /** + * Required. Parent value for ListIpamAdminScopesRequest + */ + parent?: string; + } + export interface Params$Resource$Projects$Locations$Ipamadminscopes$Patch extends StandardParameters { + /** + * Required. Identifier. name of resource + */ + name?: string; + /** + * 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). + */ + requestId?: string; + /** + * Optional. Field mask is used to specify the fields to be overwritten in the IpamAdminScope resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$IpamAdminScope; + } + + export class Resource$Projects$Locations$Operations { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudnumberregistry.projects.locations.operations.cancel({ + * // The name of the operation resource to be cancelled. + * name: 'projects/my-project/locations/my-location/operations/my-operation', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // {} + * }, + * }); + * console.log(res.data); + * + * // Example response + * // {} + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + cancel( + params: Params$Resource$Projects$Locations$Operations$Cancel, + options: StreamMethodOptions + ): Promise>; + cancel( + params?: Params$Resource$Projects$Locations$Operations$Cancel, + options?: MethodOptions + ): Promise>; + cancel( + params: Params$Resource$Projects$Locations$Operations$Cancel, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + cancel( + params: Params$Resource$Projects$Locations$Operations$Cancel, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + cancel( + params: Params$Resource$Projects$Locations$Operations$Cancel, + callback: BodyResponseCallback + ): void; + cancel(callback: BodyResponseCallback): void; + cancel( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Operations$Cancel + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Operations$Cancel; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Operations$Cancel; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}:cancel').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudnumberregistry.projects.locations.operations.delete({ + * // The name of the operation resource to be deleted. + * name: 'projects/my-project/locations/my-location/operations/my-operation', + * }); + * console.log(res.data); + * + * // Example response + * // {} + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + delete( + params: Params$Resource$Projects$Locations$Operations$Delete, + options: StreamMethodOptions + ): Promise>; + delete( + params?: Params$Resource$Projects$Locations$Operations$Delete, + options?: MethodOptions + ): Promise>; + delete( + params: Params$Resource$Projects$Locations$Operations$Delete, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Locations$Operations$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Locations$Operations$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Operations$Delete + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Operations$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Operations$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudnumberregistry.projects.locations.operations.get({ + * // The name of the operation resource. + * name: 'projects/my-project/locations/my-location/operations/my-operation', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Projects$Locations$Operations$Get, + options: StreamMethodOptions + ): Promise>; + get( + params?: Params$Resource$Projects$Locations$Operations$Get, + options?: MethodOptions + ): Promise>; + get( + params: Params$Resource$Projects$Locations$Operations$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Locations$Operations$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Locations$Operations$Get, + callback: BodyResponseCallback + ): void; + get(callback: BodyResponseCallback): void; + get( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Operations$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Operations$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Operations$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudnumberregistry.projects.locations.operations.list({ + * // The standard list filter. + * filter: 'placeholder-value', + * // The name of the operation's parent resource. + * name: 'projects/my-project/locations/my-location', + * // The standard list page size. + * pageSize: 'placeholder-value', + * // The standard list page token. + * pageToken: 'placeholder-value', + * // When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation. + * returnPartialSuccess: 'placeholder-value', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "nextPageToken": "my_nextPageToken", + * // "operations": [], + * // "unreachable": [] + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Projects$Locations$Operations$List, + options: StreamMethodOptions + ): Promise>; + list( + params?: Params$Resource$Projects$Locations$Operations$List, + options?: MethodOptions + ): Promise>; + list( + params: Params$Resource$Projects$Locations$Operations$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Projects$Locations$Operations$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Projects$Locations$Operations$List, + callback: BodyResponseCallback + ): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Operations$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Operations$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Operations$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}/operations').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Operations$Cancel extends StandardParameters { + /** + * The name of the operation resource to be cancelled. + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$CancelOperationRequest; + } + export interface Params$Resource$Projects$Locations$Operations$Delete extends StandardParameters { + /** + * The name of the operation resource to be deleted. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Operations$Get extends StandardParameters { + /** + * The name of the operation resource. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Operations$List extends StandardParameters { + /** + * The standard list filter. + */ + filter?: string; + /** + * The name of the operation's parent resource. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + /** + * When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `"projects/example/locations/-"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation. + */ + returnPartialSuccess?: boolean; + } + + export class Resource$Projects$Locations$Realms { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Creates a new Realm in a given project and location. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudnumberregistry.projects.locations.realms.create({ + * // Required. Value for parent. + * parent: 'projects/my-project/locations/my-location', + * // Required. Id of the requesting object. + * realmId: 'placeholder-value', + * // 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. + * requestId: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "aggregatedData": {}, + * // "createTime": "my_createTime", + * // "discoveryMetadata": {}, + * // "ipVersion": "my_ipVersion", + * // "labels": {}, + * // "managementType": "my_managementType", + * // "name": "my_name", + * // "registryBook": "my_registryBook", + * // "trafficType": "my_trafficType", + * // "updateTime": "my_updateTime" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + create( + params: Params$Resource$Projects$Locations$Realms$Create, + options: StreamMethodOptions + ): Promise>; + create( + params?: Params$Resource$Projects$Locations$Realms$Create, + options?: MethodOptions + ): Promise>; + create( + params: Params$Resource$Projects$Locations$Realms$Create, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Projects$Locations$Realms$Create, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Projects$Locations$Realms$Create, + callback: BodyResponseCallback + ): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Realms$Create + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Realms$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Realms$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+parent}/realms').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Deletes a single Realm. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudnumberregistry.projects.locations.realms.delete({ + * // Optional. If set to true, all associated resources will be deleted. + * force: 'placeholder-value', + * // Required. Name of the resource + * name: 'projects/my-project/locations/my-location/realms/my-realm', + * // 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. + * requestId: 'placeholder-value', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + delete( + params: Params$Resource$Projects$Locations$Realms$Delete, + options: StreamMethodOptions + ): Promise>; + delete( + params?: Params$Resource$Projects$Locations$Realms$Delete, + options?: MethodOptions + ): Promise>; + delete( + params: Params$Resource$Projects$Locations$Realms$Delete, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Locations$Realms$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Locations$Realms$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Realms$Delete + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Realms$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Realms$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Gets details of a single Realm. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudnumberregistry.projects.locations.realms.get({ + * // Required. Name of the resource + * name: 'projects/my-project/locations/my-location/realms/my-realm', + * // Optional. The view of the Realm. + * view: 'placeholder-value', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "aggregatedData": {}, + * // "createTime": "my_createTime", + * // "discoveryMetadata": {}, + * // "ipVersion": "my_ipVersion", + * // "labels": {}, + * // "managementType": "my_managementType", + * // "name": "my_name", + * // "registryBook": "my_registryBook", + * // "trafficType": "my_trafficType", + * // "updateTime": "my_updateTime" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Projects$Locations$Realms$Get, + options: StreamMethodOptions + ): Promise>; + get( + params?: Params$Resource$Projects$Locations$Realms$Get, + options?: MethodOptions + ): Promise>; + get( + params: Params$Resource$Projects$Locations$Realms$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Locations$Realms$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Locations$Realms$Get, + callback: BodyResponseCallback + ): void; + get(callback: BodyResponseCallback): void; + get( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Realms$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Realms$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Realms$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Lists Realms in a given project and location. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudnumberregistry.projects.locations.realms.list({ + * // Optional. Filtering results + * filter: 'placeholder-value', + * // Optional. Hint for how to order the results + * orderBy: 'placeholder-value', + * // Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. + * pageSize: 'placeholder-value', + * // Optional. A token identifying a page of results the server should return. + * pageToken: 'placeholder-value', + * // Required. Parent value for ListRealmsRequest + * parent: 'projects/my-project/locations/my-location', + * // Optional. The view of the Realm. + * view: 'placeholder-value', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "nextPageToken": "my_nextPageToken", + * // "realms": [], + * // "unreachable": [] + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Projects$Locations$Realms$List, + options: StreamMethodOptions + ): Promise>; + list( + params?: Params$Resource$Projects$Locations$Realms$List, + options?: MethodOptions + ): Promise>; + list( + params: Params$Resource$Projects$Locations$Realms$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Projects$Locations$Realms$List, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Projects$Locations$Realms$List, + callback: BodyResponseCallback + ): void; + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Realms$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Realms$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Realms$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+parent}/realms').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Updates the parameters of a single Realm. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudnumberregistry.projects.locations.realms.patch({ + * // Required. Identifier. Unique name/ID of the realm + * name: 'projects/my-project/locations/my-location/realms/my-realm', + * // 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. + * requestId: 'placeholder-value', + * // Optional. Field mask is used to specify the fields to be overwritten in the Realm resource by the update. + * updateMask: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "aggregatedData": {}, + * // "createTime": "my_createTime", + * // "discoveryMetadata": {}, + * // "ipVersion": "my_ipVersion", + * // "labels": {}, + * // "managementType": "my_managementType", + * // "name": "my_name", + * // "registryBook": "my_registryBook", + * // "trafficType": "my_trafficType", + * // "updateTime": "my_updateTime" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + patch( + params: Params$Resource$Projects$Locations$Realms$Patch, + options: StreamMethodOptions + ): Promise>; + patch( + params?: Params$Resource$Projects$Locations$Realms$Patch, + options?: MethodOptions + ): Promise>; + patch( + params: Params$Resource$Projects$Locations$Realms$Patch, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Projects$Locations$Realms$Patch, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Projects$Locations$Realms$Patch, + callback: BodyResponseCallback + ): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Realms$Patch + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Realms$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Realms$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Realms$Create extends StandardParameters { + /** + * Required. Value for parent. + */ + parent?: string; + /** + * Required. Id of the requesting object. + */ + realmId?: string; + /** + * 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. + */ + requestId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$Realm; + } + export interface Params$Resource$Projects$Locations$Realms$Delete extends StandardParameters { + /** + * Optional. If set to true, all associated resources will be deleted. + */ + force?: boolean; + /** + * Required. Name of the resource + */ + name?: string; + /** + * 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. + */ + requestId?: string; + } + export interface Params$Resource$Projects$Locations$Realms$Get extends StandardParameters { + /** + * Required. Name of the resource + */ + name?: string; + /** + * Optional. The view of the Realm. + */ + view?: string; + } + export interface Params$Resource$Projects$Locations$Realms$List extends StandardParameters { + /** + * Optional. Filtering results + */ + filter?: string; + /** + * Optional. Hint for how to order the results + */ + orderBy?: string; + /** + * Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. + */ + pageSize?: number; + /** + * Optional. A token identifying a page of results the server should return. + */ + pageToken?: string; + /** + * Required. Parent value for ListRealmsRequest + */ + parent?: string; + /** + * Optional. The view of the Realm. + */ + view?: string; + } + export interface Params$Resource$Projects$Locations$Realms$Patch extends StandardParameters { + /** + * Required. Identifier. Unique name/ID of the realm + */ + name?: string; + /** + * 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. + */ + requestId?: string; + /** + * Optional. Field mask is used to specify the fields to be overwritten in the Realm resource by the update. + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$Realm; + } + + export class Resource$Projects$Locations$Registrybooks { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * Creates a new RegistryBook in a given project and location. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudnumberregistry.projects.locations.registryBooks.create( + * { + * // Required. Value for parent. + * parent: 'projects/my-project/locations/my-location', + * // Required. Id of the requesting object. + * registryBookId: 'placeholder-value', + * // 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). + * requestId: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "aggregatedData": {}, + * // "claimedScopes": [], + * // "createTime": "my_createTime", + * // "isDefault": false, + * // "labels": {}, + * // "name": "my_name", + * // "updateTime": "my_updateTime" + * // } + * }, + * }, + * ); + * console.log(res.data); + * + * // Example response + * // { + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + create( + params: Params$Resource$Projects$Locations$Registrybooks$Create, + options: StreamMethodOptions + ): Promise>; + create( + params?: Params$Resource$Projects$Locations$Registrybooks$Create, + options?: MethodOptions + ): Promise>; + create( + params: Params$Resource$Projects$Locations$Registrybooks$Create, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Projects$Locations$Registrybooks$Create, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + create( + params: Params$Resource$Projects$Locations$Registrybooks$Create, + callback: BodyResponseCallback + ): void; + create(callback: BodyResponseCallback): void; + create( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Registrybooks$Create + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Registrybooks$Create; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Registrybooks$Create; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+parent}/registryBooks').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Deletes a single RegistryBook. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudnumberregistry.projects.locations.registryBooks.delete( + * { + * // Optional. If set to true, all associated resources will be deleted. + * force: 'placeholder-value', + * // Required. Name of the resource + * name: 'projects/my-project/locations/my-location/registryBooks/my-registryBook', + * // 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). + * requestId: 'placeholder-value', + * }, + * ); + * console.log(res.data); + * + * // Example response + * // { + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + delete( + params: Params$Resource$Projects$Locations$Registrybooks$Delete, + options: StreamMethodOptions + ): Promise>; + delete( + params?: Params$Resource$Projects$Locations$Registrybooks$Delete, + options?: MethodOptions + ): Promise>; + delete( + params: Params$Resource$Projects$Locations$Registrybooks$Delete, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Locations$Registrybooks$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Projects$Locations$Registrybooks$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Registrybooks$Delete + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Registrybooks$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Registrybooks$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Gets details of a single RegistryBook. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudnumberregistry.projects.locations.registryBooks.get({ + * // Required. Name of the resource + * name: 'projects/my-project/locations/my-location/registryBooks/my-registryBook', + * // Optional. The view of the RegistryBook. + * view: 'placeholder-value', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "aggregatedData": {}, + * // "claimedScopes": [], + * // "createTime": "my_createTime", + * // "isDefault": false, + * // "labels": {}, + * // "name": "my_name", + * // "updateTime": "my_updateTime" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + get( + params: Params$Resource$Projects$Locations$Registrybooks$Get, + options: StreamMethodOptions + ): Promise>; + get( + params?: Params$Resource$Projects$Locations$Registrybooks$Get, + options?: MethodOptions + ): Promise>; + get( + params: Params$Resource$Projects$Locations$Registrybooks$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Locations$Registrybooks$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Projects$Locations$Registrybooks$Get, + callback: BodyResponseCallback + ): void; + get(callback: BodyResponseCallback): void; + get( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Registrybooks$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Registrybooks$Get; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Registrybooks$Get; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Lists RegistryBooks in a given project and location. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudnumberregistry.projects.locations.registryBooks.list({ + * // Optional. Filtering results + * filter: 'placeholder-value', + * // Optional. Hint for how to order the results + * orderBy: 'placeholder-value', + * // Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. + * pageSize: 'placeholder-value', + * // Optional. A token identifying a page of results the server should return. + * pageToken: 'placeholder-value', + * // Required. Parent value for ListRegistryBooksRequest + * parent: 'projects/my-project/locations/my-location', + * // Optional. The view of the RegistryBook. + * view: 'placeholder-value', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "nextPageToken": "my_nextPageToken", + * // "registryBooks": [], + * // "unreachable": [] + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + list( + params: Params$Resource$Projects$Locations$Registrybooks$List, + options: StreamMethodOptions + ): Promise>; + list( + params?: Params$Resource$Projects$Locations$Registrybooks$List, + options?: MethodOptions + ): Promise>; + list( + params: Params$Resource$Projects$Locations$Registrybooks$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Projects$Locations$Registrybooks$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Projects$Locations$Registrybooks$List, + callback: BodyResponseCallback + ): void; + list( + callback: BodyResponseCallback + ): void; + list( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Registrybooks$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Registrybooks$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Registrybooks$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+parent}/registryBooks').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Updates the parameters of a single RegistryBook. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await cloudnumberregistry.projects.locations.registryBooks.patch({ + * // Required. Identifier. name of resource + * name: 'projects/my-project/locations/my-location/registryBooks/my-registryBook', + * // 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). + * requestId: 'placeholder-value', + * // Optional. Field mask is used to specify the fields to be overwritten in the RegistryBook resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. + * updateMask: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "aggregatedData": {}, + * // "claimedScopes": [], + * // "createTime": "my_createTime", + * // "isDefault": false, + * // "labels": {}, + * // "name": "my_name", + * // "updateTime": "my_updateTime" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "done": false, + * // "error": {}, + * // "metadata": {}, + * // "name": "my_name", + * // "response": {} + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + patch( + params: Params$Resource$Projects$Locations$Registrybooks$Patch, + options: StreamMethodOptions + ): Promise>; + patch( + params?: Params$Resource$Projects$Locations$Registrybooks$Patch, + options?: MethodOptions + ): Promise>; + patch( + params: Params$Resource$Projects$Locations$Registrybooks$Patch, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Projects$Locations$Registrybooks$Patch, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Projects$Locations$Registrybooks$Patch, + callback: BodyResponseCallback + ): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Registrybooks$Patch + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Registrybooks$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Projects$Locations$Registrybooks$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * Searches IP resources in a given RegistryBook. + * @example + * ```js + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/cloudnumberregistry.googleapis.com + * // - Login into gcloud by running: + * // ```sh + * // $ gcloud auth application-default login + * // ``` + * // - Install the npm module by running: + * // ```sh + * // $ npm install googleapis + * // ``` + * + * const {google} = require('googleapis'); + * const cloudnumberregistry = google.cloudnumberregistry('v1alpha'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/cloud-platform'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = + * await cloudnumberregistry.projects.locations.registryBooks.searchIpResources( + * { + * // Required. The name of the RegistryBook to search in. + * name: 'projects/my-project/locations/my-location/registryBooks/my-registryBook', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "orderBy": "my_orderBy", + * // "pageSize": 0, + * // "pageToken": "my_pageToken", + * // "query": "my_query", + * // "searchResourceTypes": [], + * // "showUtilization": false + * // } + * }, + * }, + * ); + * console.log(res.data); + * + * // Example response + * // { + * // "nextPageToken": "my_nextPageToken", + * // "ranges": [], + * // "results": [], + * // "unreachable": [] + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * ``` + * + * @param params - Parameters for request + * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. + * @param callback - Optional callback that handles the response. + * @returns A promise if used with async/await, or void if used with a callback. + */ + searchIpResources( + params: Params$Resource$Projects$Locations$Registrybooks$Searchipresources, + options: StreamMethodOptions + ): Promise>; + searchIpResources( + params?: Params$Resource$Projects$Locations$Registrybooks$Searchipresources, + options?: MethodOptions + ): Promise>; + searchIpResources( + params: Params$Resource$Projects$Locations$Registrybooks$Searchipresources, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + searchIpResources( + params: Params$Resource$Projects$Locations$Registrybooks$Searchipresources, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + searchIpResources( + params: Params$Resource$Projects$Locations$Registrybooks$Searchipresources, + callback: BodyResponseCallback + ): void; + searchIpResources( + callback: BodyResponseCallback + ): void; + searchIpResources( + paramsOrCallback?: + | Params$Resource$Projects$Locations$Registrybooks$Searchipresources + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | Promise> + | Promise> { + let params = (paramsOrCallback || + {}) as Params$Resource$Projects$Locations$Registrybooks$Searchipresources; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = + {} as Params$Resource$Projects$Locations$Registrybooks$Searchipresources; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://cloudnumberregistry.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/v1alpha/{+name}:searchIpResources').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + apiVersion: '', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Projects$Locations$Registrybooks$Create extends StandardParameters { + /** + * Required. Value for parent. + */ + parent?: string; + /** + * Required. Id of the requesting object. + */ + registryBookId?: string; + /** + * 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). + */ + requestId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$RegistryBook; + } + export interface Params$Resource$Projects$Locations$Registrybooks$Delete extends StandardParameters { + /** + * Optional. If set to true, all associated resources will be deleted. + */ + force?: boolean; + /** + * Required. Name of the resource + */ + name?: string; + /** + * 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). + */ + requestId?: string; + } + export interface Params$Resource$Projects$Locations$Registrybooks$Get extends StandardParameters { + /** + * Required. Name of the resource + */ + name?: string; + /** + * Optional. The view of the RegistryBook. + */ + view?: string; + } + export interface Params$Resource$Projects$Locations$Registrybooks$List extends StandardParameters { + /** + * Optional. Filtering results + */ + filter?: string; + /** + * Optional. Hint for how to order the results + */ + orderBy?: string; + /** + * Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. + */ + pageSize?: number; + /** + * Optional. A token identifying a page of results the server should return. + */ + pageToken?: string; + /** + * Required. Parent value for ListRegistryBooksRequest + */ + parent?: string; + /** + * Optional. The view of the RegistryBook. + */ + view?: string; + } + export interface Params$Resource$Projects$Locations$Registrybooks$Patch extends StandardParameters { + /** + * Required. Identifier. name of resource + */ + name?: string; + /** + * 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). + */ + requestId?: string; + /** + * Optional. Field mask is used to specify the fields to be overwritten in the RegistryBook resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten. + */ + updateMask?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$RegistryBook; + } + export interface Params$Resource$Projects$Locations$Registrybooks$Searchipresources extends StandardParameters { + /** + * Required. The name of the RegistryBook to search in. + */ + name?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$SearchIpResourcesRequest; + } +} diff --git a/src/apis/cloudnumberregistry/webpack.config.js b/src/apis/cloudnumberregistry/webpack.config.js new file mode 100644 index 0000000000..dc6b76aa21 --- /dev/null +++ b/src/apis/cloudnumberregistry/webpack.config.js @@ -0,0 +1,79 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Use `npm run webpack` to produce Webpack bundle for this library. + +const path = require('path'); + +module.exports = { + entry: './index.ts', + resolve: { + extensions: ['.ts', '.js', '.json'], + fallback: { + crypto: false, + child_process: false, + fs: false, + http2: false, + buffer: 'browserify', + process: false, + os: false, + querystring: false, + path: false, + stream: 'stream-browserify', + url: false, + util: false, + zlib: false, + }, + }, + output: { + library: 'Cloudnumberregistry', + filename: 'cloudnumberregistry.min.js', + path: path.resolve(__dirname, 'dist'), + }, + module: { + rules: [ + { + test: /node_modules[\\/]google-auth-library[\\/]src[\\/]crypto[\\/]node[\\/]crypto/, + use: 'null-loader', + }, + { + test: /node_modules[\\/]https-proxy-agent[\\/]/, + use: 'null-loader', + }, + { + test: /node_modules[\\/]gcp-metadata[\\/]/, + use: 'null-loader', + }, + { + test: /node_modules[\\/]gtoken[\\/]/, + use: 'null-loader', + }, + { + test: /node_modules[\\/]pkginfo[\\/]/, + use: 'null-loader', + }, + { + test: /node_modules[\\/]semver[\\/]/, + use: 'null-loader', + }, + { + test: /\.ts$/, + use: 'ts-loader', + exclude: /node_modules/, + }, + ], + }, + mode: 'production', + plugins: [], +}; From 7ebd9490b67f21382a546a0f1e4c2c57c121e293 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Thu, 14 May 2026 01:45:56 +0000 Subject: [PATCH 03/16] feat(contactcenterinsights): update the API #### contactcenterinsights:v1 The following keys were added: - schemas.GoogleCloudAiplatformV1Blob.description - schemas.GoogleCloudAiplatformV1Blob.id - schemas.GoogleCloudAiplatformV1Blob.properties.data.description - schemas.GoogleCloudAiplatformV1Blob.properties.data.format - schemas.GoogleCloudAiplatformV1Blob.properties.data.type - schemas.GoogleCloudAiplatformV1Blob.properties.displayName.description - schemas.GoogleCloudAiplatformV1Blob.properties.displayName.type - schemas.GoogleCloudAiplatformV1Blob.properties.mimeType.description - schemas.GoogleCloudAiplatformV1Blob.properties.mimeType.type - schemas.GoogleCloudAiplatformV1Blob.type - schemas.GoogleCloudAiplatformV1CodeExecutionResult.description - schemas.GoogleCloudAiplatformV1CodeExecutionResult.id - schemas.GoogleCloudAiplatformV1CodeExecutionResult.properties.outcome.description - schemas.GoogleCloudAiplatformV1CodeExecutionResult.properties.outcome.enum - schemas.GoogleCloudAiplatformV1CodeExecutionResult.properties.outcome.enumDescriptions - schemas.GoogleCloudAiplatformV1CodeExecutionResult.properties.outcome.type - schemas.GoogleCloudAiplatformV1CodeExecutionResult.properties.output.description - schemas.GoogleCloudAiplatformV1CodeExecutionResult.properties.output.type - schemas.GoogleCloudAiplatformV1CodeExecutionResult.type - schemas.GoogleCloudAiplatformV1Content.description - schemas.GoogleCloudAiplatformV1Content.id - schemas.GoogleCloudAiplatformV1Content.properties.parts.description - schemas.GoogleCloudAiplatformV1Content.properties.parts.items.$ref - schemas.GoogleCloudAiplatformV1Content.properties.parts.type - schemas.GoogleCloudAiplatformV1Content.properties.role.description - schemas.GoogleCloudAiplatformV1Content.properties.role.type - schemas.GoogleCloudAiplatformV1Content.type - schemas.GoogleCloudAiplatformV1ExecutableCode.description - schemas.GoogleCloudAiplatformV1ExecutableCode.id - schemas.GoogleCloudAiplatformV1ExecutableCode.properties.code.description - schemas.GoogleCloudAiplatformV1ExecutableCode.properties.code.type - schemas.GoogleCloudAiplatformV1ExecutableCode.properties.language.description - schemas.GoogleCloudAiplatformV1ExecutableCode.properties.language.enum - schemas.GoogleCloudAiplatformV1ExecutableCode.properties.language.enumDescriptions - schemas.GoogleCloudAiplatformV1ExecutableCode.properties.language.type - schemas.GoogleCloudAiplatformV1ExecutableCode.type - schemas.GoogleCloudAiplatformV1FileData.description - schemas.GoogleCloudAiplatformV1FileData.id - schemas.GoogleCloudAiplatformV1FileData.properties.displayName.description - schemas.GoogleCloudAiplatformV1FileData.properties.displayName.type - schemas.GoogleCloudAiplatformV1FileData.properties.fileUri.description - schemas.GoogleCloudAiplatformV1FileData.properties.fileUri.type - schemas.GoogleCloudAiplatformV1FileData.properties.mimeType.description - schemas.GoogleCloudAiplatformV1FileData.properties.mimeType.type - schemas.GoogleCloudAiplatformV1FileData.type - schemas.GoogleCloudAiplatformV1FunctionCall.description - schemas.GoogleCloudAiplatformV1FunctionCall.id - schemas.GoogleCloudAiplatformV1FunctionCall.properties.args.additionalProperties.description - schemas.GoogleCloudAiplatformV1FunctionCall.properties.args.additionalProperties.type - schemas.GoogleCloudAiplatformV1FunctionCall.properties.args.description - schemas.GoogleCloudAiplatformV1FunctionCall.properties.args.type - schemas.GoogleCloudAiplatformV1FunctionCall.properties.name.description - schemas.GoogleCloudAiplatformV1FunctionCall.properties.name.type - schemas.GoogleCloudAiplatformV1FunctionCall.properties.partialArgs.description - schemas.GoogleCloudAiplatformV1FunctionCall.properties.partialArgs.items.$ref - schemas.GoogleCloudAiplatformV1FunctionCall.properties.partialArgs.type - schemas.GoogleCloudAiplatformV1FunctionCall.properties.willContinue.description - schemas.GoogleCloudAiplatformV1FunctionCall.properties.willContinue.type - schemas.GoogleCloudAiplatformV1FunctionCall.type - schemas.GoogleCloudAiplatformV1FunctionResponse.description - schemas.GoogleCloudAiplatformV1FunctionResponse.id - schemas.GoogleCloudAiplatformV1FunctionResponse.properties.name.description - schemas.GoogleCloudAiplatformV1FunctionResponse.properties.name.type - schemas.GoogleCloudAiplatformV1FunctionResponse.properties.parts.description - schemas.GoogleCloudAiplatformV1FunctionResponse.properties.parts.items.$ref - schemas.GoogleCloudAiplatformV1FunctionResponse.properties.parts.type - schemas.GoogleCloudAiplatformV1FunctionResponse.properties.response.additionalProperties.description - schemas.GoogleCloudAiplatformV1FunctionResponse.properties.response.additionalProperties.type - schemas.GoogleCloudAiplatformV1FunctionResponse.properties.response.description - schemas.GoogleCloudAiplatformV1FunctionResponse.properties.response.type - schemas.GoogleCloudAiplatformV1FunctionResponse.properties.scheduling.description - schemas.GoogleCloudAiplatformV1FunctionResponse.properties.scheduling.enum - schemas.GoogleCloudAiplatformV1FunctionResponse.properties.scheduling.enumDescriptions - schemas.GoogleCloudAiplatformV1FunctionResponse.properties.scheduling.type - schemas.GoogleCloudAiplatformV1FunctionResponse.type - schemas.GoogleCloudAiplatformV1FunctionResponseBlob.description - schemas.GoogleCloudAiplatformV1FunctionResponseBlob.id - schemas.GoogleCloudAiplatformV1FunctionResponseBlob.properties.data.description - schemas.GoogleCloudAiplatformV1FunctionResponseBlob.properties.data.format - schemas.GoogleCloudAiplatformV1FunctionResponseBlob.properties.data.type - schemas.GoogleCloudAiplatformV1FunctionResponseBlob.properties.displayName.description - schemas.GoogleCloudAiplatformV1FunctionResponseBlob.properties.displayName.type - schemas.GoogleCloudAiplatformV1FunctionResponseBlob.properties.mimeType.description - schemas.GoogleCloudAiplatformV1FunctionResponseBlob.properties.mimeType.type - schemas.GoogleCloudAiplatformV1FunctionResponseBlob.type - schemas.GoogleCloudAiplatformV1FunctionResponseFileData.description - schemas.GoogleCloudAiplatformV1FunctionResponseFileData.id - schemas.GoogleCloudAiplatformV1FunctionResponseFileData.properties.displayName.description - schemas.GoogleCloudAiplatformV1FunctionResponseFileData.properties.displayName.type - schemas.GoogleCloudAiplatformV1FunctionResponseFileData.properties.fileUri.description - schemas.GoogleCloudAiplatformV1FunctionResponseFileData.properties.fileUri.type - schemas.GoogleCloudAiplatformV1FunctionResponseFileData.properties.mimeType.description - schemas.GoogleCloudAiplatformV1FunctionResponseFileData.properties.mimeType.type - schemas.GoogleCloudAiplatformV1FunctionResponseFileData.type - schemas.GoogleCloudAiplatformV1FunctionResponsePart.description - schemas.GoogleCloudAiplatformV1FunctionResponsePart.id - schemas.GoogleCloudAiplatformV1FunctionResponsePart.properties.fileData.$ref - schemas.GoogleCloudAiplatformV1FunctionResponsePart.properties.fileData.description - schemas.GoogleCloudAiplatformV1FunctionResponsePart.properties.inlineData.$ref - schemas.GoogleCloudAiplatformV1FunctionResponsePart.properties.inlineData.description - schemas.GoogleCloudAiplatformV1FunctionResponsePart.type - schemas.GoogleCloudAiplatformV1Part.description - schemas.GoogleCloudAiplatformV1Part.id - schemas.GoogleCloudAiplatformV1Part.properties.codeExecutionResult.$ref - schemas.GoogleCloudAiplatformV1Part.properties.codeExecutionResult.description - schemas.GoogleCloudAiplatformV1Part.properties.executableCode.$ref - schemas.GoogleCloudAiplatformV1Part.properties.executableCode.description - schemas.GoogleCloudAiplatformV1Part.properties.fileData.$ref - schemas.GoogleCloudAiplatformV1Part.properties.fileData.description - schemas.GoogleCloudAiplatformV1Part.properties.functionCall.$ref - schemas.GoogleCloudAiplatformV1Part.properties.functionCall.description - schemas.GoogleCloudAiplatformV1Part.properties.functionResponse.$ref - schemas.GoogleCloudAiplatformV1Part.properties.functionResponse.description - schemas.GoogleCloudAiplatformV1Part.properties.inlineData.$ref - schemas.GoogleCloudAiplatformV1Part.properties.inlineData.description - schemas.GoogleCloudAiplatformV1Part.properties.mediaResolution.$ref - schemas.GoogleCloudAiplatformV1Part.properties.mediaResolution.description - schemas.GoogleCloudAiplatformV1Part.properties.text.description - schemas.GoogleCloudAiplatformV1Part.properties.text.type - schemas.GoogleCloudAiplatformV1Part.properties.thought.description - schemas.GoogleCloudAiplatformV1Part.properties.thought.type - schemas.GoogleCloudAiplatformV1Part.properties.thoughtSignature.description - schemas.GoogleCloudAiplatformV1Part.properties.thoughtSignature.format - schemas.GoogleCloudAiplatformV1Part.properties.thoughtSignature.type - schemas.GoogleCloudAiplatformV1Part.properties.videoMetadata.$ref - schemas.GoogleCloudAiplatformV1Part.properties.videoMetadata.description - schemas.GoogleCloudAiplatformV1Part.type - schemas.GoogleCloudAiplatformV1PartMediaResolution.description - schemas.GoogleCloudAiplatformV1PartMediaResolution.id - schemas.GoogleCloudAiplatformV1PartMediaResolution.properties.level.description - schemas.GoogleCloudAiplatformV1PartMediaResolution.properties.level.enum - schemas.GoogleCloudAiplatformV1PartMediaResolution.properties.level.enumDescriptions - schemas.GoogleCloudAiplatformV1PartMediaResolution.properties.level.type - schemas.GoogleCloudAiplatformV1PartMediaResolution.type - schemas.GoogleCloudAiplatformV1PartialArg.description - schemas.GoogleCloudAiplatformV1PartialArg.id - schemas.GoogleCloudAiplatformV1PartialArg.properties.boolValue.description - schemas.GoogleCloudAiplatformV1PartialArg.properties.boolValue.type - schemas.GoogleCloudAiplatformV1PartialArg.properties.jsonPath.description - schemas.GoogleCloudAiplatformV1PartialArg.properties.jsonPath.type - schemas.GoogleCloudAiplatformV1PartialArg.properties.nullValue.description - schemas.GoogleCloudAiplatformV1PartialArg.properties.nullValue.enum - schemas.GoogleCloudAiplatformV1PartialArg.properties.nullValue.enumDescriptions - schemas.GoogleCloudAiplatformV1PartialArg.properties.nullValue.type - schemas.GoogleCloudAiplatformV1PartialArg.properties.numberValue.description - schemas.GoogleCloudAiplatformV1PartialArg.properties.numberValue.format - schemas.GoogleCloudAiplatformV1PartialArg.properties.numberValue.type - schemas.GoogleCloudAiplatformV1PartialArg.properties.stringValue.description - schemas.GoogleCloudAiplatformV1PartialArg.properties.stringValue.type - schemas.GoogleCloudAiplatformV1PartialArg.properties.willContinue.description - schemas.GoogleCloudAiplatformV1PartialArg.properties.willContinue.type - schemas.GoogleCloudAiplatformV1PartialArg.type - schemas.GoogleCloudAiplatformV1VideoMetadata.description - schemas.GoogleCloudAiplatformV1VideoMetadata.id - schemas.GoogleCloudAiplatformV1VideoMetadata.properties.endOffset.description - schemas.GoogleCloudAiplatformV1VideoMetadata.properties.endOffset.format - schemas.GoogleCloudAiplatformV1VideoMetadata.properties.endOffset.type - schemas.GoogleCloudAiplatformV1VideoMetadata.properties.fps.description - schemas.GoogleCloudAiplatformV1VideoMetadata.properties.fps.format - schemas.GoogleCloudAiplatformV1VideoMetadata.properties.fps.type - schemas.GoogleCloudAiplatformV1VideoMetadata.properties.startOffset.description - schemas.GoogleCloudAiplatformV1VideoMetadata.properties.startOffset.format - schemas.GoogleCloudAiplatformV1VideoMetadata.properties.startOffset.type - schemas.GoogleCloudAiplatformV1VideoMetadata.type - schemas.GoogleCloudContactcenterinsightsV1DiagnoseConversationsRequest.properties.dryRun.deprecated - schemas.GoogleCloudContactcenterinsightsV1DiagnoseConversationsRequest.properties.fullReport.deprecated - schemas.GoogleCloudContactcenterinsightsV1DiagnoseConversationsRequest.properties.outputConfig.deprecated - schemas.GoogleCloudContactcenterinsightsV1DiagnoseConversationsResponse.properties.answer.deprecated - schemas.GoogleCloudContactcenterinsightsV1DiagnoseConversationsResponse.properties.exportUri.deprecated - schemas.GoogleCloudContactcenterinsightsV1DiagnoseConversationsResponse.properties.fullTrajectorySteps.deprecated - schemas.GoogleCloudContactcenterinsightsV1DiagnosticReport.properties.conversationSlices.additionalProperties.$ref - schemas.GoogleCloudContactcenterinsightsV1DiagnosticReport.properties.conversationSlices.description - schemas.GoogleCloudContactcenterinsightsV1DiagnosticReport.properties.conversationSlices.readOnly - schemas.GoogleCloudContactcenterinsightsV1DiagnosticReport.properties.conversationSlices.type - schemas.GoogleCloudContactcenterinsightsV1DiagnosticReport.properties.intentStats.deprecated - schemas.GoogleCloudContactcenterinsightsV1DiagnosticReport.properties.report.description - schemas.GoogleCloudContactcenterinsightsV1DiagnosticReport.properties.report.readOnly - schemas.GoogleCloudContactcenterinsightsV1DiagnosticReport.properties.report.type - schemas.GoogleCloudContactcenterinsightsV1DiagnosticReportConversationSlice.description - schemas.GoogleCloudContactcenterinsightsV1DiagnosticReportConversationSlice.id - schemas.GoogleCloudContactcenterinsightsV1DiagnosticReportConversationSlice.properties.conversationIds.description - schemas.GoogleCloudContactcenterinsightsV1DiagnosticReportConversationSlice.properties.conversationIds.items.type - schemas.GoogleCloudContactcenterinsightsV1DiagnosticReportConversationSlice.properties.conversationIds.type - schemas.GoogleCloudContactcenterinsightsV1DiagnosticReportConversationSlice.type - schemas.GoogleCloudContactcenterinsightsV1LossPattern.properties.links.description - schemas.GoogleCloudContactcenterinsightsV1LossPattern.properties.links.items.$ref - schemas.GoogleCloudContactcenterinsightsV1LossPattern.properties.links.readOnly - schemas.GoogleCloudContactcenterinsightsV1LossPattern.properties.links.type - schemas.GoogleCloudContactcenterinsightsV1LossPatternLink.description - schemas.GoogleCloudContactcenterinsightsV1LossPatternLink.id - schemas.GoogleCloudContactcenterinsightsV1LossPatternLink.properties.botInstructionLink.$ref - schemas.GoogleCloudContactcenterinsightsV1LossPatternLink.properties.botInstructionLink.description - schemas.GoogleCloudContactcenterinsightsV1LossPatternLink.properties.conversationLink.$ref - schemas.GoogleCloudContactcenterinsightsV1LossPatternLink.properties.conversationLink.description - schemas.GoogleCloudContactcenterinsightsV1LossPatternLink.properties.endByteIndex.description - schemas.GoogleCloudContactcenterinsightsV1LossPatternLink.properties.endByteIndex.format - schemas.GoogleCloudContactcenterinsightsV1LossPatternLink.properties.endByteIndex.type - schemas.GoogleCloudContactcenterinsightsV1LossPatternLink.properties.highlightedText.description - schemas.GoogleCloudContactcenterinsightsV1LossPatternLink.properties.highlightedText.type - schemas.GoogleCloudContactcenterinsightsV1LossPatternLink.properties.locationType.description - schemas.GoogleCloudContactcenterinsightsV1LossPatternLink.properties.locationType.enum - schemas.GoogleCloudContactcenterinsightsV1LossPatternLink.properties.locationType.enumDescriptions - schemas.GoogleCloudContactcenterinsightsV1LossPatternLink.properties.locationType.type - schemas.GoogleCloudContactcenterinsightsV1LossPatternLink.properties.startByteIndex.description - schemas.GoogleCloudContactcenterinsightsV1LossPatternLink.properties.startByteIndex.format - schemas.GoogleCloudContactcenterinsightsV1LossPatternLink.properties.startByteIndex.type - schemas.GoogleCloudContactcenterinsightsV1LossPatternLink.type - schemas.GoogleCloudContactcenterinsightsV1LossPatternLinkBotInstructionLink.description - schemas.GoogleCloudContactcenterinsightsV1LossPatternLinkBotInstructionLink.id - schemas.GoogleCloudContactcenterinsightsV1LossPatternLinkBotInstructionLink.properties.endLine.description - schemas.GoogleCloudContactcenterinsightsV1LossPatternLinkBotInstructionLink.properties.endLine.format - schemas.GoogleCloudContactcenterinsightsV1LossPatternLinkBotInstructionLink.properties.endLine.type - schemas.GoogleCloudContactcenterinsightsV1LossPatternLinkBotInstructionLink.properties.startLine.description - schemas.GoogleCloudContactcenterinsightsV1LossPatternLinkBotInstructionLink.properties.startLine.format - schemas.GoogleCloudContactcenterinsightsV1LossPatternLinkBotInstructionLink.properties.startLine.type - schemas.GoogleCloudContactcenterinsightsV1LossPatternLinkBotInstructionLink.properties.subagent.description - schemas.GoogleCloudContactcenterinsightsV1LossPatternLinkBotInstructionLink.properties.subagent.type - schemas.GoogleCloudContactcenterinsightsV1LossPatternLinkBotInstructionLink.type - schemas.GoogleCloudContactcenterinsightsV1LossPatternLinkConversationLink.description - schemas.GoogleCloudContactcenterinsightsV1LossPatternLinkConversationLink.id - schemas.GoogleCloudContactcenterinsightsV1LossPatternLinkConversationLink.properties.conversationId.description - schemas.GoogleCloudContactcenterinsightsV1LossPatternLinkConversationLink.properties.conversationId.type - schemas.GoogleCloudContactcenterinsightsV1LossPatternLinkConversationLink.type - schemas.GoogleCloudContactcenterinsightsV1RedirectAction.properties.queryParams.additionalProperties.type - schemas.GoogleCloudContactcenterinsightsV1RedirectAction.properties.queryParams.description - schemas.GoogleCloudContactcenterinsightsV1RedirectAction.properties.queryParams.type - schemas.GoogleCloudContactcenterinsightsV1SherlockStep.properties.agentId.description - schemas.GoogleCloudContactcenterinsightsV1SherlockStep.properties.agentId.readOnly - schemas.GoogleCloudContactcenterinsightsV1SherlockStep.properties.agentId.type - schemas.GoogleCloudContactcenterinsightsV1SherlockStep.properties.content.$ref - schemas.GoogleCloudContactcenterinsightsV1SherlockStep.properties.content.description - schemas.GoogleCloudContactcenterinsightsV1SherlockStep.properties.content.readOnly - schemas.GoogleCloudContactcenterinsightsV1SherlockStep.properties.stateDeltas.description - schemas.GoogleCloudContactcenterinsightsV1SherlockStep.properties.stateDeltas.items.additionalProperties.description - schemas.GoogleCloudContactcenterinsightsV1SherlockStep.properties.stateDeltas.items.additionalProperties.type - schemas.GoogleCloudContactcenterinsightsV1SherlockStep.properties.stateDeltas.items.type - schemas.GoogleCloudContactcenterinsightsV1SherlockStep.properties.stateDeltas.readOnly - schemas.GoogleCloudContactcenterinsightsV1SherlockStep.properties.stateDeltas.type - schemas.GoogleCloudContactcenterinsightsV1SherlockStep.properties.stepId.description - schemas.GoogleCloudContactcenterinsightsV1SherlockStep.properties.stepId.readOnly - schemas.GoogleCloudContactcenterinsightsV1SherlockStep.properties.stepId.type - schemas.GoogleCloudContactcenterinsightsV1SherlockStep.properties.textInput.deprecated - schemas.GoogleCloudContactcenterinsightsV1SherlockStep.properties.thought.deprecated - schemas.GoogleCloudContactcenterinsightsV1SherlockStep.properties.toolCalls.deprecated - schemas.GoogleCloudContactcenterinsightsV1SherlockStep.properties.toolOutput.deprecated - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnoseConversationsRequest.properties.dryRun.deprecated - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnoseConversationsRequest.properties.fullReport.deprecated - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnoseConversationsRequest.properties.outputConfig.deprecated - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnoseConversationsResponse.properties.answer.deprecated - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnoseConversationsResponse.properties.exportUri.deprecated - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnoseConversationsResponse.properties.fullTrajectorySteps.deprecated - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnosticReport.properties.conversationSlices.additionalProperties.$ref - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnosticReport.properties.conversationSlices.description - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnosticReport.properties.conversationSlices.readOnly - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnosticReport.properties.conversationSlices.type - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnosticReport.properties.intentStats.deprecated - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnosticReport.properties.report.description - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnosticReport.properties.report.readOnly - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnosticReport.properties.report.type - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnosticReportConversationSlice.description - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnosticReportConversationSlice.id - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnosticReportConversationSlice.properties.conversationIds.description - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnosticReportConversationSlice.properties.conversationIds.items.type - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnosticReportConversationSlice.properties.conversationIds.type - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnosticReportConversationSlice.type - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPattern.properties.links.description - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPattern.properties.links.items.$ref - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPattern.properties.links.readOnly - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPattern.properties.links.type - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLink.description - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLink.id - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLink.properties.botInstructionLink.$ref - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLink.properties.botInstructionLink.description - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLink.properties.conversationLink.$ref - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLink.properties.conversationLink.description - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLink.properties.endByteIndex.description - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLink.properties.endByteIndex.format - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLink.properties.endByteIndex.type - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLink.properties.highlightedText.description - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLink.properties.highlightedText.type - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLink.properties.locationType.description - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLink.properties.locationType.enum - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLink.properties.locationType.enumDescriptions - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLink.properties.locationType.type - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLink.properties.startByteIndex.description - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLink.properties.startByteIndex.format - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLink.properties.startByteIndex.type - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLink.type - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLinkBotInstructionLink.description - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLinkBotInstructionLink.id - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLinkBotInstructionLink.properties.endLine.description - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLinkBotInstructionLink.properties.endLine.format - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLinkBotInstructionLink.properties.endLine.type - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLinkBotInstructionLink.properties.startLine.description - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLinkBotInstructionLink.properties.startLine.format - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLinkBotInstructionLink.properties.startLine.type - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLinkBotInstructionLink.properties.subagent.description - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLinkBotInstructionLink.properties.subagent.type - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLinkBotInstructionLink.type - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLinkConversationLink.description - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLinkConversationLink.id - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLinkConversationLink.properties.conversationId.description - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLinkConversationLink.properties.conversationId.type - schemas.GoogleCloudContactcenterinsightsV1alpha1LossPatternLinkConversationLink.type - schemas.GoogleCloudContactcenterinsightsV1alpha1SherlockStep.properties.agentId.description - schemas.GoogleCloudContactcenterinsightsV1alpha1SherlockStep.properties.agentId.readOnly - schemas.GoogleCloudContactcenterinsightsV1alpha1SherlockStep.properties.agentId.type - schemas.GoogleCloudContactcenterinsightsV1alpha1SherlockStep.properties.content.$ref - schemas.GoogleCloudContactcenterinsightsV1alpha1SherlockStep.properties.content.description - schemas.GoogleCloudContactcenterinsightsV1alpha1SherlockStep.properties.content.readOnly - schemas.GoogleCloudContactcenterinsightsV1alpha1SherlockStep.properties.stateDeltas.description - schemas.GoogleCloudContactcenterinsightsV1alpha1SherlockStep.properties.stateDeltas.items.additionalProperties.description - schemas.GoogleCloudContactcenterinsightsV1alpha1SherlockStep.properties.stateDeltas.items.additionalProperties.type - schemas.GoogleCloudContactcenterinsightsV1alpha1SherlockStep.properties.stateDeltas.items.type - schemas.GoogleCloudContactcenterinsightsV1alpha1SherlockStep.properties.stateDeltas.readOnly - schemas.GoogleCloudContactcenterinsightsV1alpha1SherlockStep.properties.stateDeltas.type - schemas.GoogleCloudContactcenterinsightsV1alpha1SherlockStep.properties.stepId.description - schemas.GoogleCloudContactcenterinsightsV1alpha1SherlockStep.properties.stepId.readOnly - schemas.GoogleCloudContactcenterinsightsV1alpha1SherlockStep.properties.stepId.type - schemas.GoogleCloudContactcenterinsightsV1alpha1SherlockStep.properties.textInput.deprecated - schemas.GoogleCloudContactcenterinsightsV1alpha1SherlockStep.properties.thought.deprecated - schemas.GoogleCloudContactcenterinsightsV1alpha1SherlockStep.properties.toolCalls.deprecated - schemas.GoogleCloudContactcenterinsightsV1alpha1SherlockStep.properties.toolOutput.deprecated - schemas.GoogleCloudContactcenterinsightsV1mainDiagnoseConversationsRequest.properties.dryRun.deprecated - schemas.GoogleCloudContactcenterinsightsV1mainDiagnoseConversationsRequest.properties.fullReport.deprecated - schemas.GoogleCloudContactcenterinsightsV1mainDiagnoseConversationsRequest.properties.outputConfig.deprecated - schemas.GoogleCloudContactcenterinsightsV1mainDiagnoseConversationsResponse.properties.answer.deprecated - schemas.GoogleCloudContactcenterinsightsV1mainDiagnoseConversationsResponse.properties.exportUri.deprecated - schemas.GoogleCloudContactcenterinsightsV1mainDiagnoseConversationsResponse.properties.fullTrajectorySteps.deprecated - schemas.GoogleCloudContactcenterinsightsV1mainDiagnosticReport.properties.conversationSlices.additionalProperties.$ref - schemas.GoogleCloudContactcenterinsightsV1mainDiagnosticReport.properties.conversationSlices.description - schemas.GoogleCloudContactcenterinsightsV1mainDiagnosticReport.properties.conversationSlices.readOnly - schemas.GoogleCloudContactcenterinsightsV1mainDiagnosticReport.properties.conversationSlices.type - schemas.GoogleCloudContactcenterinsightsV1mainDiagnosticReport.properties.intentStats.deprecated - schemas.GoogleCloudContactcenterinsightsV1mainDiagnosticReport.properties.report.description - schemas.GoogleCloudContactcenterinsightsV1mainDiagnosticReport.properties.report.readOnly - schemas.GoogleCloudContactcenterinsightsV1mainDiagnosticReport.properties.report.type - schemas.GoogleCloudContactcenterinsightsV1mainDiagnosticReportConversationSlice.description - schemas.GoogleCloudContactcenterinsightsV1mainDiagnosticReportConversationSlice.id - schemas.GoogleCloudContactcenterinsightsV1mainDiagnosticReportConversationSlice.properties.conversationIds.description - schemas.GoogleCloudContactcenterinsightsV1mainDiagnosticReportConversationSlice.properties.conversationIds.items.type - schemas.GoogleCloudContactcenterinsightsV1mainDiagnosticReportConversationSlice.properties.conversationIds.type - schemas.GoogleCloudContactcenterinsightsV1mainDiagnosticReportConversationSlice.type - schemas.GoogleCloudContactcenterinsightsV1mainLossPattern.properties.links.description - schemas.GoogleCloudContactcenterinsightsV1mainLossPattern.properties.links.items.$ref - schemas.GoogleCloudContactcenterinsightsV1mainLossPattern.properties.links.readOnly - schemas.GoogleCloudContactcenterinsightsV1mainLossPattern.properties.links.type - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLink.description - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLink.id - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLink.properties.botInstructionLink.$ref - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLink.properties.botInstructionLink.description - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLink.properties.conversationLink.$ref - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLink.properties.conversationLink.description - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLink.properties.endByteIndex.description - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLink.properties.endByteIndex.format - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLink.properties.endByteIndex.type - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLink.properties.highlightedText.description - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLink.properties.highlightedText.type - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLink.properties.locationType.description - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLink.properties.locationType.enum - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLink.properties.locationType.enumDescriptions - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLink.properties.locationType.type - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLink.properties.startByteIndex.description - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLink.properties.startByteIndex.format - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLink.properties.startByteIndex.type - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLink.type - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLinkBotInstructionLink.description - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLinkBotInstructionLink.id - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLinkBotInstructionLink.properties.endLine.description - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLinkBotInstructionLink.properties.endLine.format - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLinkBotInstructionLink.properties.endLine.type - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLinkBotInstructionLink.properties.startLine.description - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLinkBotInstructionLink.properties.startLine.format - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLinkBotInstructionLink.properties.startLine.type - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLinkBotInstructionLink.properties.subagent.description - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLinkBotInstructionLink.properties.subagent.type - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLinkBotInstructionLink.type - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLinkConversationLink.description - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLinkConversationLink.id - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLinkConversationLink.properties.conversationId.description - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLinkConversationLink.properties.conversationId.type - schemas.GoogleCloudContactcenterinsightsV1mainLossPatternLinkConversationLink.type - schemas.GoogleCloudContactcenterinsightsV1mainSherlockStep.properties.agentId.description - schemas.GoogleCloudContactcenterinsightsV1mainSherlockStep.properties.agentId.readOnly - schemas.GoogleCloudContactcenterinsightsV1mainSherlockStep.properties.agentId.type - schemas.GoogleCloudContactcenterinsightsV1mainSherlockStep.properties.content.$ref - schemas.GoogleCloudContactcenterinsightsV1mainSherlockStep.properties.content.description - schemas.GoogleCloudContactcenterinsightsV1mainSherlockStep.properties.content.readOnly - schemas.GoogleCloudContactcenterinsightsV1mainSherlockStep.properties.stateDeltas.description - schemas.GoogleCloudContactcenterinsightsV1mainSherlockStep.properties.stateDeltas.items.additionalProperties.description - schemas.GoogleCloudContactcenterinsightsV1mainSherlockStep.properties.stateDeltas.items.additionalProperties.type - schemas.GoogleCloudContactcenterinsightsV1mainSherlockStep.properties.stateDeltas.items.type - schemas.GoogleCloudContactcenterinsightsV1mainSherlockStep.properties.stateDeltas.readOnly - schemas.GoogleCloudContactcenterinsightsV1mainSherlockStep.properties.stateDeltas.type - schemas.GoogleCloudContactcenterinsightsV1mainSherlockStep.properties.stepId.description - schemas.GoogleCloudContactcenterinsightsV1mainSherlockStep.properties.stepId.readOnly - schemas.GoogleCloudContactcenterinsightsV1mainSherlockStep.properties.stepId.type - schemas.GoogleCloudContactcenterinsightsV1mainSherlockStep.properties.textInput.deprecated - schemas.GoogleCloudContactcenterinsightsV1mainSherlockStep.properties.thought.deprecated - schemas.GoogleCloudContactcenterinsightsV1mainSherlockStep.properties.toolCalls.deprecated - schemas.GoogleCloudContactcenterinsightsV1mainSherlockStep.properties.toolOutput.deprecated The following keys were changed: - schemas.GoogleCloudContactcenterinsightsV1DiagnoseConversationsMetadata.properties.partialTrajectories.description - schemas.GoogleCloudContactcenterinsightsV1DiagnoseConversationsRequest.properties.dryRun.description - schemas.GoogleCloudContactcenterinsightsV1DiagnoseConversationsRequest.properties.fullReport.description - schemas.GoogleCloudContactcenterinsightsV1DiagnoseConversationsRequest.properties.outputConfig.description - schemas.GoogleCloudContactcenterinsightsV1DiagnoseConversationsResponse.properties.answer.description - schemas.GoogleCloudContactcenterinsightsV1DiagnoseConversationsResponse.properties.exportUri.description - schemas.GoogleCloudContactcenterinsightsV1DiagnoseConversationsResponse.properties.fullTrajectories.description - schemas.GoogleCloudContactcenterinsightsV1DiagnoseConversationsResponse.properties.fullTrajectorySteps.description - schemas.GoogleCloudContactcenterinsightsV1DiagnosticReport.properties.intentStats.description - schemas.GoogleCloudContactcenterinsightsV1SherlockStep.properties.textInput.description - schemas.GoogleCloudContactcenterinsightsV1SherlockStep.properties.thought.description - schemas.GoogleCloudContactcenterinsightsV1SherlockStep.properties.toolCalls.description - schemas.GoogleCloudContactcenterinsightsV1SherlockStep.properties.toolOutput.description - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnoseConversationsMetadata.properties.partialTrajectories.description - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnoseConversationsRequest.properties.dryRun.description - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnoseConversationsRequest.properties.fullReport.description - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnoseConversationsRequest.properties.outputConfig.description - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnoseConversationsResponse.properties.answer.description - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnoseConversationsResponse.properties.exportUri.description - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnoseConversationsResponse.properties.fullTrajectories.description - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnoseConversationsResponse.properties.fullTrajectorySteps.description - schemas.GoogleCloudContactcenterinsightsV1alpha1DiagnosticReport.properties.intentStats.description - schemas.GoogleCloudContactcenterinsightsV1alpha1SherlockStep.properties.textInput.description - schemas.GoogleCloudContactcenterinsightsV1alpha1SherlockStep.properties.thought.description - schemas.GoogleCloudContactcenterinsightsV1alpha1SherlockStep.properties.toolCalls.description - schemas.GoogleCloudContactcenterinsightsV1alpha1SherlockStep.properties.toolOutput.description - schemas.GoogleCloudContactcenterinsightsV1mainDiagnoseConversationsMetadata.properties.partialTrajectories.description - schemas.GoogleCloudContactcenterinsightsV1mainDiagnoseConversationsRequest.properties.dryRun.description - schemas.GoogleCloudContactcenterinsightsV1mainDiagnoseConversationsRequest.properties.fullReport.description - schemas.GoogleCloudContactcenterinsightsV1mainDiagnoseConversationsRequest.properties.outputConfig.description - schemas.GoogleCloudContactcenterinsightsV1mainDiagnoseConversationsResponse.properties.answer.description - schemas.GoogleCloudContactcenterinsightsV1mainDiagnoseConversationsResponse.properties.exportUri.description - schemas.GoogleCloudContactcenterinsightsV1mainDiagnoseConversationsResponse.properties.fullTrajectories.description - schemas.GoogleCloudContactcenterinsightsV1mainDiagnoseConversationsResponse.properties.fullTrajectorySteps.description - schemas.GoogleCloudContactcenterinsightsV1mainDiagnosticReport.properties.intentStats.description - schemas.GoogleCloudContactcenterinsightsV1mainSherlockStep.properties.textInput.description - schemas.GoogleCloudContactcenterinsightsV1mainSherlockStep.properties.thought.description - schemas.GoogleCloudContactcenterinsightsV1mainSherlockStep.properties.toolCalls.description - schemas.GoogleCloudContactcenterinsightsV1mainSherlockStep.properties.toolOutput.description --- discovery/contactcenterinsights-v1.json | 907 ++++++++++++++++++++++-- src/apis/contactcenterinsights/v1.ts | 636 ++++++++++++++++- 2 files changed, 1464 insertions(+), 79 deletions(-) diff --git a/discovery/contactcenterinsights-v1.json b/discovery/contactcenterinsights-v1.json index 0ff35fef15..7bb1797f87 100644 --- a/discovery/contactcenterinsights-v1.json +++ b/discovery/contactcenterinsights-v1.json @@ -6224,9 +6224,379 @@ } } }, - "revision": "20260410", + "revision": "20260510", "rootUrl": "https://contactcenterinsights.googleapis.com/", "schemas": { + "GoogleCloudAiplatformV1Blob": { + "description": "A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video.", + "id": "GoogleCloudAiplatformV1Blob", + "properties": { + "data": { + "description": "Required. The raw bytes of the data.", + "format": "byte", + "type": "string" + }, + "displayName": { + "description": "Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled.", + "type": "string" + }, + "mimeType": { + "description": "Required. The IANA standard MIME type of the source data.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1CodeExecutionResult": { + "description": "Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used.", + "id": "GoogleCloudAiplatformV1CodeExecutionResult", + "properties": { + "outcome": { + "description": "Required. Outcome of the code execution.", + "enum": [ + "OUTCOME_UNSPECIFIED", + "OUTCOME_OK", + "OUTCOME_FAILED", + "OUTCOME_DEADLINE_EXCEEDED" + ], + "enumDescriptions": [ + "Unspecified status. This value should not be used.", + "Code execution completed successfully. `output` contains the stdout, if any.", + "Code execution failed. `output` contains the stderr and stdout, if any.", + "Code execution ran for too long, and was cancelled. There may or may not be a partial `output` present." + ], + "type": "string" + }, + "output": { + "description": "Optional. Contains stdout when code execution is successful, stderr or other description otherwise.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1Content": { + "description": "The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message.", + "id": "GoogleCloudAiplatformV1Content", + "properties": { + "parts": { + "description": "Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part.", + "items": { + "$ref": "GoogleCloudAiplatformV1Part" + }, + "type": "array" + }, + "role": { + "description": "Optional. The producer of the content. Must be either 'user' or 'model'. If not set, the service will default to 'user'.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1ExecutableCode": { + "description": "Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated.", + "id": "GoogleCloudAiplatformV1ExecutableCode", + "properties": { + "code": { + "description": "Required. The code to be executed.", + "type": "string" + }, + "language": { + "description": "Required. Programming language of the `code`.", + "enum": [ + "LANGUAGE_UNSPECIFIED", + "PYTHON" + ], + "enumDescriptions": [ + "Unspecified language. This value should not be used.", + "Python >= 3.10, with numpy and simpy available." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1FileData": { + "description": "URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage.", + "id": "GoogleCloudAiplatformV1FileData", + "properties": { + "displayName": { + "description": "Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled.", + "type": "string" + }, + "fileUri": { + "description": "Required. The URI of the file in Google Cloud Storage.", + "type": "string" + }, + "mimeType": { + "description": "Required. The IANA standard MIME type of the source data.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1FunctionCall": { + "description": "A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values.", + "id": "GoogleCloudAiplatformV1FunctionCall", + "properties": { + "args": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details.", + "type": "object" + }, + "name": { + "description": "Optional. The name of the function to call. Matches FunctionDeclaration.name.", + "type": "string" + }, + "partialArgs": { + "description": "Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally.", + "items": { + "$ref": "GoogleCloudAiplatformV1PartialArg" + }, + "type": "array" + }, + "willContinue": { + "description": "Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1FunctionResponse": { + "description": "The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction.", + "id": "GoogleCloudAiplatformV1FunctionResponse", + "properties": { + "name": { + "description": "Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name.", + "type": "string" + }, + "parts": { + "description": "Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.", + "items": { + "$ref": "GoogleCloudAiplatformV1FunctionResponsePart" + }, + "type": "array" + }, + "response": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "description": "Required. The function response in JSON object format. Use \"output\" key to specify function output and \"error\" key to specify error details (if any). If \"output\" and \"error\" keys are not specified, then whole \"response\" is treated as function output.", + "type": "object" + }, + "scheduling": { + "description": "Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.", + "enum": [ + "SCHEDULING_UNSPECIFIED", + "SILENT", + "WHEN_IDLE", + "INTERRUPT" + ], + "enumDescriptions": [ + "This value is unused.", + "Only add the result to the conversation context, do not interrupt or trigger generation.", + "Add the result to the conversation context, and prompt to generate output without interrupting ongoing generation.", + "Add the result to the conversation context, interrupt ongoing generation and prompt to generate output." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1FunctionResponseBlob": { + "description": "Raw media bytes for function response. Text should not be sent as raw bytes, use the 'text' field.", + "id": "GoogleCloudAiplatformV1FunctionResponseBlob", + "properties": { + "data": { + "description": "Required. Raw bytes.", + "format": "byte", + "type": "string" + }, + "displayName": { + "description": "Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.", + "type": "string" + }, + "mimeType": { + "description": "Required. The IANA standard MIME type of the source data.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1FunctionResponseFileData": { + "description": "URI based data for function response.", + "id": "GoogleCloudAiplatformV1FunctionResponseFileData", + "properties": { + "displayName": { + "description": "Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled.", + "type": "string" + }, + "fileUri": { + "description": "Required. URI.", + "type": "string" + }, + "mimeType": { + "description": "Required. The IANA standard MIME type of the source data.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1FunctionResponsePart": { + "description": "A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.", + "id": "GoogleCloudAiplatformV1FunctionResponsePart", + "properties": { + "fileData": { + "$ref": "GoogleCloudAiplatformV1FunctionResponseFileData", + "description": "URI based data." + }, + "inlineData": { + "$ref": "GoogleCloudAiplatformV1FunctionResponseBlob", + "description": "Inline media bytes." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1Part": { + "description": "A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.", + "id": "GoogleCloudAiplatformV1Part", + "properties": { + "codeExecutionResult": { + "$ref": "GoogleCloudAiplatformV1CodeExecutionResult", + "description": "Optional. The result of executing the ExecutableCode." + }, + "executableCode": { + "$ref": "GoogleCloudAiplatformV1ExecutableCode", + "description": "Optional. Code generated by the model that is intended to be executed." + }, + "fileData": { + "$ref": "GoogleCloudAiplatformV1FileData", + "description": "Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage." + }, + "functionCall": { + "$ref": "GoogleCloudAiplatformV1FunctionCall", + "description": "Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function." + }, + "functionResponse": { + "$ref": "GoogleCloudAiplatformV1FunctionResponse", + "description": "Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted." + }, + "inlineData": { + "$ref": "GoogleCloudAiplatformV1Blob", + "description": "Optional. The inline data content of the part. This can be used to include images, audio, or video in a request." + }, + "mediaResolution": { + "$ref": "GoogleCloudAiplatformV1PartMediaResolution", + "description": "per part media resolution. Media resolution for the input media." + }, + "text": { + "description": "Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.", + "type": "string" + }, + "thought": { + "description": "Optional. Indicates whether the `part` represents the model's thought process or reasoning.", + "type": "boolean" + }, + "thoughtSignature": { + "description": "Optional. An opaque signature for the thought so it can be reused in subsequent requests.", + "format": "byte", + "type": "string" + }, + "videoMetadata": { + "$ref": "GoogleCloudAiplatformV1VideoMetadata", + "description": "Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data." + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1PartMediaResolution": { + "description": "per part media resolution. Media resolution for the input media.", + "id": "GoogleCloudAiplatformV1PartMediaResolution", + "properties": { + "level": { + "description": "The tokenization quality used for given media.", + "enum": [ + "MEDIA_RESOLUTION_UNSPECIFIED", + "MEDIA_RESOLUTION_LOW", + "MEDIA_RESOLUTION_MEDIUM", + "MEDIA_RESOLUTION_HIGH", + "MEDIA_RESOLUTION_ULTRA_HIGH" + ], + "enumDescriptions": [ + "Media resolution has not been set.", + "Media resolution set to low.", + "Media resolution set to medium.", + "Media resolution set to high.", + "Media resolution set to ultra high. This is for image only." + ], + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1PartialArg": { + "description": "Partial argument value of the function call.", + "id": "GoogleCloudAiplatformV1PartialArg", + "properties": { + "boolValue": { + "description": "Optional. Represents a boolean value.", + "type": "boolean" + }, + "jsonPath": { + "description": "Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. \"$.foo.bar[0].data\".", + "type": "string" + }, + "nullValue": { + "description": "Optional. Represents a null value.", + "enum": [ + "NULL_VALUE" + ], + "enumDescriptions": [ + "Null value." + ], + "type": "string" + }, + "numberValue": { + "description": "Optional. Represents a double value.", + "format": "double", + "type": "number" + }, + "stringValue": { + "description": "Optional. Represents a string value.", + "type": "string" + }, + "willContinue": { + "description": "Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleCloudAiplatformV1VideoMetadata": { + "description": "Provides metadata for a video, including the start and end offsets for clipping and the frame rate.", + "id": "GoogleCloudAiplatformV1VideoMetadata", + "properties": { + "endOffset": { + "description": "Optional. The end offset of the video.", + "format": "google-duration", + "type": "string" + }, + "fps": { + "description": "Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].", + "format": "double", + "type": "number" + }, + "startOffset": { + "description": "Optional. The start offset of the video.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudCesV1mainAgentTransfer": { "description": "Represents an event indicating the transfer of a conversation to a different agent.", "id": "GoogleCloudCesV1mainAgentTransfer", @@ -9004,7 +9374,7 @@ }, "partialTrajectories": { "deprecated": true, - "description": "Output only. Deprecated: Use partial_trajectory_steps instead. The intermediate trajectory updates (partial trajectory).", + "description": "Output only. Deprecated: Use partial_trajectory_steps instead. Output only. The intermediate trajectory updates (partial trajectory).", "items": { "type": "string" }, @@ -9032,7 +9402,8 @@ "id": "GoogleCloudContactcenterinsightsV1DiagnoseConversationsRequest", "properties": { "dryRun": { - "description": "Optional. If true, the request will be validated and a simulation of the analysis will be performed without actually executing the task.", + "deprecated": true, + "description": "Optional. Deprecated: If true, the request will be validated and a simulation of the analysis will be performed without actually executing the task. This field is unused. Use validate_only instead.", "type": "boolean" }, "filter": { @@ -9040,7 +9411,8 @@ "type": "string" }, "fullReport": { - "description": "Optional. If true, the agent will generate a full diagnostic report for all sub-agents.", + "deprecated": true, + "description": "Optional. Deprecated: If true, the agent will generate a full diagnostic report for all sub-agents. Subagent reporting configuration is unused. The final diagnostic details are already persisted inside the Diagnostic resource instead.", "type": "boolean" }, "instructions": { @@ -9068,7 +9440,8 @@ }, "outputConfig": { "$ref": "GoogleCloudContactcenterinsightsV1OutputConfig", - "description": "Optional. The configuration for the output of the task." + "deprecated": true, + "description": "Optional. Deprecated: The configuration for the output of the task. The export destination is unused. Detailed markdown and conversation slices are already persisted inside the Diagnostic resource instead." }, "parent": { "description": "Required. The parent resource where the analysis will be performed.", @@ -9094,18 +9467,20 @@ "id": "GoogleCloudContactcenterinsightsV1DiagnoseConversationsResponse", "properties": { "answer": { - "description": "Output only. The final, high-level answer or diagnostic summary returned by the Sherlock worker.", + "deprecated": true, + "description": "Output only. Deprecated: Output only. The final, high-level answer or diagnostic summary returned by the Sherlock worker is deprecated. The persistent analysis summary is stored inside the Diagnostic resource instead.", "readOnly": true, "type": "string" }, "exportUri": { - "description": "Output only. If an external destination was requested, the URI of the exported data.", + "deprecated": true, + "description": "Output only. Deprecated: Output only. If an external destination was requested, the URI of the exported data is deprecated. The persistent diagnostic details are stored inside the Diagnostic resource instead.", "readOnly": true, "type": "string" }, "fullTrajectories": { "deprecated": true, - "description": "Output only. Deprecated: Use full_trajectory_steps instead. The complete sequence of thoughts and actions (full trajectory).", + "description": "Output only. Deprecated: Use full_trajectory_steps instead. Output only. The complete sequence of thoughts and actions (full trajectory).", "items": { "type": "string" }, @@ -9113,7 +9488,8 @@ "type": "array" }, "fullTrajectorySteps": { - "description": "Output only. The complete sequence of thoughts and actions taken by the agent.", + "deprecated": true, + "description": "Output only. Deprecated: Output only. The complete sequence of thoughts and actions taken by the agent is deprecated under LRO response completions. Use the persistent details inside the Diagnostic resource instead.", "items": { "$ref": "GoogleCloudContactcenterinsightsV1SherlockStep" }, @@ -9159,8 +9535,17 @@ "description": "A diagnostic report containing aggregate metrics and intent breakdowns.", "id": "GoogleCloudContactcenterinsightsV1DiagnosticReport", "properties": { + "conversationSlices": { + "additionalProperties": { + "$ref": "GoogleCloudContactcenterinsightsV1DiagnosticReportConversationSlice" + }, + "description": "Output only. A map of conversation slices used in the report.", + "readOnly": true, + "type": "object" + }, "intentStats": { - "description": "Output only. A breakdown of metrics grouped by intent.", + "deprecated": true, + "description": "Output only. Deprecated: Intent breakdowns are no longer used.", "items": { "$ref": "GoogleCloudContactcenterinsightsV1DiagnosticReportIntentStats" }, @@ -9183,6 +9568,25 @@ "description": "Output only. Deprecated: The type of the metric. Metrics for Outcome Based Insights derived from QueryMetrics.", "readOnly": true, "type": "object" + }, + "report": { + "description": "Output only. The final report in markdown format.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1DiagnosticReportConversationSlice": { + "description": "Output only. A map of conversation slices used in the report.", + "id": "GoogleCloudContactcenterinsightsV1DiagnosticReportConversationSlice", + "properties": { + "conversationIds": { + "description": "The list of conversation IDs that match this slice.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -11479,6 +11883,14 @@ "readOnly": true, "type": "string" }, + "links": { + "description": "Output only. A list of links to conversations or bot instructions.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1LossPatternLink" + }, + "readOnly": true, + "type": "array" + }, "percentage": { "description": "Output only. The percentage of conversations that match this loss pattern.", "format": "double", @@ -11493,6 +11905,83 @@ }, "type": "object" }, + "GoogleCloudContactcenterinsightsV1LossPatternLink": { + "description": "A link to a conversation or bot instruction.", + "id": "GoogleCloudContactcenterinsightsV1LossPatternLink", + "properties": { + "botInstructionLink": { + "$ref": "GoogleCloudContactcenterinsightsV1LossPatternLinkBotInstructionLink", + "description": "A link to a bot instruction." + }, + "conversationLink": { + "$ref": "GoogleCloudContactcenterinsightsV1LossPatternLinkConversationLink", + "description": "A link to a conversation." + }, + "endByteIndex": { + "description": "The end byte index of the highlighted text (exclusive).", + "format": "int32", + "type": "integer" + }, + "highlightedText": { + "description": "The text that is highlighted. (populated for debugging purposes)", + "type": "string" + }, + "locationType": { + "description": "The location type.", + "enum": [ + "LOCATION_TYPE_UNSPECIFIED", + "DESCRIPTION", + "SUGGESTED_FIXES", + "EXAMPLES" + ], + "enumDescriptions": [ + "Unspecified location type.", + "The link applies to the description field.", + "The link applies to the suggested_fixes field.", + "The link applies to the examples field." + ], + "type": "string" + }, + "startByteIndex": { + "description": "The start byte index of the highlighted text (inclusive).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1LossPatternLinkBotInstructionLink": { + "description": "A link to a bot instruction.", + "id": "GoogleCloudContactcenterinsightsV1LossPatternLinkBotInstructionLink", + "properties": { + "endLine": { + "description": "The exclusive end line number of the instructions.", + "format": "int32", + "type": "integer" + }, + "startLine": { + "description": "The inclusive start line number of the instructions.", + "format": "int32", + "type": "integer" + }, + "subagent": { + "description": "The name of the subagent.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1LossPatternLinkConversationLink": { + "description": "A link to a conversation.", + "id": "GoogleCloudContactcenterinsightsV1LossPatternLinkConversationLink", + "properties": { + "conversationId": { + "description": "The conversation ID.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1MetricDefinition": { "description": "A definition for a metric to be calculated during analysis.", "id": "GoogleCloudContactcenterinsightsV1MetricDefinition", @@ -13044,6 +13533,13 @@ "description": "The redirect action to be taken when the chart is clicked.", "id": "GoogleCloudContactcenterinsightsV1RedirectAction", "properties": { + "queryParams": { + "additionalProperties": { + "type": "string" + }, + "description": "The query params to be added to the redirect path.", + "type": "object" + }, "relativePath": { "description": "The relative path to redirect to.", "type": "string" @@ -13418,8 +13914,36 @@ "description": "A step in the agent's reasoning process (Trajectory Step).", "id": "GoogleCloudContactcenterinsightsV1SherlockStep", "properties": { + "agentId": { + "description": "Output only. The ID of the agent that produced/received this content.", + "readOnly": true, + "type": "string" + }, + "content": { + "$ref": "GoogleCloudAiplatformV1Content", + "description": "Output only. The content of the turn (either Model or User role).", + "readOnly": true + }, + "stateDeltas": { + "description": "Output only. List of state changes caused by this specific turn.", + "items": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "type": "object" + }, + "readOnly": true, + "type": "array" + }, + "stepId": { + "description": "Output only. Unique ID for this specific turn.", + "readOnly": true, + "type": "string" + }, "textInput": { - "description": "Output only. Natural language input stimulus.", + "deprecated": true, + "description": "Output only. Deprecated: Use content instead.", "items": { "type": "string" }, @@ -13427,12 +13951,14 @@ "type": "array" }, "thought": { - "description": "Output only. The reasoning or internal monologue of the agent.", + "deprecated": true, + "description": "Output only. Deprecated: Use content instead.", "readOnly": true, "type": "string" }, "toolCalls": { - "description": "Output only. The tool call issued by the agent.", + "deprecated": true, + "description": "Output only. Deprecated: Use content instead.", "items": { "$ref": "GoogleCloudContactcenterinsightsV1ToolCall" }, @@ -13444,7 +13970,8 @@ "description": "Properties of the object.", "type": "any" }, - "description": "Output only. The output response from the tool execution.", + "deprecated": true, + "description": "Output only. Deprecated: Use content instead.", "readOnly": true, "type": "object" } @@ -15512,7 +16039,7 @@ }, "partialTrajectories": { "deprecated": true, - "description": "Output only. Deprecated: Use partial_trajectory_steps instead. The intermediate trajectory updates (partial trajectory).", + "description": "Output only. Deprecated: Use partial_trajectory_steps instead. Output only. The intermediate trajectory updates (partial trajectory).", "items": { "type": "string" }, @@ -15540,7 +16067,8 @@ "id": "GoogleCloudContactcenterinsightsV1alpha1DiagnoseConversationsRequest", "properties": { "dryRun": { - "description": "Optional. If true, the request will be validated and a simulation of the analysis will be performed without actually executing the task.", + "deprecated": true, + "description": "Optional. Deprecated: If true, the request will be validated and a simulation of the analysis will be performed without actually executing the task. This field is unused. Use validate_only instead.", "type": "boolean" }, "filter": { @@ -15548,7 +16076,8 @@ "type": "string" }, "fullReport": { - "description": "Optional. If true, the agent will generate a full diagnostic report for all sub-agents.", + "deprecated": true, + "description": "Optional. Deprecated: If true, the agent will generate a full diagnostic report for all sub-agents. Subagent reporting configuration is unused. The final diagnostic details are already persisted inside the Diagnostic resource instead.", "type": "boolean" }, "instructions": { @@ -15576,7 +16105,8 @@ }, "outputConfig": { "$ref": "GoogleCloudContactcenterinsightsV1alpha1OutputConfig", - "description": "Optional. The configuration for the output of the task." + "deprecated": true, + "description": "Optional. Deprecated: The configuration for the output of the task. The export destination is unused. Detailed markdown and conversation slices are already persisted inside the Diagnostic resource instead." }, "parent": { "description": "Required. The parent resource where the analysis will be performed.", @@ -15602,18 +16132,20 @@ "id": "GoogleCloudContactcenterinsightsV1alpha1DiagnoseConversationsResponse", "properties": { "answer": { - "description": "Output only. The final, high-level answer or diagnostic summary returned by the Sherlock worker.", + "deprecated": true, + "description": "Output only. Deprecated: Output only. The final, high-level answer or diagnostic summary returned by the Sherlock worker is deprecated. The persistent analysis summary is stored inside the Diagnostic resource instead.", "readOnly": true, "type": "string" }, "exportUri": { - "description": "Output only. If an external destination was requested, the URI of the exported data.", + "deprecated": true, + "description": "Output only. Deprecated: Output only. If an external destination was requested, the URI of the exported data is deprecated. The persistent diagnostic details are stored inside the Diagnostic resource instead.", "readOnly": true, "type": "string" }, "fullTrajectories": { "deprecated": true, - "description": "Output only. Deprecated: Use full_trajectory_steps instead. The complete sequence of thoughts and actions (full trajectory).", + "description": "Output only. Deprecated: Use full_trajectory_steps instead. Output only. The complete sequence of thoughts and actions (full trajectory).", "items": { "type": "string" }, @@ -15621,7 +16153,8 @@ "type": "array" }, "fullTrajectorySteps": { - "description": "Output only. The complete sequence of thoughts and actions taken by the agent.", + "deprecated": true, + "description": "Output only. Deprecated: Output only. The complete sequence of thoughts and actions taken by the agent is deprecated under LRO response completions. Use the persistent details inside the Diagnostic resource instead.", "items": { "$ref": "GoogleCloudContactcenterinsightsV1alpha1SherlockStep" }, @@ -15635,8 +16168,17 @@ "description": "A diagnostic report containing aggregate metrics and intent breakdowns.", "id": "GoogleCloudContactcenterinsightsV1alpha1DiagnosticReport", "properties": { + "conversationSlices": { + "additionalProperties": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1DiagnosticReportConversationSlice" + }, + "description": "Output only. A map of conversation slices used in the report.", + "readOnly": true, + "type": "object" + }, "intentStats": { - "description": "Output only. A breakdown of metrics grouped by intent.", + "deprecated": true, + "description": "Output only. Deprecated: Intent breakdowns are no longer used.", "items": { "$ref": "GoogleCloudContactcenterinsightsV1alpha1DiagnosticReportIntentStats" }, @@ -15659,6 +16201,25 @@ "description": "Output only. Deprecated: The type of the metric. Metrics for Outcome Based Insights derived from QueryMetrics.", "readOnly": true, "type": "object" + }, + "report": { + "description": "Output only. The final report in markdown format.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1DiagnosticReportConversationSlice": { + "description": "Output only. A map of conversation slices used in the report.", + "id": "GoogleCloudContactcenterinsightsV1alpha1DiagnosticReportConversationSlice", + "properties": { + "conversationIds": { + "description": "The list of conversation IDs that match this slice.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -17336,6 +17897,14 @@ "readOnly": true, "type": "string" }, + "links": { + "description": "Output only. A list of links to conversations or bot instructions.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1LossPatternLink" + }, + "readOnly": true, + "type": "array" + }, "percentage": { "description": "Output only. The percentage of conversations that match this loss pattern.", "format": "double", @@ -17350,6 +17919,83 @@ }, "type": "object" }, + "GoogleCloudContactcenterinsightsV1alpha1LossPatternLink": { + "description": "A link to a conversation or bot instruction.", + "id": "GoogleCloudContactcenterinsightsV1alpha1LossPatternLink", + "properties": { + "botInstructionLink": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1LossPatternLinkBotInstructionLink", + "description": "A link to a bot instruction." + }, + "conversationLink": { + "$ref": "GoogleCloudContactcenterinsightsV1alpha1LossPatternLinkConversationLink", + "description": "A link to a conversation." + }, + "endByteIndex": { + "description": "The end byte index of the highlighted text (exclusive).", + "format": "int32", + "type": "integer" + }, + "highlightedText": { + "description": "The text that is highlighted. (populated for debugging purposes)", + "type": "string" + }, + "locationType": { + "description": "The location type.", + "enum": [ + "LOCATION_TYPE_UNSPECIFIED", + "DESCRIPTION", + "SUGGESTED_FIXES", + "EXAMPLES" + ], + "enumDescriptions": [ + "Unspecified location type.", + "The link applies to the description field.", + "The link applies to the suggested_fixes field.", + "The link applies to the examples field." + ], + "type": "string" + }, + "startByteIndex": { + "description": "The start byte index of the highlighted text (inclusive).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1LossPatternLinkBotInstructionLink": { + "description": "A link to a bot instruction.", + "id": "GoogleCloudContactcenterinsightsV1alpha1LossPatternLinkBotInstructionLink", + "properties": { + "endLine": { + "description": "The exclusive end line number of the instructions.", + "format": "int32", + "type": "integer" + }, + "startLine": { + "description": "The inclusive start line number of the instructions.", + "format": "int32", + "type": "integer" + }, + "subagent": { + "description": "The name of the subagent.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1alpha1LossPatternLinkConversationLink": { + "description": "A link to a conversation.", + "id": "GoogleCloudContactcenterinsightsV1alpha1LossPatternLinkConversationLink", + "properties": { + "conversationId": { + "description": "The conversation ID.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1alpha1MetricValue": { "deprecated": true, "description": "Deprecated: MetricValue is no longer used for diagnostics.", @@ -18463,8 +19109,36 @@ "description": "A step in the agent's reasoning process (Trajectory Step).", "id": "GoogleCloudContactcenterinsightsV1alpha1SherlockStep", "properties": { + "agentId": { + "description": "Output only. The ID of the agent that produced/received this content.", + "readOnly": true, + "type": "string" + }, + "content": { + "$ref": "GoogleCloudAiplatformV1Content", + "description": "Output only. The content of the turn (either Model or User role).", + "readOnly": true + }, + "stateDeltas": { + "description": "Output only. List of state changes caused by this specific turn.", + "items": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "type": "object" + }, + "readOnly": true, + "type": "array" + }, + "stepId": { + "description": "Output only. Unique ID for this specific turn.", + "readOnly": true, + "type": "string" + }, "textInput": { - "description": "Output only. Natural language input stimulus.", + "deprecated": true, + "description": "Output only. Deprecated: Use content instead.", "items": { "type": "string" }, @@ -18472,12 +19146,14 @@ "type": "array" }, "thought": { - "description": "Output only. The reasoning or internal monologue of the agent.", + "deprecated": true, + "description": "Output only. Deprecated: Use content instead.", "readOnly": true, "type": "string" }, "toolCalls": { - "description": "Output only. The tool call issued by the agent.", + "deprecated": true, + "description": "Output only. Deprecated: Use content instead.", "items": { "$ref": "GoogleCloudContactcenterinsightsV1alpha1ToolCall" }, @@ -18489,7 +19165,8 @@ "description": "Properties of the object.", "type": "any" }, - "description": "Output only. The output response from the tool execution.", + "deprecated": true, + "description": "Output only. Deprecated: Use content instead.", "readOnly": true, "type": "object" } @@ -20565,7 +21242,7 @@ }, "partialTrajectories": { "deprecated": true, - "description": "Output only. Deprecated: Use partial_trajectory_steps instead. The intermediate trajectory updates (partial trajectory).", + "description": "Output only. Deprecated: Use partial_trajectory_steps instead. Output only. The intermediate trajectory updates (partial trajectory).", "items": { "type": "string" }, @@ -20593,7 +21270,8 @@ "id": "GoogleCloudContactcenterinsightsV1mainDiagnoseConversationsRequest", "properties": { "dryRun": { - "description": "Optional. If true, the request will be validated and a simulation of the analysis will be performed without actually executing the task.", + "deprecated": true, + "description": "Optional. Deprecated: If true, the request will be validated and a simulation of the analysis will be performed without actually executing the task. This field is unused. Use validate_only instead.", "type": "boolean" }, "filter": { @@ -20601,7 +21279,8 @@ "type": "string" }, "fullReport": { - "description": "Optional. If true, the agent will generate a full diagnostic report for all sub-agents.", + "deprecated": true, + "description": "Optional. Deprecated: If true, the agent will generate a full diagnostic report for all sub-agents. Subagent reporting configuration is unused. The final diagnostic details are already persisted inside the Diagnostic resource instead.", "type": "boolean" }, "instructions": { @@ -20629,7 +21308,8 @@ }, "outputConfig": { "$ref": "GoogleCloudContactcenterinsightsV1mainOutputConfig", - "description": "Optional. The configuration for the output of the task." + "deprecated": true, + "description": "Optional. Deprecated: The configuration for the output of the task. The export destination is unused. Detailed markdown and conversation slices are already persisted inside the Diagnostic resource instead." }, "parent": { "description": "Required. The parent resource where the analysis will be performed.", @@ -20655,18 +21335,20 @@ "id": "GoogleCloudContactcenterinsightsV1mainDiagnoseConversationsResponse", "properties": { "answer": { - "description": "Output only. The final, high-level answer or diagnostic summary returned by the Sherlock worker.", + "deprecated": true, + "description": "Output only. Deprecated: Output only. The final, high-level answer or diagnostic summary returned by the Sherlock worker is deprecated. The persistent analysis summary is stored inside the Diagnostic resource instead.", "readOnly": true, "type": "string" }, "exportUri": { - "description": "Output only. If an external destination was requested, the URI of the exported data.", + "deprecated": true, + "description": "Output only. Deprecated: Output only. If an external destination was requested, the URI of the exported data is deprecated. The persistent diagnostic details are stored inside the Diagnostic resource instead.", "readOnly": true, "type": "string" }, "fullTrajectories": { "deprecated": true, - "description": "Output only. Deprecated: Use full_trajectory_steps instead. The complete sequence of thoughts and actions (full trajectory).", + "description": "Output only. Deprecated: Use full_trajectory_steps instead. Output only. The complete sequence of thoughts and actions (full trajectory).", "items": { "type": "string" }, @@ -20674,7 +21356,8 @@ "type": "array" }, "fullTrajectorySteps": { - "description": "Output only. The complete sequence of thoughts and actions taken by the agent.", + "deprecated": true, + "description": "Output only. Deprecated: Output only. The complete sequence of thoughts and actions taken by the agent is deprecated under LRO response completions. Use the persistent details inside the Diagnostic resource instead.", "items": { "$ref": "GoogleCloudContactcenterinsightsV1mainSherlockStep" }, @@ -20688,8 +21371,17 @@ "description": "A diagnostic report containing aggregate metrics and intent breakdowns.", "id": "GoogleCloudContactcenterinsightsV1mainDiagnosticReport", "properties": { + "conversationSlices": { + "additionalProperties": { + "$ref": "GoogleCloudContactcenterinsightsV1mainDiagnosticReportConversationSlice" + }, + "description": "Output only. A map of conversation slices used in the report.", + "readOnly": true, + "type": "object" + }, "intentStats": { - "description": "Output only. A breakdown of metrics grouped by intent.", + "deprecated": true, + "description": "Output only. Deprecated: Intent breakdowns are no longer used.", "items": { "$ref": "GoogleCloudContactcenterinsightsV1mainDiagnosticReportIntentStats" }, @@ -20712,6 +21404,25 @@ "description": "Output only. Deprecated: The type of the metric. Metrics for Outcome Based Insights derived from QueryMetrics.", "readOnly": true, "type": "object" + }, + "report": { + "description": "Output only. The final report in markdown format.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1mainDiagnosticReportConversationSlice": { + "description": "Output only. A map of conversation slices used in the report.", + "id": "GoogleCloudContactcenterinsightsV1mainDiagnosticReportConversationSlice", + "properties": { + "conversationIds": { + "description": "The list of conversation IDs that match this slice.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" @@ -22389,6 +23100,14 @@ "readOnly": true, "type": "string" }, + "links": { + "description": "Output only. A list of links to conversations or bot instructions.", + "items": { + "$ref": "GoogleCloudContactcenterinsightsV1mainLossPatternLink" + }, + "readOnly": true, + "type": "array" + }, "percentage": { "description": "Output only. The percentage of conversations that match this loss pattern.", "format": "double", @@ -22403,6 +23122,83 @@ }, "type": "object" }, + "GoogleCloudContactcenterinsightsV1mainLossPatternLink": { + "description": "A link to a conversation or bot instruction.", + "id": "GoogleCloudContactcenterinsightsV1mainLossPatternLink", + "properties": { + "botInstructionLink": { + "$ref": "GoogleCloudContactcenterinsightsV1mainLossPatternLinkBotInstructionLink", + "description": "A link to a bot instruction." + }, + "conversationLink": { + "$ref": "GoogleCloudContactcenterinsightsV1mainLossPatternLinkConversationLink", + "description": "A link to a conversation." + }, + "endByteIndex": { + "description": "The end byte index of the highlighted text (exclusive).", + "format": "int32", + "type": "integer" + }, + "highlightedText": { + "description": "The text that is highlighted. (populated for debugging purposes)", + "type": "string" + }, + "locationType": { + "description": "The location type.", + "enum": [ + "LOCATION_TYPE_UNSPECIFIED", + "DESCRIPTION", + "SUGGESTED_FIXES", + "EXAMPLES" + ], + "enumDescriptions": [ + "Unspecified location type.", + "The link applies to the description field.", + "The link applies to the suggested_fixes field.", + "The link applies to the examples field." + ], + "type": "string" + }, + "startByteIndex": { + "description": "The start byte index of the highlighted text (inclusive).", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1mainLossPatternLinkBotInstructionLink": { + "description": "A link to a bot instruction.", + "id": "GoogleCloudContactcenterinsightsV1mainLossPatternLinkBotInstructionLink", + "properties": { + "endLine": { + "description": "The exclusive end line number of the instructions.", + "format": "int32", + "type": "integer" + }, + "startLine": { + "description": "The inclusive start line number of the instructions.", + "format": "int32", + "type": "integer" + }, + "subagent": { + "description": "The name of the subagent.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudContactcenterinsightsV1mainLossPatternLinkConversationLink": { + "description": "A link to a conversation.", + "id": "GoogleCloudContactcenterinsightsV1mainLossPatternLinkConversationLink", + "properties": { + "conversationId": { + "description": "The conversation ID.", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudContactcenterinsightsV1mainMetricValue": { "deprecated": true, "description": "Deprecated: MetricValue is no longer used for diagnostics.", @@ -23516,8 +24312,36 @@ "description": "A step in the agent's reasoning process (Trajectory Step).", "id": "GoogleCloudContactcenterinsightsV1mainSherlockStep", "properties": { + "agentId": { + "description": "Output only. The ID of the agent that produced/received this content.", + "readOnly": true, + "type": "string" + }, + "content": { + "$ref": "GoogleCloudAiplatformV1Content", + "description": "Output only. The content of the turn (either Model or User role).", + "readOnly": true + }, + "stateDeltas": { + "description": "Output only. List of state changes caused by this specific turn.", + "items": { + "additionalProperties": { + "description": "Properties of the object.", + "type": "any" + }, + "type": "object" + }, + "readOnly": true, + "type": "array" + }, + "stepId": { + "description": "Output only. Unique ID for this specific turn.", + "readOnly": true, + "type": "string" + }, "textInput": { - "description": "Output only. Natural language input stimulus.", + "deprecated": true, + "description": "Output only. Deprecated: Use content instead.", "items": { "type": "string" }, @@ -23525,12 +24349,14 @@ "type": "array" }, "thought": { - "description": "Output only. The reasoning or internal monologue of the agent.", + "deprecated": true, + "description": "Output only. Deprecated: Use content instead.", "readOnly": true, "type": "string" }, "toolCalls": { - "description": "Output only. The tool call issued by the agent.", + "deprecated": true, + "description": "Output only. Deprecated: Use content instead.", "items": { "$ref": "GoogleCloudContactcenterinsightsV1mainToolCall" }, @@ -23542,7 +24368,8 @@ "description": "Properties of the object.", "type": "any" }, - "description": "Output only. The output response from the tool execution.", + "deprecated": true, + "description": "Output only. Deprecated: Use content instead.", "readOnly": true, "type": "object" } diff --git a/src/apis/contactcenterinsights/v1.ts b/src/apis/contactcenterinsights/v1.ts index cf768f5781..1edbcd2446 100644 --- a/src/apis/contactcenterinsights/v1.ts +++ b/src/apis/contactcenterinsights/v1.ts @@ -124,6 +124,272 @@ export namespace contactcenterinsights_v1 { } } + /** + * A content blob. A Blob contains data of a specific media type. It is used to represent images, audio, and video. + */ + export interface Schema$GoogleCloudAiplatformV1Blob { + /** + * Required. The raw bytes of the data. + */ + data?: string | null; + /** + * Optional. The display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server-side tools (`code_execution`, `google_search`, and `url_context`) are enabled. + */ + displayName?: string | null; + /** + * Required. The IANA standard MIME type of the source data. + */ + mimeType?: string | null; + } + /** + * Result of executing the ExecutableCode. Generated only when the `CodeExecution` tool is used. + */ + export interface Schema$GoogleCloudAiplatformV1CodeExecutionResult { + /** + * Required. Outcome of the code execution. + */ + outcome?: string | null; + /** + * Optional. Contains stdout when code execution is successful, stderr or other description otherwise. + */ + output?: string | null; + } + /** + * The structured data content of a message. A Content message contains a `role` field, which indicates the producer of the content, and a `parts` field, which contains the multi-part data of the message. + */ + export interface Schema$GoogleCloudAiplatformV1Content { + /** + * Required. A list of Part objects that make up a single message. Parts of a message can have different MIME types. A Content message must have at least one Part. + */ + parts?: Schema$GoogleCloudAiplatformV1Part[]; + /** + * Optional. The producer of the content. Must be either 'user' or 'model'. If not set, the service will default to 'user'. + */ + role?: string | null; + } + /** + * Code generated by the model that is meant to be executed, and the result returned to the model. Generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding CodeExecutionResult will also be generated. + */ + export interface Schema$GoogleCloudAiplatformV1ExecutableCode { + /** + * Required. The code to be executed. + */ + code?: string | null; + /** + * Required. Programming language of the `code`. + */ + language?: string | null; + } + /** + * URI-based data. A FileData message contains a URI pointing to data of a specific media type. It is used to represent images, audio, and video stored in Google Cloud Storage. + */ + export interface Schema$GoogleCloudAiplatformV1FileData { + /** + * Optional. The display name of the file. Used to provide a label or filename to distinguish files. This field is only returned in `PromptMessage` for prompt management. It is used in the Gemini calls only when server side tools (`code_execution`, `google_search`, and `url_context`) are enabled. + */ + displayName?: string | null; + /** + * Required. The URI of the file in Google Cloud Storage. + */ + fileUri?: string | null; + /** + * Required. The IANA standard MIME type of the source data. + */ + mimeType?: string | null; + } + /** + * A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaration.name and a structured JSON object containing the parameters and their values. + */ + export interface Schema$GoogleCloudAiplatformV1FunctionCall { + /** + * Optional. The function parameters and values in JSON object format. See FunctionDeclaration.parameters for parameter details. + */ + args?: {[key: string]: any} | null; + /** + * Optional. The name of the function to call. Matches FunctionDeclaration.name. + */ + name?: string | null; + /** + * Optional. The partial argument value of the function call. If provided, represents the arguments/fields that are streamed incrementally. + */ + partialArgs?: Schema$GoogleCloudAiplatformV1PartialArg[]; + /** + * Optional. Whether this is the last part of the FunctionCall. If true, another partial message for the current FunctionCall is expected to follow. + */ + willContinue?: boolean | null; + } + /** + * The result output from a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a `FunctionCall` made based on model prediction. + */ + export interface Schema$GoogleCloudAiplatformV1FunctionResponse { + /** + * Required. The name of the function to call. Matches FunctionDeclaration.name and FunctionCall.name. + */ + name?: string | null; + /** + * Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types. + */ + parts?: Schema$GoogleCloudAiplatformV1FunctionResponsePart[]; + /** + * Required. The function response in JSON object format. Use "output" key to specify function output and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as function output. + */ + response?: {[key: string]: any} | null; + /** + * Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE. + */ + scheduling?: string | null; + } + /** + * Raw media bytes for function response. Text should not be sent as raw bytes, use the 'text' field. + */ + export interface Schema$GoogleCloudAiplatformV1FunctionResponseBlob { + /** + * Required. Raw bytes. + */ + data?: string | null; + /** + * Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. + */ + displayName?: string | null; + /** + * Required. The IANA standard MIME type of the source data. + */ + mimeType?: string | null; + } + /** + * URI based data for function response. + */ + export interface Schema$GoogleCloudAiplatformV1FunctionResponseFileData { + /** + * Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. + */ + displayName?: string | null; + /** + * Required. URI. + */ + fileUri?: string | null; + /** + * Required. The IANA standard MIME type of the source data. + */ + mimeType?: string | null; + } + /** + * A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes. + */ + export interface Schema$GoogleCloudAiplatformV1FunctionResponsePart { + /** + * URI based data. + */ + fileData?: Schema$GoogleCloudAiplatformV1FunctionResponseFileData; + /** + * Inline media bytes. + */ + inlineData?: Schema$GoogleCloudAiplatformV1FunctionResponseBlob; + } + /** + * A datatype containing media that is part of a multi-part Content message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. For media types that are not text, `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes. + */ + export interface Schema$GoogleCloudAiplatformV1Part { + /** + * Optional. The result of executing the ExecutableCode. + */ + codeExecutionResult?: Schema$GoogleCloudAiplatformV1CodeExecutionResult; + /** + * Optional. Code generated by the model that is intended to be executed. + */ + executableCode?: Schema$GoogleCloudAiplatformV1ExecutableCode; + /** + * Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage. + */ + fileData?: Schema$GoogleCloudAiplatformV1FileData; + /** + * Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function. + */ + functionCall?: Schema$GoogleCloudAiplatformV1FunctionCall; + /** + * Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted. + */ + functionResponse?: Schema$GoogleCloudAiplatformV1FunctionResponse; + /** + * Optional. The inline data content of the part. This can be used to include images, audio, or video in a request. + */ + inlineData?: Schema$GoogleCloudAiplatformV1Blob; + /** + * per part media resolution. Media resolution for the input media. + */ + mediaResolution?: Schema$GoogleCloudAiplatformV1PartMediaResolution; + /** + * Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent. + */ + text?: string | null; + /** + * Optional. Indicates whether the `part` represents the model's thought process or reasoning. + */ + thought?: boolean | null; + /** + * Optional. An opaque signature for the thought so it can be reused in subsequent requests. + */ + thoughtSignature?: string | null; + /** + * Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data. + */ + videoMetadata?: Schema$GoogleCloudAiplatformV1VideoMetadata; + } + /** + * Partial argument value of the function call. + */ + export interface Schema$GoogleCloudAiplatformV1PartialArg { + /** + * Optional. Represents a boolean value. + */ + boolValue?: boolean | null; + /** + * Required. A JSON Path (RFC 9535) to the argument being streamed. https://datatracker.ietf.org/doc/html/rfc9535. e.g. "$.foo.bar[0].data". + */ + jsonPath?: string | null; + /** + * Optional. Represents a null value. + */ + nullValue?: string | null; + /** + * Optional. Represents a double value. + */ + numberValue?: number | null; + /** + * Optional. Represents a string value. + */ + stringValue?: string | null; + /** + * Optional. Whether this is not the last part of the same json_path. If true, another PartialArg message for the current json_path is expected to follow. + */ + willContinue?: boolean | null; + } + /** + * per part media resolution. Media resolution for the input media. + */ + export interface Schema$GoogleCloudAiplatformV1PartMediaResolution { + /** + * The tokenization quality used for given media. + */ + level?: string | null; + } + /** + * Provides metadata for a video, including the start and end offsets for clipping and the frame rate. + */ + export interface Schema$GoogleCloudAiplatformV1VideoMetadata { + /** + * Optional. The end offset of the video. + */ + endOffset?: string | null; + /** + * Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0]. + */ + fps?: number | null; + /** + * Optional. The start offset of the video. + */ + startOffset?: string | null; + } /** * Represents an event indicating the transfer of a conversation to a different agent. */ @@ -1486,7 +1752,7 @@ export namespace contactcenterinsights_v1 { */ metricType?: string | null; /** - * Output only. Deprecated: Use partial_trajectory_steps instead. The intermediate trajectory updates (partial trajectory). + * Output only. Deprecated: Use partial_trajectory_steps instead. Output only. The intermediate trajectory updates (partial trajectory). */ partialTrajectories?: string[] | null; /** @@ -1503,7 +1769,7 @@ export namespace contactcenterinsights_v1 { */ export interface Schema$GoogleCloudContactcenterinsightsV1alpha1DiagnoseConversationsRequest { /** - * Optional. If true, the request will be validated and a simulation of the analysis will be performed without actually executing the task. + * Optional. Deprecated: If true, the request will be validated and a simulation of the analysis will be performed without actually executing the task. This field is unused. Use validate_only instead. */ dryRun?: boolean | null; /** @@ -1511,7 +1777,7 @@ export namespace contactcenterinsights_v1 { */ filter?: string | null; /** - * Optional. If true, the agent will generate a full diagnostic report for all sub-agents. + * Optional. Deprecated: If true, the agent will generate a full diagnostic report for all sub-agents. Subagent reporting configuration is unused. The final diagnostic details are already persisted inside the Diagnostic resource instead. */ fullReport?: boolean | null; /** @@ -1527,7 +1793,7 @@ export namespace contactcenterinsights_v1 { */ metricType?: string | null; /** - * Optional. The configuration for the output of the task. + * Optional. Deprecated: The configuration for the output of the task. The export destination is unused. Detailed markdown and conversation slices are already persisted inside the Diagnostic resource instead. */ outputConfig?: Schema$GoogleCloudContactcenterinsightsV1alpha1OutputConfig; /** @@ -1552,19 +1818,19 @@ export namespace contactcenterinsights_v1 { */ export interface Schema$GoogleCloudContactcenterinsightsV1alpha1DiagnoseConversationsResponse { /** - * Output only. The final, high-level answer or diagnostic summary returned by the Sherlock worker. + * Output only. Deprecated: Output only. The final, high-level answer or diagnostic summary returned by the Sherlock worker is deprecated. The persistent analysis summary is stored inside the Diagnostic resource instead. */ answer?: string | null; /** - * Output only. If an external destination was requested, the URI of the exported data. + * Output only. Deprecated: Output only. If an external destination was requested, the URI of the exported data is deprecated. The persistent diagnostic details are stored inside the Diagnostic resource instead. */ exportUri?: string | null; /** - * Output only. Deprecated: Use full_trajectory_steps instead. The complete sequence of thoughts and actions (full trajectory). + * Output only. Deprecated: Use full_trajectory_steps instead. Output only. The complete sequence of thoughts and actions (full trajectory). */ fullTrajectories?: string[] | null; /** - * Output only. The complete sequence of thoughts and actions taken by the agent. + * Output only. Deprecated: Output only. The complete sequence of thoughts and actions taken by the agent is deprecated under LRO response completions. Use the persistent details inside the Diagnostic resource instead. */ fullTrajectorySteps?: Schema$GoogleCloudContactcenterinsightsV1alpha1SherlockStep[]; } @@ -1573,7 +1839,15 @@ export namespace contactcenterinsights_v1 { */ export interface Schema$GoogleCloudContactcenterinsightsV1alpha1DiagnosticReport { /** - * Output only. A breakdown of metrics grouped by intent. + * Output only. A map of conversation slices used in the report. + */ + conversationSlices?: { + [ + key: string + ]: Schema$GoogleCloudContactcenterinsightsV1alpha1DiagnosticReportConversationSlice; + } | null; + /** + * Output only. Deprecated: Intent breakdowns are no longer used. */ intentStats?: Schema$GoogleCloudContactcenterinsightsV1alpha1DiagnosticReportIntentStats[]; /** @@ -1586,6 +1860,19 @@ export namespace contactcenterinsights_v1 { metrics?: { [key: string]: Schema$GoogleCloudContactcenterinsightsV1alpha1MetricValue; } | null; + /** + * Output only. The final report in markdown format. + */ + report?: string | null; + } + /** + * Output only. A map of conversation slices used in the report. + */ + export interface Schema$GoogleCloudContactcenterinsightsV1alpha1DiagnosticReportConversationSlice { + /** + * The list of conversation IDs that match this slice. + */ + conversationIds?: string[] | null; } /** * A breakdown of metrics grouped by intent. @@ -2743,6 +3030,10 @@ export namespace contactcenterinsights_v1 { * Output only. The unique identifier for the loss pattern. */ id?: string | null; + /** + * Output only. A list of links to conversations or bot instructions. + */ + links?: Schema$GoogleCloudContactcenterinsightsV1alpha1LossPatternLink[]; /** * Output only. The percentage of conversations that match this loss pattern. */ @@ -2752,6 +3043,61 @@ export namespace contactcenterinsights_v1 { */ suggestedFixes?: string | null; } + /** + * A link to a conversation or bot instruction. + */ + export interface Schema$GoogleCloudContactcenterinsightsV1alpha1LossPatternLink { + /** + * A link to a bot instruction. + */ + botInstructionLink?: Schema$GoogleCloudContactcenterinsightsV1alpha1LossPatternLinkBotInstructionLink; + /** + * A link to a conversation. + */ + conversationLink?: Schema$GoogleCloudContactcenterinsightsV1alpha1LossPatternLinkConversationLink; + /** + * The end byte index of the highlighted text (exclusive). + */ + endByteIndex?: number | null; + /** + * The text that is highlighted. (populated for debugging purposes) + */ + highlightedText?: string | null; + /** + * The location type. + */ + locationType?: string | null; + /** + * The start byte index of the highlighted text (inclusive). + */ + startByteIndex?: number | null; + } + /** + * A link to a bot instruction. + */ + export interface Schema$GoogleCloudContactcenterinsightsV1alpha1LossPatternLinkBotInstructionLink { + /** + * The exclusive end line number of the instructions. + */ + endLine?: number | null; + /** + * The inclusive start line number of the instructions. + */ + startLine?: number | null; + /** + * The name of the subagent. + */ + subagent?: string | null; + } + /** + * A link to a conversation. + */ + export interface Schema$GoogleCloudContactcenterinsightsV1alpha1LossPatternLinkConversationLink { + /** + * The conversation ID. + */ + conversationId?: string | null; + } /** * Deprecated: MetricValue is no longer used for diagnostics. */ @@ -3612,19 +3958,35 @@ export namespace contactcenterinsights_v1 { */ export interface Schema$GoogleCloudContactcenterinsightsV1alpha1SherlockStep { /** - * Output only. Natural language input stimulus. + * Output only. The ID of the agent that produced/received this content. + */ + agentId?: string | null; + /** + * Output only. The content of the turn (either Model or User role). + */ + content?: Schema$GoogleCloudAiplatformV1Content; + /** + * Output only. List of state changes caused by this specific turn. + */ + stateDeltas?: Array<{[key: string]: any}> | null; + /** + * Output only. Unique ID for this specific turn. + */ + stepId?: string | null; + /** + * Output only. Deprecated: Use content instead. */ textInput?: string[] | null; /** - * Output only. The reasoning or internal monologue of the agent. + * Output only. Deprecated: Use content instead. */ thought?: string | null; /** - * Output only. The tool call issued by the agent. + * Output only. Deprecated: Use content instead. */ toolCalls?: Schema$GoogleCloudContactcenterinsightsV1alpha1ToolCall[]; /** - * Output only. The output response from the tool execution. + * Output only. Deprecated: Use content instead. */ toolOutput?: {[key: string]: any} | null; } @@ -5739,7 +6101,7 @@ export namespace contactcenterinsights_v1 { */ metricType?: string | null; /** - * Output only. Deprecated: Use partial_trajectory_steps instead. The intermediate trajectory updates (partial trajectory). + * Output only. Deprecated: Use partial_trajectory_steps instead. Output only. The intermediate trajectory updates (partial trajectory). */ partialTrajectories?: string[] | null; /** @@ -5756,7 +6118,7 @@ export namespace contactcenterinsights_v1 { */ export interface Schema$GoogleCloudContactcenterinsightsV1DiagnoseConversationsRequest { /** - * Optional. If true, the request will be validated and a simulation of the analysis will be performed without actually executing the task. + * Optional. Deprecated: If true, the request will be validated and a simulation of the analysis will be performed without actually executing the task. This field is unused. Use validate_only instead. */ dryRun?: boolean | null; /** @@ -5764,7 +6126,7 @@ export namespace contactcenterinsights_v1 { */ filter?: string | null; /** - * Optional. If true, the agent will generate a full diagnostic report for all sub-agents. + * Optional. Deprecated: If true, the agent will generate a full diagnostic report for all sub-agents. Subagent reporting configuration is unused. The final diagnostic details are already persisted inside the Diagnostic resource instead. */ fullReport?: boolean | null; /** @@ -5780,7 +6142,7 @@ export namespace contactcenterinsights_v1 { */ metricType?: string | null; /** - * Optional. The configuration for the output of the task. + * Optional. Deprecated: The configuration for the output of the task. The export destination is unused. Detailed markdown and conversation slices are already persisted inside the Diagnostic resource instead. */ outputConfig?: Schema$GoogleCloudContactcenterinsightsV1OutputConfig; /** @@ -5805,19 +6167,19 @@ export namespace contactcenterinsights_v1 { */ export interface Schema$GoogleCloudContactcenterinsightsV1DiagnoseConversationsResponse { /** - * Output only. The final, high-level answer or diagnostic summary returned by the Sherlock worker. + * Output only. Deprecated: Output only. The final, high-level answer or diagnostic summary returned by the Sherlock worker is deprecated. The persistent analysis summary is stored inside the Diagnostic resource instead. */ answer?: string | null; /** - * Output only. If an external destination was requested, the URI of the exported data. + * Output only. Deprecated: Output only. If an external destination was requested, the URI of the exported data is deprecated. The persistent diagnostic details are stored inside the Diagnostic resource instead. */ exportUri?: string | null; /** - * Output only. Deprecated: Use full_trajectory_steps instead. The complete sequence of thoughts and actions (full trajectory). + * Output only. Deprecated: Use full_trajectory_steps instead. Output only. The complete sequence of thoughts and actions (full trajectory). */ fullTrajectories?: string[] | null; /** - * Output only. The complete sequence of thoughts and actions taken by the agent. + * Output only. Deprecated: Output only. The complete sequence of thoughts and actions taken by the agent is deprecated under LRO response completions. Use the persistent details inside the Diagnostic resource instead. */ fullTrajectorySteps?: Schema$GoogleCloudContactcenterinsightsV1SherlockStep[]; } @@ -5851,7 +6213,15 @@ export namespace contactcenterinsights_v1 { */ export interface Schema$GoogleCloudContactcenterinsightsV1DiagnosticReport { /** - * Output only. A breakdown of metrics grouped by intent. + * Output only. A map of conversation slices used in the report. + */ + conversationSlices?: { + [ + key: string + ]: Schema$GoogleCloudContactcenterinsightsV1DiagnosticReportConversationSlice; + } | null; + /** + * Output only. Deprecated: Intent breakdowns are no longer used. */ intentStats?: Schema$GoogleCloudContactcenterinsightsV1DiagnosticReportIntentStats[]; /** @@ -5864,6 +6234,19 @@ export namespace contactcenterinsights_v1 { metrics?: { [key: string]: Schema$GoogleCloudContactcenterinsightsV1MetricValue; } | null; + /** + * Output only. The final report in markdown format. + */ + report?: string | null; + } + /** + * Output only. A map of conversation slices used in the report. + */ + export interface Schema$GoogleCloudContactcenterinsightsV1DiagnosticReportConversationSlice { + /** + * The list of conversation IDs that match this slice. + */ + conversationIds?: string[] | null; } /** * A breakdown of metrics grouped by intent. @@ -7469,6 +7852,10 @@ export namespace contactcenterinsights_v1 { * Output only. The unique identifier for the loss pattern. */ id?: string | null; + /** + * Output only. A list of links to conversations or bot instructions. + */ + links?: Schema$GoogleCloudContactcenterinsightsV1LossPatternLink[]; /** * Output only. The percentage of conversations that match this loss pattern. */ @@ -7478,6 +7865,61 @@ export namespace contactcenterinsights_v1 { */ suggestedFixes?: string | null; } + /** + * A link to a conversation or bot instruction. + */ + export interface Schema$GoogleCloudContactcenterinsightsV1LossPatternLink { + /** + * A link to a bot instruction. + */ + botInstructionLink?: Schema$GoogleCloudContactcenterinsightsV1LossPatternLinkBotInstructionLink; + /** + * A link to a conversation. + */ + conversationLink?: Schema$GoogleCloudContactcenterinsightsV1LossPatternLinkConversationLink; + /** + * The end byte index of the highlighted text (exclusive). + */ + endByteIndex?: number | null; + /** + * The text that is highlighted. (populated for debugging purposes) + */ + highlightedText?: string | null; + /** + * The location type. + */ + locationType?: string | null; + /** + * The start byte index of the highlighted text (inclusive). + */ + startByteIndex?: number | null; + } + /** + * A link to a bot instruction. + */ + export interface Schema$GoogleCloudContactcenterinsightsV1LossPatternLinkBotInstructionLink { + /** + * The exclusive end line number of the instructions. + */ + endLine?: number | null; + /** + * The inclusive start line number of the instructions. + */ + startLine?: number | null; + /** + * The name of the subagent. + */ + subagent?: string | null; + } + /** + * A link to a conversation. + */ + export interface Schema$GoogleCloudContactcenterinsightsV1LossPatternLinkConversationLink { + /** + * The conversation ID. + */ + conversationId?: string | null; + } /** * The analysis resource. */ @@ -8763,7 +9205,7 @@ export namespace contactcenterinsights_v1 { */ metricType?: string | null; /** - * Output only. Deprecated: Use partial_trajectory_steps instead. The intermediate trajectory updates (partial trajectory). + * Output only. Deprecated: Use partial_trajectory_steps instead. Output only. The intermediate trajectory updates (partial trajectory). */ partialTrajectories?: string[] | null; /** @@ -8780,7 +9222,7 @@ export namespace contactcenterinsights_v1 { */ export interface Schema$GoogleCloudContactcenterinsightsV1mainDiagnoseConversationsRequest { /** - * Optional. If true, the request will be validated and a simulation of the analysis will be performed without actually executing the task. + * Optional. Deprecated: If true, the request will be validated and a simulation of the analysis will be performed without actually executing the task. This field is unused. Use validate_only instead. */ dryRun?: boolean | null; /** @@ -8788,7 +9230,7 @@ export namespace contactcenterinsights_v1 { */ filter?: string | null; /** - * Optional. If true, the agent will generate a full diagnostic report for all sub-agents. + * Optional. Deprecated: If true, the agent will generate a full diagnostic report for all sub-agents. Subagent reporting configuration is unused. The final diagnostic details are already persisted inside the Diagnostic resource instead. */ fullReport?: boolean | null; /** @@ -8804,7 +9246,7 @@ export namespace contactcenterinsights_v1 { */ metricType?: string | null; /** - * Optional. The configuration for the output of the task. + * Optional. Deprecated: The configuration for the output of the task. The export destination is unused. Detailed markdown and conversation slices are already persisted inside the Diagnostic resource instead. */ outputConfig?: Schema$GoogleCloudContactcenterinsightsV1mainOutputConfig; /** @@ -8829,19 +9271,19 @@ export namespace contactcenterinsights_v1 { */ export interface Schema$GoogleCloudContactcenterinsightsV1mainDiagnoseConversationsResponse { /** - * Output only. The final, high-level answer or diagnostic summary returned by the Sherlock worker. + * Output only. Deprecated: Output only. The final, high-level answer or diagnostic summary returned by the Sherlock worker is deprecated. The persistent analysis summary is stored inside the Diagnostic resource instead. */ answer?: string | null; /** - * Output only. If an external destination was requested, the URI of the exported data. + * Output only. Deprecated: Output only. If an external destination was requested, the URI of the exported data is deprecated. The persistent diagnostic details are stored inside the Diagnostic resource instead. */ exportUri?: string | null; /** - * Output only. Deprecated: Use full_trajectory_steps instead. The complete sequence of thoughts and actions (full trajectory). + * Output only. Deprecated: Use full_trajectory_steps instead. Output only. The complete sequence of thoughts and actions (full trajectory). */ fullTrajectories?: string[] | null; /** - * Output only. The complete sequence of thoughts and actions taken by the agent. + * Output only. Deprecated: Output only. The complete sequence of thoughts and actions taken by the agent is deprecated under LRO response completions. Use the persistent details inside the Diagnostic resource instead. */ fullTrajectorySteps?: Schema$GoogleCloudContactcenterinsightsV1mainSherlockStep[]; } @@ -8850,7 +9292,15 @@ export namespace contactcenterinsights_v1 { */ export interface Schema$GoogleCloudContactcenterinsightsV1mainDiagnosticReport { /** - * Output only. A breakdown of metrics grouped by intent. + * Output only. A map of conversation slices used in the report. + */ + conversationSlices?: { + [ + key: string + ]: Schema$GoogleCloudContactcenterinsightsV1mainDiagnosticReportConversationSlice; + } | null; + /** + * Output only. Deprecated: Intent breakdowns are no longer used. */ intentStats?: Schema$GoogleCloudContactcenterinsightsV1mainDiagnosticReportIntentStats[]; /** @@ -8863,6 +9313,19 @@ export namespace contactcenterinsights_v1 { metrics?: { [key: string]: Schema$GoogleCloudContactcenterinsightsV1mainMetricValue; } | null; + /** + * Output only. The final report in markdown format. + */ + report?: string | null; + } + /** + * Output only. A map of conversation slices used in the report. + */ + export interface Schema$GoogleCloudContactcenterinsightsV1mainDiagnosticReportConversationSlice { + /** + * The list of conversation IDs that match this slice. + */ + conversationIds?: string[] | null; } /** * A breakdown of metrics grouped by intent. @@ -10020,6 +10483,10 @@ export namespace contactcenterinsights_v1 { * Output only. The unique identifier for the loss pattern. */ id?: string | null; + /** + * Output only. A list of links to conversations or bot instructions. + */ + links?: Schema$GoogleCloudContactcenterinsightsV1mainLossPatternLink[]; /** * Output only. The percentage of conversations that match this loss pattern. */ @@ -10029,6 +10496,61 @@ export namespace contactcenterinsights_v1 { */ suggestedFixes?: string | null; } + /** + * A link to a conversation or bot instruction. + */ + export interface Schema$GoogleCloudContactcenterinsightsV1mainLossPatternLink { + /** + * A link to a bot instruction. + */ + botInstructionLink?: Schema$GoogleCloudContactcenterinsightsV1mainLossPatternLinkBotInstructionLink; + /** + * A link to a conversation. + */ + conversationLink?: Schema$GoogleCloudContactcenterinsightsV1mainLossPatternLinkConversationLink; + /** + * The end byte index of the highlighted text (exclusive). + */ + endByteIndex?: number | null; + /** + * The text that is highlighted. (populated for debugging purposes) + */ + highlightedText?: string | null; + /** + * The location type. + */ + locationType?: string | null; + /** + * The start byte index of the highlighted text (inclusive). + */ + startByteIndex?: number | null; + } + /** + * A link to a bot instruction. + */ + export interface Schema$GoogleCloudContactcenterinsightsV1mainLossPatternLinkBotInstructionLink { + /** + * The exclusive end line number of the instructions. + */ + endLine?: number | null; + /** + * The inclusive start line number of the instructions. + */ + startLine?: number | null; + /** + * The name of the subagent. + */ + subagent?: string | null; + } + /** + * A link to a conversation. + */ + export interface Schema$GoogleCloudContactcenterinsightsV1mainLossPatternLinkConversationLink { + /** + * The conversation ID. + */ + conversationId?: string | null; + } /** * Deprecated: MetricValue is no longer used for diagnostics. */ @@ -10889,19 +11411,35 @@ export namespace contactcenterinsights_v1 { */ export interface Schema$GoogleCloudContactcenterinsightsV1mainSherlockStep { /** - * Output only. Natural language input stimulus. + * Output only. The ID of the agent that produced/received this content. + */ + agentId?: string | null; + /** + * Output only. The content of the turn (either Model or User role). + */ + content?: Schema$GoogleCloudAiplatformV1Content; + /** + * Output only. List of state changes caused by this specific turn. + */ + stateDeltas?: Array<{[key: string]: any}> | null; + /** + * Output only. Unique ID for this specific turn. + */ + stepId?: string | null; + /** + * Output only. Deprecated: Use content instead. */ textInput?: string[] | null; /** - * Output only. The reasoning or internal monologue of the agent. + * Output only. Deprecated: Use content instead. */ thought?: string | null; /** - * Output only. The tool call issued by the agent. + * Output only. Deprecated: Use content instead. */ toolCalls?: Schema$GoogleCloudContactcenterinsightsV1mainToolCall[]; /** - * Output only. The output response from the tool execution. + * Output only. Deprecated: Use content instead. */ toolOutput?: {[key: string]: any} | null; } @@ -12286,6 +12824,10 @@ export namespace contactcenterinsights_v1 { * The redirect action to be taken when the chart is clicked. */ export interface Schema$GoogleCloudContactcenterinsightsV1RedirectAction { + /** + * The query params to be added to the redirect path. + */ + queryParams?: {[key: string]: string} | null; /** * The relative path to redirect to. */ @@ -12586,19 +13128,35 @@ export namespace contactcenterinsights_v1 { */ export interface Schema$GoogleCloudContactcenterinsightsV1SherlockStep { /** - * Output only. Natural language input stimulus. + * Output only. The ID of the agent that produced/received this content. + */ + agentId?: string | null; + /** + * Output only. The content of the turn (either Model or User role). + */ + content?: Schema$GoogleCloudAiplatformV1Content; + /** + * Output only. List of state changes caused by this specific turn. + */ + stateDeltas?: Array<{[key: string]: any}> | null; + /** + * Output only. Unique ID for this specific turn. + */ + stepId?: string | null; + /** + * Output only. Deprecated: Use content instead. */ textInput?: string[] | null; /** - * Output only. The reasoning or internal monologue of the agent. + * Output only. Deprecated: Use content instead. */ thought?: string | null; /** - * Output only. The tool call issued by the agent. + * Output only. Deprecated: Use content instead. */ toolCalls?: Schema$GoogleCloudContactcenterinsightsV1ToolCall[]; /** - * Output only. The output response from the tool execution. + * Output only. Deprecated: Use content instead. */ toolOutput?: {[key: string]: any} | null; } From 15d963b644de7c92aa519b9f50ec0b0ad2c6e7bb Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Thu, 14 May 2026 01:45:57 +0000 Subject: [PATCH 04/16] feat(dataplex): update the API #### dataplex:v1 The following keys were added: - schemas.GoogleCloudDataplexV1LookupContextRequest.properties.context.description - schemas.GoogleCloudDataplexV1LookupContextRequest.properties.context.type The following keys were changed: - resources.projects.resources.locations.resources.dataScans.methods.create.parameters.dataScanId.description --- discovery/dataplex-v1.json | 8 ++++++-- src/apis/dataplex/v1.ts | 9 +++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/discovery/dataplex-v1.json b/discovery/dataplex-v1.json index cc01f70e68..54e29ec1db 100644 --- a/discovery/dataplex-v1.json +++ b/discovery/dataplex-v1.json @@ -2341,7 +2341,7 @@ ], "parameters": { "dataScanId": { - "description": "Required. DataScan identifier. Must contain only lowercase letters, numbers and hyphens. Must start with a letter. Must end with a number or a letter. Must be between 1-63 characters. Must be unique within the customer project / location.", + "description": "Optional. DataScan identifier. If not provided, a unique ID will be generated with the prefix \"data-scan-\". Must contain only lowercase letters, numbers and hyphens. Must start with a letter. Must end with a number or a letter. Must be between 1-63 characters. Must be unique within the customer project / location.", "location": "query", "type": "string" }, @@ -7490,7 +7490,7 @@ } } }, - "revision": "20260428", + "revision": "20260504", "rootUrl": "https://dataplex.googleapis.com/", "schemas": { "Empty": { @@ -13219,6 +13219,10 @@ "description": "Lookup Context using permissions in the source system.", "id": "GoogleCloudDataplexV1LookupContextRequest", "properties": { + "context": { + "description": "Optional. The text representing contextual information for which metadata context is being requested.", + "type": "string" + }, "options": { "additionalProperties": { "type": "string" diff --git a/src/apis/dataplex/v1.ts b/src/apis/dataplex/v1.ts index a5a14910b9..316044e1a2 100644 --- a/src/apis/dataplex/v1.ts +++ b/src/apis/dataplex/v1.ts @@ -4037,6 +4037,10 @@ export namespace dataplex_v1 { * Lookup Context using permissions in the source system. */ export interface Schema$GoogleCloudDataplexV1LookupContextRequest { + /** + * Optional. The text representing contextual information for which metadata context is being requested. + */ + context?: string | null; /** * Optional. Allows to configure the context.Supported options: format - The format of the context (one of yaml, xml, json, default is yaml). context_budget - If provided, the output will be intelligently truncated on a best-effort basis to contain approximately the desired amount of characters. There is no guarantee to achieve the specific amount. */ @@ -7828,6 +7832,7 @@ export namespace dataplex_v1 { * requestBody: { * // request body parameters * // { + * // "context": "my_context", * // "options": {}, * // "resources": [] * // } @@ -14844,7 +14849,7 @@ export namespace dataplex_v1 { * * // Do the magic * const res = await dataplex.projects.locations.dataScans.create({ - * // Required. DataScan identifier. Must contain only lowercase letters, numbers and hyphens. Must start with a letter. Must end with a number or a letter. Must be between 1-63 characters. Must be unique within the customer project / location. + * // Optional. DataScan identifier. If not provided, a unique ID will be generated with the prefix "data-scan-". Must contain only lowercase letters, numbers and hyphens. Must start with a letter. Must end with a number or a letter. Must be between 1-63 characters. Must be unique within the customer project / location. * dataScanId: 'placeholder-value', * // Required. The resource name of the parent location: projects/{project\}/locations/{location_id\} where project refers to a project_id or project_number and location_id refers to a Google Cloud region. * parent: 'projects/my-project/locations/my-location', @@ -16419,7 +16424,7 @@ export namespace dataplex_v1 { export interface Params$Resource$Projects$Locations$Datascans$Create extends StandardParameters { /** - * Required. DataScan identifier. Must contain only lowercase letters, numbers and hyphens. Must start with a letter. Must end with a number or a letter. Must be between 1-63 characters. Must be unique within the customer project / location. + * Optional. DataScan identifier. If not provided, a unique ID will be generated with the prefix "data-scan-". Must contain only lowercase letters, numbers and hyphens. Must start with a letter. Must end with a number or a letter. Must be between 1-63 characters. Must be unique within the customer project / location. */ dataScanId?: string; /** From 63e2ee1e1d2cdf6af22200062dadd3a90171f1c8 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Thu, 14 May 2026 01:45:57 +0000 Subject: [PATCH 05/16] feat(firebaseappdistribution): update the API #### firebaseappdistribution:v1 The following keys were added: - schemas.GdataMedia.properties.sha512Hash.description - schemas.GdataMedia.properties.sha512Hash.format - schemas.GdataMedia.properties.sha512Hash.type --- discovery/firebaseappdistribution-v1.json | 7 ++++++- src/apis/firebaseappdistribution/v1.ts | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/discovery/firebaseappdistribution-v1.json b/discovery/firebaseappdistribution-v1.json index edfeb5565b..968255a50e 100644 --- a/discovery/firebaseappdistribution-v1.json +++ b/discovery/firebaseappdistribution-v1.json @@ -946,7 +946,7 @@ } } }, - "revision": "20260430", + "revision": "20260511", "rootUrl": "https://firebaseappdistribution.googleapis.com/", "schemas": { "GdataBlobstore2Info": { @@ -1366,6 +1366,11 @@ "format": "byte", "type": "string" }, + "sha512Hash": { + "description": "Scotty-provided SHA512 hash for an upload.", + "format": "byte", + "type": "string" + }, "timestamp": { "description": "Time at which the media data was last updated, in milliseconds since UNIX epoch", "format": "uint64", diff --git a/src/apis/firebaseappdistribution/v1.ts b/src/apis/firebaseappdistribution/v1.ts index 714b1ab095..28be754874 100644 --- a/src/apis/firebaseappdistribution/v1.ts +++ b/src/apis/firebaseappdistribution/v1.ts @@ -447,6 +447,10 @@ export namespace firebaseappdistribution_v1 { * Scotty-provided SHA256 hash for an upload. */ sha256Hash?: string | null; + /** + * Scotty-provided SHA512 hash for an upload. + */ + sha512Hash?: string | null; /** * Time at which the media data was last updated, in milliseconds since UNIX epoch */ From c3f1e1b671dd9cb82e494522fb3018c7fd6a64bd Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Thu, 14 May 2026 01:45:57 +0000 Subject: [PATCH 06/16] fix(firebaseapphosting): update the API #### firebaseapphosting:v1beta The following keys were changed: - schemas.RolloutPolicy.properties.requiredPaths.description #### firebaseapphosting:v1 The following keys were changed: - schemas.RolloutPolicy.properties.requiredPaths.description --- discovery/firebaseapphosting-v1.json | 4 ++-- discovery/firebaseapphosting-v1beta.json | 4 ++-- src/apis/firebaseapphosting/v1.ts | 2 +- src/apis/firebaseapphosting/v1beta.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/discovery/firebaseapphosting-v1.json b/discovery/firebaseapphosting-v1.json index aa4ebf9b13..a7e5665b25 100644 --- a/discovery/firebaseapphosting-v1.json +++ b/discovery/firebaseapphosting-v1.json @@ -1106,7 +1106,7 @@ } } }, - "revision": "20260423", + "revision": "20260506", "rootUrl": "https://firebaseapphosting.googleapis.com/", "schemas": { "ArchiveSource": { @@ -2559,7 +2559,7 @@ "type": "array" }, "requiredPaths": { - "description": "Optional. A list of file paths patterns that trigger a build and rollout if at least one of the changed files in the commit are present in this list. This field is optional; the rollout policy will default to triggering on all paths if not populated. Limited to 100 paths. Example: “required_paths: { pattern: \"foo/bar/*” type: GLOB }", + "description": "Optional. A list of file paths patterns that trigger a build and rollout if at least one of the changed files in the commit are present in this list. This field is optional; the rollout policy will default to triggering on all paths if both ignored_paths and required_paths are not populated. Limited to 100 paths. Example: “required_paths: { pattern: \"foo/bar/*” type: GLOB }", "items": { "$ref": "Path" }, diff --git a/discovery/firebaseapphosting-v1beta.json b/discovery/firebaseapphosting-v1beta.json index 95418de4b4..33c1c6cc40 100644 --- a/discovery/firebaseapphosting-v1beta.json +++ b/discovery/firebaseapphosting-v1beta.json @@ -1138,7 +1138,7 @@ } } }, - "revision": "20260427", + "revision": "20260506", "rootUrl": "https://firebaseapphosting.googleapis.com/", "schemas": { "ArchiveSource": { @@ -2634,7 +2634,7 @@ "type": "array" }, "requiredPaths": { - "description": "Optional. A list of file paths patterns that trigger a build and rollout if at least one of the changed files in the commit are present in this list. This field is optional; the rollout policy will default to triggering on all paths if not populated. Limited to 100 paths. Example: “required_paths: { pattern: \"foo/bar/*” type: GLOB }", + "description": "Optional. A list of file paths patterns that trigger a build and rollout if at least one of the changed files in the commit are present in this list. This field is optional; the rollout policy will default to triggering on all paths if both ignored_paths and required_paths are not populated. Limited to 100 paths. Example: “required_paths: { pattern: \"foo/bar/*” type: GLOB }", "items": { "$ref": "Path" }, diff --git a/src/apis/firebaseapphosting/v1.ts b/src/apis/firebaseapphosting/v1.ts index a5278a87d9..c2e5f26574 100644 --- a/src/apis/firebaseapphosting/v1.ts +++ b/src/apis/firebaseapphosting/v1.ts @@ -984,7 +984,7 @@ export namespace firebaseapphosting_v1 { */ ignoredPaths?: Schema$Path[]; /** - * Optional. A list of file paths patterns that trigger a build and rollout if at least one of the changed files in the commit are present in this list. This field is optional; the rollout policy will default to triggering on all paths if not populated. Limited to 100 paths. Example: “required_paths: { pattern: "foo/bar/x” type: GLOB \} + * Optional. A list of file paths patterns that trigger a build and rollout if at least one of the changed files in the commit are present in this list. This field is optional; the rollout policy will default to triggering on all paths if both ignored_paths and required_paths are not populated. Limited to 100 paths. Example: “required_paths: { pattern: "foo/bar/x” type: GLOB \} */ requiredPaths?: Schema$Path[]; } diff --git a/src/apis/firebaseapphosting/v1beta.ts b/src/apis/firebaseapphosting/v1beta.ts index 0538c9094d..47262d909b 100644 --- a/src/apis/firebaseapphosting/v1beta.ts +++ b/src/apis/firebaseapphosting/v1beta.ts @@ -1005,7 +1005,7 @@ export namespace firebaseapphosting_v1beta { */ ignoredPaths?: Schema$Path[]; /** - * Optional. A list of file paths patterns that trigger a build and rollout if at least one of the changed files in the commit are present in this list. This field is optional; the rollout policy will default to triggering on all paths if not populated. Limited to 100 paths. Example: “required_paths: { pattern: "foo/bar/x” type: GLOB \} + * Optional. A list of file paths patterns that trigger a build and rollout if at least one of the changed files in the commit are present in this list. This field is optional; the rollout policy will default to triggering on all paths if both ignored_paths and required_paths are not populated. Limited to 100 paths. Example: “required_paths: { pattern: "foo/bar/x” type: GLOB \} */ requiredPaths?: Schema$Path[]; } From 50e252664683750412a9cf4e7eef15efa221bef9 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Thu, 14 May 2026 01:45:57 +0000 Subject: [PATCH 07/16] feat(firebaseml): update the API #### firebaseml:v2beta The following keys were added: - schemas.GoogleCloudAiplatformV1beta1FunctionDeclaration.properties.behavior.description - schemas.GoogleCloudAiplatformV1beta1FunctionDeclaration.properties.behavior.enum - schemas.GoogleCloudAiplatformV1beta1FunctionDeclaration.properties.behavior.enumDescriptions - schemas.GoogleCloudAiplatformV1beta1FunctionDeclaration.properties.behavior.type --- discovery/firebaseml-v2beta.json | 16 +++++++++++++++- src/apis/firebaseml/v2beta.ts | 4 ++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/discovery/firebaseml-v2beta.json b/discovery/firebaseml-v2beta.json index b0e856a8b7..a1f15936a6 100644 --- a/discovery/firebaseml-v2beta.json +++ b/discovery/firebaseml-v2beta.json @@ -206,7 +206,7 @@ } } }, - "revision": "20260408", + "revision": "20260510", "rootUrl": "https://firebaseml.googleapis.com/", "schemas": { "Date": { @@ -925,6 +925,20 @@ "description": "Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.", "id": "GoogleCloudAiplatformV1beta1FunctionDeclaration", "properties": { + "behavior": { + "description": "Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method.", + "enum": [ + "UNSPECIFIED", + "BLOCKING", + "NON_BLOCKING" + ], + "enumDescriptions": [ + "This value is unspecified.", + "If set, the system will wait to receive the function response before continuing the conversation.", + "If set, the system will not wait to receive the function response. Instead, it will attempt to handle function responses as they become available while maintaining the conversation between the user and the model." + ], + "type": "string" + }, "description": { "description": "Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function.", "type": "string" diff --git a/src/apis/firebaseml/v2beta.ts b/src/apis/firebaseml/v2beta.ts index 3a0eee6f0c..e63e50dd19 100644 --- a/src/apis/firebaseml/v2beta.ts +++ b/src/apis/firebaseml/v2beta.ts @@ -581,6 +581,10 @@ export namespace firebaseml_v2beta { * Structured representation of a function declaration as defined by the [OpenAPI 3.0 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name, description, parameters and response type. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client. */ export interface Schema$GoogleCloudAiplatformV1beta1FunctionDeclaration { + /** + * Optional. Specifies the function Behavior. If not specified, the system keeps the current function call behavior. This field is currently only supported by the BidiGenerateContent method. + */ + behavior?: string | null; /** * Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function. */ From 828032e29b57eb7d201423e87167e1764d791a90 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Thu, 14 May 2026 01:45:57 +0000 Subject: [PATCH 08/16] feat(homegraph): update the API #### homegraph:v1 The following keys were added: - schemas.DeviceMetadata.description - schemas.DeviceMetadata.id - schemas.DeviceMetadata.properties.traitCommitTimestamps.additionalProperties.format - schemas.DeviceMetadata.properties.traitCommitTimestamps.additionalProperties.type - schemas.DeviceMetadata.properties.traitCommitTimestamps.description - schemas.DeviceMetadata.properties.traitCommitTimestamps.type - schemas.DeviceMetadata.type - schemas.QueryRequest.properties.includeDeviceMetadata.description - schemas.QueryRequest.properties.includeDeviceMetadata.type - schemas.QueryResponsePayload.properties.deviceMetadata.additionalProperties.$ref - schemas.QueryResponsePayload.properties.deviceMetadata.description - schemas.QueryResponsePayload.properties.deviceMetadata.type --- discovery/homegraph-v1.json | 28 +++++++++++++++++++++++++++- src/apis/homegraph/v1.ts | 18 ++++++++++++++++++ 2 files changed, 45 insertions(+), 1 deletion(-) diff --git a/discovery/homegraph-v1.json b/discovery/homegraph-v1.json index aee9d62d94..4325204b06 100644 --- a/discovery/homegraph-v1.json +++ b/discovery/homegraph-v1.json @@ -216,7 +216,7 @@ } } }, - "revision": "20260414", + "revision": "20260508", "rootUrl": "https://homegraph.googleapis.com/", "schemas": { "AgentDeviceId": { @@ -355,6 +355,21 @@ }, "type": "object" }, + "DeviceMetadata": { + "description": "Metadata for traits of a single device.", + "id": "DeviceMetadata", + "properties": { + "traitCommitTimestamps": { + "additionalProperties": { + "format": "google-datetime", + "type": "string" + }, + "description": "Map from the Trait ID (e.g., \"action.devices.traits.OnOff\") to its last Spanner commit timestamp.", + "type": "object" + } + }, + "type": "object" + }, "DeviceNames": { "description": "Identifiers used to describe the device.", "id": "DeviceNames", @@ -472,6 +487,10 @@ "description": "Required. Third-party user ID.", "type": "string" }, + "includeDeviceMetadata": { + "description": "Optional. If true, the response will include device metadata in the device_metadata field.", + "type": "boolean" + }, "inputs": { "description": "Required. Inputs containing third-party device IDs for which to get the device states.", "items": { @@ -530,6 +549,13 @@ "description": "Payload containing device states information.", "id": "QueryResponsePayload", "properties": { + "deviceMetadata": { + "additionalProperties": { + "$ref": "DeviceMetadata" + }, + "description": "Map from the Trait ID (e.g., \"action.devices.traits.OnOff\") to its last Spanner commit timestamp. If a trait has no recorded timestamp, it will be omitted from this map.", + "type": "object" + }, "devices": { "additionalProperties": { "additionalProperties": { diff --git a/src/apis/homegraph/v1.ts b/src/apis/homegraph/v1.ts index adee962687..29d83242ed 100644 --- a/src/apis/homegraph/v1.ts +++ b/src/apis/homegraph/v1.ts @@ -235,6 +235,15 @@ export namespace homegraph_v1 { */ swVersion?: string | null; } + /** + * Metadata for traits of a single device. + */ + export interface Schema$DeviceMetadata { + /** + * Map from the Trait ID (e.g., "action.devices.traits.OnOff") to its last Spanner commit timestamp. + */ + traitCommitTimestamps?: {[key: string]: string} | null; + } /** * Identifiers used to describe the device. */ @@ -320,6 +329,10 @@ export namespace homegraph_v1 { * Required. Third-party user ID. */ agentUserId?: string | null; + /** + * Optional. If true, the response will include device metadata in the device_metadata field. + */ + includeDeviceMetadata?: boolean | null; /** * Required. Inputs containing third-party device IDs for which to get the device states. */ @@ -364,6 +377,10 @@ export namespace homegraph_v1 { * Payload containing device states information. */ export interface Schema$QueryResponsePayload { + /** + * Map from the Trait ID (e.g., "action.devices.traits.OnOff") to its last Spanner commit timestamp. If a trait has no recorded timestamp, it will be omitted from this map. + */ + deviceMetadata?: {[key: string]: Schema$DeviceMetadata} | null; /** * States of the devices. Map of third-party device ID to struct of device states. */ @@ -693,6 +710,7 @@ export namespace homegraph_v1 { * // request body parameters * // { * // "agentUserId": "my_agentUserId", + * // "includeDeviceMetadata": false, * // "inputs": [], * // "requestId": "my_requestId" * // } From 2cab0a80d38a1ab285dd8b5e22b2de00972e50d8 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Thu, 14 May 2026 01:45:57 +0000 Subject: [PATCH 09/16] fix(managedidentities): update the API #### managedidentities:v1 The following keys were changed: - resources.projects.resources.locations.methods.list.parameters.extraLocationTypes.description --- discovery/managedidentities-v1.json | 4 ++-- src/apis/managedidentities/v1.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/discovery/managedidentities-v1.json b/discovery/managedidentities-v1.json index e5f8607d13..3afb7a4f00 100644 --- a/discovery/managedidentities-v1.json +++ b/discovery/managedidentities-v1.json @@ -144,7 +144,7 @@ ], "parameters": { "extraLocationTypes": { - "description": "Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.", + "description": "Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.", "location": "query", "repeated": true, "type": "string" @@ -1526,7 +1526,7 @@ } } }, - "revision": "20260414", + "revision": "20260424", "rootUrl": "https://managedidentities.googleapis.com/", "schemas": { "AttachTrustRequest": { diff --git a/src/apis/managedidentities/v1.ts b/src/apis/managedidentities/v1.ts index a0d97ebd7a..2b49b2f19e 100644 --- a/src/apis/managedidentities/v1.ts +++ b/src/apis/managedidentities/v1.ts @@ -1469,7 +1469,7 @@ export namespace managedidentities_v1 { * * // Do the magic * const res = await managedidentities.projects.locations.list({ - * // Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage. + * // Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. * extraLocationTypes: 'placeholder-value', * // A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). * filter: 'placeholder-value', @@ -1596,7 +1596,7 @@ export namespace managedidentities_v1 { } export interface Params$Resource$Projects$Locations$List extends StandardParameters { /** - * Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage. + * Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. */ extraLocationTypes?: string[]; /** From 03b1bbd72ecd19401764efa5dbc1c20d6c8bc848 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Thu, 14 May 2026 01:45:57 +0000 Subject: [PATCH 10/16] feat(merchantapi): update the API #### merchantapi:products_v1 The following keys were added: - schemas.PickupCost.description - schemas.PickupCost.id - schemas.PickupCost.properties.flatRate.$ref - schemas.PickupCost.properties.flatRate.description - schemas.PickupCost.properties.freeThreshold.$ref - schemas.PickupCost.properties.freeThreshold.description - schemas.PickupCost.type - schemas.ProductAttributes.properties.pickupCost.$ref - schemas.ProductAttributes.properties.pickupCost.description --- discovery/merchantapi-products_v1.json | 21 ++++++++++++++++++++- src/apis/merchantapi/products_v1.ts | 17 +++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/discovery/merchantapi-products_v1.json b/discovery/merchantapi-products_v1.json index 17adcfe76c..fb229f643b 100644 --- a/discovery/merchantapi-products_v1.json +++ b/discovery/merchantapi-products_v1.json @@ -281,7 +281,7 @@ } } }, - "revision": "20260501", + "revision": "20260510", "rootUrl": "https://merchantapi.googleapis.com/", "schemas": { "AutomatedDiscounts": { @@ -1111,6 +1111,21 @@ }, "type": "object" }, + "PickupCost": { + "description": "The pickup cost of the item.", + "id": "PickupCost", + "properties": { + "flatRate": { + "$ref": "Price", + "description": "Required. The flat rate pickup cost of the item." + }, + "freeThreshold": { + "$ref": "Price", + "description": "Optional. The price threshold above which pickup is free of charge." + } + }, + "type": "object" + }, "Price": { "description": "The price represented as a number and currency.", "id": "Price", @@ -1872,6 +1887,10 @@ ], "type": "string" }, + "pickupCost": { + "$ref": "PickupCost", + "description": "Optional. The [pickup cost](https://support.google.com/merchants/answer/16988704) for an item when a customer buys it online and picks it up at a store." + }, "pickupMethod": { "description": "The [pickup](https://support.google.com/merchants/answer/14634021) option for the item.", "enum": [ diff --git a/src/apis/merchantapi/products_v1.ts b/src/apis/merchantapi/products_v1.ts index 8558da8a92..ef3d5e7ee2 100644 --- a/src/apis/merchantapi/products_v1.ts +++ b/src/apis/merchantapi/products_v1.ts @@ -480,6 +480,19 @@ export namespace merchantapi_products_v1 { */ value?: string | null; } + /** + * The pickup cost of the item. + */ + export interface Schema$PickupCost { + /** + * Required. The flat rate pickup cost of the item. + */ + flatRate?: Schema$Price; + /** + * Optional. The price threshold above which pickup is free of charge. + */ + freeThreshold?: Schema$Price; + } /** * The price represented as a number and currency. */ @@ -846,6 +859,10 @@ export namespace merchantapi_products_v1 { * Publication of this item will be temporarily [paused](https://support.google.com/merchants/answer/11909930). */ pause?: string | null; + /** + * Optional. The [pickup cost](https://support.google.com/merchants/answer/16988704) for an item when a customer buys it online and picks it up at a store. + */ + pickupCost?: Schema$PickupCost; /** * The [pickup](https://support.google.com/merchants/answer/14634021) option for the item. */ From f069dd01356c0e72463774253b3c4cdb54cee52a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Thu, 14 May 2026 01:45:57 +0000 Subject: [PATCH 11/16] feat(networkmanagement): update the API #### networkmanagement:v1beta1 The following keys were added: - schemas.Endpoint.properties.cloudRunJob.description - schemas.Endpoint.properties.cloudRunJob.type The following keys were changed: - schemas.DropInfo.properties.cause.enum - schemas.DropInfo.properties.cause.enumDescriptions #### networkmanagement:v1 The following keys were changed: - schemas.DropInfo.properties.cause.enum - schemas.DropInfo.properties.cause.enumDescriptions --- discovery/networkmanagement-v1.json | 4 +++- discovery/networkmanagement-v1beta1.json | 8 +++++++- src/apis/networkmanagement/v1beta1.ts | 4 ++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/discovery/networkmanagement-v1.json b/discovery/networkmanagement-v1.json index 6beedf19a4..4db1904870 100644 --- a/discovery/networkmanagement-v1.json +++ b/discovery/networkmanagement-v1.json @@ -1237,7 +1237,7 @@ } } }, - "revision": "20260424", + "revision": "20260506", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -1853,6 +1853,7 @@ "FORWARDING_RULE_MISMATCH", "FORWARDING_RULE_NO_INSTANCES", "FIREWALL_BLOCKING_LOAD_BALANCER_BACKEND_HEALTH_CHECK", + "FIREWALL_BLOCKING_LOAD_BALANCER_ENVOY_PROXY_HEALTH_CHECK", "INGRESS_FIREWALL_TAGS_UNSUPPORTED_BY_DIRECT_VPC_EGRESS", "INSTANCE_NOT_RUNNING", "GKE_CLUSTER_NOT_RUNNING", @@ -1961,6 +1962,7 @@ "Forwarding rule's protocol and ports do not match the packet header.", "Forwarding rule does not have backends configured.", "Firewalls block the health check probes to the backends and cause the backends to be unavailable for traffic from the load balancer. For more details, see [Health check firewall rules](https://cloud.google.com/load-balancing/docs/health-checks#firewall_rules).", + "Firewalls block health check probes to the Envoy proxies that power this load balancer.", "Matching ingress firewall rules by network tags for packets sent via serverless VPC direct egress is unsupported. Behavior is undefined. https://cloud.google.com/run/docs/configuring/vpc-direct-vpc#limitations", "Packet is sent from or to a Compute Engine instance that is not in a running state.", "Packet sent from or to a GKE cluster that is not in running state.", diff --git a/discovery/networkmanagement-v1beta1.json b/discovery/networkmanagement-v1beta1.json index 6b35f50b0b..97ad3a1110 100644 --- a/discovery/networkmanagement-v1beta1.json +++ b/discovery/networkmanagement-v1beta1.json @@ -1237,7 +1237,7 @@ } } }, - "revision": "20260424", + "revision": "20260506", "rootUrl": "https://networkmanagement.googleapis.com/", "schemas": { "AbortInfo": { @@ -1853,6 +1853,7 @@ "FORWARDING_RULE_MISMATCH", "FORWARDING_RULE_NO_INSTANCES", "FIREWALL_BLOCKING_LOAD_BALANCER_BACKEND_HEALTH_CHECK", + "FIREWALL_BLOCKING_LOAD_BALANCER_ENVOY_PROXY_HEALTH_CHECK", "INGRESS_FIREWALL_TAGS_UNSUPPORTED_BY_DIRECT_VPC_EGRESS", "INSTANCE_NOT_RUNNING", "GKE_CLUSTER_NOT_RUNNING", @@ -1961,6 +1962,7 @@ "Forwarding rule's protocol and ports do not match the packet header.", "Forwarding rule does not have backends configured.", "Firewalls block the health check probes to the backends and cause the backends to be unavailable for traffic from the load balancer. For more details, see [Health check firewall rules](https://cloud.google.com/load-balancing/docs/health-checks#firewall_rules).", + "Firewalls block health check probes to the Envoy proxies that power this load balancer.", "Matching ingress firewall rules by network tags for packets sent via serverless VPC direct egress is unsupported. Behavior is undefined. https://cloud.google.com/run/docs/configuring/vpc-direct-vpc#limitations", "Packet is sent from or to a Compute Engine instance that is not in a running state.", "Packet sent from or to a GKE cluster that is not in running state.", @@ -2230,6 +2232,10 @@ "$ref": "CloudFunctionEndpoint", "description": "A [Cloud Function](https://cloud.google.com/functions). Applicable only to source endpoint." }, + "cloudRunJob": { + "description": "A [Cloud Run](https://cloud.google.com/run) [job](https://docs.cloud.google.com/run/docs/reference/rest/v2/projects.locations.jobs#Job) URI. Applicable only to source endpoint. The format is: projects/{project}/locations/{location}/jobs/{job}", + "type": "string" + }, "cloudRunRevision": { "$ref": "CloudRunRevisionEndpoint", "description": "A [Cloud Run](https://cloud.google.com/run) [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) Applicable only to source endpoint." diff --git a/src/apis/networkmanagement/v1beta1.ts b/src/apis/networkmanagement/v1beta1.ts index c217e9f5cf..d5c53c12f7 100644 --- a/src/apis/networkmanagement/v1beta1.ts +++ b/src/apis/networkmanagement/v1beta1.ts @@ -551,6 +551,10 @@ export namespace networkmanagement_v1beta1 { * A [Cloud Function](https://cloud.google.com/functions). Applicable only to source endpoint. */ cloudFunction?: Schema$CloudFunctionEndpoint; + /** + * A [Cloud Run](https://cloud.google.com/run) [job](https://docs.cloud.google.com/run/docs/reference/rest/v2/projects.locations.jobs#Job) URI. Applicable only to source endpoint. The format is: projects/{project\}/locations/{location\}/jobs/{job\} + */ + cloudRunJob?: string | null; /** * A [Cloud Run](https://cloud.google.com/run) [revision](https://cloud.google.com/run/docs/reference/rest/v1/namespaces.revisions/get) Applicable only to source endpoint. */ From 1b426a418d86d515f20b9bacbc9f61beff20e23f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Thu, 14 May 2026 01:45:57 +0000 Subject: [PATCH 12/16] fix(retail): update the API #### retail:v2alpha The following keys were changed: - resources.projects.resources.locations.resources.catalogs.methods.patch.parameters.updateMask.description - resources.projects.resources.locations.resources.catalogs.methods.updateAttributesConfig.parameters.updateMask.description - resources.projects.resources.locations.resources.catalogs.methods.updateCompletionConfig.parameters.updateMask.description - schemas.GoogleCloudRetailV2alphaReplaceCatalogAttributeRequest.properties.updateMask.description #### retail:v2beta The following keys were changed: - resources.projects.resources.locations.resources.catalogs.methods.patch.parameters.updateMask.description - resources.projects.resources.locations.resources.catalogs.methods.updateAttributesConfig.parameters.updateMask.description - resources.projects.resources.locations.resources.catalogs.methods.updateCompletionConfig.parameters.updateMask.description - schemas.GoogleCloudRetailV2betaReplaceCatalogAttributeRequest.properties.updateMask.description #### retail:v2 The following keys were changed: - resources.projects.resources.locations.resources.catalogs.methods.patch.parameters.updateMask.description - resources.projects.resources.locations.resources.catalogs.methods.updateAttributesConfig.parameters.updateMask.description - resources.projects.resources.locations.resources.catalogs.methods.updateCompletionConfig.parameters.updateMask.description - schemas.GoogleCloudRetailV2ReplaceCatalogAttributeRequest.properties.updateMask.description --- discovery/retail-v2.json | 10 +++++----- discovery/retail-v2alpha.json | 10 +++++----- discovery/retail-v2beta.json | 10 +++++----- src/apis/retail/v2.ts | 14 +++++++------- src/apis/retail/v2alpha.ts | 14 +++++++------- src/apis/retail/v2beta.ts | 14 +++++++------- 6 files changed, 36 insertions(+), 36 deletions(-) diff --git a/discovery/retail-v2.json b/discovery/retail-v2.json index 6bf97bd066..5b07750669 100644 --- a/discovery/retail-v2.json +++ b/discovery/retail-v2.json @@ -384,7 +384,7 @@ "type": "string" }, "updateMask": { - "description": "Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.", + "description": "Optional. Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -446,7 +446,7 @@ "type": "string" }, "updateMask": { - "description": "Indicates which fields in the provided AttributesConfig to update. The following is the only supported field: * AttributesConfig.catalog_attributes If not set, all supported fields are updated.", + "description": "Optional. Indicates which fields in the provided AttributesConfig to update. The following is the only supported field: * AttributesConfig.catalog_attributes If not set, all supported fields are updated.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -480,7 +480,7 @@ "type": "string" }, "updateMask": { - "description": "Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields: * CompletionConfig.matching_order * CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length * CompletionConfig.auto_learning If not set, all supported fields are updated.", + "description": "Optional. Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields: * CompletionConfig.matching_order * CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length * CompletionConfig.auto_learning If not set, all supported fields are updated.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -2353,7 +2353,7 @@ } } }, - "revision": "20260423", + "revision": "20260507", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -5403,7 +5403,7 @@ "description": "Required. The updated CatalogAttribute." }, "updateMask": { - "description": "Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported: * CatalogAttribute.key If not set, all supported fields are updated.", + "description": "Optional. Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported: * CatalogAttribute.key If not set, all supported fields are updated.", "format": "google-fieldmask", "type": "string" } diff --git a/discovery/retail-v2alpha.json b/discovery/retail-v2alpha.json index 41fe295ca7..f8e84fbc36 100644 --- a/discovery/retail-v2alpha.json +++ b/discovery/retail-v2alpha.json @@ -582,7 +582,7 @@ "type": "string" }, "updateMask": { - "description": "Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.", + "description": "Optional. Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -644,7 +644,7 @@ "type": "string" }, "updateMask": { - "description": "Indicates which fields in the provided AttributesConfig to update. The following is the only supported field: * AttributesConfig.catalog_attributes If not set, all supported fields are updated.", + "description": "Optional. Indicates which fields in the provided AttributesConfig to update. The following is the only supported field: * AttributesConfig.catalog_attributes If not set, all supported fields are updated.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -678,7 +678,7 @@ "type": "string" }, "updateMask": { - "description": "Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields: * CompletionConfig.matching_order * CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length * CompletionConfig.auto_learning If not set, all supported fields are updated.", + "description": "Optional. Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields: * CompletionConfig.matching_order * CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length * CompletionConfig.auto_learning If not set, all supported fields are updated.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -2874,7 +2874,7 @@ } } }, - "revision": "20260423", + "revision": "20260507", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -7283,7 +7283,7 @@ "description": "Required. The updated CatalogAttribute." }, "updateMask": { - "description": "Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported: * CatalogAttribute.key If not set, all supported fields are updated.", + "description": "Optional. Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported: * CatalogAttribute.key If not set, all supported fields are updated.", "format": "google-fieldmask", "type": "string" } diff --git a/discovery/retail-v2beta.json b/discovery/retail-v2beta.json index 71df9a58b8..f35d7887f4 100644 --- a/discovery/retail-v2beta.json +++ b/discovery/retail-v2beta.json @@ -445,7 +445,7 @@ "type": "string" }, "updateMask": { - "description": "Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.", + "description": "Optional. Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -507,7 +507,7 @@ "type": "string" }, "updateMask": { - "description": "Indicates which fields in the provided AttributesConfig to update. The following is the only supported field: * AttributesConfig.catalog_attributes If not set, all supported fields are updated.", + "description": "Optional. Indicates which fields in the provided AttributesConfig to update. The following is the only supported field: * AttributesConfig.catalog_attributes If not set, all supported fields are updated.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -541,7 +541,7 @@ "type": "string" }, "updateMask": { - "description": "Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields: * CompletionConfig.matching_order * CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length * CompletionConfig.auto_learning If not set, all supported fields are updated.", + "description": "Optional. Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields: * CompletionConfig.matching_order * CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length * CompletionConfig.auto_learning If not set, all supported fields are updated.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -2498,7 +2498,7 @@ } } }, - "revision": "20260423", + "revision": "20260507", "rootUrl": "https://retail.googleapis.com/", "schemas": { "GoogleApiHttpBody": { @@ -7213,7 +7213,7 @@ "description": "Required. The updated CatalogAttribute." }, "updateMask": { - "description": "Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported: * CatalogAttribute.key If not set, all supported fields are updated.", + "description": "Optional. Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported: * CatalogAttribute.key If not set, all supported fields are updated.", "format": "google-fieldmask", "type": "string" } diff --git a/src/apis/retail/v2.ts b/src/apis/retail/v2.ts index bdc197a3ed..c72fc968ae 100644 --- a/src/apis/retail/v2.ts +++ b/src/apis/retail/v2.ts @@ -3295,7 +3295,7 @@ export namespace retail_v2 { */ catalogAttribute?: Schema$GoogleCloudRetailV2CatalogAttribute; /** - * Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported: * CatalogAttribute.key If not set, all supported fields are updated. + * Optional. Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported: * CatalogAttribute.key If not set, all supported fields are updated. */ updateMask?: string | null; } @@ -5775,7 +5775,7 @@ export namespace retail_v2 { * const res = await retail.projects.locations.catalogs.patch({ * // Required. Immutable. The fully qualified resource name of the catalog. * name: 'projects/my-project/locations/my-location/catalogs/my-catalog', - * // Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. + * // Optional. Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. * updateMask: 'placeholder-value', * * // Request body metadata @@ -6075,7 +6075,7 @@ export namespace retail_v2 { * const res = await retail.projects.locations.catalogs.updateAttributesConfig({ * // Required. Immutable. The fully qualified resource name of the attribute config. Format: `projects/x/locations/x/catalogs/x/attributesConfig` * name: 'projects/my-project/locations/my-location/catalogs/my-catalog/attributesConfig', - * // Indicates which fields in the provided AttributesConfig to update. The following is the only supported field: * AttributesConfig.catalog_attributes If not set, all supported fields are updated. + * // Optional. Indicates which fields in the provided AttributesConfig to update. The following is the only supported field: * AttributesConfig.catalog_attributes If not set, all supported fields are updated. * updateMask: 'placeholder-value', * * // Request body metadata @@ -6234,7 +6234,7 @@ export namespace retail_v2 { * const res = await retail.projects.locations.catalogs.updateCompletionConfig({ * // Required. Immutable. Fully qualified name `projects/x/locations/x/catalogs/x/completionConfig` * name: 'projects/my-project/locations/my-location/catalogs/my-catalog/completionConfig', - * // Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields: * CompletionConfig.matching_order * CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length * CompletionConfig.auto_learning If not set, all supported fields are updated. + * // Optional. Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields: * CompletionConfig.matching_order * CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length * CompletionConfig.auto_learning If not set, all supported fields are updated. * updateMask: 'placeholder-value', * * // Request body metadata @@ -6976,7 +6976,7 @@ export namespace retail_v2 { */ name?: string; /** - * Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. + * Optional. Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. */ updateMask?: string; @@ -7002,7 +7002,7 @@ export namespace retail_v2 { */ name?: string; /** - * Indicates which fields in the provided AttributesConfig to update. The following is the only supported field: * AttributesConfig.catalog_attributes If not set, all supported fields are updated. + * Optional. Indicates which fields in the provided AttributesConfig to update. The following is the only supported field: * AttributesConfig.catalog_attributes If not set, all supported fields are updated. */ updateMask?: string; @@ -7017,7 +7017,7 @@ export namespace retail_v2 { */ name?: string; /** - * Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields: * CompletionConfig.matching_order * CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length * CompletionConfig.auto_learning If not set, all supported fields are updated. + * Optional. Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields: * CompletionConfig.matching_order * CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length * CompletionConfig.auto_learning If not set, all supported fields are updated. */ updateMask?: string; diff --git a/src/apis/retail/v2alpha.ts b/src/apis/retail/v2alpha.ts index c9b7a5061d..2686663d75 100644 --- a/src/apis/retail/v2alpha.ts +++ b/src/apis/retail/v2alpha.ts @@ -2845,7 +2845,7 @@ export namespace retail_v2alpha { */ catalogAttribute?: Schema$GoogleCloudRetailV2alphaCatalogAttribute; /** - * Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported: * CatalogAttribute.key If not set, all supported fields are updated. + * Optional. Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported: * CatalogAttribute.key If not set, all supported fields are updated. */ updateMask?: string | null; } @@ -7240,7 +7240,7 @@ export namespace retail_v2alpha { * const res = await retail.projects.locations.catalogs.patch({ * // Required. Immutable. The fully qualified resource name of the catalog. * name: 'projects/my-project/locations/my-location/catalogs/my-catalog', - * // Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. + * // Optional. Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. * updateMask: 'placeholder-value', * * // Request body metadata @@ -7544,7 +7544,7 @@ export namespace retail_v2alpha { * const res = await retail.projects.locations.catalogs.updateAttributesConfig({ * // Required. Immutable. The fully qualified resource name of the attribute config. Format: `projects/x/locations/x/catalogs/x/attributesConfig` * name: 'projects/my-project/locations/my-location/catalogs/my-catalog/attributesConfig', - * // Indicates which fields in the provided AttributesConfig to update. The following is the only supported field: * AttributesConfig.catalog_attributes If not set, all supported fields are updated. + * // Optional. Indicates which fields in the provided AttributesConfig to update. The following is the only supported field: * AttributesConfig.catalog_attributes If not set, all supported fields are updated. * updateMask: 'placeholder-value', * * // Request body metadata @@ -7703,7 +7703,7 @@ export namespace retail_v2alpha { * const res = await retail.projects.locations.catalogs.updateCompletionConfig({ * // Required. Immutable. Fully qualified name `projects/x/locations/x/catalogs/x/completionConfig` * name: 'projects/my-project/locations/my-location/catalogs/my-catalog/completionConfig', - * // Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields: * CompletionConfig.matching_order * CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length * CompletionConfig.auto_learning If not set, all supported fields are updated. + * // Optional. Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields: * CompletionConfig.matching_order * CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length * CompletionConfig.auto_learning If not set, all supported fields are updated. * updateMask: 'placeholder-value', * * // Request body metadata @@ -8445,7 +8445,7 @@ export namespace retail_v2alpha { */ name?: string; /** - * Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. + * Optional. Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. */ updateMask?: string; @@ -8471,7 +8471,7 @@ export namespace retail_v2alpha { */ name?: string; /** - * Indicates which fields in the provided AttributesConfig to update. The following is the only supported field: * AttributesConfig.catalog_attributes If not set, all supported fields are updated. + * Optional. Indicates which fields in the provided AttributesConfig to update. The following is the only supported field: * AttributesConfig.catalog_attributes If not set, all supported fields are updated. */ updateMask?: string; @@ -8486,7 +8486,7 @@ export namespace retail_v2alpha { */ name?: string; /** - * Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields: * CompletionConfig.matching_order * CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length * CompletionConfig.auto_learning If not set, all supported fields are updated. + * Optional. Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields: * CompletionConfig.matching_order * CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length * CompletionConfig.auto_learning If not set, all supported fields are updated. */ updateMask?: string; diff --git a/src/apis/retail/v2beta.ts b/src/apis/retail/v2beta.ts index 70e7089749..184e25e245 100644 --- a/src/apis/retail/v2beta.ts +++ b/src/apis/retail/v2beta.ts @@ -3087,7 +3087,7 @@ export namespace retail_v2beta { */ catalogAttribute?: Schema$GoogleCloudRetailV2betaCatalogAttribute; /** - * Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported: * CatalogAttribute.key If not set, all supported fields are updated. + * Optional. Indicates which fields in the provided CatalogAttribute to update. The following are NOT supported: * CatalogAttribute.key If not set, all supported fields are updated. */ updateMask?: string | null; } @@ -6253,7 +6253,7 @@ export namespace retail_v2beta { * const res = await retail.projects.locations.catalogs.patch({ * // Required. Immutable. The fully qualified resource name of the catalog. * name: 'projects/my-project/locations/my-location/catalogs/my-catalog', - * // Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. + * // Optional. Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. * updateMask: 'placeholder-value', * * // Request body metadata @@ -6557,7 +6557,7 @@ export namespace retail_v2beta { * const res = await retail.projects.locations.catalogs.updateAttributesConfig({ * // Required. Immutable. The fully qualified resource name of the attribute config. Format: `projects/x/locations/x/catalogs/x/attributesConfig` * name: 'projects/my-project/locations/my-location/catalogs/my-catalog/attributesConfig', - * // Indicates which fields in the provided AttributesConfig to update. The following is the only supported field: * AttributesConfig.catalog_attributes If not set, all supported fields are updated. + * // Optional. Indicates which fields in the provided AttributesConfig to update. The following is the only supported field: * AttributesConfig.catalog_attributes If not set, all supported fields are updated. * updateMask: 'placeholder-value', * * // Request body metadata @@ -6716,7 +6716,7 @@ export namespace retail_v2beta { * const res = await retail.projects.locations.catalogs.updateCompletionConfig({ * // Required. Immutable. Fully qualified name `projects/x/locations/x/catalogs/x/completionConfig` * name: 'projects/my-project/locations/my-location/catalogs/my-catalog/completionConfig', - * // Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields: * CompletionConfig.matching_order * CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length * CompletionConfig.auto_learning If not set, all supported fields are updated. + * // Optional. Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields: * CompletionConfig.matching_order * CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length * CompletionConfig.auto_learning If not set, all supported fields are updated. * updateMask: 'placeholder-value', * * // Request body metadata @@ -7458,7 +7458,7 @@ export namespace retail_v2beta { */ name?: string; /** - * Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. + * Optional. Indicates which fields in the provided Catalog to update. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. */ updateMask?: string; @@ -7484,7 +7484,7 @@ export namespace retail_v2beta { */ name?: string; /** - * Indicates which fields in the provided AttributesConfig to update. The following is the only supported field: * AttributesConfig.catalog_attributes If not set, all supported fields are updated. + * Optional. Indicates which fields in the provided AttributesConfig to update. The following is the only supported field: * AttributesConfig.catalog_attributes If not set, all supported fields are updated. */ updateMask?: string; @@ -7499,7 +7499,7 @@ export namespace retail_v2beta { */ name?: string; /** - * Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields: * CompletionConfig.matching_order * CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length * CompletionConfig.auto_learning If not set, all supported fields are updated. + * Optional. Indicates which fields in the provided CompletionConfig to update. The following are the only supported fields: * CompletionConfig.matching_order * CompletionConfig.max_suggestions * CompletionConfig.min_prefix_length * CompletionConfig.auto_learning If not set, all supported fields are updated. */ updateMask?: string; From aee14eb6678a1cf3fcb68e91ff94f5f056117298 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Thu, 14 May 2026 01:45:57 +0000 Subject: [PATCH 13/16] feat(walletobjects): update the API #### walletobjects:v1 The following keys were added: - schemas.Media.properties.sha512Hash.description - schemas.Media.properties.sha512Hash.format - schemas.Media.properties.sha512Hash.type --- discovery/walletobjects-v1.json | 7 ++++++- src/apis/walletobjects/v1.ts | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/discovery/walletobjects-v1.json b/discovery/walletobjects-v1.json index 1f9fa10211..c9b89304ad 100644 --- a/discovery/walletobjects-v1.json +++ b/discovery/walletobjects-v1.json @@ -2713,7 +2713,7 @@ } } }, - "revision": "20260508", + "revision": "20260511", "rootUrl": "https://walletobjects.googleapis.com/", "schemas": { "ActivationOptions": { @@ -7314,6 +7314,11 @@ "format": "byte", "type": "string" }, + "sha512Hash": { + "description": "Scotty-provided SHA512 hash for an upload.", + "format": "byte", + "type": "string" + }, "timestamp": { "description": "Time at which the media data was last updated, in milliseconds since UNIX epoch", "format": "uint64", diff --git a/src/apis/walletobjects/v1.ts b/src/apis/walletobjects/v1.ts index 45dec8f20b..71655495bf 100644 --- a/src/apis/walletobjects/v1.ts +++ b/src/apis/walletobjects/v1.ts @@ -2876,6 +2876,10 @@ export namespace walletobjects_v1 { * Scotty-provided SHA256 hash for an upload. */ sha256Hash?: string | null; + /** + * Scotty-provided SHA512 hash for an upload. + */ + sha512Hash?: string | null; /** * Time at which the media data was last updated, in milliseconds since UNIX epoch */ @@ -17540,6 +17544,7 @@ export namespace walletobjects_v1 { * // "referenceType": "my_referenceType", * // "sha1Hash": "my_sha1Hash", * // "sha256Hash": "my_sha256Hash", + * // "sha512Hash": "my_sha512Hash", * // "timestamp": "my_timestamp", * // "token": "my_token" * // } From 08f87fe662f6ac87a4c288ce5f75490a92b0a1df Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Thu, 14 May 2026 01:45:57 +0000 Subject: [PATCH 14/16] feat(workspaceevents): update the API #### workspaceevents:v1 The following keys were added: - schemas.DriveOptions.description - schemas.DriveOptions.id - schemas.DriveOptions.properties.includeDescendants.description - schemas.DriveOptions.properties.includeDescendants.type - schemas.DriveOptions.type - schemas.Subscription.properties.driveOptions.$ref - schemas.Subscription.properties.driveOptions.description --- discovery/workspaceevents-v1.json | 17 ++++++++++++++++- src/apis/workspaceevents/v1.ts | 16 ++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/discovery/workspaceevents-v1.json b/discovery/workspaceevents-v1.json index a88adb44e5..85881e5d34 100644 --- a/discovery/workspaceevents-v1.json +++ b/discovery/workspaceevents-v1.json @@ -765,7 +765,7 @@ } } }, - "revision": "20260422", + "revision": "20260510", "rootUrl": "https://workspaceevents.googleapis.com/", "schemas": { "Artifact": { @@ -851,6 +851,17 @@ }, "type": "object" }, + "DriveOptions": { + "description": "Additional supported options for serving Drive events.", + "id": "DriveOptions", + "properties": { + "includeDescendants": { + "description": "Optional. Immutable. For subscriptions to Google Drive events, whether to receive events about Drive files that are children of the target folder or shared drive. * If `false`, the subscription only receives events about changes to the folder or shared drive that's specified as the `targetResource`. * If `true`, the `mimeType` field of the `file` resource must be set to `application/vnd.google-apps.folder`. For details, see [Google Drive event types](https://developers.google.com/workspace/events/guides/events-drive#event-types).", + "type": "boolean" + } + }, + "type": "object" + }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", @@ -1197,6 +1208,10 @@ "readOnly": true, "type": "string" }, + "driveOptions": { + "$ref": "DriveOptions", + "description": "Optional. Features that are supported only for subscriptions on Drive resources." + }, "etag": { "description": "Optional. This checksum is computed by the server based on the value of other fields, and might be sent on update requests to ensure the client has an up-to-date value before proceeding.", "type": "string" diff --git a/src/apis/workspaceevents/v1.ts b/src/apis/workspaceevents/v1.ts index c98044803b..a37f576c21 100644 --- a/src/apis/workspaceevents/v1.ts +++ b/src/apis/workspaceevents/v1.ts @@ -184,6 +184,15 @@ export namespace workspaceevents_v1 { export interface Schema$DataPart { data?: {[key: string]: any} | null; } + /** + * Additional supported options for serving Drive events. + */ + export interface Schema$DriveOptions { + /** + * Optional. Immutable. For subscriptions to Google Drive events, whether to receive events about Drive files that are children of the target folder or shared drive. * If `false`, the subscription only receives events about changes to the folder or shared drive that's specified as the `targetResource`. * If `true`, the `mimeType` field of the `file` resource must be set to `application/vnd.google-apps.folder`. For details, see [Google Drive event types](https://developers.google.com/workspace/events/guides/events-drive#event-types). + */ + includeDescendants?: boolean | null; + } /** * A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \} */ @@ -417,6 +426,10 @@ export namespace workspaceevents_v1 { * Output only. The time when the subscription is created. */ createTime?: string | null; + /** + * Optional. Features that are supported only for subscriptions on Drive resources. + */ + driveOptions?: Schema$DriveOptions; /** * Optional. This checksum is computed by the server based on the value of other fields, and might be sent on update requests to ensure the client has an up-to-date value before proceeding. */ @@ -988,6 +1001,7 @@ export namespace workspaceevents_v1 { * // { * // "authority": "my_authority", * // "createTime": "my_createTime", + * // "driveOptions": {}, * // "etag": "my_etag", * // "eventTypes": [], * // "expireTime": "my_expireTime", @@ -1334,6 +1348,7 @@ export namespace workspaceevents_v1 { * // { * // "authority": "my_authority", * // "createTime": "my_createTime", + * // "driveOptions": {}, * // "etag": "my_etag", * // "eventTypes": [], * // "expireTime": "my_expireTime", @@ -1675,6 +1690,7 @@ export namespace workspaceevents_v1 { * // { * // "authority": "my_authority", * // "createTime": "my_createTime", + * // "driveOptions": {}, * // "etag": "my_etag", * // "eventTypes": [], * // "expireTime": "my_expireTime", From 07ec6d0f7b3e30dff6be12e81576baa342fb1a7b Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Thu, 14 May 2026 01:45:57 +0000 Subject: [PATCH 15/16] feat: regenerate index files --- discovery/index.json | 15 +++++++++++++++ discovery/servicemanagement-v1.json | 8 +++++--- src/apis/index.ts | 6 ++++++ src/index.ts | 1 + 4 files changed, 27 insertions(+), 3 deletions(-) diff --git a/discovery/index.json b/discovery/index.json index 61eb315fbc..a40b8612f5 100644 --- a/discovery/index.json +++ b/discovery/index.json @@ -1740,6 +1740,21 @@ "title": "Cloud Location Finder API", "version": "v1" }, + { + "description": "", + "discoveryRestUrl": "https://cloudnumberregistry.googleapis.com/$discovery/rest?version=v1alpha", + "documentationLink": "https://docs.cloud.google.com/number-registry/reference/rest", + "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" + }, + "id": "cloudnumberregistry:v1alpha", + "kind": "discovery#directoryItem", + "name": "cloudnumberregistry", + "preferred": true, + "title": "Cloud Number Registry API", + "version": "v1alpha" + }, { "description": "Manages continuous profiling information.", "discoveryRestUrl": "https://cloudprofiler.googleapis.com/$discovery/rest?version=v2", diff --git a/discovery/servicemanagement-v1.json b/discovery/servicemanagement-v1.json index 4b7c1bf2c7..6dbbb74803 100644 --- a/discovery/servicemanagement-v1.json +++ b/discovery/servicemanagement-v1.json @@ -835,7 +835,7 @@ } } }, - "revision": "20260406", + "revision": "20260430", "rootUrl": "https://servicemanagement.googleapis.com/", "schemas": { "Advice": { @@ -3178,7 +3178,8 @@ "STREET_VIEW", "SHOPPING", "GEO", - "GENERATIVE_AI" + "GENERATIVE_AI", + "HEALTH" ], "enumDescriptions": [ "Not useful.", @@ -3188,7 +3189,8 @@ "Street View Org.", "Shopping Org.", "Geo Org.", - "Generative AI - https://developers.generativeai.google" + "Generative AI - https://developers.generativeai.google", + "Health Org." ], "type": "string" }, diff --git a/src/apis/index.ts b/src/apis/index.ts index e36352b62b..4d41d08515 100644 --- a/src/apis/index.ts +++ b/src/apis/index.ts @@ -229,6 +229,10 @@ import { VERSIONS as cloudlocationfinderVersions, cloudlocationfinder, } from './cloudlocationfinder'; +import { + VERSIONS as cloudnumberregistryVersions, + cloudnumberregistry, +} from './cloudnumberregistry'; import { VERSIONS as cloudprofilerVersions, cloudprofiler, @@ -878,6 +882,7 @@ export const APIS: APIList = { cloudiot: cloudiotVersions, cloudkms: cloudkmsVersions, cloudlocationfinder: cloudlocationfinderVersions, + cloudnumberregistry: cloudnumberregistryVersions, cloudprofiler: cloudprofilerVersions, cloudresourcemanager: cloudresourcemanagerVersions, cloudscheduler: cloudschedulerVersions, @@ -1205,6 +1210,7 @@ export class GeneratedAPIs { cloudiot = cloudiot; cloudkms = cloudkms; cloudlocationfinder = cloudlocationfinder; + cloudnumberregistry = cloudnumberregistry; cloudprofiler = cloudprofiler; cloudresourcemanager = cloudresourcemanager; cloudscheduler = cloudscheduler; diff --git a/src/index.ts b/src/index.ts index 3b486b9ce3..7ba8360d5a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -159,6 +159,7 @@ export {cloudiot_v1} from './apis/cloudiot/v1'; export {cloudkms_v1} from './apis/cloudkms/v1'; export {cloudlocationfinder_v1} from './apis/cloudlocationfinder/v1'; export {cloudlocationfinder_v1alpha} from './apis/cloudlocationfinder/v1alpha'; +export {cloudnumberregistry_v1alpha} from './apis/cloudnumberregistry/v1alpha'; export {cloudprofiler_v2} from './apis/cloudprofiler/v2'; export {cloudresourcemanager_v1} from './apis/cloudresourcemanager/v1'; export {cloudresourcemanager_v1beta1} from './apis/cloudresourcemanager/v1beta1'; From ac9e22a3839006a84c972f1701128e2797ad7bad Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 14 May 2026 01:48:36 +0000 Subject: [PATCH 16/16] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20?= =?UTF-8?q?post-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- release-please-config.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/release-please-config.json b/release-please-config.json index 815e784d85..79f1363c46 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -326,6 +326,7 @@ "src/apis/ces": {}, "src/apis/agentregistry": {}, "src/apis/developerknowledge": {}, - "src/apis/health": {} + "src/apis/health": {}, + "src/apis/cloudnumberregistry": {} } } \ No newline at end of file