diff --git a/discovery/run-v1.json b/discovery/run-v1.json index 2873d056aea..083a11a4bfe 100644 --- a/discovery/run-v1.json +++ b/discovery/run-v1.json @@ -105,164 +105,6 @@ }, "protocol": "rest", "resources": { - "api": { - "resources": { - "v1": { - "resources": { - "namespaces": { - "methods": { - "get": { - "description": "Rpc to get information about a namespace.", - "flatPath": "api/v1/namespaces/{namespacesId}", - "httpMethod": "GET", - "id": "run.api.v1.namespaces.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the namespace being retrieved. If needed, replace {namespace_id} with the project ID.", - "location": "path", - "pattern": "^namespaces/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "api/v1/{+name}", - "response": { - "$ref": "Namespace" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "patch": { - "description": "Rpc to update a namespace.", - "flatPath": "api/v1/namespaces/{namespacesId}", - "httpMethod": "PATCH", - "id": "run.api.v1.namespaces.patch", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the namespace being retrieved. If needed, replace {namespace_id} with the project ID.", - "location": "path", - "pattern": "^namespaces/[^/]+$", - "required": true, - "type": "string" - }, - "updateMask": { - "description": "Required. Indicates which fields in the provided namespace to update. This field is currently unused.", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "api/v1/{+name}", - "request": { - "$ref": "Namespace" - }, - "response": { - "$ref": "Namespace" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - }, - "resources": { - "secrets": { - "methods": { - "create": { - "description": "Creates a new secret.", - "flatPath": "api/v1/namespaces/{namespacesId}/secrets", - "httpMethod": "POST", - "id": "run.api.v1.namespaces.secrets.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The project ID or project number in which this secret should be created.", - "location": "path", - "pattern": "^namespaces/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "api/v1/{+parent}/secrets", - "request": { - "$ref": "Secret" - }, - "response": { - "$ref": "Secret" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Rpc to get information about a secret.", - "flatPath": "api/v1/namespaces/{namespacesId}/secrets/{secretsId}", - "httpMethod": "GET", - "id": "run.api.v1.namespaces.secrets.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the secret being retrieved. If needed, replace {namespace_id} with the project ID.", - "location": "path", - "pattern": "^namespaces/[^/]+/secrets/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "api/v1/{+name}", - "response": { - "$ref": "Secret" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "replaceSecret": { - "description": "Rpc to replace a secret. Only the spec and metadata labels and annotations are modifiable. After the Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control.", - "flatPath": "api/v1/namespaces/{namespacesId}/secrets/{secretsId}", - "httpMethod": "PUT", - "id": "run.api.v1.namespaces.secrets.replaceSecret", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the secret being retrieved. If needed, replace {namespace_id} with the project ID.", - "location": "path", - "pattern": "^namespaces/[^/]+/secrets/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "api/v1/{+name}", - "request": { - "$ref": "Secret" - }, - "response": { - "$ref": "Secret" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - } - } - } - } - } - } - }, "namespaces": { "resources": { "authorizeddomains": { @@ -1336,69 +1178,6 @@ } } }, - "namespaces": { - "methods": { - "get": { - "description": "Rpc to get information about a namespace.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/namespaces/{namespacesId}", - "httpMethod": "GET", - "id": "run.projects.locations.namespaces.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the namespace being retrieved. If needed, replace {namespace_id} with the project ID.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/namespaces/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "Namespace" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "patch": { - "description": "Rpc to update a namespace.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/namespaces/{namespacesId}", - "httpMethod": "PATCH", - "id": "run.projects.locations.namespaces.patch", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the namespace being retrieved. If needed, replace {namespace_id} with the project ID.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/namespaces/[^/]+$", - "required": true, - "type": "string" - }, - "updateMask": { - "description": "Required. Indicates which fields in the provided namespace to update. This field is currently unused.", - "format": "google-fieldmask", - "location": "query", - "type": "string" - } - }, - "path": "v1/{+name}", - "request": { - "$ref": "Namespace" - }, - "response": { - "$ref": "Namespace" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, "revisions": { "methods": { "delete": { @@ -1619,91 +1398,6 @@ } } }, - "secrets": { - "methods": { - "create": { - "description": "Creates a new secret.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/secrets", - "httpMethod": "POST", - "id": "run.projects.locations.secrets.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "Required. The project ID or project number in which this secret should be created.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+parent}/secrets", - "request": { - "$ref": "Secret" - }, - "response": { - "$ref": "Secret" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Rpc to get information about a secret.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/secrets/{secretsId}", - "httpMethod": "GET", - "id": "run.projects.locations.secrets.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the secret being retrieved. If needed, replace {namespace_id} with the project ID.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/secrets/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "response": { - "$ref": "Secret" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "replaceSecret": { - "description": "Rpc to replace a secret. Only the spec and metadata labels and annotations are modifiable. After the Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control.", - "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/secrets/{secretsId}", - "httpMethod": "PUT", - "id": "run.projects.locations.secrets.replaceSecret", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "Required. The name of the secret being retrieved. If needed, replace {namespace_id} with the project ID.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/secrets/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1/{+name}", - "request": { - "$ref": "Secret" - }, - "response": { - "$ref": "Secret" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, "services": { "methods": { "create": { @@ -1982,7 +1676,7 @@ } } }, - "revision": "20200814", + "revision": "20200925", "rootUrl": "https://run.googleapis.com/", "schemas": { "Addressable": { @@ -2182,7 +1876,7 @@ "properties": { "template": { "$ref": "RevisionTemplate", - "description": "Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the \"autoscaling.knative.dev/minScale\" annotation key. (Cloud Run for Anthos only). To set maximum instances for this revision, use the \"autoscaling.knative.dev/maxScale\" annotation key. To set Cloud SQL connections for the revision, use the \"run.googleapis.com/cloudsql-instances\" annotation key. Values should be comma separated." + "description": "Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the \"autoscaling.knative.dev/minScale\" annotation key. To set maximum instances for this revision, use the \"autoscaling.knative.dev/maxScale\" annotation key. To set Cloud SQL connections for the revision, use the \"run.googleapis.com/cloudsql-instances\" annotation key. To set a Serverless VPC Access connector for the revision, use the \"run.googleapis.com/vpc-access-connector\" annotation key. Values should be comma separated." } }, "type": "object" @@ -2860,50 +2554,6 @@ }, "type": "object" }, - "Namespace": { - "description": "Cloud Run fully managed: not supported Cloud Run on GKE: supported Namespace provides a scope for Names. Use of multiple namespaces is optional.", - "id": "Namespace", - "properties": { - "metadata": { - "$ref": "ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata" - }, - "spec": { - "$ref": "NamespaceSpec", - "description": "Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - }, - "status": { - "$ref": "NamespaceStatus", - "description": "Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" - } - }, - "type": "object" - }, - "NamespaceSpec": { - "description": "Cloud Run fully managed: not supported Cloud Run on GKE: supported NamespaceSpec describes the attributes on a Namespace.", - "id": "NamespaceSpec", - "properties": { - "finalizers": { - "description": "Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "NamespaceStatus": { - "description": "Cloud Run fully managed: not supported Cloud Run on GKE: supported NamespaceStatus is information about the current status of a Namespace.", - "id": "NamespaceStatus", - "properties": { - "phase": { - "description": "Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/", - "type": "string" - } - }, - "type": "object" - }, "ObjectMeta": { "description": "k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.", "id": "ObjectMeta", @@ -3132,14 +2782,14 @@ "additionalProperties": { "type": "string" }, - "description": "(Optional) Cloud Run fully managed: Only memory and CPU are supported. Note: The only supported value for CPU is '1'. Cloud Run for Anthos: supported Limits describes the maximum amount of compute resources allowed. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go", + "description": "(Optional) Cloud Run fully managed: Only memory and CPU are supported. Note: The only supported values for CPU are '1' and '2'. Cloud Run for Anthos: supported Limits describes the maximum amount of compute resources allowed. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go", "type": "object" }, "requests": { "additionalProperties": { "type": "string" }, - "description": "(Optional) Cloud Run fully managed: Only memory and CPU are supported. Note: The only supported value for CPU is '1'. Cloud Run for Anthos: supported Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go", + "description": "(Optional) Cloud Run fully managed: Only memory and CPU are supported. Note: The only supported values for CPU are '1' and '2'. Cloud Run for Anthos: supported Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go", "type": "object" } }, @@ -3327,36 +2977,6 @@ }, "type": "object" }, - "Secret": { - "description": "Cloud Run fully managed: not supported Cloud Run on GKE: supported Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.", - "id": "Secret", - "properties": { - "data": { - "additionalProperties": { - "format": "byte", - "type": "string" - }, - "description": "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4", - "type": "object" - }, - "metadata": { - "$ref": "ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata" - }, - "stringData": { - "additionalProperties": { - "type": "string" - }, - "description": "stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. +k8s:conversion-gen=false", - "type": "object" - }, - "type": { - "description": "Used to facilitate programmatic handling of secret data.", - "type": "string" - } - }, - "type": "object" - }, "SecretEnvSource": { "description": "Cloud Run fully managed: not supported Cloud Run for Anthos: supported SecretEnvSource selects a Secret to populate the environment variables with. The contents of the target Secret's Data field will represent the key-value pairs as environment variables.", "id": "SecretEnvSource", diff --git a/src/apis/run/v1.ts b/src/apis/run/v1.ts index 2348870ea63..d247f553e44 100644 --- a/src/apis/run/v1.ts +++ b/src/apis/run/v1.ts @@ -115,7 +115,6 @@ export namespace run_v1 { */ export class Run { context: APIRequestContext; - api: Resource$Api; namespaces: Resource$Namespaces; projects: Resource$Projects; @@ -125,7 +124,6 @@ export namespace run_v1 { google, }; - this.api = new Resource$Api(this.context); this.namespaces = new Resource$Namespaces(this.context); this.projects = new Resource$Projects(this.context); } @@ -282,7 +280,7 @@ export namespace run_v1 { */ export interface Schema$ConfigurationSpec { /** - * Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the "autoscaling.knative.dev/minScale" annotation key. (Cloud Run for Anthos only). To set maximum instances for this revision, use the "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL connections for the revision, use the "run.googleapis.com/cloudsql-instances" annotation key. Values should be comma separated. + * Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the "autoscaling.knative.dev/minScale" annotation key. To set maximum instances for this revision, use the "autoscaling.knative.dev/maxScale" annotation key. To set Cloud SQL connections for the revision, use the "run.googleapis.com/cloudsql-instances" annotation key. To set a Serverless VPC Access connector for the revision, use the "run.googleapis.com/vpc-access-connector" annotation key. Values should be comma separated. */ template?: Schema$RevisionTemplate; } @@ -816,41 +814,6 @@ export namespace run_v1 { */ name?: string | null; } - /** - * Cloud Run fully managed: not supported Cloud Run on GKE: supported Namespace provides a scope for Names. Use of multiple namespaces is optional. - */ - export interface Schema$Namespace { - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - */ - metadata?: Schema$ObjectMeta; - /** - * Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - */ - spec?: Schema$NamespaceSpec; - /** - * Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status - */ - status?: Schema$NamespaceStatus; - } - /** - * Cloud Run fully managed: not supported Cloud Run on GKE: supported NamespaceSpec describes the attributes on a Namespace. - */ - export interface Schema$NamespaceSpec { - /** - * Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ - */ - finalizers?: string[] | null; - } - /** - * Cloud Run fully managed: not supported Cloud Run on GKE: supported NamespaceStatus is information about the current status of a Namespace. - */ - export interface Schema$NamespaceStatus { - /** - * Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ - */ - phase?: string | null; - } /** * k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. */ @@ -1025,11 +988,11 @@ export namespace run_v1 { */ export interface Schema$ResourceRequirements { /** - * (Optional) Cloud Run fully managed: Only memory and CPU are supported. Note: The only supported value for CPU is '1'. Cloud Run for Anthos: supported Limits describes the maximum amount of compute resources allowed. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go + * (Optional) Cloud Run fully managed: Only memory and CPU are supported. Note: The only supported values for CPU are '1' and '2'. Cloud Run for Anthos: supported Limits describes the maximum amount of compute resources allowed. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go */ limits?: {[key: string]: string} | null; /** - * (Optional) Cloud Run fully managed: Only memory and CPU are supported. Note: The only supported value for CPU is '1'. Cloud Run for Anthos: supported Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go + * (Optional) Cloud Run fully managed: Only memory and CPU are supported. Note: The only supported values for CPU are '1' and '2'. Cloud Run for Anthos: supported Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go */ requests?: {[key: string]: string} | null; } @@ -1177,27 +1140,6 @@ export namespace run_v1 { */ url?: string | null; } - /** - * Cloud Run fully managed: not supported Cloud Run on GKE: supported Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes. - */ - export interface Schema$Secret { - /** - * Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 - */ - data?: {[key: string]: string} | null; - /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata - */ - metadata?: Schema$ObjectMeta; - /** - * stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. +k8s:conversion-gen=false - */ - stringData?: {[key: string]: string} | null; - /** - * Used to facilitate programmatic handling of secret data. - */ - type?: string | null; - } /** * Cloud Run fully managed: not supported Cloud Run for Anthos: supported SecretEnvSource selects a Secret to populate the environment variables with. The contents of the target Secret's Data field will represent the key-value pairs as environment variables. */ @@ -1524,35 +1466,40 @@ export namespace run_v1 { subPath?: string | null; } - export class Resource$Api { - context: APIRequestContext; - v1: Resource$Api$V1; - constructor(context: APIRequestContext) { - this.context = context; - this.v1 = new Resource$Api$V1(this.context); - } - } - - export class Resource$Api$V1 { + export class Resource$Namespaces { context: APIRequestContext; - namespaces: Resource$Api$V1$Namespaces; + authorizeddomains: Resource$Namespaces$Authorizeddomains; + configurations: Resource$Namespaces$Configurations; + domainmappings: Resource$Namespaces$Domainmappings; + revisions: Resource$Namespaces$Revisions; + routes: Resource$Namespaces$Routes; + services: Resource$Namespaces$Services; constructor(context: APIRequestContext) { this.context = context; - this.namespaces = new Resource$Api$V1$Namespaces(this.context); + this.authorizeddomains = new Resource$Namespaces$Authorizeddomains( + this.context + ); + this.configurations = new Resource$Namespaces$Configurations( + this.context + ); + this.domainmappings = new Resource$Namespaces$Domainmappings( + this.context + ); + this.revisions = new Resource$Namespaces$Revisions(this.context); + this.routes = new Resource$Namespaces$Routes(this.context); + this.services = new Resource$Namespaces$Services(this.context); } } - export class Resource$Api$V1$Namespaces { + export class Resource$Namespaces$Authorizeddomains { context: APIRequestContext; - secrets: Resource$Api$V1$Namespaces$Secrets; constructor(context: APIRequestContext) { this.context = context; - this.secrets = new Resource$Api$V1$Namespaces$Secrets(this.context); } /** - * run.api.v1.namespaces.get - * @desc Rpc to get information about a namespace. + * run.namespaces.authorizeddomains.list + * @desc List authorized domains. * @example * // Before running the sample: * // - Enable the API at: @@ -1576,17 +1523,20 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.api.v1.namespaces.get({ - * // Required. The name of the namespace being retrieved. If needed, replace {namespace_id} with the project ID. - * name: 'namespaces/my-namespace', + * const res = await run.namespaces.authorizeddomains.list({ + * // Maximum results to return per page. + * pageSize: 'placeholder-value', + * // Continuation token for fetching the next page of results. + * pageToken: 'placeholder-value', + * // Name of the parent Project resource. Example: `projects/myproject`. + * parent: 'namespaces/my-namespace', * }); * console.log(res.data); * * // Example response * // { - * // "metadata": {}, - * // "spec": {}, - * // "status": {} + * // "domains": [], + * // "nextPageToken": "my_nextPageToken" * // } * } * @@ -1595,59 +1545,68 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.api.v1.namespaces.get + * @alias run.namespaces.authorizeddomains.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Required. The name of the namespace being retrieved. If needed, replace {namespace_id} with the project ID. + * @param {integer=} params.pageSize Maximum results to return per page. + * @param {string=} params.pageToken Continuation token for fetching the next page of results. + * @param {string} params.parent Name of the parent Project resource. Example: `projects/myproject`. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get( - params: Params$Resource$Api$V1$Namespaces$Get, + list( + params: Params$Resource$Namespaces$Authorizeddomains$List, options: StreamMethodOptions ): GaxiosPromise; - get( - params?: Params$Resource$Api$V1$Namespaces$Get, + list( + params?: Params$Resource$Namespaces$Authorizeddomains$List, options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Api$V1$Namespaces$Get, + ): GaxiosPromise; + list( + params: Params$Resource$Namespaces$Authorizeddomains$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Api$V1$Namespaces$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + list( + params: Params$Resource$Namespaces$Authorizeddomains$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Api$V1$Namespaces$Get, - callback: BodyResponseCallback + list( + params: Params$Resource$Namespaces$Authorizeddomains$List, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; - get( + list( + callback: BodyResponseCallback + ): void; + list( paramsOrCallback?: - | Params$Resource$Api$V1$Namespaces$Get - | BodyResponseCallback + | Params$Resource$Namespaces$Authorizeddomains$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { + ): + | void + | GaxiosPromise + | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Api$V1$Namespaces$Get; + {}) as Params$Resource$Namespaces$Authorizeddomains$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Api$V1$Namespaces$Get; + params = {} as Params$Resource$Namespaces$Authorizeddomains$List; options = {}; } @@ -1660,29 +1619,57 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/api/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + url: ( + rootUrl + + '/apis/domains.cloudrun.com/v1/{+parent}/authorizeddomains' + ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options ), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest( + parameters + ); } } + } + + export interface Params$Resource$Namespaces$Authorizeddomains$List + extends StandardParameters { + /** + * Maximum results to return per page. + */ + pageSize?: number; + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + /** + * Name of the parent Project resource. Example: `projects/myproject`. + */ + parent?: string; + } + + export class Resource$Namespaces$Configurations { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } /** - * run.api.v1.namespaces.patch - * @desc Rpc to update a namespace. + * run.namespaces.configurations.get + * @desc Get information about a configuration. * @example * // Before running the sample: * // - Enable the API at: @@ -1706,26 +1693,16 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.api.v1.namespaces.patch({ - * // Required. The name of the namespace being retrieved. If needed, replace {namespace_id} with the project ID. - * name: 'namespaces/my-namespace', - * // Required. Indicates which fields in the provided namespace to update. This field is currently unused. - * updateMask: 'placeholder-value', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "metadata": {}, - * // "spec": {}, - * // "status": {} - * // } - * }, + * const res = await run.namespaces.configurations.get({ + * // The name of the configuration to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * name: 'namespaces/my-namespace/configurations/my-configuration', * }); * console.log(res.data); * * // Example response * // { + * // "apiVersion": "my_apiVersion", + * // "kind": "my_kind", * // "metadata": {}, * // "spec": {}, * // "status": {} @@ -1737,61 +1714,59 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.api.v1.namespaces.patch + * @alias run.namespaces.configurations.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Required. The name of the namespace being retrieved. If needed, replace {namespace_id} with the project ID. - * @param {string=} params.updateMask Required. Indicates which fields in the provided namespace to update. This field is currently unused. - * @param {().Namespace} params.requestBody Request body data + * @param {string} params.name The name of the configuration to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch( - params: Params$Resource$Api$V1$Namespaces$Patch, + get( + params: Params$Resource$Namespaces$Configurations$Get, options: StreamMethodOptions ): GaxiosPromise; - patch( - params?: Params$Resource$Api$V1$Namespaces$Patch, + get( + params?: Params$Resource$Namespaces$Configurations$Get, options?: MethodOptions - ): GaxiosPromise; - patch( - params: Params$Resource$Api$V1$Namespaces$Patch, + ): GaxiosPromise; + get( + params: Params$Resource$Namespaces$Configurations$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - patch( - params: Params$Resource$Api$V1$Namespaces$Patch, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + get( + params: Params$Resource$Namespaces$Configurations$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - patch( - params: Params$Resource$Api$V1$Namespaces$Patch, - callback: BodyResponseCallback + get( + params: Params$Resource$Namespaces$Configurations$Get, + callback: BodyResponseCallback ): void; - patch(callback: BodyResponseCallback): void; - patch( + get(callback: BodyResponseCallback): void; + get( paramsOrCallback?: - | Params$Resource$Api$V1$Namespaces$Patch - | BodyResponseCallback + | Params$Resource$Namespaces$Configurations$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { + ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Api$V1$Namespaces$Patch; + {}) as Params$Resource$Namespaces$Configurations$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Api$V1$Namespaces$Patch; + params = {} as Params$Resource$Namespaces$Configurations$Get; options = {}; } @@ -1804,8 +1779,11 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/api/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', }, options ), @@ -1815,49 +1793,18 @@ export namespace run_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } - } - - export interface Params$Resource$Api$V1$Namespaces$Get - extends StandardParameters { - /** - * Required. The name of the namespace being retrieved. If needed, replace {namespace_id} with the project ID. - */ - name?: string; - } - export interface Params$Resource$Api$V1$Namespaces$Patch - extends StandardParameters { - /** - * Required. The name of the namespace being retrieved. If needed, replace {namespace_id} with the project ID. - */ - name?: string; - /** - * Required. Indicates which fields in the provided namespace to update. This field is currently unused. - */ - updateMask?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Namespace; - } - - export class Resource$Api$V1$Namespaces$Secrets { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * run.api.v1.namespaces.secrets.create - * @desc Creates a new secret. + * run.namespaces.configurations.list + * @desc List configurations. * @example * // Before running the sample: * // - Enable the API at: @@ -1881,29 +1828,33 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.api.v1.namespaces.secrets.create({ - * // Required. The project ID or project number in which this secret should be created. + * const res = await run.namespaces.configurations.list({ + * // Optional encoded string to continue paging. + * continue: 'placeholder-value', + * // Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. + * fieldSelector: 'placeholder-value', + * // Not currently used by Cloud Run. + * includeUninitialized: 'placeholder-value', + * // Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. + * labelSelector: 'placeholder-value', + * // The maximum number of records that should be returned. + * limit: 'placeholder-value', + * // The namespace from which the configurations should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. * parent: 'namespaces/my-namespace', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "data": {}, - * // "metadata": {}, - * // "stringData": {}, - * // "type": "my_type" - * // } - * }, + * // The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. + * resourceVersion: 'placeholder-value', + * // Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. + * watch: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "data": {}, + * // "apiVersion": "my_apiVersion", + * // "items": [], + * // "kind": "my_kind", * // "metadata": {}, - * // "stringData": {}, - * // "type": "my_type" + * // "unreachable": [] * // } * } * @@ -1912,60 +1863,73 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.api.v1.namespaces.secrets.create + * @alias run.namespaces.configurations.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.parent Required. The project ID or project number in which this secret should be created. - * @param {().Secret} params.requestBody Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - create( - params: Params$Resource$Api$V1$Namespaces$Secrets$Create, + * @param {string=} params.continue Optional encoded string to continue paging. + * @param {string=} params.fieldSelector Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. + * @param {boolean=} params.includeUninitialized Not currently used by Cloud Run. + * @param {string=} params.labelSelector Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. + * @param {integer=} params.limit The maximum number of records that should be returned. + * @param {string} params.parent The namespace from which the configurations should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string=} params.resourceVersion The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. + * @param {boolean=} params.watch Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + list( + params: Params$Resource$Namespaces$Configurations$List, options: StreamMethodOptions ): GaxiosPromise; - create( - params?: Params$Resource$Api$V1$Namespaces$Secrets$Create, + list( + params?: Params$Resource$Namespaces$Configurations$List, options?: MethodOptions - ): GaxiosPromise; - create( - params: Params$Resource$Api$V1$Namespaces$Secrets$Create, + ): GaxiosPromise; + list( + params: Params$Resource$Namespaces$Configurations$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - create( - params: Params$Resource$Api$V1$Namespaces$Secrets$Create, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + list( + params: Params$Resource$Namespaces$Configurations$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - create( - params: Params$Resource$Api$V1$Namespaces$Secrets$Create, - callback: BodyResponseCallback + list( + params: Params$Resource$Namespaces$Configurations$List, + callback: BodyResponseCallback ): void; - create(callback: BodyResponseCallback): void; - create( + list( + callback: BodyResponseCallback + ): void; + list( paramsOrCallback?: - | Params$Resource$Api$V1$Namespaces$Secrets$Create - | BodyResponseCallback + | Params$Resource$Namespaces$Configurations$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { + ): + | void + | GaxiosPromise + | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Api$V1$Namespaces$Secrets$Create; + {}) as Params$Resource$Namespaces$Configurations$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Api$V1$Namespaces$Secrets$Create; + params = {} as Params$Resource$Namespaces$Configurations$List; options = {}; } @@ -1978,11 +1942,10 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/api/v1/{+parent}/secrets').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'POST', + url: ( + rootUrl + '/apis/serving.knative.dev/v1/{+parent}/configurations' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options ), @@ -1992,18 +1955,68 @@ export namespace run_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } + + export interface Params$Resource$Namespaces$Configurations$Get + extends StandardParameters { + /** + * The name of the configuration to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + */ + name?: string; + } + export interface Params$Resource$Namespaces$Configurations$List + extends StandardParameters { + /** + * Optional encoded string to continue paging. + */ + continue?: string; + /** + * Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. + */ + fieldSelector?: string; + /** + * Not currently used by Cloud Run. + */ + includeUninitialized?: boolean; + /** + * Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. + */ + labelSelector?: string; + /** + * The maximum number of records that should be returned. + */ + limit?: number; + /** + * The namespace from which the configurations should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + */ + parent?: string; + /** + * The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. + */ + resourceVersion?: string; + /** + * Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. + */ + watch?: boolean; + } + + export class Resource$Namespaces$Domainmappings { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } /** - * run.api.v1.namespaces.secrets.get - * @desc Rpc to get information about a secret. + * run.namespaces.domainmappings.create + * @desc Create a new domain mapping. * @example * // Before running the sample: * // - Enable the API at: @@ -2027,18 +2040,31 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.api.v1.namespaces.secrets.get({ - * // Required. The name of the secret being retrieved. If needed, replace {namespace_id} with the project ID. - * name: 'namespaces/my-namespace/secrets/my-secret', + * const res = await run.namespaces.domainmappings.create({ + * // The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * parent: 'namespaces/my-namespace', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "apiVersion": "my_apiVersion", + * // "kind": "my_kind", + * // "metadata": {}, + * // "spec": {}, + * // "status": {} + * // } + * }, * }); * console.log(res.data); * * // Example response * // { - * // "data": {}, + * // "apiVersion": "my_apiVersion", + * // "kind": "my_kind", * // "metadata": {}, - * // "stringData": {}, - * // "type": "my_type" + * // "spec": {}, + * // "status": {} * // } * } * @@ -2047,59 +2073,60 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.api.v1.namespaces.secrets.get + * @alias run.namespaces.domainmappings.create * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Required. The name of the secret being retrieved. If needed, replace {namespace_id} with the project ID. + * @param {string} params.parent The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {().DomainMapping} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get( - params: Params$Resource$Api$V1$Namespaces$Secrets$Get, + create( + params: Params$Resource$Namespaces$Domainmappings$Create, options: StreamMethodOptions ): GaxiosPromise; - get( - params?: Params$Resource$Api$V1$Namespaces$Secrets$Get, + create( + params?: Params$Resource$Namespaces$Domainmappings$Create, options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Api$V1$Namespaces$Secrets$Get, + ): GaxiosPromise; + create( + params: Params$Resource$Namespaces$Domainmappings$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Api$V1$Namespaces$Secrets$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + create( + params: Params$Resource$Namespaces$Domainmappings$Create, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Api$V1$Namespaces$Secrets$Get, - callback: BodyResponseCallback + create( + params: Params$Resource$Namespaces$Domainmappings$Create, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; - get( + create(callback: BodyResponseCallback): void; + create( paramsOrCallback?: - | Params$Resource$Api$V1$Namespaces$Secrets$Get - | BodyResponseCallback + | Params$Resource$Namespaces$Domainmappings$Create + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { + ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Api$V1$Namespaces$Secrets$Get; + {}) as Params$Resource$Namespaces$Domainmappings$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Api$V1$Namespaces$Secrets$Get; + params = {} as Params$Resource$Namespaces$Domainmappings$Create; options = {}; } @@ -2112,29 +2139,31 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/api/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: ( + rootUrl + '/apis/domains.cloudrun.com/v1/{+parent}/domainmappings' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options ), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * run.api.v1.namespaces.secrets.replaceSecret - * @desc Rpc to replace a secret. Only the spec and metadata labels and annotations are modifiable. After the Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control. + * run.namespaces.domainmappings.delete + * @desc Delete a domain mapping. * @example * // Before running the sample: * // - Enable the API at: @@ -2158,29 +2187,26 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.api.v1.namespaces.secrets.replaceSecret({ - * // Required. The name of the secret being retrieved. If needed, replace {namespace_id} with the project ID. - * name: 'namespaces/my-namespace/secrets/my-secret', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "data": {}, - * // "metadata": {}, - * // "stringData": {}, - * // "type": "my_type" - * // } - * }, + * const res = await run.namespaces.domainmappings.delete({ + * // Cloud Run currently ignores this parameter. + * apiVersion: 'placeholder-value', + * // Cloud Run currently ignores this parameter. + * kind: 'placeholder-value', + * // The name of the domain mapping to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * name: 'namespaces/my-namespace/domainmappings/my-domainmapping', + * // Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. + * propagationPolicy: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "data": {}, + * // "code": 0, + * // "details": {}, + * // "message": "my_message", * // "metadata": {}, - * // "stringData": {}, - * // "type": "my_type" + * // "reason": "my_reason", + * // "status": "my_status" * // } * } * @@ -2189,60 +2215,62 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.api.v1.namespaces.secrets.replaceSecret + * @alias run.namespaces.domainmappings.delete * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Required. The name of the secret being retrieved. If needed, replace {namespace_id} with the project ID. - * @param {().Secret} params.requestBody Request body data + * @param {string=} params.apiVersion Cloud Run currently ignores this parameter. + * @param {string=} params.kind Cloud Run currently ignores this parameter. + * @param {string} params.name The name of the domain mapping to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string=} params.propagationPolicy Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - replaceSecret( - params: Params$Resource$Api$V1$Namespaces$Secrets$Replacesecret, + delete( + params: Params$Resource$Namespaces$Domainmappings$Delete, options: StreamMethodOptions ): GaxiosPromise; - replaceSecret( - params?: Params$Resource$Api$V1$Namespaces$Secrets$Replacesecret, + delete( + params?: Params$Resource$Namespaces$Domainmappings$Delete, options?: MethodOptions - ): GaxiosPromise; - replaceSecret( - params: Params$Resource$Api$V1$Namespaces$Secrets$Replacesecret, + ): GaxiosPromise; + delete( + params: Params$Resource$Namespaces$Domainmappings$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - replaceSecret( - params: Params$Resource$Api$V1$Namespaces$Secrets$Replacesecret, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + delete( + params: Params$Resource$Namespaces$Domainmappings$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - replaceSecret( - params: Params$Resource$Api$V1$Namespaces$Secrets$Replacesecret, - callback: BodyResponseCallback + delete( + params: Params$Resource$Namespaces$Domainmappings$Delete, + callback: BodyResponseCallback ): void; - replaceSecret(callback: BodyResponseCallback): void; - replaceSecret( + delete(callback: BodyResponseCallback): void; + delete( paramsOrCallback?: - | Params$Resource$Api$V1$Namespaces$Secrets$Replacesecret - | BodyResponseCallback + | Params$Resource$Namespaces$Domainmappings$Delete + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { + ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Api$V1$Namespaces$Secrets$Replacesecret; + {}) as Params$Resource$Namespaces$Domainmappings$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Api$V1$Namespaces$Secrets$Replacesecret; + params = {} as Params$Resource$Namespaces$Domainmappings$Delete; options = {}; } @@ -2255,8 +2283,11 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/api/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/apis/domains.cloudrun.com/v1/{+name}').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'DELETE', }, options ), @@ -2266,82 +2297,18 @@ export namespace run_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } - } - - export interface Params$Resource$Api$V1$Namespaces$Secrets$Create - extends StandardParameters { - /** - * Required. The project ID or project number in which this secret should be created. - */ - parent?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Secret; - } - export interface Params$Resource$Api$V1$Namespaces$Secrets$Get - extends StandardParameters { - /** - * Required. The name of the secret being retrieved. If needed, replace {namespace_id} with the project ID. - */ - name?: string; - } - export interface Params$Resource$Api$V1$Namespaces$Secrets$Replacesecret - extends StandardParameters { - /** - * Required. The name of the secret being retrieved. If needed, replace {namespace_id} with the project ID. - */ - name?: string; /** - * Request body metadata - */ - requestBody?: Schema$Secret; - } - - export class Resource$Namespaces { - context: APIRequestContext; - authorizeddomains: Resource$Namespaces$Authorizeddomains; - configurations: Resource$Namespaces$Configurations; - domainmappings: Resource$Namespaces$Domainmappings; - revisions: Resource$Namespaces$Revisions; - routes: Resource$Namespaces$Routes; - services: Resource$Namespaces$Services; - constructor(context: APIRequestContext) { - this.context = context; - this.authorizeddomains = new Resource$Namespaces$Authorizeddomains( - this.context - ); - this.configurations = new Resource$Namespaces$Configurations( - this.context - ); - this.domainmappings = new Resource$Namespaces$Domainmappings( - this.context - ); - this.revisions = new Resource$Namespaces$Revisions(this.context); - this.routes = new Resource$Namespaces$Routes(this.context); - this.services = new Resource$Namespaces$Services(this.context); - } - } - - export class Resource$Namespaces$Authorizeddomains { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - - /** - * run.namespaces.authorizeddomains.list - * @desc List authorized domains. + * run.namespaces.domainmappings.get + * @desc Get information about a domain mapping. * @example * // Before running the sample: * // - Enable the API at: @@ -2365,20 +2332,19 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.namespaces.authorizeddomains.list({ - * // Maximum results to return per page. - * pageSize: 'placeholder-value', - * // Continuation token for fetching the next page of results. - * pageToken: 'placeholder-value', - * // Name of the parent Project resource. Example: `projects/myproject`. - * parent: 'namespaces/my-namespace', + * const res = await run.namespaces.domainmappings.get({ + * // The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * name: 'namespaces/my-namespace/domainmappings/my-domainmapping', * }); * console.log(res.data); * * // Example response * // { - * // "domains": [], - * // "nextPageToken": "my_nextPageToken" + * // "apiVersion": "my_apiVersion", + * // "kind": "my_kind", + * // "metadata": {}, + * // "spec": {}, + * // "status": {} * // } * } * @@ -2387,68 +2353,59 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.namespaces.authorizeddomains.list + * @alias run.namespaces.domainmappings.get * @memberOf! () * * @param {object} params Parameters for request - * @param {integer=} params.pageSize Maximum results to return per page. - * @param {string=} params.pageToken Continuation token for fetching the next page of results. - * @param {string} params.parent Name of the parent Project resource. Example: `projects/myproject`. + * @param {string} params.name The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list( - params: Params$Resource$Namespaces$Authorizeddomains$List, + get( + params: Params$Resource$Namespaces$Domainmappings$Get, options: StreamMethodOptions ): GaxiosPromise; - list( - params?: Params$Resource$Namespaces$Authorizeddomains$List, + get( + params?: Params$Resource$Namespaces$Domainmappings$Get, options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Namespaces$Authorizeddomains$List, + ): GaxiosPromise; + get( + params: Params$Resource$Namespaces$Domainmappings$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Namespaces$Authorizeddomains$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Namespaces$Authorizeddomains$List, - callback: BodyResponseCallback + get( + params: Params$Resource$Namespaces$Domainmappings$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - list( - callback: BodyResponseCallback + get( + params: Params$Resource$Namespaces$Domainmappings$Get, + callback: BodyResponseCallback ): void; - list( + get(callback: BodyResponseCallback): void; + get( paramsOrCallback?: - | Params$Resource$Namespaces$Authorizeddomains$List - | BodyResponseCallback + | Params$Resource$Namespaces$Domainmappings$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { + ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Authorizeddomains$List; + {}) as Params$Resource$Namespaces$Domainmappings$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Authorizeddomains$List; + params = {} as Params$Resource$Namespaces$Domainmappings$Get; options = {}; } @@ -2461,57 +2418,32 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: ( - rootUrl + - '/apis/domains.cloudrun.com/v1/{+parent}/authorizeddomains' - ).replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/apis/domains.cloudrun.com/v1/{+name}').replace( + /([^:]\/)\/+/g, + '$1' + ), method: 'GET', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } - } - - export interface Params$Resource$Namespaces$Authorizeddomains$List - extends StandardParameters { - /** - * Maximum results to return per page. - */ - pageSize?: number; - /** - * Continuation token for fetching the next page of results. - */ - pageToken?: string; - /** - * Name of the parent Project resource. Example: `projects/myproject`. - */ - parent?: string; - } - - export class Resource$Namespaces$Configurations { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * run.namespaces.configurations.get - * @desc Get information about a configuration. + * run.namespaces.domainmappings.list + * @desc List domain mappings. * @example * // Before running the sample: * // - Enable the API at: @@ -2535,19 +2467,33 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.namespaces.configurations.get({ - * // The name of the configuration to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * name: 'namespaces/my-namespace/configurations/my-configuration', + * const res = await run.namespaces.domainmappings.list({ + * // Optional encoded string to continue paging. + * continue: 'placeholder-value', + * // Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. + * fieldSelector: 'placeholder-value', + * // Not currently used by Cloud Run. + * includeUninitialized: 'placeholder-value', + * // Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. + * labelSelector: 'placeholder-value', + * // The maximum number of records that should be returned. + * limit: 'placeholder-value', + * // The namespace from which the domain mappings should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * parent: 'namespaces/my-namespace', + * // The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. + * resourceVersion: 'placeholder-value', + * // Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. + * watch: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { * // "apiVersion": "my_apiVersion", + * // "items": [], * // "kind": "my_kind", * // "metadata": {}, - * // "spec": {}, - * // "status": {} + * // "unreachable": [] * // } * } * @@ -2556,59 +2502,73 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.namespaces.configurations.get + * @alias run.namespaces.domainmappings.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name of the configuration to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string=} params.continue Optional encoded string to continue paging. + * @param {string=} params.fieldSelector Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. + * @param {boolean=} params.includeUninitialized Not currently used by Cloud Run. + * @param {string=} params.labelSelector Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. + * @param {integer=} params.limit The maximum number of records that should be returned. + * @param {string} params.parent The namespace from which the domain mappings should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string=} params.resourceVersion The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. + * @param {boolean=} params.watch Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get( - params: Params$Resource$Namespaces$Configurations$Get, + list( + params: Params$Resource$Namespaces$Domainmappings$List, options: StreamMethodOptions ): GaxiosPromise; - get( - params?: Params$Resource$Namespaces$Configurations$Get, + list( + params?: Params$Resource$Namespaces$Domainmappings$List, options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Namespaces$Configurations$Get, + ): GaxiosPromise; + list( + params: Params$Resource$Namespaces$Domainmappings$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Namespaces$Configurations$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + list( + params: Params$Resource$Namespaces$Domainmappings$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Namespaces$Configurations$Get, - callback: BodyResponseCallback + list( + params: Params$Resource$Namespaces$Domainmappings$List, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; - get( + list( + callback: BodyResponseCallback + ): void; + list( paramsOrCallback?: - | Params$Resource$Namespaces$Configurations$Get - | BodyResponseCallback + | Params$Resource$Namespaces$Domainmappings$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { + ): + | void + | GaxiosPromise + | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Configurations$Get; + {}) as Params$Resource$Namespaces$Domainmappings$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Configurations$Get; + params = {} as Params$Resource$Namespaces$Domainmappings$List; options = {}; } @@ -2621,1353 +2581,42 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace( - /([^:]\/)\/+/g, - '$1' - ), + url: ( + rootUrl + '/apis/domains.cloudrun.com/v1/{+parent}/domainmappings' + ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options ), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback<{} | void> - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * run.namespaces.configurations.list - * @desc List configurations. - * @example - * // Before running the sample: - * // - Enable the API at: - * // https://console.developers.google.com/apis/api/run.googleapis.com - * // - Login into gcloud by running: - * // `$ gcloud auth application-default login` - * // - Install the npm module by running: - * // `$ npm install googleapis` - * - * const {google} = require('googleapis'); - * const run = google.run('v1'); - * - * 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 run.namespaces.configurations.list({ - * // Optional encoded string to continue paging. - * continue: 'placeholder-value', - * // Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - * fieldSelector: 'placeholder-value', - * // Not currently used by Cloud Run. - * includeUninitialized: 'placeholder-value', - * // Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. - * labelSelector: 'placeholder-value', - * // The maximum number of records that should be returned. - * limit: 'placeholder-value', - * // The namespace from which the configurations should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * parent: 'namespaces/my-namespace', - * // The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. - * resourceVersion: 'placeholder-value', - * // Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. - * watch: 'placeholder-value', - * }); - * console.log(res.data); - * - * // Example response - * // { - * // "apiVersion": "my_apiVersion", - * // "items": [], - * // "kind": "my_kind", - * // "metadata": {}, - * // "unreachable": [] - * // } - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * @alias run.namespaces.configurations.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.continue Optional encoded string to continue paging. - * @param {string=} params.fieldSelector Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - * @param {boolean=} params.includeUninitialized Not currently used by Cloud Run. - * @param {string=} params.labelSelector Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. - * @param {integer=} params.limit The maximum number of records that should be returned. - * @param {string} params.parent The namespace from which the configurations should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {string=} params.resourceVersion The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. - * @param {boolean=} params.watch Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - list( - params: Params$Resource$Namespaces$Configurations$List, - options: StreamMethodOptions - ): GaxiosPromise; - list( - params?: Params$Resource$Namespaces$Configurations$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Namespaces$Configurations$List, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Namespaces$Configurations$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Namespaces$Configurations$List, - callback: BodyResponseCallback - ): void; - list( - callback: BodyResponseCallback - ): void; - list( - paramsOrCallback?: - | Params$Resource$Namespaces$Configurations$List - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Configurations$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Configurations$List; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + '/apis/serving.knative.dev/v1/{+parent}/configurations' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback<{} | void> - ); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Namespaces$Configurations$Get - extends StandardParameters { - /** - * The name of the configuration to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - name?: string; - } - export interface Params$Resource$Namespaces$Configurations$List - extends StandardParameters { - /** - * Optional encoded string to continue paging. - */ - continue?: string; - /** - * Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - */ - fieldSelector?: string; - /** - * Not currently used by Cloud Run. - */ - includeUninitialized?: boolean; - /** - * Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. - */ - labelSelector?: string; - /** - * The maximum number of records that should be returned. - */ - limit?: number; - /** - * The namespace from which the configurations should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - parent?: string; - /** - * The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. - */ - resourceVersion?: string; - /** - * Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. - */ - watch?: boolean; - } - - export class Resource$Namespaces$Domainmappings { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - - /** - * run.namespaces.domainmappings.create - * @desc Create a new domain mapping. - * @example - * // Before running the sample: - * // - Enable the API at: - * // https://console.developers.google.com/apis/api/run.googleapis.com - * // - Login into gcloud by running: - * // `$ gcloud auth application-default login` - * // - Install the npm module by running: - * // `$ npm install googleapis` - * - * const {google} = require('googleapis'); - * const run = google.run('v1'); - * - * 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 run.namespaces.domainmappings.create({ - * // The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * parent: 'namespaces/my-namespace', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "apiVersion": "my_apiVersion", - * // "kind": "my_kind", - * // "metadata": {}, - * // "spec": {}, - * // "status": {} - * // } - * }, - * }); - * console.log(res.data); - * - * // Example response - * // { - * // "apiVersion": "my_apiVersion", - * // "kind": "my_kind", - * // "metadata": {}, - * // "spec": {}, - * // "status": {} - * // } - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * @alias run.namespaces.domainmappings.create - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.parent The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {().DomainMapping} params.requestBody Request body data - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - create( - params: Params$Resource$Namespaces$Domainmappings$Create, - options: StreamMethodOptions - ): GaxiosPromise; - create( - params?: Params$Resource$Namespaces$Domainmappings$Create, - options?: MethodOptions - ): GaxiosPromise; - create( - params: Params$Resource$Namespaces$Domainmappings$Create, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - create( - params: Params$Resource$Namespaces$Domainmappings$Create, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - create( - params: Params$Resource$Namespaces$Domainmappings$Create, - callback: BodyResponseCallback - ): void; - create(callback: BodyResponseCallback): void; - create( - paramsOrCallback?: - | Params$Resource$Namespaces$Domainmappings$Create - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Domainmappings$Create; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Domainmappings$Create; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + '/apis/domains.cloudrun.com/v1/{+parent}/domainmappings' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback<{} | void> - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * run.namespaces.domainmappings.delete - * @desc Delete a domain mapping. - * @example - * // Before running the sample: - * // - Enable the API at: - * // https://console.developers.google.com/apis/api/run.googleapis.com - * // - Login into gcloud by running: - * // `$ gcloud auth application-default login` - * // - Install the npm module by running: - * // `$ npm install googleapis` - * - * const {google} = require('googleapis'); - * const run = google.run('v1'); - * - * 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 run.namespaces.domainmappings.delete({ - * // Cloud Run currently ignores this parameter. - * apiVersion: 'placeholder-value', - * // Cloud Run currently ignores this parameter. - * kind: 'placeholder-value', - * // The name of the domain mapping to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * name: 'namespaces/my-namespace/domainmappings/my-domainmapping', - * // Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. - * propagationPolicy: 'placeholder-value', - * }); - * console.log(res.data); - * - * // Example response - * // { - * // "code": 0, - * // "details": {}, - * // "message": "my_message", - * // "metadata": {}, - * // "reason": "my_reason", - * // "status": "my_status" - * // } - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * @alias run.namespaces.domainmappings.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.apiVersion Cloud Run currently ignores this parameter. - * @param {string=} params.kind Cloud Run currently ignores this parameter. - * @param {string} params.name The name of the domain mapping to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {string=} params.propagationPolicy Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - delete( - params: Params$Resource$Namespaces$Domainmappings$Delete, - options: StreamMethodOptions - ): GaxiosPromise; - delete( - params?: Params$Resource$Namespaces$Domainmappings$Delete, - options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Namespaces$Domainmappings$Delete, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Namespaces$Domainmappings$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Namespaces$Domainmappings$Delete, - callback: BodyResponseCallback - ): void; - delete(callback: BodyResponseCallback): void; - delete( - paramsOrCallback?: - | Params$Resource$Namespaces$Domainmappings$Delete - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Domainmappings$Delete; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Domainmappings$Delete; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/apis/domains.cloudrun.com/v1/{+name}').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'DELETE', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback<{} | void> - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * run.namespaces.domainmappings.get - * @desc Get information about a domain mapping. - * @example - * // Before running the sample: - * // - Enable the API at: - * // https://console.developers.google.com/apis/api/run.googleapis.com - * // - Login into gcloud by running: - * // `$ gcloud auth application-default login` - * // - Install the npm module by running: - * // `$ npm install googleapis` - * - * const {google} = require('googleapis'); - * const run = google.run('v1'); - * - * 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 run.namespaces.domainmappings.get({ - * // The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * name: 'namespaces/my-namespace/domainmappings/my-domainmapping', - * }); - * console.log(res.data); - * - * // Example response - * // { - * // "apiVersion": "my_apiVersion", - * // "kind": "my_kind", - * // "metadata": {}, - * // "spec": {}, - * // "status": {} - * // } - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * @alias run.namespaces.domainmappings.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - get( - params: Params$Resource$Namespaces$Domainmappings$Get, - options: StreamMethodOptions - ): GaxiosPromise; - get( - params?: Params$Resource$Namespaces$Domainmappings$Get, - options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Namespaces$Domainmappings$Get, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Namespaces$Domainmappings$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Namespaces$Domainmappings$Get, - callback: BodyResponseCallback - ): void; - get(callback: BodyResponseCallback): void; - get( - paramsOrCallback?: - | Params$Resource$Namespaces$Domainmappings$Get - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Domainmappings$Get; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Domainmappings$Get; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/apis/domains.cloudrun.com/v1/{+name}').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'GET', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback<{} | void> - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * run.namespaces.domainmappings.list - * @desc List domain mappings. - * @example - * // Before running the sample: - * // - Enable the API at: - * // https://console.developers.google.com/apis/api/run.googleapis.com - * // - Login into gcloud by running: - * // `$ gcloud auth application-default login` - * // - Install the npm module by running: - * // `$ npm install googleapis` - * - * const {google} = require('googleapis'); - * const run = google.run('v1'); - * - * 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 run.namespaces.domainmappings.list({ - * // Optional encoded string to continue paging. - * continue: 'placeholder-value', - * // Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - * fieldSelector: 'placeholder-value', - * // Not currently used by Cloud Run. - * includeUninitialized: 'placeholder-value', - * // Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. - * labelSelector: 'placeholder-value', - * // The maximum number of records that should be returned. - * limit: 'placeholder-value', - * // The namespace from which the domain mappings should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * parent: 'namespaces/my-namespace', - * // The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. - * resourceVersion: 'placeholder-value', - * // Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. - * watch: 'placeholder-value', - * }); - * console.log(res.data); - * - * // Example response - * // { - * // "apiVersion": "my_apiVersion", - * // "items": [], - * // "kind": "my_kind", - * // "metadata": {}, - * // "unreachable": [] - * // } - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * @alias run.namespaces.domainmappings.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.continue Optional encoded string to continue paging. - * @param {string=} params.fieldSelector Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - * @param {boolean=} params.includeUninitialized Not currently used by Cloud Run. - * @param {string=} params.labelSelector Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. - * @param {integer=} params.limit The maximum number of records that should be returned. - * @param {string} params.parent The namespace from which the domain mappings should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {string=} params.resourceVersion The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. - * @param {boolean=} params.watch Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - list( - params: Params$Resource$Namespaces$Domainmappings$List, - options: StreamMethodOptions - ): GaxiosPromise; - list( - params?: Params$Resource$Namespaces$Domainmappings$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Namespaces$Domainmappings$List, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Namespaces$Domainmappings$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Namespaces$Domainmappings$List, - callback: BodyResponseCallback - ): void; - list( - callback: BodyResponseCallback - ): void; - list( - paramsOrCallback?: - | Params$Resource$Namespaces$Domainmappings$List - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Domainmappings$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Domainmappings$List; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + '/apis/domains.cloudrun.com/v1/{+parent}/domainmappings' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback<{} | void> - ); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Namespaces$Domainmappings$Create - extends StandardParameters { - /** - * The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - parent?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$DomainMapping; - } - export interface Params$Resource$Namespaces$Domainmappings$Delete - extends StandardParameters { - /** - * Cloud Run currently ignores this parameter. - */ - apiVersion?: string; - /** - * Cloud Run currently ignores this parameter. - */ - kind?: string; - /** - * The name of the domain mapping to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - name?: string; - /** - * Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. - */ - propagationPolicy?: string; - } - export interface Params$Resource$Namespaces$Domainmappings$Get - extends StandardParameters { - /** - * The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - name?: string; - } - export interface Params$Resource$Namespaces$Domainmappings$List - extends StandardParameters { - /** - * Optional encoded string to continue paging. - */ - continue?: string; - /** - * Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - */ - fieldSelector?: string; - /** - * Not currently used by Cloud Run. - */ - includeUninitialized?: boolean; - /** - * Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. - */ - labelSelector?: string; - /** - * The maximum number of records that should be returned. - */ - limit?: number; - /** - * The namespace from which the domain mappings should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - parent?: string; - /** - * The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. - */ - resourceVersion?: string; - /** - * Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. - */ - watch?: boolean; - } - - export class Resource$Namespaces$Revisions { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - - /** - * run.namespaces.revisions.delete - * @desc Delete a revision. - * @example - * // Before running the sample: - * // - Enable the API at: - * // https://console.developers.google.com/apis/api/run.googleapis.com - * // - Login into gcloud by running: - * // `$ gcloud auth application-default login` - * // - Install the npm module by running: - * // `$ npm install googleapis` - * - * const {google} = require('googleapis'); - * const run = google.run('v1'); - * - * 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 run.namespaces.revisions.delete({ - * // Cloud Run currently ignores this parameter. - * apiVersion: 'placeholder-value', - * // Cloud Run currently ignores this parameter. - * kind: 'placeholder-value', - * // The name of the revision to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * name: 'namespaces/my-namespace/revisions/my-revision', - * // Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. - * propagationPolicy: 'placeholder-value', - * }); - * console.log(res.data); - * - * // Example response - * // { - * // "code": 0, - * // "details": {}, - * // "message": "my_message", - * // "metadata": {}, - * // "reason": "my_reason", - * // "status": "my_status" - * // } - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * @alias run.namespaces.revisions.delete - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.apiVersion Cloud Run currently ignores this parameter. - * @param {string=} params.kind Cloud Run currently ignores this parameter. - * @param {string} params.name The name of the revision to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {string=} params.propagationPolicy Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - delete( - params: Params$Resource$Namespaces$Revisions$Delete, - options: StreamMethodOptions - ): GaxiosPromise; - delete( - params?: Params$Resource$Namespaces$Revisions$Delete, - options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Namespaces$Revisions$Delete, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Namespaces$Revisions$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Namespaces$Revisions$Delete, - callback: BodyResponseCallback - ): void; - delete(callback: BodyResponseCallback): void; - delete( - paramsOrCallback?: - | Params$Resource$Namespaces$Revisions$Delete - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Revisions$Delete; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Revisions$Delete; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'DELETE', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback<{} | void> - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * run.namespaces.revisions.get - * @desc Get information about a revision. - * @example - * // Before running the sample: - * // - Enable the API at: - * // https://console.developers.google.com/apis/api/run.googleapis.com - * // - Login into gcloud by running: - * // `$ gcloud auth application-default login` - * // - Install the npm module by running: - * // `$ npm install googleapis` - * - * const {google} = require('googleapis'); - * const run = google.run('v1'); - * - * 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 run.namespaces.revisions.get({ - * // The name of the revision to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * name: 'namespaces/my-namespace/revisions/my-revision', - * }); - * console.log(res.data); - * - * // Example response - * // { - * // "apiVersion": "my_apiVersion", - * // "kind": "my_kind", - * // "metadata": {}, - * // "spec": {}, - * // "status": {} - * // } - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * @alias run.namespaces.revisions.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the revision to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - get( - params: Params$Resource$Namespaces$Revisions$Get, - options: StreamMethodOptions - ): GaxiosPromise; - get( - params?: Params$Resource$Namespaces$Revisions$Get, - options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Namespaces$Revisions$Get, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Namespaces$Revisions$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Namespaces$Revisions$Get, - callback: BodyResponseCallback - ): void; - get(callback: BodyResponseCallback): void; - get( - paramsOrCallback?: - | Params$Resource$Namespaces$Revisions$Get - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Revisions$Get; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Revisions$Get; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'GET', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback<{} | void> - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * run.namespaces.revisions.list - * @desc List revisions. - * @example - * // Before running the sample: - * // - Enable the API at: - * // https://console.developers.google.com/apis/api/run.googleapis.com - * // - Login into gcloud by running: - * // `$ gcloud auth application-default login` - * // - Install the npm module by running: - * // `$ npm install googleapis` - * - * const {google} = require('googleapis'); - * const run = google.run('v1'); - * - * 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 run.namespaces.revisions.list({ - * // Optional encoded string to continue paging. - * continue: 'placeholder-value', - * // Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - * fieldSelector: 'placeholder-value', - * // Not currently used by Cloud Run. - * includeUninitialized: 'placeholder-value', - * // Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. - * labelSelector: 'placeholder-value', - * // The maximum number of records that should be returned. - * limit: 'placeholder-value', - * // The namespace from which the revisions should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * parent: 'namespaces/my-namespace', - * // The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. - * resourceVersion: 'placeholder-value', - * // Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. - * watch: 'placeholder-value', - * }); - * console.log(res.data); - * - * // Example response - * // { - * // "apiVersion": "my_apiVersion", - * // "items": [], - * // "kind": "my_kind", - * // "metadata": {}, - * // "unreachable": [] - * // } - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * @alias run.namespaces.revisions.list - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string=} params.continue Optional encoded string to continue paging. - * @param {string=} params.fieldSelector Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - * @param {boolean=} params.includeUninitialized Not currently used by Cloud Run. - * @param {string=} params.labelSelector Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. - * @param {integer=} params.limit The maximum number of records that should be returned. - * @param {string} params.parent The namespace from which the revisions should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {string=} params.resourceVersion The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. - * @param {boolean=} params.watch Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - list( - params: Params$Resource$Namespaces$Revisions$List, - options: StreamMethodOptions - ): GaxiosPromise; - list( - params?: Params$Resource$Namespaces$Revisions$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Namespaces$Revisions$List, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Namespaces$Revisions$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Namespaces$Revisions$List, - callback: BodyResponseCallback - ): void; - list(callback: BodyResponseCallback): void; - list( - paramsOrCallback?: - | Params$Resource$Namespaces$Revisions$List - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Revisions$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Revisions$List; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + '/apis/serving.knative.dev/v1/{+parent}/revisions' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } } - export interface Params$Resource$Namespaces$Revisions$Delete + export interface Params$Resource$Namespaces$Domainmappings$Create + extends StandardParameters { + /** + * The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$DomainMapping; + } + export interface Params$Resource$Namespaces$Domainmappings$Delete extends StandardParameters { /** * Cloud Run currently ignores this parameter. @@ -3978,7 +2627,7 @@ export namespace run_v1 { */ kind?: string; /** - * The name of the revision to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * The name of the domain mapping to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. */ name?: string; /** @@ -3986,14 +2635,14 @@ export namespace run_v1 { */ propagationPolicy?: string; } - export interface Params$Resource$Namespaces$Revisions$Get + export interface Params$Resource$Namespaces$Domainmappings$Get extends StandardParameters { /** - * The name of the revision to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. */ name?: string; } - export interface Params$Resource$Namespaces$Revisions$List + export interface Params$Resource$Namespaces$Domainmappings$List extends StandardParameters { /** * Optional encoded string to continue paging. @@ -4016,7 +2665,7 @@ export namespace run_v1 { */ limit?: number; /** - * The namespace from which the revisions should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * The namespace from which the domain mappings should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. */ parent?: string; /** @@ -4029,150 +2678,15 @@ export namespace run_v1 { watch?: boolean; } - export class Resource$Namespaces$Routes { + export class Resource$Namespaces$Revisions { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * run.namespaces.routes.get - * @desc Get information about a route. - * @example - * // Before running the sample: - * // - Enable the API at: - * // https://console.developers.google.com/apis/api/run.googleapis.com - * // - Login into gcloud by running: - * // `$ gcloud auth application-default login` - * // - Install the npm module by running: - * // `$ npm install googleapis` - * - * const {google} = require('googleapis'); - * const run = google.run('v1'); - * - * 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 run.namespaces.routes.get({ - * // The name of the route to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * name: 'namespaces/my-namespace/routes/my-route', - * }); - * console.log(res.data); - * - * // Example response - * // { - * // "apiVersion": "my_apiVersion", - * // "kind": "my_kind", - * // "metadata": {}, - * // "spec": {}, - * // "status": {} - * // } - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * @alias run.namespaces.routes.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name The name of the route to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - get( - params: Params$Resource$Namespaces$Routes$Get, - options: StreamMethodOptions - ): GaxiosPromise; - get( - params?: Params$Resource$Namespaces$Routes$Get, - options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Namespaces$Routes$Get, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Namespaces$Routes$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Namespaces$Routes$Get, - callback: BodyResponseCallback - ): void; - get(callback: BodyResponseCallback): void; - get( - paramsOrCallback?: - | Params$Resource$Namespaces$Routes$Get - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Routes$Get; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Routes$Get; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'GET', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback<{} | void> - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * run.namespaces.routes.list - * @desc List routes. + * run.namespaces.revisions.delete + * @desc Delete a revision. * @example * // Before running the sample: * // - Enable the API at: @@ -4196,33 +2710,26 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.namespaces.routes.list({ - * // Optional encoded string to continue paging. - * continue: 'placeholder-value', - * // Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - * fieldSelector: 'placeholder-value', - * // Not currently used by Cloud Run. - * includeUninitialized: 'placeholder-value', - * // Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. - * labelSelector: 'placeholder-value', - * // The maximum number of records that should be returned. - * limit: 'placeholder-value', - * // The namespace from which the routes should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * parent: 'namespaces/my-namespace', - * // The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. - * resourceVersion: 'placeholder-value', - * // Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. - * watch: 'placeholder-value', + * const res = await run.namespaces.revisions.delete({ + * // Cloud Run currently ignores this parameter. + * apiVersion: 'placeholder-value', + * // Cloud Run currently ignores this parameter. + * kind: 'placeholder-value', + * // The name of the revision to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * name: 'namespaces/my-namespace/revisions/my-revision', + * // Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. + * propagationPolicy: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "apiVersion": "my_apiVersion", - * // "items": [], - * // "kind": "my_kind", + * // "code": 0, + * // "details": {}, + * // "message": "my_message", * // "metadata": {}, - * // "unreachable": [] + * // "reason": "my_reason", + * // "status": "my_status" * // } * } * @@ -4231,69 +2738,62 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.namespaces.routes.list + * @alias run.namespaces.revisions.delete * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.continue Optional encoded string to continue paging. - * @param {string=} params.fieldSelector Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - * @param {boolean=} params.includeUninitialized Not currently used by Cloud Run. - * @param {string=} params.labelSelector Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. - * @param {integer=} params.limit The maximum number of records that should be returned. - * @param {string} params.parent The namespace from which the routes should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {string=} params.resourceVersion The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. - * @param {boolean=} params.watch Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. + * @param {string=} params.apiVersion Cloud Run currently ignores this parameter. + * @param {string=} params.kind Cloud Run currently ignores this parameter. + * @param {string} params.name The name of the revision to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string=} params.propagationPolicy Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list( - params: Params$Resource$Namespaces$Routes$List, + delete( + params: Params$Resource$Namespaces$Revisions$Delete, options: StreamMethodOptions ): GaxiosPromise; - list( - params?: Params$Resource$Namespaces$Routes$List, + delete( + params?: Params$Resource$Namespaces$Revisions$Delete, options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Namespaces$Routes$List, + ): GaxiosPromise; + delete( + params: Params$Resource$Namespaces$Revisions$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Namespaces$Routes$List, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + delete( + params: Params$Resource$Namespaces$Revisions$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Namespaces$Routes$List, - callback: BodyResponseCallback + delete( + params: Params$Resource$Namespaces$Revisions$Delete, + callback: BodyResponseCallback ): void; - list(callback: BodyResponseCallback): void; - list( + delete(callback: BodyResponseCallback): void; + delete( paramsOrCallback?: - | Params$Resource$Namespaces$Routes$List - | BodyResponseCallback + | Params$Resource$Namespaces$Revisions$Delete + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { + ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Routes$List; + {}) as Params$Resource$Namespaces$Revisions$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Routes$List; + params = {} as Params$Resource$Namespaces$Revisions$Delete; options = {}; } @@ -4306,81 +2806,32 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: ( - rootUrl + '/apis/serving.knative.dev/v1/{+parent}/routes' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'DELETE', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } - } - - export interface Params$Resource$Namespaces$Routes$Get - extends StandardParameters { - /** - * The name of the route to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - name?: string; - } - export interface Params$Resource$Namespaces$Routes$List - extends StandardParameters { - /** - * Optional encoded string to continue paging. - */ - continue?: string; - /** - * Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - */ - fieldSelector?: string; - /** - * Not currently used by Cloud Run. - */ - includeUninitialized?: boolean; - /** - * Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. - */ - labelSelector?: string; - /** - * The maximum number of records that should be returned. - */ - limit?: number; - /** - * The namespace from which the routes should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - parent?: string; - /** - * The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. - */ - resourceVersion?: string; - /** - * Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. - */ - watch?: boolean; - } - - export class Resource$Namespaces$Services { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * run.namespaces.services.create - * @desc Create a service. + * run.namespaces.revisions.get + * @desc Get information about a revision. * @example * // Before running the sample: * // - Enable the API at: @@ -4404,21 +2855,9 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.namespaces.services.create({ - * // The namespace in which the service should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * parent: 'namespaces/my-namespace', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "apiVersion": "my_apiVersion", - * // "kind": "my_kind", - * // "metadata": {}, - * // "spec": {}, - * // "status": {} - * // } - * }, + * const res = await run.namespaces.revisions.get({ + * // The name of the revision to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * name: 'namespaces/my-namespace/revisions/my-revision', * }); * console.log(res.data); * @@ -4437,60 +2876,59 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.namespaces.services.create + * @alias run.namespaces.revisions.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.parent The namespace in which the service should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {().Service} params.requestBody Request body data + * @param {string} params.name The name of the revision to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create( - params: Params$Resource$Namespaces$Services$Create, + get( + params: Params$Resource$Namespaces$Revisions$Get, options: StreamMethodOptions ): GaxiosPromise; - create( - params?: Params$Resource$Namespaces$Services$Create, + get( + params?: Params$Resource$Namespaces$Revisions$Get, options?: MethodOptions - ): GaxiosPromise; - create( - params: Params$Resource$Namespaces$Services$Create, + ): GaxiosPromise; + get( + params: Params$Resource$Namespaces$Revisions$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - create( - params: Params$Resource$Namespaces$Services$Create, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + get( + params: Params$Resource$Namespaces$Revisions$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - create( - params: Params$Resource$Namespaces$Services$Create, - callback: BodyResponseCallback + get( + params: Params$Resource$Namespaces$Revisions$Get, + callback: BodyResponseCallback ): void; - create(callback: BodyResponseCallback): void; - create( + get(callback: BodyResponseCallback): void; + get( paramsOrCallback?: - | Params$Resource$Namespaces$Services$Create - | BodyResponseCallback + | Params$Resource$Namespaces$Revisions$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { + ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Services$Create; + {}) as Params$Resource$Namespaces$Revisions$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Services$Create; + params = {} as Params$Resource$Namespaces$Revisions$Get; options = {}; } @@ -4503,31 +2941,32 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: ( - rootUrl + '/apis/serving.knative.dev/v1/{+parent}/services' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * run.namespaces.services.delete - * @desc Delete a service. This will cause the Service to stop serving traffic and will delete the child entities like Routes, Configurations and Revisions. + * run.namespaces.revisions.list + * @desc List revisions. * @example * // Before running the sample: * // - Enable the API at: @@ -4551,26 +2990,33 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.namespaces.services.delete({ - * // Cloud Run currently ignores this parameter. - * apiVersion: 'placeholder-value', - * // Cloud Run currently ignores this parameter. - * kind: 'placeholder-value', - * // The name of the service to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * name: 'namespaces/my-namespace/services/my-service', - * // Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. - * propagationPolicy: 'placeholder-value', + * const res = await run.namespaces.revisions.list({ + * // Optional encoded string to continue paging. + * continue: 'placeholder-value', + * // Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. + * fieldSelector: 'placeholder-value', + * // Not currently used by Cloud Run. + * includeUninitialized: 'placeholder-value', + * // Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. + * labelSelector: 'placeholder-value', + * // The maximum number of records that should be returned. + * limit: 'placeholder-value', + * // The namespace from which the revisions should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * parent: 'namespaces/my-namespace', + * // The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. + * resourceVersion: 'placeholder-value', + * // Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. + * watch: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "code": 0, - * // "details": {}, - * // "message": "my_message", + * // "apiVersion": "my_apiVersion", + * // "items": [], + * // "kind": "my_kind", * // "metadata": {}, - * // "reason": "my_reason", - * // "status": "my_status" + * // "unreachable": [] * // } * } * @@ -4579,62 +3025,71 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.namespaces.services.delete + * @alias run.namespaces.revisions.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.apiVersion Cloud Run currently ignores this parameter. - * @param {string=} params.kind Cloud Run currently ignores this parameter. - * @param {string} params.name The name of the service to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {string=} params.propagationPolicy Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. + * @param {string=} params.continue Optional encoded string to continue paging. + * @param {string=} params.fieldSelector Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. + * @param {boolean=} params.includeUninitialized Not currently used by Cloud Run. + * @param {string=} params.labelSelector Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. + * @param {integer=} params.limit The maximum number of records that should be returned. + * @param {string} params.parent The namespace from which the revisions should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string=} params.resourceVersion The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. + * @param {boolean=} params.watch Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete( - params: Params$Resource$Namespaces$Services$Delete, + list( + params: Params$Resource$Namespaces$Revisions$List, options: StreamMethodOptions ): GaxiosPromise; - delete( - params?: Params$Resource$Namespaces$Services$Delete, + list( + params?: Params$Resource$Namespaces$Revisions$List, options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Namespaces$Services$Delete, + ): GaxiosPromise; + list( + params: Params$Resource$Namespaces$Revisions$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - delete( - params: Params$Resource$Namespaces$Services$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + list( + params: Params$Resource$Namespaces$Revisions$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - delete( - params: Params$Resource$Namespaces$Services$Delete, - callback: BodyResponseCallback + list( + params: Params$Resource$Namespaces$Revisions$List, + callback: BodyResponseCallback ): void; - delete(callback: BodyResponseCallback): void; - delete( - paramsOrCallback?: - | Params$Resource$Namespaces$Services$Delete - | BodyResponseCallback + list(callback: BodyResponseCallback): void; + list( + paramsOrCallback?: + | Params$Resource$Namespaces$Revisions$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { + ): + | void + | GaxiosPromise + | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Services$Delete; + {}) as Params$Resource$Namespaces$Revisions$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Services$Delete; + params = {} as Params$Resource$Namespaces$Revisions$List; options = {}; } @@ -4647,32 +3102,100 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'DELETE', + url: ( + rootUrl + '/apis/serving.knative.dev/v1/{+parent}/revisions' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options ), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } + export interface Params$Resource$Namespaces$Revisions$Delete + extends StandardParameters { /** - * run.namespaces.services.get - * @desc Get information about a service. + * Cloud Run currently ignores this parameter. + */ + apiVersion?: string; + /** + * Cloud Run currently ignores this parameter. + */ + kind?: string; + /** + * The name of the revision to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + */ + name?: string; + /** + * Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. + */ + propagationPolicy?: string; + } + export interface Params$Resource$Namespaces$Revisions$Get + extends StandardParameters { + /** + * The name of the revision to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + */ + name?: string; + } + export interface Params$Resource$Namespaces$Revisions$List + extends StandardParameters { + /** + * Optional encoded string to continue paging. + */ + continue?: string; + /** + * Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. + */ + fieldSelector?: string; + /** + * Not currently used by Cloud Run. + */ + includeUninitialized?: boolean; + /** + * Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. + */ + labelSelector?: string; + /** + * The maximum number of records that should be returned. + */ + limit?: number; + /** + * The namespace from which the revisions should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + */ + parent?: string; + /** + * The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. + */ + resourceVersion?: string; + /** + * Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. + */ + watch?: boolean; + } + + export class Resource$Namespaces$Routes { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * run.namespaces.routes.get + * @desc Get information about a route. * @example * // Before running the sample: * // - Enable the API at: @@ -4696,9 +3219,9 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.namespaces.services.get({ - * // The name of the service to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * name: 'namespaces/my-namespace/services/my-service', + * const res = await run.namespaces.routes.get({ + * // The name of the route to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * name: 'namespaces/my-namespace/routes/my-route', * }); * console.log(res.data); * @@ -4717,59 +3240,59 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.namespaces.services.get + * @alias run.namespaces.routes.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name of the service to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string} params.name The name of the route to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ get( - params: Params$Resource$Namespaces$Services$Get, + params: Params$Resource$Namespaces$Routes$Get, options: StreamMethodOptions ): GaxiosPromise; get( - params?: Params$Resource$Namespaces$Services$Get, + params?: Params$Resource$Namespaces$Routes$Get, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; get( - params: Params$Resource$Namespaces$Services$Get, + params: Params$Resource$Namespaces$Routes$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; get( - params: Params$Resource$Namespaces$Services$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + params: Params$Resource$Namespaces$Routes$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; get( - params: Params$Resource$Namespaces$Services$Get, - callback: BodyResponseCallback + params: Params$Resource$Namespaces$Routes$Get, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; get( paramsOrCallback?: - | Params$Resource$Namespaces$Services$Get - | BodyResponseCallback + | Params$Resource$Namespaces$Routes$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { + ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Services$Get; + {}) as Params$Resource$Namespaces$Routes$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Services$Get; + params = {} as Params$Resource$Namespaces$Routes$Get; options = {}; } @@ -4796,18 +3319,18 @@ export namespace run_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * run.namespaces.services.list - * @desc List services. + * run.namespaces.routes.list + * @desc List routes. * @example * // Before running the sample: * // - Enable the API at: @@ -4831,7 +3354,7 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.namespaces.services.list({ + * const res = await run.namespaces.routes.list({ * // Optional encoded string to continue paging. * continue: 'placeholder-value', * // Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. @@ -4842,7 +3365,7 @@ export namespace run_v1 { * labelSelector: 'placeholder-value', * // The maximum number of records that should be returned. * limit: 'placeholder-value', - * // The namespace from which the services should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * // The namespace from which the routes should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. * parent: 'namespaces/my-namespace', * // The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. * resourceVersion: 'placeholder-value', @@ -4866,7 +3389,7 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.namespaces.services.list + * @alias run.namespaces.routes.list * @memberOf! () * * @param {object} params Parameters for request @@ -4875,7 +3398,7 @@ export namespace run_v1 { * @param {boolean=} params.includeUninitialized Not currently used by Cloud Run. * @param {string=} params.labelSelector Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. * @param {integer=} params.limit The maximum number of records that should be returned. - * @param {string} params.parent The namespace from which the services should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string} params.parent The namespace from which the routes should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. * @param {string=} params.resourceVersion The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. * @param {boolean=} params.watch Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. @@ -4883,54 +3406,52 @@ export namespace run_v1 { * @return {object} Request object */ list( - params: Params$Resource$Namespaces$Services$List, + params: Params$Resource$Namespaces$Routes$List, options: StreamMethodOptions ): GaxiosPromise; list( - params?: Params$Resource$Namespaces$Services$List, + params?: Params$Resource$Namespaces$Routes$List, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; list( - params: Params$Resource$Namespaces$Services$List, + params: Params$Resource$Namespaces$Routes$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; list( - params: Params$Resource$Namespaces$Services$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + params: Params$Resource$Namespaces$Routes$List, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; list( - params: Params$Resource$Namespaces$Services$List, - callback: BodyResponseCallback + params: Params$Resource$Namespaces$Routes$List, + callback: BodyResponseCallback ): void; - list(callback: BodyResponseCallback): void; + list(callback: BodyResponseCallback): void; list( paramsOrCallback?: - | Params$Resource$Namespaces$Services$List - | BodyResponseCallback + | Params$Resource$Namespaces$Routes$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Services$List; + {}) as Params$Resource$Namespaces$Routes$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Services$List; + params = {} as Params$Resource$Namespaces$Routes$List; options = {}; } @@ -4939,35 +3460,85 @@ export namespace run_v1 { options = {}; } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: ( - rootUrl + '/apis/serving.knative.dev/v1/{+parent}/services' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback<{} | void> - ); - } else { - return createAPIRequest(parameters); - } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + '/apis/serving.knative.dev/v1/{+parent}/routes' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, + options + ), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback<{} | void> + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Namespaces$Routes$Get + extends StandardParameters { + /** + * The name of the route to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + */ + name?: string; + } + export interface Params$Resource$Namespaces$Routes$List + extends StandardParameters { + /** + * Optional encoded string to continue paging. + */ + continue?: string; + /** + * Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. + */ + fieldSelector?: string; + /** + * Not currently used by Cloud Run. + */ + includeUninitialized?: boolean; + /** + * Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. + */ + labelSelector?: string; + /** + * The maximum number of records that should be returned. + */ + limit?: number; + /** + * The namespace from which the routes should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + */ + parent?: string; + /** + * The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. + */ + resourceVersion?: string; + /** + * Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. + */ + watch?: boolean; + } + + export class Resource$Namespaces$Services { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; } /** - * run.namespaces.services.replaceService - * @desc Replace a service. Only the spec and metadata labels and annotations are modifiable. After the Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control. + * run.namespaces.services.create + * @desc Create a service. * @example * // Before running the sample: * // - Enable the API at: @@ -4991,9 +3562,9 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.namespaces.services.replaceService({ - * // The name of the service being replaced. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * name: 'namespaces/my-namespace/services/my-service', + * const res = await run.namespaces.services.create({ + * // The namespace in which the service should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * parent: 'namespaces/my-namespace', * * // Request body metadata * requestBody: { @@ -5024,42 +3595,42 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.namespaces.services.replaceService + * @alias run.namespaces.services.create * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name of the service being replaced. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string} params.parent The namespace in which the service should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. * @param {().Service} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - replaceService( - params: Params$Resource$Namespaces$Services$Replaceservice, + create( + params: Params$Resource$Namespaces$Services$Create, options: StreamMethodOptions ): GaxiosPromise; - replaceService( - params?: Params$Resource$Namespaces$Services$Replaceservice, + create( + params?: Params$Resource$Namespaces$Services$Create, options?: MethodOptions ): GaxiosPromise; - replaceService( - params: Params$Resource$Namespaces$Services$Replaceservice, + create( + params: Params$Resource$Namespaces$Services$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - replaceService( - params: Params$Resource$Namespaces$Services$Replaceservice, + create( + params: Params$Resource$Namespaces$Services$Create, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - replaceService( - params: Params$Resource$Namespaces$Services$Replaceservice, + create( + params: Params$Resource$Namespaces$Services$Create, callback: BodyResponseCallback ): void; - replaceService(callback: BodyResponseCallback): void; - replaceService( + create(callback: BodyResponseCallback): void; + create( paramsOrCallback?: - | Params$Resource$Namespaces$Services$Replaceservice + | Params$Resource$Namespaces$Services$Create | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -5072,12 +3643,12 @@ export namespace run_v1 { | BodyResponseCallback ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Services$Replaceservice; + {}) as Params$Resource$Namespaces$Services$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Services$Replaceservice; + params = {} as Params$Resource$Namespaces$Services$Create; options = {}; } @@ -5090,17 +3661,16 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'PUT', + url: ( + rootUrl + '/apis/serving.knative.dev/v1/{+parent}/services' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options ), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { @@ -5112,116 +3682,10 @@ export namespace run_v1 { return createAPIRequest(parameters); } } - } - - export interface Params$Resource$Namespaces$Services$Create - extends StandardParameters { - /** - * The namespace in which the service should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - parent?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Service; - } - export interface Params$Resource$Namespaces$Services$Delete - extends StandardParameters { - /** - * Cloud Run currently ignores this parameter. - */ - apiVersion?: string; - /** - * Cloud Run currently ignores this parameter. - */ - kind?: string; - /** - * The name of the service to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - name?: string; - /** - * Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. - */ - propagationPolicy?: string; - } - export interface Params$Resource$Namespaces$Services$Get - extends StandardParameters { - /** - * The name of the service to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - name?: string; - } - export interface Params$Resource$Namespaces$Services$List - extends StandardParameters { - /** - * Optional encoded string to continue paging. - */ - continue?: string; - /** - * Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - */ - fieldSelector?: string; - /** - * Not currently used by Cloud Run. - */ - includeUninitialized?: boolean; - /** - * Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. - */ - labelSelector?: string; - /** - * The maximum number of records that should be returned. - */ - limit?: number; - /** - * The namespace from which the services should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - parent?: string; - /** - * The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. - */ - resourceVersion?: string; - /** - * Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. - */ - watch?: boolean; - } - export interface Params$Resource$Namespaces$Services$Replaceservice - extends StandardParameters { - /** - * The name of the service being replaced. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - name?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Service; - } - - export class Resource$Projects { - context: APIRequestContext; - authorizeddomains: Resource$Projects$Authorizeddomains; - locations: Resource$Projects$Locations; - constructor(context: APIRequestContext) { - this.context = context; - this.authorizeddomains = new Resource$Projects$Authorizeddomains( - this.context - ); - this.locations = new Resource$Projects$Locations(this.context); - } - } - - export class Resource$Projects$Authorizeddomains { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * run.projects.authorizeddomains.list - * @desc List authorized domains. + * run.namespaces.services.delete + * @desc Delete a service. This will cause the Service to stop serving traffic and will delete the child entities like Routes, Configurations and Revisions. * @example * // Before running the sample: * // - Enable the API at: @@ -5245,20 +3709,26 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.projects.authorizeddomains.list({ - * // Maximum results to return per page. - * pageSize: 'placeholder-value', - * // Continuation token for fetching the next page of results. - * pageToken: 'placeholder-value', - * // Name of the parent Project resource. Example: `projects/myproject`. - * parent: 'projects/my-project', + * const res = await run.namespaces.services.delete({ + * // Cloud Run currently ignores this parameter. + * apiVersion: 'placeholder-value', + * // Cloud Run currently ignores this parameter. + * kind: 'placeholder-value', + * // The name of the service to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * name: 'namespaces/my-namespace/services/my-service', + * // Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. + * propagationPolicy: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "domains": [], - * // "nextPageToken": "my_nextPageToken" + * // "code": 0, + * // "details": {}, + * // "message": "my_message", + * // "metadata": {}, + * // "reason": "my_reason", + * // "status": "my_status" * // } * } * @@ -5267,68 +3737,62 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.projects.authorizeddomains.list + * @alias run.namespaces.services.delete * @memberOf! () * * @param {object} params Parameters for request - * @param {integer=} params.pageSize Maximum results to return per page. - * @param {string=} params.pageToken Continuation token for fetching the next page of results. - * @param {string} params.parent Name of the parent Project resource. Example: `projects/myproject`. + * @param {string=} params.apiVersion Cloud Run currently ignores this parameter. + * @param {string=} params.kind Cloud Run currently ignores this parameter. + * @param {string} params.name The name of the service to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string=} params.propagationPolicy Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list( - params: Params$Resource$Projects$Authorizeddomains$List, + delete( + params: Params$Resource$Namespaces$Services$Delete, options: StreamMethodOptions ): GaxiosPromise; - list( - params?: Params$Resource$Projects$Authorizeddomains$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Projects$Authorizeddomains$List, + delete( + params?: Params$Resource$Namespaces$Services$Delete, + options?: MethodOptions + ): GaxiosPromise; + delete( + params: Params$Resource$Namespaces$Services$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Projects$Authorizeddomains$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Projects$Authorizeddomains$List, - callback: BodyResponseCallback + delete( + params: Params$Resource$Namespaces$Services$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - list( - callback: BodyResponseCallback + delete( + params: Params$Resource$Namespaces$Services$Delete, + callback: BodyResponseCallback ): void; - list( + delete(callback: BodyResponseCallback): void; + delete( paramsOrCallback?: - | Params$Resource$Projects$Authorizeddomains$List - | BodyResponseCallback + | Params$Resource$Namespaces$Services$Delete + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { + ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Authorizeddomains$List; + {}) as Params$Resource$Namespaces$Services$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Authorizeddomains$List; + params = {} as Params$Resource$Namespaces$Services$Delete; options = {}; } @@ -5341,81 +3805,32 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+parent}/authorizeddomains').replace( + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace( /([^:]\/)\/+/g, '$1' ), - method: 'GET', + method: 'DELETE', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } - } - - export interface Params$Resource$Projects$Authorizeddomains$List - extends StandardParameters { - /** - * Maximum results to return per page. - */ - pageSize?: number; - /** - * Continuation token for fetching the next page of results. - */ - pageToken?: string; - /** - * Name of the parent Project resource. Example: `projects/myproject`. - */ - parent?: string; - } - - export class Resource$Projects$Locations { - context: APIRequestContext; - authorizeddomains: Resource$Projects$Locations$Authorizeddomains; - configurations: Resource$Projects$Locations$Configurations; - domainmappings: Resource$Projects$Locations$Domainmappings; - namespaces: Resource$Projects$Locations$Namespaces; - revisions: Resource$Projects$Locations$Revisions; - routes: Resource$Projects$Locations$Routes; - secrets: Resource$Projects$Locations$Secrets; - services: Resource$Projects$Locations$Services; - constructor(context: APIRequestContext) { - this.context = context; - this.authorizeddomains = new Resource$Projects$Locations$Authorizeddomains( - this.context - ); - this.configurations = new Resource$Projects$Locations$Configurations( - this.context - ); - this.domainmappings = new Resource$Projects$Locations$Domainmappings( - this.context - ); - this.namespaces = new Resource$Projects$Locations$Namespaces( - this.context - ); - this.revisions = new Resource$Projects$Locations$Revisions(this.context); - this.routes = new Resource$Projects$Locations$Routes(this.context); - this.secrets = new Resource$Projects$Locations$Secrets(this.context); - this.services = new Resource$Projects$Locations$Services(this.context); - } /** - * run.projects.locations.list - * @desc Lists information about the supported locations for this service. + * run.namespaces.services.get + * @desc Get information about a service. * @example * // Before running the sample: * // - Enable the API at: @@ -5439,22 +3854,19 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.projects.locations.list({ - * // The standard list filter. - * filter: 'placeholder-value', - * // The resource that owns the locations collection, if applicable. - * name: 'projects/my-project', - * // The standard list page size. - * pageSize: 'placeholder-value', - * // The standard list page token. - * pageToken: 'placeholder-value', + * const res = await run.namespaces.services.get({ + * // The name of the service to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * name: 'namespaces/my-namespace/services/my-service', * }); * console.log(res.data); * * // Example response * // { - * // "locations": [], - * // "nextPageToken": "my_nextPageToken" + * // "apiVersion": "my_apiVersion", + * // "kind": "my_kind", + * // "metadata": {}, + * // "spec": {}, + * // "status": {} * // } * } * @@ -5463,67 +3875,59 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.projects.locations.list + * @alias run.namespaces.services.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.filter The standard list filter. - * @param {string} params.name The resource that owns the locations collection, if applicable. - * @param {integer=} params.pageSize The standard list page size. - * @param {string=} params.pageToken The standard list page token. + * @param {string} params.name The name of the service to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list( - params: Params$Resource$Projects$Locations$List, + get( + params: Params$Resource$Namespaces$Services$Get, options: StreamMethodOptions ): GaxiosPromise; - list( - params?: Params$Resource$Projects$Locations$List, + get( + params?: Params$Resource$Namespaces$Services$Get, options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Projects$Locations$List, + ): GaxiosPromise; + get( + params: Params$Resource$Namespaces$Services$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Projects$Locations$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + get( + params: Params$Resource$Namespaces$Services$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Projects$Locations$List, - callback: BodyResponseCallback + get( + params: Params$Resource$Namespaces$Services$Get, + callback: BodyResponseCallback ): void; - list(callback: BodyResponseCallback): void; - list( + get(callback: BodyResponseCallback): void; + get( paramsOrCallback?: - | Params$Resource$Projects$Locations$List - | BodyResponseCallback + | Params$Resource$Namespaces$Services$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { + ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$List; + {}) as Params$Resource$Namespaces$Services$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$List; + params = {} as Params$Resource$Namespaces$Services$Get; options = {}; } @@ -5536,7 +3940,7 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}/locations').replace( + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace( /([^:]\/)\/+/g, '$1' ), @@ -5550,45 +3954,18 @@ export namespace run_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } - } - - export interface Params$Resource$Projects$Locations$List - extends StandardParameters { - /** - * The standard list filter. - */ - filter?: string; - /** - * The resource that owns the locations collection, if applicable. - */ - name?: string; - /** - * The standard list page size. - */ - pageSize?: number; - /** - * The standard list page token. - */ - pageToken?: string; - } - - export class Resource$Projects$Locations$Authorizeddomains { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * run.projects.locations.authorizeddomains.list - * @desc List authorized domains. + * run.namespaces.services.list + * @desc List services. * @example * // Before running the sample: * // - Enable the API at: @@ -5612,20 +3989,33 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.projects.locations.authorizeddomains.list({ - * // Maximum results to return per page. - * pageSize: 'placeholder-value', - * // Continuation token for fetching the next page of results. - * pageToken: 'placeholder-value', - * // Name of the parent Project resource. Example: `projects/myproject`. - * parent: 'projects/my-project/locations/my-location', + * const res = await run.namespaces.services.list({ + * // Optional encoded string to continue paging. + * continue: 'placeholder-value', + * // Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. + * fieldSelector: 'placeholder-value', + * // Not currently used by Cloud Run. + * includeUninitialized: 'placeholder-value', + * // Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. + * labelSelector: 'placeholder-value', + * // The maximum number of records that should be returned. + * limit: 'placeholder-value', + * // The namespace from which the services should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * parent: 'namespaces/my-namespace', + * // The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. + * resourceVersion: 'placeholder-value', + * // Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. + * watch: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "domains": [], - * // "nextPageToken": "my_nextPageToken" + * // "apiVersion": "my_apiVersion", + * // "items": [], + * // "kind": "my_kind", + * // "metadata": {}, + * // "unreachable": [] * // } * } * @@ -5634,68 +4024,71 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.projects.locations.authorizeddomains.list + * @alias run.namespaces.services.list * @memberOf! () - * - * @param {object} params Parameters for request - * @param {integer=} params.pageSize Maximum results to return per page. - * @param {string=} params.pageToken Continuation token for fetching the next page of results. - * @param {string} params.parent Name of the parent Project resource. Example: `projects/myproject`. + * + * @param {object} params Parameters for request + * @param {string=} params.continue Optional encoded string to continue paging. + * @param {string=} params.fieldSelector Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. + * @param {boolean=} params.includeUninitialized Not currently used by Cloud Run. + * @param {string=} params.labelSelector Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. + * @param {integer=} params.limit The maximum number of records that should be returned. + * @param {string} params.parent The namespace from which the services should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string=} params.resourceVersion The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. + * @param {boolean=} params.watch Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ list( - params: Params$Resource$Projects$Locations$Authorizeddomains$List, + params: Params$Resource$Namespaces$Services$List, options: StreamMethodOptions ): GaxiosPromise; list( - params?: Params$Resource$Projects$Locations$Authorizeddomains$List, + params?: Params$Resource$Namespaces$Services$List, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; list( - params: Params$Resource$Projects$Locations$Authorizeddomains$List, + params: Params$Resource$Namespaces$Services$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; list( - params: Params$Resource$Projects$Locations$Authorizeddomains$List, + params: Params$Resource$Namespaces$Services$List, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Projects$Locations$Authorizeddomains$List, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; list( - callback: BodyResponseCallback + params: Params$Resource$Namespaces$Services$List, + callback: BodyResponseCallback ): void; + list(callback: BodyResponseCallback): void; list( paramsOrCallback?: - | Params$Resource$Projects$Locations$Authorizeddomains$List - | BodyResponseCallback + | Params$Resource$Namespaces$Services$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Authorizeddomains$List; + {}) as Params$Resource$Namespaces$Services$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Authorizeddomains$List; + params = {} as Params$Resource$Namespaces$Services$List; options = {}; } @@ -5708,10 +4101,9 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+parent}/authorizeddomains').replace( - /([^:]\/)\/+/g, - '$1' - ), + url: ( + rootUrl + '/apis/serving.knative.dev/v1/{+parent}/services' + ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options @@ -5722,43 +4114,18 @@ export namespace run_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } - } - - export interface Params$Resource$Projects$Locations$Authorizeddomains$List - extends StandardParameters { - /** - * Maximum results to return per page. - */ - pageSize?: number; - /** - * Continuation token for fetching the next page of results. - */ - pageToken?: string; - /** - * Name of the parent Project resource. Example: `projects/myproject`. - */ - parent?: string; - } - - export class Resource$Projects$Locations$Configurations { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * run.projects.locations.configurations.get - * @desc Get information about a configuration. + * run.namespaces.services.replaceService + * @desc Replace a service. Only the spec and metadata labels and annotations are modifiable. After the Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control. * @example * // Before running the sample: * // - Enable the API at: @@ -5782,10 +4149,21 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.projects.locations.configurations.get({ - * // The name of the configuration to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * name: - * 'projects/my-project/locations/my-location/configurations/my-configuration', + * const res = await run.namespaces.services.replaceService({ + * // The name of the service being replaced. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * name: 'namespaces/my-namespace/services/my-service', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "apiVersion": "my_apiVersion", + * // "kind": "my_kind", + * // "metadata": {}, + * // "spec": {}, + * // "status": {} + * // } + * }, * }); * console.log(res.data); * @@ -5804,94 +4182,204 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.projects.locations.configurations.get + * @alias run.namespaces.services.replaceService * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name of the configuration to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string} params.name The name of the service being replaced. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {().Service} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get( - params: Params$Resource$Projects$Locations$Configurations$Get, - options: StreamMethodOptions - ): GaxiosPromise; - get( - params?: Params$Resource$Projects$Locations$Configurations$Get, - options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Projects$Locations$Configurations$Get, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Projects$Locations$Configurations$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Projects$Locations$Configurations$Get, - callback: BodyResponseCallback - ): void; - get(callback: BodyResponseCallback): void; - get( - paramsOrCallback?: - | Params$Resource$Projects$Locations$Configurations$Get - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Configurations$Get; - let options = (optionsOrCallback || {}) as MethodOptions; + replaceService( + params: Params$Resource$Namespaces$Services$Replaceservice, + options: StreamMethodOptions + ): GaxiosPromise; + replaceService( + params?: Params$Resource$Namespaces$Services$Replaceservice, + options?: MethodOptions + ): GaxiosPromise; + replaceService( + params: Params$Resource$Namespaces$Services$Replaceservice, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + replaceService( + params: Params$Resource$Namespaces$Services$Replaceservice, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + replaceService( + params: Params$Resource$Namespaces$Services$Replaceservice, + callback: BodyResponseCallback + ): void; + replaceService(callback: BodyResponseCallback): void; + replaceService( + paramsOrCallback?: + | Params$Resource$Namespaces$Services$Replaceservice + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Namespaces$Services$Replaceservice; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Namespaces$Services$Replaceservice; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'PUT', + }, + options + ), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback<{} | void> + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Namespaces$Services$Create + extends StandardParameters { + /** + * The namespace in which the service should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$Service; + } + export interface Params$Resource$Namespaces$Services$Delete + extends StandardParameters { + /** + * Cloud Run currently ignores this parameter. + */ + apiVersion?: string; + /** + * Cloud Run currently ignores this parameter. + */ + kind?: string; + /** + * The name of the service to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + */ + name?: string; + /** + * Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. + */ + propagationPolicy?: string; + } + export interface Params$Resource$Namespaces$Services$Get + extends StandardParameters { + /** + * The name of the service to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + */ + name?: string; + } + export interface Params$Resource$Namespaces$Services$List + extends StandardParameters { + /** + * Optional encoded string to continue paging. + */ + continue?: string; + /** + * Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. + */ + fieldSelector?: string; + /** + * Not currently used by Cloud Run. + */ + includeUninitialized?: boolean; + /** + * Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. + */ + labelSelector?: string; + /** + * The maximum number of records that should be returned. + */ + limit?: number; + /** + * The namespace from which the services should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + */ + parent?: string; + /** + * The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. + */ + resourceVersion?: string; + /** + * Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. + */ + watch?: boolean; + } + export interface Params$Resource$Namespaces$Services$Replaceservice + extends StandardParameters { + /** + * The name of the service being replaced. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + */ + name?: string; - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Configurations$Get; - options = {}; - } + /** + * Request body metadata + */ + requestBody?: Schema$Service; + } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } + export class Resource$Projects { + context: APIRequestContext; + authorizeddomains: Resource$Projects$Authorizeddomains; + locations: Resource$Projects$Locations; + constructor(context: APIRequestContext) { + this.context = context; + this.authorizeddomains = new Resource$Projects$Authorizeddomains( + this.context + ); + this.locations = new Resource$Projects$Locations(this.context); + } + } - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback<{} | void> - ); - } else { - return createAPIRequest(parameters); - } + export class Resource$Projects$Authorizeddomains { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; } /** - * run.projects.locations.configurations.list - * @desc List configurations. + * run.projects.authorizeddomains.list + * @desc List authorized domains. * @example * // Before running the sample: * // - Enable the API at: @@ -5915,33 +4403,20 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.projects.locations.configurations.list({ - * // Optional encoded string to continue paging. - * continue: 'placeholder-value', - * // Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - * fieldSelector: 'placeholder-value', - * // Not currently used by Cloud Run. - * includeUninitialized: 'placeholder-value', - * // Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. - * labelSelector: 'placeholder-value', - * // The maximum number of records that should be returned. - * limit: 'placeholder-value', - * // The namespace from which the configurations should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * parent: 'projects/my-project/locations/my-location', - * // The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. - * resourceVersion: 'placeholder-value', - * // Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. - * watch: 'placeholder-value', + * const res = await run.projects.authorizeddomains.list({ + * // Maximum results to return per page. + * pageSize: 'placeholder-value', + * // Continuation token for fetching the next page of results. + * pageToken: 'placeholder-value', + * // Name of the parent Project resource. Example: `projects/myproject`. + * parent: 'projects/my-project', * }); * console.log(res.data); * * // Example response * // { - * // "apiVersion": "my_apiVersion", - * // "items": [], - * // "kind": "my_kind", - * // "metadata": {}, - * // "unreachable": [] + * // "domains": [], + * // "nextPageToken": "my_nextPageToken" * // } * } * @@ -5950,73 +4425,68 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.projects.locations.configurations.list + * @alias run.projects.authorizeddomains.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.continue Optional encoded string to continue paging. - * @param {string=} params.fieldSelector Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - * @param {boolean=} params.includeUninitialized Not currently used by Cloud Run. - * @param {string=} params.labelSelector Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. - * @param {integer=} params.limit The maximum number of records that should be returned. - * @param {string} params.parent The namespace from which the configurations should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {string=} params.resourceVersion The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. - * @param {boolean=} params.watch Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. + * @param {integer=} params.pageSize Maximum results to return per page. + * @param {string=} params.pageToken Continuation token for fetching the next page of results. + * @param {string} params.parent Name of the parent Project resource. Example: `projects/myproject`. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ list( - params: Params$Resource$Projects$Locations$Configurations$List, + params: Params$Resource$Projects$Authorizeddomains$List, options: StreamMethodOptions ): GaxiosPromise; list( - params?: Params$Resource$Projects$Locations$Configurations$List, + params?: Params$Resource$Projects$Authorizeddomains$List, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; list( - params: Params$Resource$Projects$Locations$Configurations$List, + params: Params$Resource$Projects$Authorizeddomains$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; list( - params: Params$Resource$Projects$Locations$Configurations$List, + params: Params$Resource$Projects$Authorizeddomains$List, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; list( - params: Params$Resource$Projects$Locations$Configurations$List, - callback: BodyResponseCallback + params: Params$Resource$Projects$Authorizeddomains$List, + callback: BodyResponseCallback ): void; list( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; list( paramsOrCallback?: - | Params$Resource$Projects$Locations$Configurations$List - | BodyResponseCallback + | Params$Resource$Projects$Authorizeddomains$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Configurations$List; + {}) as Params$Resource$Projects$Authorizeddomains$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Configurations$List; + params = {} as Params$Resource$Projects$Authorizeddomains$List; options = {}; } @@ -6029,7 +4499,7 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+parent}/configurations').replace( + url: (rootUrl + '/v1/{+parent}/authorizeddomains').replace( /([^:]\/)\/+/g, '$1' ), @@ -6043,68 +4513,61 @@ export namespace run_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest( + parameters + ); } } } - export interface Params$Resource$Projects$Locations$Configurations$Get - extends StandardParameters { - /** - * The name of the configuration to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - name?: string; - } - export interface Params$Resource$Projects$Locations$Configurations$List + export interface Params$Resource$Projects$Authorizeddomains$List extends StandardParameters { /** - * Optional encoded string to continue paging. - */ - continue?: string; - /** - * Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - */ - fieldSelector?: string; - /** - * Not currently used by Cloud Run. - */ - includeUninitialized?: boolean; - /** - * Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. + * Maximum results to return per page. */ - labelSelector?: string; + pageSize?: number; /** - * The maximum number of records that should be returned. + * Continuation token for fetching the next page of results. */ - limit?: number; + pageToken?: string; /** - * The namespace from which the configurations should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * Name of the parent Project resource. Example: `projects/myproject`. */ parent?: string; - /** - * The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. - */ - resourceVersion?: string; - /** - * Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. - */ - watch?: boolean; } - export class Resource$Projects$Locations$Domainmappings { + export class Resource$Projects$Locations { context: APIRequestContext; + authorizeddomains: Resource$Projects$Locations$Authorizeddomains; + configurations: Resource$Projects$Locations$Configurations; + domainmappings: Resource$Projects$Locations$Domainmappings; + revisions: Resource$Projects$Locations$Revisions; + routes: Resource$Projects$Locations$Routes; + services: Resource$Projects$Locations$Services; constructor(context: APIRequestContext) { this.context = context; + this.authorizeddomains = new Resource$Projects$Locations$Authorizeddomains( + this.context + ); + this.configurations = new Resource$Projects$Locations$Configurations( + this.context + ); + this.domainmappings = new Resource$Projects$Locations$Domainmappings( + this.context + ); + this.revisions = new Resource$Projects$Locations$Revisions(this.context); + this.routes = new Resource$Projects$Locations$Routes(this.context); + this.services = new Resource$Projects$Locations$Services(this.context); } /** - * run.projects.locations.domainmappings.create - * @desc Create a new domain mapping. + * run.projects.locations.list + * @desc Lists information about the supported locations for this service. * @example * // Before running the sample: * // - Enable the API at: @@ -6128,31 +4591,22 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.projects.locations.domainmappings.create({ - * // The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * parent: 'projects/my-project/locations/my-location', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "apiVersion": "my_apiVersion", - * // "kind": "my_kind", - * // "metadata": {}, - * // "spec": {}, - * // "status": {} - * // } - * }, + * const res = await run.projects.locations.list({ + * // The standard list filter. + * filter: 'placeholder-value', + * // The resource that owns the locations collection, if applicable. + * name: 'projects/my-project', + * // The standard list page size. + * pageSize: 'placeholder-value', + * // The standard list page token. + * pageToken: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "apiVersion": "my_apiVersion", - * // "kind": "my_kind", - * // "metadata": {}, - * // "spec": {}, - * // "status": {} + * // "locations": [], + * // "nextPageToken": "my_nextPageToken" * // } * } * @@ -6161,60 +4615,67 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.projects.locations.domainmappings.create + * @alias run.projects.locations.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.parent The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {().DomainMapping} params.requestBody Request body data + * @param {string=} params.filter The standard list filter. + * @param {string} params.name The resource that owns the locations collection, if applicable. + * @param {integer=} params.pageSize The standard list page size. + * @param {string=} params.pageToken The standard list page token. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create( - params: Params$Resource$Projects$Locations$Domainmappings$Create, + list( + params: Params$Resource$Projects$Locations$List, options: StreamMethodOptions ): GaxiosPromise; - create( - params?: Params$Resource$Projects$Locations$Domainmappings$Create, + list( + params?: Params$Resource$Projects$Locations$List, options?: MethodOptions - ): GaxiosPromise; - create( - params: Params$Resource$Projects$Locations$Domainmappings$Create, + ): GaxiosPromise; + list( + params: Params$Resource$Projects$Locations$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - create( - params: Params$Resource$Projects$Locations$Domainmappings$Create, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + list( + params: Params$Resource$Projects$Locations$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - create( - params: Params$Resource$Projects$Locations$Domainmappings$Create, - callback: BodyResponseCallback + list( + params: Params$Resource$Projects$Locations$List, + callback: BodyResponseCallback ): void; - create(callback: BodyResponseCallback): void; - create( + list(callback: BodyResponseCallback): void; + list( paramsOrCallback?: - | Params$Resource$Projects$Locations$Domainmappings$Create - | BodyResponseCallback + | Params$Resource$Projects$Locations$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { + ): + | void + | GaxiosPromise + | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Domainmappings$Create; + {}) as Params$Resource$Projects$Locations$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Domainmappings$Create; + params = {} as Params$Resource$Projects$Locations$List; options = {}; } @@ -6227,32 +4688,59 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+parent}/domainmappings').replace( + url: (rootUrl + '/v1/{+name}/locations').replace( /([^:]\/)\/+/g, '$1' ), - method: 'POST', + method: 'GET', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } + export interface Params$Resource$Projects$Locations$List + extends StandardParameters { /** - * run.projects.locations.domainmappings.delete - * @desc Delete a domain mapping. + * The standard list filter. + */ + filter?: string; + /** + * The resource that owns the locations collection, if applicable. + */ + name?: string; + /** + * The standard list page size. + */ + pageSize?: number; + /** + * The standard list page token. + */ + pageToken?: string; + } + + export class Resource$Projects$Locations$Authorizeddomains { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * run.projects.locations.authorizeddomains.list + * @desc List authorized domains. * @example * // Before running the sample: * // - Enable the API at: @@ -6276,27 +4764,20 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.projects.locations.domainmappings.delete({ - * // Cloud Run currently ignores this parameter. - * apiVersion: 'placeholder-value', - * // Cloud Run currently ignores this parameter. - * kind: 'placeholder-value', - * // The name of the domain mapping to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * name: - * 'projects/my-project/locations/my-location/domainmappings/my-domainmapping', - * // Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. - * propagationPolicy: 'placeholder-value', + * const res = await run.projects.locations.authorizeddomains.list({ + * // Maximum results to return per page. + * pageSize: 'placeholder-value', + * // Continuation token for fetching the next page of results. + * pageToken: 'placeholder-value', + * // Name of the parent Project resource. Example: `projects/myproject`. + * parent: 'projects/my-project/locations/my-location', * }); * console.log(res.data); * * // Example response * // { - * // "code": 0, - * // "details": {}, - * // "message": "my_message", - * // "metadata": {}, - * // "reason": "my_reason", - * // "status": "my_status" + * // "domains": [], + * // "nextPageToken": "my_nextPageToken" * // } * } * @@ -6305,62 +4786,68 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.projects.locations.domainmappings.delete + * @alias run.projects.locations.authorizeddomains.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.apiVersion Cloud Run currently ignores this parameter. - * @param {string=} params.kind Cloud Run currently ignores this parameter. - * @param {string} params.name The name of the domain mapping to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {string=} params.propagationPolicy Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. + * @param {integer=} params.pageSize Maximum results to return per page. + * @param {string=} params.pageToken Continuation token for fetching the next page of results. + * @param {string} params.parent Name of the parent Project resource. Example: `projects/myproject`. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete( - params: Params$Resource$Projects$Locations$Domainmappings$Delete, + list( + params: Params$Resource$Projects$Locations$Authorizeddomains$List, options: StreamMethodOptions ): GaxiosPromise; - delete( - params?: Params$Resource$Projects$Locations$Domainmappings$Delete, + list( + params?: Params$Resource$Projects$Locations$Authorizeddomains$List, options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Projects$Locations$Domainmappings$Delete, + ): GaxiosPromise; + list( + params: Params$Resource$Projects$Locations$Authorizeddomains$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - delete( - params: Params$Resource$Projects$Locations$Domainmappings$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + list( + params: Params$Resource$Projects$Locations$Authorizeddomains$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - delete( - params: Params$Resource$Projects$Locations$Domainmappings$Delete, - callback: BodyResponseCallback + list( + params: Params$Resource$Projects$Locations$Authorizeddomains$List, + callback: BodyResponseCallback ): void; - delete(callback: BodyResponseCallback): void; - delete( + list( + callback: BodyResponseCallback + ): void; + list( paramsOrCallback?: - | Params$Resource$Projects$Locations$Domainmappings$Delete - | BodyResponseCallback + | Params$Resource$Projects$Locations$Authorizeddomains$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { + ): + | void + | GaxiosPromise + | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Domainmappings$Delete; + {}) as Params$Resource$Projects$Locations$Authorizeddomains$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Domainmappings$Delete; + params = {} as Params$Resource$Projects$Locations$Authorizeddomains$List; options = {}; } @@ -6373,29 +4860,57 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/v1/{+parent}/authorizeddomains').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', }, options ), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest( + parameters + ); } } + } + + export interface Params$Resource$Projects$Locations$Authorizeddomains$List + extends StandardParameters { + /** + * Maximum results to return per page. + */ + pageSize?: number; + /** + * Continuation token for fetching the next page of results. + */ + pageToken?: string; + /** + * Name of the parent Project resource. Example: `projects/myproject`. + */ + parent?: string; + } + + export class Resource$Projects$Locations$Configurations { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } /** - * run.projects.locations.domainmappings.get - * @desc Get information about a domain mapping. + * run.projects.locations.configurations.get + * @desc Get information about a configuration. * @example * // Before running the sample: * // - Enable the API at: @@ -6419,10 +4934,10 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.projects.locations.domainmappings.get({ - * // The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * const res = await run.projects.locations.configurations.get({ + * // The name of the configuration to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. * name: - * 'projects/my-project/locations/my-location/domainmappings/my-domainmapping', + * 'projects/my-project/locations/my-location/configurations/my-configuration', * }); * console.log(res.data); * @@ -6441,59 +4956,59 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.projects.locations.domainmappings.get + * @alias run.projects.locations.configurations.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string} params.name The name of the configuration to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ get( - params: Params$Resource$Projects$Locations$Domainmappings$Get, + params: Params$Resource$Projects$Locations$Configurations$Get, options: StreamMethodOptions ): GaxiosPromise; get( - params?: Params$Resource$Projects$Locations$Domainmappings$Get, + params?: Params$Resource$Projects$Locations$Configurations$Get, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; get( - params: Params$Resource$Projects$Locations$Domainmappings$Get, + params: Params$Resource$Projects$Locations$Configurations$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; get( - params: Params$Resource$Projects$Locations$Domainmappings$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + params: Params$Resource$Projects$Locations$Configurations$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; get( - params: Params$Resource$Projects$Locations$Domainmappings$Get, - callback: BodyResponseCallback + params: Params$Resource$Projects$Locations$Configurations$Get, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; get( paramsOrCallback?: - | Params$Resource$Projects$Locations$Domainmappings$Get - | BodyResponseCallback + | Params$Resource$Projects$Locations$Configurations$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { + ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Domainmappings$Get; + {}) as Params$Resource$Projects$Locations$Configurations$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Domainmappings$Get; + params = {} as Params$Resource$Projects$Locations$Configurations$Get; options = {}; } @@ -6517,18 +5032,18 @@ export namespace run_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * run.projects.locations.domainmappings.list - * @desc List domain mappings. + * run.projects.locations.configurations.list + * @desc List configurations. * @example * // Before running the sample: * // - Enable the API at: @@ -6552,7 +5067,7 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.projects.locations.domainmappings.list({ + * const res = await run.projects.locations.configurations.list({ * // Optional encoded string to continue paging. * continue: 'placeholder-value', * // Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. @@ -6563,7 +5078,7 @@ export namespace run_v1 { * labelSelector: 'placeholder-value', * // The maximum number of records that should be returned. * limit: 'placeholder-value', - * // The namespace from which the domain mappings should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * // The namespace from which the configurations should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. * parent: 'projects/my-project/locations/my-location', * // The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. * resourceVersion: 'placeholder-value', @@ -6587,7 +5102,7 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.projects.locations.domainmappings.list + * @alias run.projects.locations.configurations.list * @memberOf! () * * @param {object} params Parameters for request @@ -6596,7 +5111,7 @@ export namespace run_v1 { * @param {boolean=} params.includeUninitialized Not currently used by Cloud Run. * @param {string=} params.labelSelector Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. * @param {integer=} params.limit The maximum number of records that should be returned. - * @param {string} params.parent The namespace from which the domain mappings should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string} params.parent The namespace from which the configurations should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. * @param {string=} params.resourceVersion The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. * @param {boolean=} params.watch Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. @@ -6604,56 +5119,56 @@ export namespace run_v1 { * @return {object} Request object */ list( - params: Params$Resource$Projects$Locations$Domainmappings$List, + params: Params$Resource$Projects$Locations$Configurations$List, options: StreamMethodOptions ): GaxiosPromise; list( - params?: Params$Resource$Projects$Locations$Domainmappings$List, + params?: Params$Resource$Projects$Locations$Configurations$List, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; list( - params: Params$Resource$Projects$Locations$Domainmappings$List, + params: Params$Resource$Projects$Locations$Configurations$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; list( - params: Params$Resource$Projects$Locations$Domainmappings$List, + params: Params$Resource$Projects$Locations$Configurations$List, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; list( - params: Params$Resource$Projects$Locations$Domainmappings$List, - callback: BodyResponseCallback + params: Params$Resource$Projects$Locations$Configurations$List, + callback: BodyResponseCallback ): void; list( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; list( paramsOrCallback?: - | Params$Resource$Projects$Locations$Domainmappings$List - | BodyResponseCallback + | Params$Resource$Projects$Locations$Configurations$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Domainmappings$List; + {}) as Params$Resource$Projects$Locations$Configurations$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Domainmappings$List; + params = {} as Params$Resource$Projects$Locations$Configurations$List; options = {}; } @@ -6666,7 +5181,7 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+parent}/domainmappings').replace( + url: (rootUrl + '/v1/{+parent}/configurations').replace( /([^:]\/)\/+/g, '$1' ), @@ -6680,55 +5195,24 @@ export namespace run_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } } - export interface Params$Resource$Projects$Locations$Domainmappings$Create - extends StandardParameters { - /** - * The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - parent?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$DomainMapping; - } - export interface Params$Resource$Projects$Locations$Domainmappings$Delete - extends StandardParameters { - /** - * Cloud Run currently ignores this parameter. - */ - apiVersion?: string; - /** - * Cloud Run currently ignores this parameter. - */ - kind?: string; - /** - * The name of the domain mapping to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - name?: string; - /** - * Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. - */ - propagationPolicy?: string; - } - export interface Params$Resource$Projects$Locations$Domainmappings$Get + export interface Params$Resource$Projects$Locations$Configurations$Get extends StandardParameters { /** - * The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * The name of the configuration to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. */ name?: string; } - export interface Params$Resource$Projects$Locations$Domainmappings$List + export interface Params$Resource$Projects$Locations$Configurations$List extends StandardParameters { /** * Optional encoded string to continue paging. @@ -6751,7 +5235,7 @@ export namespace run_v1 { */ limit?: number; /** - * The namespace from which the domain mappings should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * The namespace from which the configurations should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. */ parent?: string; /** @@ -6764,145 +5248,15 @@ export namespace run_v1 { watch?: boolean; } - export class Resource$Projects$Locations$Namespaces { + export class Resource$Projects$Locations$Domainmappings { context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - - /** - * run.projects.locations.namespaces.get - * @desc Rpc to get information about a namespace. - * @example - * // Before running the sample: - * // - Enable the API at: - * // https://console.developers.google.com/apis/api/run.googleapis.com - * // - Login into gcloud by running: - * // `$ gcloud auth application-default login` - * // - Install the npm module by running: - * // `$ npm install googleapis` - * - * const {google} = require('googleapis'); - * const run = google.run('v1'); - * - * 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 run.projects.locations.namespaces.get({ - * // Required. The name of the namespace being retrieved. If needed, replace {namespace_id} with the project ID. - * name: 'projects/my-project/locations/my-location/namespaces/my-namespace', - * }); - * console.log(res.data); - * - * // Example response - * // { - * // "metadata": {}, - * // "spec": {}, - * // "status": {} - * // } - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * @alias run.projects.locations.namespaces.get - * @memberOf! () - * - * @param {object} params Parameters for request - * @param {string} params.name Required. The name of the namespace being retrieved. If needed, replace {namespace_id} with the project ID. - * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. - * @param {callback} callback The callback that handles the response. - * @return {object} Request object - */ - get( - params: Params$Resource$Projects$Locations$Namespaces$Get, - options: StreamMethodOptions - ): GaxiosPromise; - get( - params?: Params$Resource$Projects$Locations$Namespaces$Get, - options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Projects$Locations$Namespaces$Get, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Projects$Locations$Namespaces$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Projects$Locations$Namespaces$Get, - callback: BodyResponseCallback - ): void; - get(callback: BodyResponseCallback): void; - get( - paramsOrCallback?: - | Params$Resource$Projects$Locations$Namespaces$Get - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Namespaces$Get; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Namespaces$Get; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback<{} | void> - ); - } else { - return createAPIRequest(parameters); - } + constructor(context: APIRequestContext) { + this.context = context; } /** - * run.projects.locations.namespaces.patch - * @desc Rpc to update a namespace. + * run.projects.locations.domainmappings.create + * @desc Create a new domain mapping. * @example * // Before running the sample: * // - Enable the API at: @@ -6926,16 +5280,16 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.projects.locations.namespaces.patch({ - * // Required. The name of the namespace being retrieved. If needed, replace {namespace_id} with the project ID. - * name: 'projects/my-project/locations/my-location/namespaces/my-namespace', - * // Required. Indicates which fields in the provided namespace to update. This field is currently unused. - * updateMask: 'placeholder-value', + * const res = await run.projects.locations.domainmappings.create({ + * // The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * parent: 'projects/my-project/locations/my-location', * * // Request body metadata * requestBody: { * // request body parameters * // { + * // "apiVersion": "my_apiVersion", + * // "kind": "my_kind", * // "metadata": {}, * // "spec": {}, * // "status": {} @@ -6946,6 +5300,8 @@ export namespace run_v1 { * * // Example response * // { + * // "apiVersion": "my_apiVersion", + * // "kind": "my_kind", * // "metadata": {}, * // "spec": {}, * // "status": {} @@ -6957,61 +5313,60 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.projects.locations.namespaces.patch + * @alias run.projects.locations.domainmappings.create * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Required. The name of the namespace being retrieved. If needed, replace {namespace_id} with the project ID. - * @param {string=} params.updateMask Required. Indicates which fields in the provided namespace to update. This field is currently unused. - * @param {().Namespace} params.requestBody Request body data + * @param {string} params.parent The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {().DomainMapping} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - patch( - params: Params$Resource$Projects$Locations$Namespaces$Patch, + create( + params: Params$Resource$Projects$Locations$Domainmappings$Create, options: StreamMethodOptions ): GaxiosPromise; - patch( - params?: Params$Resource$Projects$Locations$Namespaces$Patch, + create( + params?: Params$Resource$Projects$Locations$Domainmappings$Create, options?: MethodOptions - ): GaxiosPromise; - patch( - params: Params$Resource$Projects$Locations$Namespaces$Patch, + ): GaxiosPromise; + create( + params: Params$Resource$Projects$Locations$Domainmappings$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - patch( - params: Params$Resource$Projects$Locations$Namespaces$Patch, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + create( + params: Params$Resource$Projects$Locations$Domainmappings$Create, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - patch( - params: Params$Resource$Projects$Locations$Namespaces$Patch, - callback: BodyResponseCallback + create( + params: Params$Resource$Projects$Locations$Domainmappings$Create, + callback: BodyResponseCallback ): void; - patch(callback: BodyResponseCallback): void; - patch( + create(callback: BodyResponseCallback): void; + create( paramsOrCallback?: - | Params$Resource$Projects$Locations$Namespaces$Patch - | BodyResponseCallback + | Params$Resource$Projects$Locations$Domainmappings$Create + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { + ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Namespaces$Patch; + {}) as Params$Resource$Projects$Locations$Domainmappings$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Namespaces$Patch; + params = {} as Params$Resource$Projects$Locations$Domainmappings$Create; options = {}; } @@ -7024,60 +5379,32 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PATCH', + url: (rootUrl + '/v1/{+parent}/domainmappings').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', }, options ), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } - } - - export interface Params$Resource$Projects$Locations$Namespaces$Get - extends StandardParameters { - /** - * Required. The name of the namespace being retrieved. If needed, replace {namespace_id} with the project ID. - */ - name?: string; - } - export interface Params$Resource$Projects$Locations$Namespaces$Patch - extends StandardParameters { - /** - * Required. The name of the namespace being retrieved. If needed, replace {namespace_id} with the project ID. - */ - name?: string; - /** - * Required. Indicates which fields in the provided namespace to update. This field is currently unused. - */ - updateMask?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Namespace; - } - - export class Resource$Projects$Locations$Revisions { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * run.projects.locations.revisions.delete - * @desc Delete a revision. + * run.projects.locations.domainmappings.delete + * @desc Delete a domain mapping. * @example * // Before running the sample: * // - Enable the API at: @@ -7101,13 +5428,14 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.projects.locations.revisions.delete({ + * const res = await run.projects.locations.domainmappings.delete({ * // Cloud Run currently ignores this parameter. * apiVersion: 'placeholder-value', * // Cloud Run currently ignores this parameter. * kind: 'placeholder-value', - * // The name of the revision to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * name: 'projects/my-project/locations/my-location/revisions/my-revision', + * // The name of the domain mapping to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * name: + * 'projects/my-project/locations/my-location/domainmappings/my-domainmapping', * // Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. * propagationPolicy: 'placeholder-value', * }); @@ -7129,44 +5457,44 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.projects.locations.revisions.delete + * @alias run.projects.locations.domainmappings.delete * @memberOf! () * * @param {object} params Parameters for request * @param {string=} params.apiVersion Cloud Run currently ignores this parameter. * @param {string=} params.kind Cloud Run currently ignores this parameter. - * @param {string} params.name The name of the revision to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string} params.name The name of the domain mapping to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. * @param {string=} params.propagationPolicy Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ delete( - params: Params$Resource$Projects$Locations$Revisions$Delete, + params: Params$Resource$Projects$Locations$Domainmappings$Delete, options: StreamMethodOptions ): GaxiosPromise; delete( - params?: Params$Resource$Projects$Locations$Revisions$Delete, + params?: Params$Resource$Projects$Locations$Domainmappings$Delete, options?: MethodOptions ): GaxiosPromise; delete( - params: Params$Resource$Projects$Locations$Revisions$Delete, + params: Params$Resource$Projects$Locations$Domainmappings$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; delete( - params: Params$Resource$Projects$Locations$Revisions$Delete, + params: Params$Resource$Projects$Locations$Domainmappings$Delete, options: MethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; delete( - params: Params$Resource$Projects$Locations$Revisions$Delete, + params: Params$Resource$Projects$Locations$Domainmappings$Delete, callback: BodyResponseCallback ): void; delete(callback: BodyResponseCallback): void; delete( paramsOrCallback?: - | Params$Resource$Projects$Locations$Revisions$Delete + | Params$Resource$Projects$Locations$Domainmappings$Delete | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: @@ -7179,12 +5507,12 @@ export namespace run_v1 { | BodyResponseCallback ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Revisions$Delete; + {}) as Params$Resource$Projects$Locations$Domainmappings$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Revisions$Delete; + params = {} as Params$Resource$Projects$Locations$Domainmappings$Delete; options = {}; } @@ -7218,8 +5546,8 @@ export namespace run_v1 { } /** - * run.projects.locations.revisions.get - * @desc Get information about a revision. + * run.projects.locations.domainmappings.get + * @desc Get information about a domain mapping. * @example * // Before running the sample: * // - Enable the API at: @@ -7243,9 +5571,10 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.projects.locations.revisions.get({ - * // The name of the revision to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * name: 'projects/my-project/locations/my-location/revisions/my-revision', + * const res = await run.projects.locations.domainmappings.get({ + * // The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * name: + * 'projects/my-project/locations/my-location/domainmappings/my-domainmapping', * }); * console.log(res.data); * @@ -7264,59 +5593,59 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.projects.locations.revisions.get + * @alias run.projects.locations.domainmappings.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name of the revision to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string} params.name The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ get( - params: Params$Resource$Projects$Locations$Revisions$Get, + params: Params$Resource$Projects$Locations$Domainmappings$Get, options: StreamMethodOptions ): GaxiosPromise; get( - params?: Params$Resource$Projects$Locations$Revisions$Get, + params?: Params$Resource$Projects$Locations$Domainmappings$Get, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; get( - params: Params$Resource$Projects$Locations$Revisions$Get, + params: Params$Resource$Projects$Locations$Domainmappings$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; get( - params: Params$Resource$Projects$Locations$Revisions$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + params: Params$Resource$Projects$Locations$Domainmappings$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; get( - params: Params$Resource$Projects$Locations$Revisions$Get, - callback: BodyResponseCallback + params: Params$Resource$Projects$Locations$Domainmappings$Get, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; get( paramsOrCallback?: - | Params$Resource$Projects$Locations$Revisions$Get - | BodyResponseCallback + | Params$Resource$Projects$Locations$Domainmappings$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { + ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Revisions$Get; + {}) as Params$Resource$Projects$Locations$Domainmappings$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Revisions$Get; + params = {} as Params$Resource$Projects$Locations$Domainmappings$Get; options = {}; } @@ -7340,18 +5669,18 @@ export namespace run_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * run.projects.locations.revisions.list - * @desc List revisions. + * run.projects.locations.domainmappings.list + * @desc List domain mappings. * @example * // Before running the sample: * // - Enable the API at: @@ -7375,7 +5704,7 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.projects.locations.revisions.list({ + * const res = await run.projects.locations.domainmappings.list({ * // Optional encoded string to continue paging. * continue: 'placeholder-value', * // Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. @@ -7386,7 +5715,7 @@ export namespace run_v1 { * labelSelector: 'placeholder-value', * // The maximum number of records that should be returned. * limit: 'placeholder-value', - * // The namespace from which the revisions should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * // The namespace from which the domain mappings should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. * parent: 'projects/my-project/locations/my-location', * // The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. * resourceVersion: 'placeholder-value', @@ -7410,7 +5739,7 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.projects.locations.revisions.list + * @alias run.projects.locations.domainmappings.list * @memberOf! () * * @param {object} params Parameters for request @@ -7419,7 +5748,7 @@ export namespace run_v1 { * @param {boolean=} params.includeUninitialized Not currently used by Cloud Run. * @param {string=} params.labelSelector Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. * @param {integer=} params.limit The maximum number of records that should be returned. - * @param {string} params.parent The namespace from which the revisions should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string} params.parent The namespace from which the domain mappings should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. * @param {string=} params.resourceVersion The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. * @param {boolean=} params.watch Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. @@ -7427,54 +5756,56 @@ export namespace run_v1 { * @return {object} Request object */ list( - params: Params$Resource$Projects$Locations$Revisions$List, + params: Params$Resource$Projects$Locations$Domainmappings$List, options: StreamMethodOptions ): GaxiosPromise; list( - params?: Params$Resource$Projects$Locations$Revisions$List, + params?: Params$Resource$Projects$Locations$Domainmappings$List, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; list( - params: Params$Resource$Projects$Locations$Revisions$List, + params: Params$Resource$Projects$Locations$Domainmappings$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; list( - params: Params$Resource$Projects$Locations$Revisions$List, + params: Params$Resource$Projects$Locations$Domainmappings$List, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; list( - params: Params$Resource$Projects$Locations$Revisions$List, - callback: BodyResponseCallback + params: Params$Resource$Projects$Locations$Domainmappings$List, + callback: BodyResponseCallback + ): void; + list( + callback: BodyResponseCallback ): void; - list(callback: BodyResponseCallback): void; list( paramsOrCallback?: - | Params$Resource$Projects$Locations$Revisions$List - | BodyResponseCallback + | Params$Resource$Projects$Locations$Domainmappings$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Revisions$List; + {}) as Params$Resource$Projects$Locations$Domainmappings$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Revisions$List; + params = {} as Params$Resource$Projects$Locations$Domainmappings$List; options = {}; } @@ -7487,7 +5818,7 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+parent}/revisions').replace( + url: (rootUrl + '/v1/{+parent}/domainmappings').replace( /([^:]\/)\/+/g, '$1' ), @@ -7501,17 +5832,29 @@ export namespace run_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } } - export interface Params$Resource$Projects$Locations$Revisions$Delete + export interface Params$Resource$Projects$Locations$Domainmappings$Create + extends StandardParameters { + /** + * The namespace in which the domain mapping should be created. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + */ + parent?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$DomainMapping; + } + export interface Params$Resource$Projects$Locations$Domainmappings$Delete extends StandardParameters { /** * Cloud Run currently ignores this parameter. @@ -7522,7 +5865,7 @@ export namespace run_v1 { */ kind?: string; /** - * The name of the revision to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * The name of the domain mapping to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. */ name?: string; /** @@ -7530,14 +5873,14 @@ export namespace run_v1 { */ propagationPolicy?: string; } - export interface Params$Resource$Projects$Locations$Revisions$Get + export interface Params$Resource$Projects$Locations$Domainmappings$Get extends StandardParameters { /** - * The name of the revision to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * The name of the domain mapping to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. */ name?: string; } - export interface Params$Resource$Projects$Locations$Revisions$List + export interface Params$Resource$Projects$Locations$Domainmappings$List extends StandardParameters { /** * Optional encoded string to continue paging. @@ -7560,7 +5903,7 @@ export namespace run_v1 { */ limit?: number; /** - * The namespace from which the revisions should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * The namespace from which the domain mappings should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. */ parent?: string; /** @@ -7573,15 +5916,15 @@ export namespace run_v1 { watch?: boolean; } - export class Resource$Projects$Locations$Routes { + export class Resource$Projects$Locations$Revisions { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * run.projects.locations.routes.get - * @desc Get information about a route. + * run.projects.locations.revisions.delete + * @desc Delete a revision. * @example * // Before running the sample: * // - Enable the API at: @@ -7605,19 +5948,26 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.projects.locations.routes.get({ - * // The name of the route to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * name: 'projects/my-project/locations/my-location/routes/my-route', + * const res = await run.projects.locations.revisions.delete({ + * // Cloud Run currently ignores this parameter. + * apiVersion: 'placeholder-value', + * // Cloud Run currently ignores this parameter. + * kind: 'placeholder-value', + * // The name of the revision to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * name: 'projects/my-project/locations/my-location/revisions/my-revision', + * // Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. + * propagationPolicy: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "apiVersion": "my_apiVersion", - * // "kind": "my_kind", + * // "code": 0, + * // "details": {}, + * // "message": "my_message", * // "metadata": {}, - * // "spec": {}, - * // "status": {} + * // "reason": "my_reason", + * // "status": "my_status" * // } * } * @@ -7626,59 +5976,62 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.projects.locations.routes.get + * @alias run.projects.locations.revisions.delete * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name The name of the route to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string=} params.apiVersion Cloud Run currently ignores this parameter. + * @param {string=} params.kind Cloud Run currently ignores this parameter. + * @param {string} params.name The name of the revision to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string=} params.propagationPolicy Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get( - params: Params$Resource$Projects$Locations$Routes$Get, + delete( + params: Params$Resource$Projects$Locations$Revisions$Delete, options: StreamMethodOptions ): GaxiosPromise; - get( - params?: Params$Resource$Projects$Locations$Routes$Get, + delete( + params?: Params$Resource$Projects$Locations$Revisions$Delete, options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Projects$Locations$Routes$Get, + ): GaxiosPromise; + delete( + params: Params$Resource$Projects$Locations$Revisions$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Projects$Locations$Routes$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + delete( + params: Params$Resource$Projects$Locations$Revisions$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Projects$Locations$Routes$Get, - callback: BodyResponseCallback + delete( + params: Params$Resource$Projects$Locations$Revisions$Delete, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; - get( + delete(callback: BodyResponseCallback): void; + delete( paramsOrCallback?: - | Params$Resource$Projects$Locations$Routes$Get - | BodyResponseCallback + | Params$Resource$Projects$Locations$Revisions$Delete + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { + ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Routes$Get; + {}) as Params$Resource$Projects$Locations$Revisions$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Routes$Get; + params = {} as Params$Resource$Projects$Locations$Revisions$Delete; options = {}; } @@ -7692,7 +6045,7 @@ export namespace run_v1 { options: Object.assign( { url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'DELETE', }, options ), @@ -7702,18 +6055,18 @@ export namespace run_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * run.projects.locations.routes.list - * @desc List routes. + * run.projects.locations.revisions.get + * @desc Get information about a revision. * @example * // Before running the sample: * // - Enable the API at: @@ -7737,33 +6090,19 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.projects.locations.routes.list({ - * // Optional encoded string to continue paging. - * continue: 'placeholder-value', - * // Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - * fieldSelector: 'placeholder-value', - * // Not currently used by Cloud Run. - * includeUninitialized: 'placeholder-value', - * // Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. - * labelSelector: 'placeholder-value', - * // The maximum number of records that should be returned. - * limit: 'placeholder-value', - * // The namespace from which the routes should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * parent: 'projects/my-project/locations/my-location', - * // The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. - * resourceVersion: 'placeholder-value', - * // Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. - * watch: 'placeholder-value', + * const res = await run.projects.locations.revisions.get({ + * // The name of the revision to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * name: 'projects/my-project/locations/my-location/revisions/my-revision', * }); * console.log(res.data); * * // Example response * // { * // "apiVersion": "my_apiVersion", - * // "items": [], * // "kind": "my_kind", * // "metadata": {}, - * // "unreachable": [] + * // "spec": {}, + * // "status": {} * // } * } * @@ -7772,69 +6111,59 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.projects.locations.routes.list + * @alias run.projects.locations.revisions.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.continue Optional encoded string to continue paging. - * @param {string=} params.fieldSelector Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - * @param {boolean=} params.includeUninitialized Not currently used by Cloud Run. - * @param {string=} params.labelSelector Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. - * @param {integer=} params.limit The maximum number of records that should be returned. - * @param {string} params.parent The namespace from which the routes should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - * @param {string=} params.resourceVersion The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. - * @param {boolean=} params.watch Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. + * @param {string} params.name The name of the revision to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list( - params: Params$Resource$Projects$Locations$Routes$List, + get( + params: Params$Resource$Projects$Locations$Revisions$Get, options: StreamMethodOptions ): GaxiosPromise; - list( - params?: Params$Resource$Projects$Locations$Routes$List, + get( + params?: Params$Resource$Projects$Locations$Revisions$Get, options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Projects$Locations$Routes$List, + ): GaxiosPromise; + get( + params: Params$Resource$Projects$Locations$Revisions$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Projects$Locations$Routes$List, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + get( + params: Params$Resource$Projects$Locations$Revisions$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Projects$Locations$Routes$List, - callback: BodyResponseCallback + get( + params: Params$Resource$Projects$Locations$Revisions$Get, + callback: BodyResponseCallback ): void; - list(callback: BodyResponseCallback): void; - list( + get(callback: BodyResponseCallback): void; + get( paramsOrCallback?: - | Params$Resource$Projects$Locations$Routes$List - | BodyResponseCallback + | Params$Resource$Projects$Locations$Revisions$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { + ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Routes$List; + {}) as Params$Resource$Projects$Locations$Revisions$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Routes$List; + params = {} as Params$Resource$Projects$Locations$Revisions$Get; options = {}; } @@ -7847,82 +6176,29 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+parent}/routes').replace( - /([^:]\/)\/+/g, - '$1' - ), + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options ), params, - requiredParams: ['parent'], - pathParams: ['parent'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } - } - - export interface Params$Resource$Projects$Locations$Routes$Get - extends StandardParameters { - /** - * The name of the route to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - name?: string; - } - export interface Params$Resource$Projects$Locations$Routes$List - extends StandardParameters { - /** - * Optional encoded string to continue paging. - */ - continue?: string; - /** - * Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. - */ - fieldSelector?: string; - /** - * Not currently used by Cloud Run. - */ - includeUninitialized?: boolean; - /** - * Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. - */ - labelSelector?: string; - /** - * The maximum number of records that should be returned. - */ - limit?: number; - /** - * The namespace from which the routes should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. - */ - parent?: string; - /** - * The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. - */ - resourceVersion?: string; - /** - * Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. - */ - watch?: boolean; - } - - export class Resource$Projects$Locations$Secrets { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * run.projects.locations.secrets.create - * @desc Creates a new secret. + * run.projects.locations.revisions.list + * @desc List revisions. * @example * // Before running the sample: * // - Enable the API at: @@ -7946,29 +6222,33 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.projects.locations.secrets.create({ - * // Required. The project ID or project number in which this secret should be created. + * const res = await run.projects.locations.revisions.list({ + * // Optional encoded string to continue paging. + * continue: 'placeholder-value', + * // Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. + * fieldSelector: 'placeholder-value', + * // Not currently used by Cloud Run. + * includeUninitialized: 'placeholder-value', + * // Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. + * labelSelector: 'placeholder-value', + * // The maximum number of records that should be returned. + * limit: 'placeholder-value', + * // The namespace from which the revisions should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. * parent: 'projects/my-project/locations/my-location', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "data": {}, - * // "metadata": {}, - * // "stringData": {}, - * // "type": "my_type" - * // } - * }, + * // The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. + * resourceVersion: 'placeholder-value', + * // Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. + * watch: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "data": {}, + * // "apiVersion": "my_apiVersion", + * // "items": [], + * // "kind": "my_kind", * // "metadata": {}, - * // "stringData": {}, - * // "type": "my_type" + * // "unreachable": [] * // } * } * @@ -7977,60 +6257,71 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.projects.locations.secrets.create + * @alias run.projects.locations.revisions.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.parent Required. The project ID or project number in which this secret should be created. - * @param {().Secret} params.requestBody Request body data + * @param {string=} params.continue Optional encoded string to continue paging. + * @param {string=} params.fieldSelector Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. + * @param {boolean=} params.includeUninitialized Not currently used by Cloud Run. + * @param {string=} params.labelSelector Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. + * @param {integer=} params.limit The maximum number of records that should be returned. + * @param {string} params.parent The namespace from which the revisions should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string=} params.resourceVersion The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. + * @param {boolean=} params.watch Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - create( - params: Params$Resource$Projects$Locations$Secrets$Create, + list( + params: Params$Resource$Projects$Locations$Revisions$List, options: StreamMethodOptions ): GaxiosPromise; - create( - params?: Params$Resource$Projects$Locations$Secrets$Create, + list( + params?: Params$Resource$Projects$Locations$Revisions$List, options?: MethodOptions - ): GaxiosPromise; - create( - params: Params$Resource$Projects$Locations$Secrets$Create, + ): GaxiosPromise; + list( + params: Params$Resource$Projects$Locations$Revisions$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - create( - params: Params$Resource$Projects$Locations$Secrets$Create, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + list( + params: Params$Resource$Projects$Locations$Revisions$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - create( - params: Params$Resource$Projects$Locations$Secrets$Create, - callback: BodyResponseCallback + list( + params: Params$Resource$Projects$Locations$Revisions$List, + callback: BodyResponseCallback ): void; - create(callback: BodyResponseCallback): void; - create( + list(callback: BodyResponseCallback): void; + list( paramsOrCallback?: - | Params$Resource$Projects$Locations$Secrets$Create - | BodyResponseCallback + | Params$Resource$Projects$Locations$Revisions$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { + ): + | void + | GaxiosPromise + | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Secrets$Create; + {}) as Params$Resource$Projects$Locations$Revisions$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Secrets$Create; + params = {} as Params$Resource$Projects$Locations$Revisions$List; options = {}; } @@ -8043,11 +6334,11 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+parent}/secrets').replace( + url: (rootUrl + '/v1/{+parent}/revisions').replace( /([^:]\/)\/+/g, '$1' ), - method: 'POST', + method: 'GET', }, options ), @@ -8057,18 +6348,87 @@ export namespace run_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } + + export interface Params$Resource$Projects$Locations$Revisions$Delete + extends StandardParameters { + /** + * Cloud Run currently ignores this parameter. + */ + apiVersion?: string; + /** + * Cloud Run currently ignores this parameter. + */ + kind?: string; + /** + * The name of the revision to delete. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + */ + name?: string; + /** + * Specifies the propagation policy of delete. Cloud Run currently ignores this setting, and deletes in the background. Please see kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/ for more information. + */ + propagationPolicy?: string; + } + export interface Params$Resource$Projects$Locations$Revisions$Get + extends StandardParameters { + /** + * The name of the revision to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + */ + name?: string; + } + export interface Params$Resource$Projects$Locations$Revisions$List + extends StandardParameters { + /** + * Optional encoded string to continue paging. + */ + continue?: string; + /** + * Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. + */ + fieldSelector?: string; + /** + * Not currently used by Cloud Run. + */ + includeUninitialized?: boolean; + /** + * Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. + */ + labelSelector?: string; + /** + * The maximum number of records that should be returned. + */ + limit?: number; + /** + * The namespace from which the revisions should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + */ + parent?: string; + /** + * The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. + */ + resourceVersion?: string; + /** + * Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. + */ + watch?: boolean; + } + + export class Resource$Projects$Locations$Routes { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } /** - * run.projects.locations.secrets.get - * @desc Rpc to get information about a secret. + * run.projects.locations.routes.get + * @desc Get information about a route. * @example * // Before running the sample: * // - Enable the API at: @@ -8092,18 +6452,19 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.projects.locations.secrets.get({ - * // Required. The name of the secret being retrieved. If needed, replace {namespace_id} with the project ID. - * name: 'projects/my-project/locations/my-location/secrets/my-secret', + * const res = await run.projects.locations.routes.get({ + * // The name of the route to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * name: 'projects/my-project/locations/my-location/routes/my-route', * }); * console.log(res.data); * * // Example response * // { - * // "data": {}, + * // "apiVersion": "my_apiVersion", + * // "kind": "my_kind", * // "metadata": {}, - * // "stringData": {}, - * // "type": "my_type" + * // "spec": {}, + * // "status": {} * // } * } * @@ -8112,59 +6473,59 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.projects.locations.secrets.get + * @alias run.projects.locations.routes.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Required. The name of the secret being retrieved. If needed, replace {namespace_id} with the project ID. + * @param {string} params.name The name of the route to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ get( - params: Params$Resource$Projects$Locations$Secrets$Get, + params: Params$Resource$Projects$Locations$Routes$Get, options: StreamMethodOptions ): GaxiosPromise; get( - params?: Params$Resource$Projects$Locations$Secrets$Get, + params?: Params$Resource$Projects$Locations$Routes$Get, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; get( - params: Params$Resource$Projects$Locations$Secrets$Get, + params: Params$Resource$Projects$Locations$Routes$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; get( - params: Params$Resource$Projects$Locations$Secrets$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + params: Params$Resource$Projects$Locations$Routes$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; get( - params: Params$Resource$Projects$Locations$Secrets$Get, - callback: BodyResponseCallback + params: Params$Resource$Projects$Locations$Routes$Get, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; get( paramsOrCallback?: - | Params$Resource$Projects$Locations$Secrets$Get - | BodyResponseCallback + | Params$Resource$Projects$Locations$Routes$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { + ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Secrets$Get; + {}) as Params$Resource$Projects$Locations$Routes$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Secrets$Get; + params = {} as Params$Resource$Projects$Locations$Routes$Get; options = {}; } @@ -8188,18 +6549,18 @@ export namespace run_v1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * run.projects.locations.secrets.replaceSecret - * @desc Rpc to replace a secret. Only the spec and metadata labels and annotations are modifiable. After the Update request, Cloud Run will work to make the 'status' match the requested 'spec'. May provide metadata.resourceVersion to enforce update from last read for optimistic concurrency control. + * run.projects.locations.routes.list + * @desc List routes. * @example * // Before running the sample: * // - Enable the API at: @@ -8223,29 +6584,33 @@ export namespace run_v1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.projects.locations.secrets.replaceSecret({ - * // Required. The name of the secret being retrieved. If needed, replace {namespace_id} with the project ID. - * name: 'projects/my-project/locations/my-location/secrets/my-secret', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "data": {}, - * // "metadata": {}, - * // "stringData": {}, - * // "type": "my_type" - * // } - * }, + * const res = await run.projects.locations.routes.list({ + * // Optional encoded string to continue paging. + * continue: 'placeholder-value', + * // Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. + * fieldSelector: 'placeholder-value', + * // Not currently used by Cloud Run. + * includeUninitialized: 'placeholder-value', + * // Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. + * labelSelector: 'placeholder-value', + * // The maximum number of records that should be returned. + * limit: 'placeholder-value', + * // The namespace from which the routes should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * parent: 'projects/my-project/locations/my-location', + * // The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. + * resourceVersion: 'placeholder-value', + * // Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. + * watch: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "data": {}, + * // "apiVersion": "my_apiVersion", + * // "items": [], + * // "kind": "my_kind", * // "metadata": {}, - * // "stringData": {}, - * // "type": "my_type" + * // "unreachable": [] * // } * } * @@ -8254,60 +6619,69 @@ export namespace run_v1 { * throw e; * }); * - * @alias run.projects.locations.secrets.replaceSecret + * @alias run.projects.locations.routes.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.name Required. The name of the secret being retrieved. If needed, replace {namespace_id} with the project ID. - * @param {().Secret} params.requestBody Request body data + * @param {string=} params.continue Optional encoded string to continue paging. + * @param {string=} params.fieldSelector Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. + * @param {boolean=} params.includeUninitialized Not currently used by Cloud Run. + * @param {string=} params.labelSelector Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. + * @param {integer=} params.limit The maximum number of records that should be returned. + * @param {string} params.parent The namespace from which the routes should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + * @param {string=} params.resourceVersion The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. + * @param {boolean=} params.watch Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - replaceSecret( - params: Params$Resource$Projects$Locations$Secrets$Replacesecret, + list( + params: Params$Resource$Projects$Locations$Routes$List, options: StreamMethodOptions ): GaxiosPromise; - replaceSecret( - params?: Params$Resource$Projects$Locations$Secrets$Replacesecret, + list( + params?: Params$Resource$Projects$Locations$Routes$List, options?: MethodOptions - ): GaxiosPromise; - replaceSecret( - params: Params$Resource$Projects$Locations$Secrets$Replacesecret, + ): GaxiosPromise; + list( + params: Params$Resource$Projects$Locations$Routes$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - replaceSecret( - params: Params$Resource$Projects$Locations$Secrets$Replacesecret, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + list( + params: Params$Resource$Projects$Locations$Routes$List, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - replaceSecret( - params: Params$Resource$Projects$Locations$Secrets$Replacesecret, - callback: BodyResponseCallback + list( + params: Params$Resource$Projects$Locations$Routes$List, + callback: BodyResponseCallback ): void; - replaceSecret(callback: BodyResponseCallback): void; - replaceSecret( + list(callback: BodyResponseCallback): void; + list( paramsOrCallback?: - | Params$Resource$Projects$Locations$Secrets$Replacesecret - | BodyResponseCallback + | Params$Resource$Projects$Locations$Routes$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { + ): + | void + | GaxiosPromise + | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Secrets$Replacesecret; + {}) as Params$Resource$Projects$Locations$Routes$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Secrets$Replacesecret; + params = {} as Params$Resource$Projects$Locations$Routes$List; options = {}; } @@ -8320,57 +6694,71 @@ export namespace run_v1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/v1/{+parent}/routes').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', }, options ), params, - requiredParams: ['name'], - pathParams: ['name'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } } - export interface Params$Resource$Projects$Locations$Secrets$Create + export interface Params$Resource$Projects$Locations$Routes$Get extends StandardParameters { /** - * Required. The project ID or project number in which this secret should be created. - */ - parent?: string; - - /** - * Request body metadata + * The name of the route to retrieve. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. */ - requestBody?: Schema$Secret; + name?: string; } - export interface Params$Resource$Projects$Locations$Secrets$Get + export interface Params$Resource$Projects$Locations$Routes$List extends StandardParameters { /** - * Required. The name of the secret being retrieved. If needed, replace {namespace_id} with the project ID. + * Optional encoded string to continue paging. */ - name?: string; - } - export interface Params$Resource$Projects$Locations$Secrets$Replacesecret - extends StandardParameters { + continue?: string; /** - * Required. The name of the secret being retrieved. If needed, replace {namespace_id} with the project ID. + * Allows to filter resources based on a specific value for a field name. Send this in a query string format. i.e. 'metadata.name%3Dlorem'. Not currently used by Cloud Run. */ - name?: string; - + fieldSelector?: string; /** - * Request body metadata + * Not currently used by Cloud Run. + */ + includeUninitialized?: boolean; + /** + * Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. + */ + labelSelector?: string; + /** + * The maximum number of records that should be returned. + */ + limit?: number; + /** + * The namespace from which the routes should be listed. For Cloud Run (fully managed), replace {namespace_id} with the project ID or number. + */ + parent?: string; + /** + * The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. + */ + resourceVersion?: string; + /** + * Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run. */ - requestBody?: Schema$Secret; + watch?: boolean; } export class Resource$Projects$Locations$Services {