diff --git a/discovery/run-v1.json b/discovery/run-v1.json index 5f114f21d05..b8014f354e4 100644 --- a/discovery/run-v1.json +++ b/discovery/run-v1.json @@ -899,7 +899,7 @@ "type": "string" }, "pageSize": { - "description": "The maximum number of results to return. If not set, the service will select a default.", + "description": "The maximum number of results to return. If not set, the service selects a default.", "format": "int32", "location": "query", "type": "integer" @@ -1736,7 +1736,7 @@ } } }, - "revision": "20210326", + "revision": "20210409", "rootUrl": "https://run.googleapis.com/", "schemas": { "Addressable": { @@ -2034,6 +2034,10 @@ "$ref": "SecurityContext", "description": "(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/" }, + "startupProbe": { + "$ref": "Probe", + "description": "(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: not supported Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + }, "terminationMessagePath": { "description": "(Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log.", "type": "string" diff --git a/discovery/run-v1alpha1.json b/discovery/run-v1alpha1.json index 058081639a0..2b4e6f68e16 100644 --- a/discovery/run-v1alpha1.json +++ b/discovery/run-v1alpha1.json @@ -107,299 +107,6 @@ "resources": { "namespaces": { "resources": { - "authorizeddomains": { - "methods": { - "list": { - "description": "RPC to list authorized domains.", - "flatPath": "apis/domains.cloudrun.com/v1alpha1/namespaces/{namespacesId}/authorizeddomains", - "httpMethod": "GET", - "id": "run.namespaces.authorizeddomains.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "pageSize": { - "description": "Maximum results to return per page.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Continuation token for fetching the next page of results.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Name of the parent Application resource. Example: `apps/myapp`.", - "location": "path", - "pattern": "^namespaces/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "apis/domains.cloudrun.com/v1alpha1/{+parent}/authorizeddomains", - "response": { - "$ref": "ListAuthorizedDomainsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, - "configurations": { - "methods": { - "get": { - "description": "Rpc to get information about a configuration.", - "flatPath": "apis/serving.knative.dev/v1alpha1/namespaces/{namespacesId}/configurations/{configurationsId}", - "httpMethod": "GET", - "id": "run.namespaces.configurations.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the configuration being retrieved. If needed, replace {namespace_id} with the project ID.", - "location": "path", - "pattern": "^namespaces/[^/]+/configurations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "apis/serving.knative.dev/v1alpha1/{+name}", - "response": { - "$ref": "Configuration" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Rpc to list configurations.", - "flatPath": "apis/serving.knative.dev/v1alpha1/namespaces/{namespacesId}/configurations", - "httpMethod": "GET", - "id": "run.namespaces.configurations.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "continue": { - "description": "Optional encoded string to continue paging.", - "location": "query", - "type": "string" - }, - "fieldSelector": { - "description": "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.", - "location": "query", - "type": "string" - }, - "includeUninitialized": { - "description": "Not currently used by Cloud Run.", - "location": "query", - "type": "boolean" - }, - "labelSelector": { - "description": "Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn.", - "location": "query", - "type": "string" - }, - "limit": { - "description": "The maximum number of records that should be returned.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "parent": { - "description": "The project ID or project number from which the configurations should be listed.", - "location": "path", - "pattern": "^namespaces/[^/]+$", - "required": true, - "type": "string" - }, - "resourceVersion": { - "description": "The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run.", - "location": "query", - "type": "string" - }, - "watch": { - "description": "Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run.", - "location": "query", - "type": "boolean" - } - }, - "path": "apis/serving.knative.dev/v1alpha1/{+parent}/configurations", - "response": { - "$ref": "ListConfigurationsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, - "domainmappings": { - "methods": { - "create": { - "description": "Creates a new domain mapping.", - "flatPath": "apis/domains.cloudrun.com/v1alpha1/namespaces/{namespacesId}/domainmappings", - "httpMethod": "POST", - "id": "run.namespaces.domainmappings.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "The project ID or project number in which this domain mapping should be created.", - "location": "path", - "pattern": "^namespaces/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "apis/domains.cloudrun.com/v1alpha1/{+parent}/domainmappings", - "request": { - "$ref": "DomainMapping" - }, - "response": { - "$ref": "DomainMapping" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Rpc to delete a domain mapping.", - "flatPath": "apis/domains.cloudrun.com/v1alpha1/namespaces/{namespacesId}/domainmappings/{domainmappingsId}", - "httpMethod": "DELETE", - "id": "run.namespaces.domainmappings.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "apiVersion": { - "description": "Cloud Run currently ignores this parameter.", - "location": "query", - "type": "string" - }, - "kind": { - "description": "Cloud Run currently ignores this parameter.", - "location": "query", - "type": "string" - }, - "name": { - "description": "The name of the domain mapping being deleted. If needed, replace {namespace_id} with the project ID.", - "location": "path", - "pattern": "^namespaces/[^/]+/domainmappings/[^/]+$", - "required": true, - "type": "string" - }, - "orphanDependents": { - "description": "Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports cascading behavior, so this must be false. This attribute is deprecated, and is now replaced with PropagationPolicy See https://github.com/kubernetes/kubernetes/issues/46659 for more info.", - "location": "query", - "type": "boolean" - }, - "propagationPolicy": { - "description": "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.", - "location": "query", - "type": "string" - } - }, - "path": "apis/domains.cloudrun.com/v1alpha1/{+name}", - "response": { - "$ref": "Empty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Rpc to get information about a domain mapping.", - "flatPath": "apis/domains.cloudrun.com/v1alpha1/namespaces/{namespacesId}/domainmappings/{domainmappingsId}", - "httpMethod": "GET", - "id": "run.namespaces.domainmappings.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the domain mapping being retrieved. If needed, replace {namespace_id} with the project ID.", - "location": "path", - "pattern": "^namespaces/[^/]+/domainmappings/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "apis/domains.cloudrun.com/v1alpha1/{+name}", - "response": { - "$ref": "DomainMapping" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Rpc to list domain mappings.", - "flatPath": "apis/domains.cloudrun.com/v1alpha1/namespaces/{namespacesId}/domainmappings", - "httpMethod": "GET", - "id": "run.namespaces.domainmappings.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "continue": { - "description": "Optional encoded string to continue paging.", - "location": "query", - "type": "string" - }, - "fieldSelector": { - "description": "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.", - "location": "query", - "type": "string" - }, - "includeUninitialized": { - "description": "Not currently used by Cloud Run.", - "location": "query", - "type": "boolean" - }, - "labelSelector": { - "description": "Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn.", - "location": "query", - "type": "string" - }, - "limit": { - "description": "The maximum number of records that should be returned.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "parent": { - "description": "The project ID or project number from which the domain mappings should be listed.", - "location": "path", - "pattern": "^namespaces/[^/]+$", - "required": true, - "type": "string" - }, - "resourceVersion": { - "description": "The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run.", - "location": "query", - "type": "string" - }, - "watch": { - "description": "Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run.", - "location": "query", - "type": "boolean" - } - }, - "path": "apis/domains.cloudrun.com/v1alpha1/{+parent}/domainmappings", - "response": { - "$ref": "ListDomainMappingsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, "jobs": { "methods": { "create": { @@ -557,1385 +264,23 @@ ] } } - }, - "revisions": { - "methods": { - "delete": { - "description": "Rpc to delete a revision.", - "flatPath": "apis/serving.knative.dev/v1alpha1/namespaces/{namespacesId}/revisions/{revisionsId}", - "httpMethod": "DELETE", - "id": "run.namespaces.revisions.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "apiVersion": { - "description": "Cloud Run currently ignores this parameter.", - "location": "query", - "type": "string" - }, - "kind": { - "description": "Cloud Run currently ignores this parameter.", - "location": "query", - "type": "string" - }, - "name": { - "description": "The name of the revision being deleted. If needed, replace {namespace_id} with the project ID.", - "location": "path", - "pattern": "^namespaces/[^/]+/revisions/[^/]+$", - "required": true, - "type": "string" - }, - "orphanDependents": { - "description": "Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports cascading behavior, so this must be false. This attribute is deprecated, and is now replaced with PropagationPolicy See https://github.com/kubernetes/kubernetes/issues/46659 for more info.", - "location": "query", - "type": "boolean" - }, - "propagationPolicy": { - "description": "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.", - "location": "query", - "type": "string" - } - }, - "path": "apis/serving.knative.dev/v1alpha1/{+name}", - "response": { - "$ref": "Empty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Rpc to get information about a revision.", - "flatPath": "apis/serving.knative.dev/v1alpha1/namespaces/{namespacesId}/revisions/{revisionsId}", - "httpMethod": "GET", - "id": "run.namespaces.revisions.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the revision being retrieved. If needed, replace {namespace_id} with the project ID.", - "location": "path", - "pattern": "^namespaces/[^/]+/revisions/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "apis/serving.knative.dev/v1alpha1/{+name}", - "response": { - "$ref": "Revision" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Rpc to list revisions.", - "flatPath": "apis/serving.knative.dev/v1alpha1/namespaces/{namespacesId}/revisions", - "httpMethod": "GET", - "id": "run.namespaces.revisions.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "continue": { - "description": "Optional encoded string to continue paging.", - "location": "query", - "type": "string" - }, - "fieldSelector": { - "description": "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.", - "location": "query", - "type": "string" - }, - "includeUninitialized": { - "description": "Not currently used by Cloud Run.", - "location": "query", - "type": "boolean" - }, - "labelSelector": { - "description": "Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn.", - "location": "query", - "type": "string" - }, - "limit": { - "description": "The maximum number of records that should be returned.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "parent": { - "description": "The project ID or project number from which the revisions should be listed.", - "location": "path", - "pattern": "^namespaces/[^/]+$", - "required": true, - "type": "string" - }, - "resourceVersion": { - "description": "The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run.", - "location": "query", - "type": "string" - }, - "watch": { - "description": "Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run.", - "location": "query", - "type": "boolean" - } - }, - "path": "apis/serving.knative.dev/v1alpha1/{+parent}/revisions", - "response": { - "$ref": "ListRevisionsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, - "routes": { - "methods": { - "get": { - "description": "Rpc to get information about a route.", - "flatPath": "apis/serving.knative.dev/v1alpha1/namespaces/{namespacesId}/routes/{routesId}", - "httpMethod": "GET", - "id": "run.namespaces.routes.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the route being retrieved. If needed, replace {namespace_id} with the project ID.", - "location": "path", - "pattern": "^namespaces/[^/]+/routes/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "apis/serving.knative.dev/v1alpha1/{+name}", - "response": { - "$ref": "Route" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Rpc to list routes.", - "flatPath": "apis/serving.knative.dev/v1alpha1/namespaces/{namespacesId}/routes", - "httpMethod": "GET", - "id": "run.namespaces.routes.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "continue": { - "description": "Optional encoded string to continue paging.", - "location": "query", - "type": "string" - }, - "fieldSelector": { - "description": "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.", - "location": "query", - "type": "string" - }, - "includeUninitialized": { - "description": "Not currently used by Cloud Run.", - "location": "query", - "type": "boolean" - }, - "labelSelector": { - "description": "Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn.", - "location": "query", - "type": "string" - }, - "limit": { - "description": "The maximum number of records that should be returned.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "parent": { - "description": "The project ID or project number from which the routes should be listed.", - "location": "path", - "pattern": "^namespaces/[^/]+$", - "required": true, - "type": "string" - }, - "resourceVersion": { - "description": "The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run.", - "location": "query", - "type": "string" - }, - "watch": { - "description": "Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run.", - "location": "query", - "type": "boolean" - } - }, - "path": "apis/serving.knative.dev/v1alpha1/{+parent}/routes", - "response": { - "$ref": "ListRoutesResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, - "services": { - "methods": { - "create": { - "description": "Rpc to create a service.", - "flatPath": "apis/serving.knative.dev/v1alpha1/namespaces/{namespacesId}/services", - "httpMethod": "POST", - "id": "run.namespaces.services.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "The project ID or project number in which this service should be created.", - "location": "path", - "pattern": "^namespaces/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "apis/serving.knative.dev/v1alpha1/{+parent}/services", - "request": { - "$ref": "Service" - }, - "response": { - "$ref": "Service" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Rpc to delete a service. This will cause the Service to stop serving traffic and will delete the child entities like Routes, Configurations and Revisions.", - "flatPath": "apis/serving.knative.dev/v1alpha1/namespaces/{namespacesId}/services/{servicesId}", - "httpMethod": "DELETE", - "id": "run.namespaces.services.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "apiVersion": { - "description": "Cloud Run currently ignores this parameter.", - "location": "query", - "type": "string" - }, - "kind": { - "description": "Cloud Run currently ignores this parameter.", - "location": "query", - "type": "string" - }, - "name": { - "description": "The name of the service being deleted. If needed, replace {namespace_id} with the project ID.", - "location": "path", - "pattern": "^namespaces/[^/]+/services/[^/]+$", - "required": true, - "type": "string" - }, - "orphanDependents": { - "description": "Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports cascading behavior, so this must be false. This attribute is deprecated, and is now replaced with PropagationPolicy See https://github.com/kubernetes/kubernetes/issues/46659 for more info.", - "location": "query", - "type": "boolean" - }, - "propagationPolicy": { - "description": "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.", - "location": "query", - "type": "string" - } - }, - "path": "apis/serving.knative.dev/v1alpha1/{+name}", - "response": { - "$ref": "Empty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Rpc to get information about a service.", - "flatPath": "apis/serving.knative.dev/v1alpha1/namespaces/{namespacesId}/services/{servicesId}", - "httpMethod": "GET", - "id": "run.namespaces.services.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the service being retrieved. If needed, replace {namespace_id} with the project ID.", - "location": "path", - "pattern": "^namespaces/[^/]+/services/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "apis/serving.knative.dev/v1alpha1/{+name}", - "response": { - "$ref": "Service" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Rpc to list services.", - "flatPath": "apis/serving.knative.dev/v1alpha1/namespaces/{namespacesId}/services", - "httpMethod": "GET", - "id": "run.namespaces.services.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "continue": { - "description": "Optional encoded string to continue paging.", - "location": "query", - "type": "string" - }, - "fieldSelector": { - "description": "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.", - "location": "query", - "type": "string" - }, - "includeUninitialized": { - "description": "Not currently used by Cloud Run.", - "location": "query", - "type": "boolean" - }, - "labelSelector": { - "description": "Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn.", - "location": "query", - "type": "string" - }, - "limit": { - "description": "The maximum number of records that should be returned.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "parent": { - "description": "The project ID or project number from which the services should be listed.", - "location": "path", - "pattern": "^namespaces/[^/]+$", - "required": true, - "type": "string" - }, - "resourceVersion": { - "description": "The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run.", - "location": "query", - "type": "string" - }, - "watch": { - "description": "Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run.", - "location": "query", - "type": "boolean" - } - }, - "path": "apis/serving.knative.dev/v1alpha1/{+parent}/services", - "response": { - "$ref": "ListServicesResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "replaceService": { - "description": "Rpc to 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.", - "flatPath": "apis/serving.knative.dev/v1alpha1/namespaces/{namespacesId}/services/{servicesId}", - "httpMethod": "PUT", - "id": "run.namespaces.services.replaceService", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the service being replaced. If needed, replace {namespace_id} with the project ID.", - "location": "path", - "pattern": "^namespaces/[^/]+/services/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "apis/serving.knative.dev/v1alpha1/{+name}", - "request": { - "$ref": "Service" - }, - "response": { - "$ref": "Service" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - } - } - }, - "projects": { - "resources": { - "locations": { - "methods": { - "list": { - "description": "Lists information about the supported locations for this service.", - "flatPath": "v1alpha1/projects/{projectsId}/locations", - "httpMethod": "GET", - "id": "run.projects.locations.list", - "parameterOrder": [ - "name" - ], - "parameters": { - "filter": { - "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in [AIP-160](https://google.aip.dev/160).", - "location": "query", - "type": "string" - }, - "name": { - "description": "The resource that owns the locations collection, if applicable.", - "location": "path", - "pattern": "^projects/[^/]+$", - "required": true, - "type": "string" - }, - "pageSize": { - "description": "The maximum number of results to return. If not set, the service will select a default.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", - "location": "query", - "type": "string" - } - }, - "path": "v1alpha1/{+name}/locations", - "response": { - "$ref": "ListLocationsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - }, - "resources": { - "authorizeddomains": { - "methods": { - "list": { - "description": "RPC to list authorized domains.", - "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/authorizeddomains", - "httpMethod": "GET", - "id": "run.projects.locations.authorizeddomains.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "pageSize": { - "description": "Maximum results to return per page.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "pageToken": { - "description": "Continuation token for fetching the next page of results.", - "location": "query", - "type": "string" - }, - "parent": { - "description": "Name of the parent Application resource. Example: `apps/myapp`.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha1/{+parent}/authorizeddomains", - "response": { - "$ref": "ListAuthorizedDomainsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, - "configurations": { - "methods": { - "get": { - "description": "Rpc to get information about a configuration.", - "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/configurations/{configurationsId}", - "httpMethod": "GET", - "id": "run.projects.locations.configurations.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the configuration being retrieved. If needed, replace {namespace_id} with the project ID.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/configurations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha1/{+name}", - "response": { - "$ref": "Configuration" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Rpc to list configurations.", - "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/configurations", - "httpMethod": "GET", - "id": "run.projects.locations.configurations.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "continue": { - "description": "Optional encoded string to continue paging.", - "location": "query", - "type": "string" - }, - "fieldSelector": { - "description": "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.", - "location": "query", - "type": "string" - }, - "includeUninitialized": { - "description": "Not currently used by Cloud Run.", - "location": "query", - "type": "boolean" - }, - "labelSelector": { - "description": "Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn.", - "location": "query", - "type": "string" - }, - "limit": { - "description": "The maximum number of records that should be returned.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "parent": { - "description": "The project ID or project number from which the configurations should be listed.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - }, - "resourceVersion": { - "description": "The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run.", - "location": "query", - "type": "string" - }, - "watch": { - "description": "Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run.", - "location": "query", - "type": "boolean" - } - }, - "path": "v1alpha1/{+parent}/configurations", - "response": { - "$ref": "ListConfigurationsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, - "domainmappings": { - "methods": { - "create": { - "description": "Creates a new domain mapping.", - "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/domainmappings", - "httpMethod": "POST", - "id": "run.projects.locations.domainmappings.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "The project ID or project number in which this domain mapping should be created.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha1/{+parent}/domainmappings", - "request": { - "$ref": "DomainMapping" - }, - "response": { - "$ref": "DomainMapping" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Rpc to delete a domain mapping.", - "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/domainmappings/{domainmappingsId}", - "httpMethod": "DELETE", - "id": "run.projects.locations.domainmappings.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "apiVersion": { - "description": "Cloud Run currently ignores this parameter.", - "location": "query", - "type": "string" - }, - "kind": { - "description": "Cloud Run currently ignores this parameter.", - "location": "query", - "type": "string" - }, - "name": { - "description": "The name of the domain mapping being deleted. If needed, replace {namespace_id} with the project ID.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/domainmappings/[^/]+$", - "required": true, - "type": "string" - }, - "orphanDependents": { - "description": "Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports cascading behavior, so this must be false. This attribute is deprecated, and is now replaced with PropagationPolicy See https://github.com/kubernetes/kubernetes/issues/46659 for more info.", - "location": "query", - "type": "boolean" - }, - "propagationPolicy": { - "description": "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.", - "location": "query", - "type": "string" - } - }, - "path": "v1alpha1/{+name}", - "response": { - "$ref": "Empty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Rpc to get information about a domain mapping.", - "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/domainmappings/{domainmappingsId}", - "httpMethod": "GET", - "id": "run.projects.locations.domainmappings.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the domain mapping being retrieved. If needed, replace {namespace_id} with the project ID.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/domainmappings/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha1/{+name}", - "response": { - "$ref": "DomainMapping" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Rpc to list domain mappings.", - "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/domainmappings", - "httpMethod": "GET", - "id": "run.projects.locations.domainmappings.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "continue": { - "description": "Optional encoded string to continue paging.", - "location": "query", - "type": "string" - }, - "fieldSelector": { - "description": "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.", - "location": "query", - "type": "string" - }, - "includeUninitialized": { - "description": "Not currently used by Cloud Run.", - "location": "query", - "type": "boolean" - }, - "labelSelector": { - "description": "Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn.", - "location": "query", - "type": "string" - }, - "limit": { - "description": "The maximum number of records that should be returned.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "parent": { - "description": "The project ID or project number from which the domain mappings should be listed.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - }, - "resourceVersion": { - "description": "The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run.", - "location": "query", - "type": "string" - }, - "watch": { - "description": "Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run.", - "location": "query", - "type": "boolean" - } - }, - "path": "v1alpha1/{+parent}/domainmappings", - "response": { - "$ref": "ListDomainMappingsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, - "revisions": { - "methods": { - "delete": { - "description": "Rpc to delete a revision.", - "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/revisions/{revisionsId}", - "httpMethod": "DELETE", - "id": "run.projects.locations.revisions.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "apiVersion": { - "description": "Cloud Run currently ignores this parameter.", - "location": "query", - "type": "string" - }, - "kind": { - "description": "Cloud Run currently ignores this parameter.", - "location": "query", - "type": "string" - }, - "name": { - "description": "The name of the revision being deleted. If needed, replace {namespace_id} with the project ID.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/revisions/[^/]+$", - "required": true, - "type": "string" - }, - "orphanDependents": { - "description": "Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports cascading behavior, so this must be false. This attribute is deprecated, and is now replaced with PropagationPolicy See https://github.com/kubernetes/kubernetes/issues/46659 for more info.", - "location": "query", - "type": "boolean" - }, - "propagationPolicy": { - "description": "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.", - "location": "query", - "type": "string" - } - }, - "path": "v1alpha1/{+name}", - "response": { - "$ref": "Empty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Rpc to get information about a revision.", - "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/revisions/{revisionsId}", - "httpMethod": "GET", - "id": "run.projects.locations.revisions.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the revision being retrieved. If needed, replace {namespace_id} with the project ID.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/revisions/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha1/{+name}", - "response": { - "$ref": "Revision" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Rpc to list revisions.", - "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/revisions", - "httpMethod": "GET", - "id": "run.projects.locations.revisions.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "continue": { - "description": "Optional encoded string to continue paging.", - "location": "query", - "type": "string" - }, - "fieldSelector": { - "description": "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.", - "location": "query", - "type": "string" - }, - "includeUninitialized": { - "description": "Not currently used by Cloud Run.", - "location": "query", - "type": "boolean" - }, - "labelSelector": { - "description": "Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn.", - "location": "query", - "type": "string" - }, - "limit": { - "description": "The maximum number of records that should be returned.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "parent": { - "description": "The project ID or project number from which the revisions should be listed.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - }, - "resourceVersion": { - "description": "The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run.", - "location": "query", - "type": "string" - }, - "watch": { - "description": "Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run.", - "location": "query", - "type": "boolean" - } - }, - "path": "v1alpha1/{+parent}/revisions", - "response": { - "$ref": "ListRevisionsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, - "routes": { - "methods": { - "get": { - "description": "Rpc to get information about a route.", - "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/routes/{routesId}", - "httpMethod": "GET", - "id": "run.projects.locations.routes.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the route being retrieved. If needed, replace {namespace_id} with the project ID.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/routes/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha1/{+name}", - "response": { - "$ref": "Route" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Rpc to list routes.", - "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/routes", - "httpMethod": "GET", - "id": "run.projects.locations.routes.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "continue": { - "description": "Optional encoded string to continue paging.", - "location": "query", - "type": "string" - }, - "fieldSelector": { - "description": "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.", - "location": "query", - "type": "string" - }, - "includeUninitialized": { - "description": "Not currently used by Cloud Run.", - "location": "query", - "type": "boolean" - }, - "labelSelector": { - "description": "Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn.", - "location": "query", - "type": "string" - }, - "limit": { - "description": "The maximum number of records that should be returned.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "parent": { - "description": "The project ID or project number from which the routes should be listed.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - }, - "resourceVersion": { - "description": "The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run.", - "location": "query", - "type": "string" - }, - "watch": { - "description": "Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run.", - "location": "query", - "type": "boolean" - } - }, - "path": "v1alpha1/{+parent}/routes", - "response": { - "$ref": "ListRoutesResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - }, - "services": { - "methods": { - "create": { - "description": "Rpc to create a service.", - "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/services", - "httpMethod": "POST", - "id": "run.projects.locations.services.create", - "parameterOrder": [ - "parent" - ], - "parameters": { - "parent": { - "description": "The project ID or project number in which this service should be created.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha1/{+parent}/services", - "request": { - "$ref": "Service" - }, - "response": { - "$ref": "Service" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "delete": { - "description": "Rpc to delete a service. This will cause the Service to stop serving traffic and will delete the child entities like Routes, Configurations and Revisions.", - "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/services/{servicesId}", - "httpMethod": "DELETE", - "id": "run.projects.locations.services.delete", - "parameterOrder": [ - "name" - ], - "parameters": { - "apiVersion": { - "description": "Cloud Run currently ignores this parameter.", - "location": "query", - "type": "string" - }, - "kind": { - "description": "Cloud Run currently ignores this parameter.", - "location": "query", - "type": "string" - }, - "name": { - "description": "The name of the service being deleted. If needed, replace {namespace_id} with the project ID.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", - "required": true, - "type": "string" - }, - "orphanDependents": { - "description": "Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports cascading behavior, so this must be false. This attribute is deprecated, and is now replaced with PropagationPolicy See https://github.com/kubernetes/kubernetes/issues/46659 for more info.", - "location": "query", - "type": "boolean" - }, - "propagationPolicy": { - "description": "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.", - "location": "query", - "type": "string" - } - }, - "path": "v1alpha1/{+name}", - "response": { - "$ref": "Empty" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "get": { - "description": "Rpc to get information about a service.", - "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/services/{servicesId}", - "httpMethod": "GET", - "id": "run.projects.locations.services.get", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the service being retrieved. If needed, replace {namespace_id} with the project ID.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha1/{+name}", - "response": { - "$ref": "Service" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "getIamPolicy": { - "description": "Get the IAM Access Control policy currently in effect for the given Cloud Run service. This result does not include any inherited policies.", - "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:getIamPolicy", - "httpMethod": "GET", - "id": "run.projects.locations.services.getIamPolicy", - "parameterOrder": [ - "resource" - ], - "parameters": { - "options.requestedPolicyVersion": { - "description": "Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", - "format": "int32", - "location": "query", - "type": "integer" - }, - "resource": { - "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha1/{+resource}:getIamPolicy", - "response": { - "$ref": "Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "list": { - "description": "Rpc to list services.", - "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/services", - "httpMethod": "GET", - "id": "run.projects.locations.services.list", - "parameterOrder": [ - "parent" - ], - "parameters": { - "continue": { - "description": "Optional encoded string to continue paging.", - "location": "query", - "type": "string" - }, - "fieldSelector": { - "description": "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.", - "location": "query", - "type": "string" - }, - "includeUninitialized": { - "description": "Not currently used by Cloud Run.", - "location": "query", - "type": "boolean" - }, - "labelSelector": { - "description": "Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn.", - "location": "query", - "type": "string" - }, - "limit": { - "description": "The maximum number of records that should be returned.", - "format": "int32", - "location": "query", - "type": "integer" - }, - "parent": { - "description": "The project ID or project number from which the services should be listed.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+$", - "required": true, - "type": "string" - }, - "resourceVersion": { - "description": "The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run.", - "location": "query", - "type": "string" - }, - "watch": { - "description": "Flag that indicates that the client expects to watch this resource as well. Not currently used by Cloud Run.", - "location": "query", - "type": "boolean" - } - }, - "path": "v1alpha1/{+parent}/services", - "response": { - "$ref": "ListServicesResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "replaceService": { - "description": "Rpc to 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.", - "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/services/{servicesId}", - "httpMethod": "PUT", - "id": "run.projects.locations.services.replaceService", - "parameterOrder": [ - "name" - ], - "parameters": { - "name": { - "description": "The name of the service being replaced. If needed, replace {namespace_id} with the project ID.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha1/{+name}", - "request": { - "$ref": "Service" - }, - "response": { - "$ref": "Service" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "setIamPolicy": { - "description": "Sets the IAM Access control policy for the specified Service. Overwrites any existing policy.", - "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:setIamPolicy", - "httpMethod": "POST", - "id": "run.projects.locations.services.setIamPolicy", - "parameterOrder": [ - "resource" - ], - "parameters": { - "resource": { - "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha1/{+resource}:setIamPolicy", - "request": { - "$ref": "SetIamPolicyRequest" - }, - "response": { - "$ref": "Policy" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - }, - "testIamPermissions": { - "description": "Returns permissions that a caller has on the specified Project. There are no permissions required for making this API call.", - "flatPath": "v1alpha1/projects/{projectsId}/locations/{locationsId}/services/{servicesId}:testIamPermissions", - "httpMethod": "POST", - "id": "run.projects.locations.services.testIamPermissions", - "parameterOrder": [ - "resource" - ], - "parameters": { - "resource": { - "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", - "location": "path", - "pattern": "^projects/[^/]+/locations/[^/]+/services/[^/]+$", - "required": true, - "type": "string" - } - }, - "path": "v1alpha1/{+resource}:testIamPermissions", - "request": { - "$ref": "TestIamPermissionsRequest" - }, - "response": { - "$ref": "TestIamPermissionsResponse" - }, - "scopes": [ - "https://www.googleapis.com/auth/cloud-platform" - ] - } - } - } - } - } - } - } - }, - "revision": "20210319", - "rootUrl": "https://run.googleapis.com/", - "schemas": { - "Addressable": { - "description": "Information for connecting over HTTP(s).", - "id": "Addressable", - "properties": { - "hostname": { - "description": "Deprecated - use url instead.", - "type": "string" - }, - "url": { - "type": "string" - } - }, - "type": "object" - }, - "AuditConfig": { - "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.", - "id": "AuditConfig", - "properties": { - "auditLogConfigs": { - "description": "The configuration for logging of each type of permission.", - "items": { - "$ref": "AuditLogConfig" - }, - "type": "array" - }, - "service": { - "description": "Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services.", - "type": "string" - } - }, - "type": "object" - }, - "AuditLogConfig": { - "description": "Provides the configuration for logging a type of permissions. Example: { \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.", - "id": "AuditLogConfig", - "properties": { - "exemptedMembers": { - "description": "Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.", - "items": { - "type": "string" - }, - "type": "array" - }, - "logType": { - "description": "The log type that this config enables.", - "enum": [ - "LOG_TYPE_UNSPECIFIED", - "ADMIN_READ", - "DATA_WRITE", - "DATA_READ" - ], - "enumDescriptions": [ - "Default case. Should never be this.", - "Admin reads. Example: CloudIAM getIamPolicy", - "Data writes. Example: CloudSQL Users create", - "Data reads. Example: CloudSQL Users list" - ], - "type": "string" - } - }, - "type": "object" - }, - "AuthorizedDomain": { - "description": "A domain that a user has been authorized to administer. To authorize use of a domain, verify ownership via [Webmaster Central](https://www.google.com/webmasters/verification/home).", - "id": "AuthorizedDomain", - "properties": { - "id": { - "description": "Relative name of the domain authorized for use. Example: `example.com`.", - "type": "string" - }, - "name": { - "description": "Read only. Full path to the `AuthorizedDomain` resource in the API. Example: `apps/myapp/authorizedDomains/example.com`.", - "type": "string" - } - }, - "type": "object" - }, - "Binding": { - "description": "Associates `members` with a `role`.", - "id": "Binding", - "properties": { - "condition": { - "$ref": "Expr", - "description": "The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies)." - }, - "members": { - "description": "Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", - "items": { - "type": "string" - }, - "type": "array" - }, - "role": { - "description": "Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.", - "type": "string" - } - }, - "type": "object" - }, - "Capabilities": { - "description": "Adds and removes POSIX capabilities from running containers.", - "id": "Capabilities", - "properties": { - "add": { - "description": "Added capabilities +optional", - "items": { - "type": "string" - }, - "type": "array" + } + } + } + }, + "revision": "20210409", + "rootUrl": "https://run.googleapis.com/", + "schemas": { + "Capabilities": { + "description": "Adds and removes POSIX capabilities from running containers.", + "id": "Capabilities", + "properties": { + "add": { + "description": "Added capabilities +optional", + "items": { + "type": "string" + }, + "type": "array" }, "drop": { "description": "Removed capabilities +optional", @@ -1997,127 +342,21 @@ "description": "Mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.", "format": "int32", "type": "integer" - }, - "items": { - "description": "If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional.", - "items": { - "$ref": "KeyToPath" - }, - "type": "array" - }, - "name": { - "description": "Name of the config.", - "type": "string" - }, - "optional": { - "description": "Specify whether the Secret or its keys must be defined.", - "type": "boolean" - } - }, - "type": "object" - }, - "Configuration": { - "description": "Configuration represents the \"floating HEAD\" of a linear history of Revisions, and optionally how the containers those revisions reference are built. Users create new Revisions by updating the Configuration's spec. The \"latest created\" revision's name is available under status, as is the \"latest ready\" revision's name. See also: https://github.com/knative/serving/blob/master/docs/spec/overview.md#configuration", - "id": "Configuration", - "properties": { - "apiVersion": { - "description": "The API version for this call such as \"serving.knative.dev/v1alpha1\".", - "type": "string" - }, - "kind": { - "description": "The kind of resource, in this case always \"Configuration\".", - "type": "string" - }, - "metadata": { - "$ref": "ObjectMeta", - "description": "Metadata associated with this Configuration, including name, namespace, labels, and annotations." - }, - "spec": { - "$ref": "ConfigurationSpec", - "description": "Spec holds the desired state of the Configuration (from the client)." - }, - "status": { - "$ref": "ConfigurationStatus", - "description": "Status communicates the observed state of the Configuration (from the controller)." - } - }, - "type": "object" - }, - "ConfigurationCondition": { - "description": "ConfigurationCondition defines a readiness condition for a Configuration.", - "id": "ConfigurationCondition", - "properties": { - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another. +optional", - "format": "google-datetime", - "type": "string" - }, - "message": { - "description": "Human-readable message indicating details about last transition. +optional", - "type": "string" - }, - "reason": { - "description": "One-word CamelCase reason for the condition's last transition. +optional", - "type": "string" - }, - "severity": { - "description": "How to interpret failures of this condition, one of Error, Warning, Info +optional", - "type": "string" - }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", - "type": "string" - }, - "type": { - "description": "ConfigurationConditionType is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting Types include:\"Ready\"", - "type": "string" - } - }, - "type": "object" - }, - "ConfigurationSpec": { - "description": "ConfigurationSpec holds the desired state of the Configuration (from the client).", - "id": "ConfigurationSpec", - "properties": { - "generation": { - "description": "Deprecated and not currently populated by Cloud Run. See metadata.generation instead, which is the sequence number containing the latest generation of the desired state. Read-only.", - "format": "int32", - "type": "integer" - }, - "revisionTemplate": { - "$ref": "RevisionTemplate", - "description": "RevisionTemplate holds the latest specification for the Revision to be stamped out. The template references the container image, and may also include labels and annotations that should be attached to the Revision. To correlate a Revision, and/or to force a Revision to be created when the spec doesn't otherwise change, a nonce label may be provided in the template metadata. For more details, see: https://github.com/knative/serving/blob/master/docs/client-conventions.md#associate-modifications-with-revisions Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source." - }, - "template": { - "$ref": "RevisionTemplate", - "description": "Template holds the latest specification for the Revision to be stamped out." - } - }, - "type": "object" - }, - "ConfigurationStatus": { - "description": "ConfigurationStatus communicates the observed state of the Configuration (from the controller).", - "id": "ConfigurationStatus", - "properties": { - "conditions": { - "description": "Conditions communicates information about ongoing/complete reconciliation processes that bring the \"spec\" inline with the observed state of the world.", + }, + "items": { + "description": "If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional.", "items": { - "$ref": "ConfigurationCondition" + "$ref": "KeyToPath" }, "type": "array" }, - "latestCreatedRevisionName": { - "description": "LatestCreatedRevisionName is the last revision that was created from this Configuration. It might not be ready yet, for that use LatestReadyRevisionName.", - "type": "string" - }, - "latestReadyRevisionName": { - "description": "LatestReadyRevisionName holds the name of the latest Revision stamped out from this Configuration that has had its \"Ready\" condition become \"True\".", + "name": { + "description": "Name of the config.", "type": "string" }, - "observedGeneration": { - "description": "ObservedGeneration is the 'Generation' of the Configuration that was last processed by the controller. The observed generation is updated even if the controller failed to process the spec and create the Revision. Clients polling for completed reconciliation should poll until observedGeneration = metadata.generation, and the Ready condition's status is True or False.", - "format": "int32", - "type": "integer" + "optional": { + "description": "Specify whether the Secret or its keys must be defined.", + "type": "boolean" } }, "type": "object" @@ -2263,128 +502,6 @@ }, "type": "object" }, - "DomainMapping": { - "description": "Resource to hold the state and status of a user's domain mapping. NOTE: This resource is currently in Beta.", - "id": "DomainMapping", - "properties": { - "apiVersion": { - "description": "The API version for this call such as \"domains.cloudrun.com/v1alpha1\".", - "type": "string" - }, - "kind": { - "description": "The kind of resource, in this case \"DomainMapping\".", - "type": "string" - }, - "metadata": { - "$ref": "ObjectMeta", - "description": "Metadata associated with this BuildTemplate." - }, - "spec": { - "$ref": "DomainMappingSpec", - "description": "The spec for this DomainMapping." - }, - "status": { - "$ref": "DomainMappingStatus", - "description": "The current status of the DomainMapping." - } - }, - "type": "object" - }, - "DomainMappingCondition": { - "description": "DomainMappingCondition contains state information for a DomainMapping.", - "id": "DomainMappingCondition", - "properties": { - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another. +optional", - "format": "google-datetime", - "type": "string" - }, - "message": { - "description": "Human readable message indicating details about the current status. +optional", - "type": "string" - }, - "reason": { - "description": "One-word CamelCase reason for the condition's current status. +optional", - "type": "string" - }, - "severity": { - "description": "How to interpret failures of this condition, one of Error, Warning, Info +optional", - "type": "string" - }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", - "type": "string" - }, - "type": { - "description": "Type of domain mapping condition.", - "type": "string" - } - }, - "type": "object" - }, - "DomainMappingSpec": { - "description": "The desired state of the Domain Mapping.", - "id": "DomainMappingSpec", - "properties": { - "certificateMode": { - "description": "The mode of the certificate.", - "enum": [ - "CERTIFICATE_MODE_UNSPECIFIED", - "NONE", - "AUTOMATIC" - ], - "enumDescriptions": [ - "", - "Do not provision an HTTPS certificate.", - "Automatically provisions an HTTPS certificate via GoogleCA or LetsEncrypt." - ], - "type": "string" - }, - "forceOverride": { - "description": "If set, the mapping will override any mapping set before this spec was set. It is recommended that the user leaves this empty to receive an error warning about a potential conflict and only set it once the respective UI has given such a warning.", - "type": "boolean" - }, - "routeName": { - "description": "The name of the Knative Route that this DomainMapping applies to. The route must exist.", - "type": "string" - } - }, - "type": "object" - }, - "DomainMappingStatus": { - "description": "The current state of the Domain Mapping.", - "id": "DomainMappingStatus", - "properties": { - "conditions": { - "description": "Array of observed DomainMappingConditions, indicating the current state of the DomainMapping.", - "items": { - "$ref": "DomainMappingCondition" - }, - "type": "array" - }, - "mappedRouteName": { - "description": "The name of the route that the mapping currently points to.", - "type": "string" - }, - "observedGeneration": { - "description": "ObservedGeneration is the 'Generation' of the DomainMapping that was last processed by the controller. Clients polling for completed reconciliation should poll until observedGeneration = metadata.generation and the Ready condition's status is True or False.", - "format": "int32", - "type": "integer" - }, - "resourceRecords": { - "description": "The resource records required to configure this domain mapping. These records must be added to the domain's DNS configuration in order to serve the application via this domain mapping.", - "items": { - "$ref": "ResourceRecord" - }, - "type": "array" - }, - "url": { - "description": "Cloud Run fully managed: not supported Cloud Run on GKE: supported Holds the URL that will serve the traffic of the DomainMapping. +optional", - "type": "string" - } - }, - "type": "object" - }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", "id": "Empty", @@ -2458,29 +575,6 @@ }, "type": "object" }, - "Expr": { - "description": "Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() < 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != 'private' && document.type != 'internal'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"'New message received at ' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.", - "id": "Expr", - "properties": { - "description": { - "description": "Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.", - "type": "string" - }, - "expression": { - "description": "Textual representation of an expression in Common Expression Language syntax.", - "type": "string" - }, - "location": { - "description": "Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.", - "type": "string" - }, - "title": { - "description": "Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.", - "type": "string" - } - }, - "type": "object" - }, "HTTPGetAction": { "description": "HTTPGetAction describes an action based on HTTP Get requests.", "id": "HTTPGetAction", @@ -2843,90 +937,6 @@ }, "type": "object" }, - "ListAuthorizedDomainsResponse": { - "description": "A list of Authorized Domains.", - "id": "ListAuthorizedDomainsResponse", - "properties": { - "domains": { - "description": "The authorized domains belonging to the user.", - "items": { - "$ref": "AuthorizedDomain" - }, - "type": "array" - }, - "nextPageToken": { - "description": "Continuation token for fetching the next page of results.", - "type": "string" - } - }, - "type": "object" - }, - "ListConfigurationsResponse": { - "description": "ListConfigurationsResponse is a list of Configuration resources.", - "id": "ListConfigurationsResponse", - "properties": { - "apiVersion": { - "description": "The API version for this call such as \"serving.knative.dev/v1alpha1\".", - "type": "string" - }, - "items": { - "description": "List of Configurations.", - "items": { - "$ref": "Configuration" - }, - "type": "array" - }, - "kind": { - "description": "The kind of this resource, in this case \"ConfigurationList\".", - "type": "string" - }, - "metadata": { - "$ref": "ListMeta", - "description": "Metadata associated with this Configuration list." - }, - "unreachable": { - "description": "Locations that could not be reached.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "ListDomainMappingsResponse": { - "description": "ListDomainMappingsResponse is a list of DomainMapping resources.", - "id": "ListDomainMappingsResponse", - "properties": { - "apiVersion": { - "description": "The API version for this call such as \"domains.cloudrun.com/v1alpha1\".", - "type": "string" - }, - "items": { - "description": "List of DomainMappings.", - "items": { - "$ref": "DomainMapping" - }, - "type": "array" - }, - "kind": { - "description": "The kind of this resource, in this case \"DomainMappingList\".", - "type": "string" - }, - "metadata": { - "$ref": "ListMeta", - "description": "Metadata associated with this DomainMapping list." - }, - "unreachable": { - "description": "Locations that could not be reached.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, "ListJobsResponse": { "description": "ListJobsResponse is a list of Jobs resources.", "id": "ListJobsResponse", @@ -2964,24 +974,6 @@ }, "type": "object" }, - "ListLocationsResponse": { - "description": "The response message for Locations.ListLocations.", - "id": "ListLocationsResponse", - "properties": { - "locations": { - "description": "A list of locations that matches the specified filter in the request.", - "items": { - "$ref": "Location" - }, - "type": "array" - }, - "nextPageToken": { - "description": "The standard List next-page token.", - "type": "string" - } - }, - "type": "object" - }, "ListMeta": { "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", "id": "ListMeta", @@ -2995,151 +987,18 @@ "type": "string" }, "selfLink": { - "description": "SelfLink is a URL representing this object. Populated by the system. Read-only. +optional", - "type": "string" - } - }, - "type": "object" - }, - "ListRevisionsResponse": { - "description": "ListRevisionsResponse is a list of Revision resources.", - "id": "ListRevisionsResponse", - "properties": { - "apiVersion": { - "description": "The API version for this call such as \"serving.knative.dev/v1alpha1\".", - "type": "string" - }, - "items": { - "description": "List of Revisions.", - "items": { - "$ref": "Revision" - }, - "type": "array" - }, - "kind": { - "description": "The kind of this resource, in this case \"RevisionList\".", - "type": "string" - }, - "metadata": { - "$ref": "ListMeta", - "description": "Metadata associated with this revision list." - }, - "unreachable": { - "description": "Locations that could not be reached.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "ListRoutesResponse": { - "description": "ListRoutesResponse is a list of Route resources.", - "id": "ListRoutesResponse", - "properties": { - "apiVersion": { - "description": "The API version for this call such as \"serving.knative.dev/v1alpha1\".", - "type": "string" - }, - "items": { - "description": "List of Routes.", - "items": { - "$ref": "Route" - }, - "type": "array" - }, - "kind": { - "description": "The kind of this resource, in this case always \"RouteList\".", - "type": "string" - }, - "metadata": { - "$ref": "ListMeta", - "description": "Metadata associated with this Route list." - }, - "unreachable": { - "description": "Locations that could not be reached.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "ListServicesResponse": { - "description": "A list of Service resources.", - "id": "ListServicesResponse", - "properties": { - "apiVersion": { - "description": "The API version for this call such as \"serving.knative.dev/v1alpha1\".", - "type": "string" - }, - "items": { - "description": "List of Services.", - "items": { - "$ref": "Service" - }, - "type": "array" - }, - "kind": { - "description": "The kind of this resource, in this case \"ServiceList\".", - "type": "string" - }, - "metadata": { - "$ref": "ListMeta", - "description": "Metadata associated with this Service list." - }, - "unreachable": { - "description": "Locations that could not be reached.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "LocalObjectReference": { - "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", - "id": "LocalObjectReference", - "properties": { - "name": { - "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", + "description": "SelfLink is a URL representing this object. Populated by the system. Read-only. +optional", "type": "string" } }, "type": "object" }, - "Location": { - "description": "A resource that represents Google Cloud Platform location.", - "id": "Location", + "LocalObjectReference": { + "description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.", + "id": "LocalObjectReference", "properties": { - "displayName": { - "description": "The friendly name for this location, typically a nearby city name. For example, \"Tokyo\".", - "type": "string" - }, - "labels": { - "additionalProperties": { - "type": "string" - }, - "description": "Cross-service attributes for the location. For example {\"cloud.googleapis.com/region\": \"us-east1\"}", - "type": "object" - }, - "locationId": { - "description": "The canonical id for this location. For example: `\"us-east1\"`.", - "type": "string" - }, - "metadata": { - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL.", - "type": "any" - }, - "description": "Service-specific metadata. For example the available capacity at the given location.", - "type": "object" - }, "name": { - "description": "Resource name for the location, which may vary between implementations. For example: `\"projects/example-project/locations/us-east1\"`", + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names", "type": "string" } }, @@ -3248,445 +1107,95 @@ "description": "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", "type": "string" }, - "name": { - "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", - "type": "string" - }, - "uid": { - "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", - "type": "string" - } - }, - "type": "object" - }, - "Policy": { - "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time < timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", - "id": "Policy", - "properties": { - "auditConfigs": { - "description": "Specifies cloud audit logging configuration for this policy.", - "items": { - "$ref": "AuditConfig" - }, - "type": "array" - }, - "bindings": { - "description": "Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.", - "items": { - "$ref": "Binding" - }, - "type": "array" - }, - "etag": { - "description": "`etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.", - "format": "byte", - "type": "string" - }, - "version": { - "description": "Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "Probe": { - "description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.", - "id": "Probe", - "properties": { - "failureThreshold": { - "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. +optional", - "format": "int32", - "type": "integer" - }, - "handler": { - "$ref": "Handler", - "description": "The action taken to determine the health of a container" - }, - "initialDelaySeconds": { - "description": "Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional", - "format": "int32", - "type": "integer" - }, - "periodSeconds": { - "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. +optional", - "format": "int32", - "type": "integer" - }, - "successThreshold": { - "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. +optional", - "format": "int32", - "type": "integer" - }, - "timeoutSeconds": { - "description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "Quantity": { - "description": "The view model of a single quantity, e.g. \"800 MiB\". Corresponds to https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/generated.proto", - "id": "Quantity", - "properties": { - "string": { - "description": "Stringified version of the quantity, e.g., \"800 MiB\".", - "type": "string" - } - }, - "type": "object" - }, - "ResourceRecord": { - "description": "A DNS resource record.", - "id": "ResourceRecord", - "properties": { - "name": { - "description": "Relative name of the object affected by this record. Only applicable for `CNAME` records. Example: 'www'.", - "type": "string" - }, - "rrdata": { - "description": "Data for this record. Values vary by record type, as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).", - "type": "string" - }, - "type": { - "description": "Resource record type. Example: `AAAA`.", - "enum": [ - "RECORD_TYPE_UNSPECIFIED", - "A", - "AAAA", - "CNAME" - ], - "enumDescriptions": [ - "An unknown resource record.", - "An A resource record. Data is an IPv4 address.", - "An AAAA resource record. Data is an IPv6 address.", - "A CNAME resource record. Data is a domain name to be aliased." - ], - "type": "string" - } - }, - "type": "object" - }, - "ResourceRequirements": { - "description": "ResourceRequirements describes the compute resource requirements.", - "id": "ResourceRequirements", - "properties": { - "limits": { - "additionalProperties": { - "type": "string" - }, - "description": "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" - }, - "limitsInMap": { - "additionalProperties": { - "$ref": "Quantity" - }, - "description": "Limits describes the maximum amount of compute resources allowed. This is a temporary field created to migrate away from the map limits field. This is done to become compliant with k8s style API. This field is deprecated in favor of limits field.", - "type": "object" - }, - "requests": { - "additionalProperties": { - "type": "string" - }, - "description": "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" - }, - "requestsInMap": { - "additionalProperties": { - "$ref": "Quantity" - }, - "description": "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. This is a temporary field created to migrate away from the map requests field. This is done to become compliant with k8s style API. This field is deprecated in favor of requests field.", - "type": "object" - } - }, - "type": "object" - }, - "Revision": { - "description": "Revision is an immutable snapshot of code and configuration. A revision references a container image. Revisions are created by updates to a Configuration. Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source. See also: https://github.com/knative/serving/blob/master/docs/spec/overview.md#revision", - "id": "Revision", - "properties": { - "apiVersion": { - "description": "The API version for this call such as \"serving.knative.dev/v1alpha1\".", - "type": "string" - }, - "kind": { - "description": "The kind of this resource, in this case \"Revision\".", - "type": "string" - }, - "metadata": { - "$ref": "ObjectMeta", - "description": "Metadata associated with this Revision, including name, namespace, labels, and annotations." - }, - "spec": { - "$ref": "RevisionSpec", - "description": "Spec holds the desired state of the Revision (from the client)." - }, - "status": { - "$ref": "RevisionStatus", - "description": "Status communicates the observed state of the Revision (from the controller)." - } - }, - "type": "object" - }, - "RevisionCondition": { - "description": "RevisionCondition defines a readiness condition for a Revision.", - "id": "RevisionCondition", - "properties": { - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another. +optional", - "format": "google-datetime", - "type": "string" - }, - "message": { - "description": "Human readable message indicating details about the current status. +optional", - "type": "string" - }, - "reason": { - "description": "One-word CamelCase reason for the condition's last transition. +optional", - "type": "string" - }, - "severity": { - "description": "How to interpret failures of this condition, one of Error, Warning, Info +optional", - "type": "string" - }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", - "type": "string" - }, - "type": { - "description": "RevisionConditionType is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting Types include: * \"Ready\": True when the Revision is ready. * \"ResourcesAvailable\": True when underlying resources have been provisioned. * \"ContainerHealthy\": True when the Revision readiness check completes. * \"Active\": True when the Revision may receive traffic.", - "type": "string" - } - }, - "type": "object" - }, - "RevisionSpec": { - "description": "RevisionSpec holds the desired state of the Revision (from the client).", - "id": "RevisionSpec", - "properties": { - "concurrencyModel": { - "description": "ConcurrencyModel specifies the desired concurrency model (Single or Multi) for the Revision. Defaults to Multi. Deprecated in favor of ContainerConcurrency. +optional", - "type": "string" - }, - "container": { - "$ref": "Container", - "description": "Container defines the unit of execution for this Revision. In the context of a Revision, we disallow a number of the fields of this Container, including: name, ports, and volumeMounts. The runtime contract is documented here: https://github.com/knative/serving/blob/master/docs/runtime-contract.md" - }, - "containerConcurrency": { - "description": "(Optional) ContainerConcurrency specifies the maximum allowed in-flight (concurrent) requests per container instance of the Revision. Cloud Run fully managed: supported, defaults to 80 Cloud Run on GKE: supported, defaults to 0, which means concurrency to the application is not limited, and the system decides the target concurrency for the autoscaler.", - "format": "int32", - "type": "integer" - }, - "containers": { - "description": "Containers holds the single container that defines the unit of execution for this Revision. In the context of a Revision, we disallow a number of fields on this Container, including: name and lifecycle. In Cloud Run, only a single container may be provided.", - "items": { - "$ref": "Container" - }, - "type": "array" - }, - "generation": { - "description": "Deprecated and not currently populated by Cloud Run. See metadata.generation instead, which is the sequence number containing the latest generation of the desired state. Read-only.", - "format": "int32", - "type": "integer" - }, - "serviceAccountName": { - "description": "Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account.", - "type": "string" - }, - "servingState": { - "description": "ServingState holds a value describing the state the resources are in for this Revision. Users must not specify this when creating a revision. It is expected that the system will manipulate this based on routability and load. Populated by the system. Read-only.", - "enum": [ - "REVISION_SERVING_STATE_UNSPECIFIED", - "ACTIVE", - "RESERVE", - "RETIRED" - ], - "enumDescriptions": [ - "The revision serving state hasn't been specified.", - "The revision is ready to serve traffic.", - "The revision is not currently serving traffic, but could be made to serve traffic quickly. Not currently used by Cloud Run.", - "The revision has been decommissioned and is not needed to serve traffic anymore. A Revision may be brought out of retirement, but it may take longer than it would from a \"Reserve\" state." - ], - "type": "string" - }, - "timeoutSeconds": { - "description": "TimeoutSeconds holds the max duration the instance is allowed for responding to a request. Not currently used by Cloud Run.", - "format": "int32", - "type": "integer" - }, - "volumes": { - "items": { - "$ref": "Volume" - }, - "type": "array" - } - }, - "type": "object" - }, - "RevisionStatus": { - "description": "RevisionStatus communicates the observed state of the Revision (from the controller).", - "id": "RevisionStatus", - "properties": { - "conditions": { - "description": "Conditions communicates information about ongoing/complete reconciliation processes that bring the \"spec\" inline with the observed state of the world. As a Revision is being prepared, it will incrementally update conditions \"ResourcesAvailable\", \"ContainerHealthy\", and \"Active\", which contribute to the overall \"Ready\" condition.", - "items": { - "$ref": "RevisionCondition" - }, - "type": "array" - }, - "imageDigest": { - "description": "ImageDigest holds the resolved digest for the image specified within .Spec.Container.Image. The digest is resolved during the creation of Revision. This field holds the digest value regardless of whether a tag or digest was originally specified in the Container object.", - "type": "string" - }, - "logUrl": { - "description": "Specifies the generated logging url for this particular revision based on the revision url template specified in the controller's config. +optional", - "type": "string" - }, - "observedGeneration": { - "description": "ObservedGeneration is the 'Generation' of the Revision that was last processed by the controller. Clients polling for completed reconciliation should poll until observedGeneration = metadata.generation, and the Ready condition's status is True or False.", - "format": "int32", - "type": "integer" - }, - "serviceName": { - "description": "Not currently used by Cloud Run.", - "type": "string" - } - }, - "type": "object" - }, - "RevisionTemplate": { - "description": "RevisionTemplateSpec describes the data a revision should have when created from a template. Based on: https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L3179-L3190", - "id": "RevisionTemplate", - "properties": { - "metadata": { - "$ref": "ObjectMeta", - "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 on GKE 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." - }, - "spec": { - "$ref": "RevisionSpec", - "description": "RevisionSpec holds the desired state of the Revision (from the client)." - } - }, - "type": "object" - }, - "Route": { - "description": "Route is responsible for configuring ingress over a collection of Revisions. Some of the Revisions a Route distributes traffic over may be specified by referencing the Configuration responsible for creating them; in these cases the Route is additionally responsible for monitoring the Configuration for \"latest ready\" revision changes, and smoothly rolling out latest revisions. See also: https://github.com/knative/serving/blob/master/docs/spec/overview.md#route Cloud Run currently supports referencing a single Configuration to automatically deploy the \"latest ready\" Revision from that Configuration.", - "id": "Route", - "properties": { - "apiVersion": { - "description": "The API version for this call such as \"serving.knative.dev/v1alpha1\".", - "type": "string" - }, - "kind": { - "description": "The kind of this resource, in this case always \"Route\".", - "type": "string" - }, - "metadata": { - "$ref": "ObjectMeta", - "description": "Metadata associated with this Route, including name, namespace, labels, and annotations." - }, - "spec": { - "$ref": "RouteSpec", - "description": "Spec holds the desired state of the Route (from the client)." + "name": { + "description": "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names", + "type": "string" }, - "status": { - "$ref": "RouteStatus", - "description": "Status communicates the observed state of the Route (from the controller)." + "uid": { + "description": "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids", + "type": "string" } }, "type": "object" }, - "RouteCondition": { - "description": "RouteCondition defines a readiness condition for a Route.", - "id": "RouteCondition", + "Probe": { + "description": "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.", + "id": "Probe", "properties": { - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another. +optional", - "format": "google-datetime", - "type": "string" + "failureThreshold": { + "description": "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. +optional", + "format": "int32", + "type": "integer" }, - "message": { - "description": "Human-readable message indicating details about last transition. +optional", - "type": "string" + "handler": { + "$ref": "Handler", + "description": "The action taken to determine the health of a container" }, - "reason": { - "description": "One-word CamelCase reason for the condition's last transition. +optional", - "type": "string" + "initialDelaySeconds": { + "description": "Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional", + "format": "int32", + "type": "integer" }, - "severity": { - "description": "How to interpret failures of this condition, one of Error, Warning, Info +optional", - "type": "string" + "periodSeconds": { + "description": "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. +optional", + "format": "int32", + "type": "integer" }, - "status": { - "description": "Status of the condition, one of \"True\", \"False\", \"Unknown\".", - "type": "string" + "successThreshold": { + "description": "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. +optional", + "format": "int32", + "type": "integer" }, - "type": { - "description": "RouteConditionType is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting Types include: \"Ready\".", - "type": "string" + "timeoutSeconds": { + "description": "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional", + "format": "int32", + "type": "integer" } }, "type": "object" }, - "RouteSpec": { - "description": "RouteSpec holds the desired state of the Route (from the client).", - "id": "RouteSpec", + "Quantity": { + "description": "The view model of a single quantity, e.g. \"800 MiB\". Corresponds to https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/generated.proto", + "id": "Quantity", "properties": { - "generation": { - "description": "Deprecated and not currently populated by Cloud Run. See metadata.generation instead, which is the sequence number containing the latest generation of the desired state. Read-only.", - "format": "int32", - "type": "integer" - }, - "traffic": { - "description": "Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations. Cloud Run currently supports a single configurationName.", - "items": { - "$ref": "TrafficTarget" - }, - "type": "array" + "string": { + "description": "Stringified version of the quantity, e.g., \"800 MiB\".", + "type": "string" } }, "type": "object" }, - "RouteStatus": { - "description": "RouteStatus communicates the observed state of the Route (from the controller).", - "id": "RouteStatus", + "ResourceRequirements": { + "description": "ResourceRequirements describes the compute resource requirements.", + "id": "ResourceRequirements", "properties": { - "address": { - "$ref": "Addressable", - "description": "Similar to url, information on where the service is available on HTTP." - }, - "conditions": { - "description": "Conditions communicates information about ongoing/complete reconciliation processes that bring the \"spec\" inline with the observed state of the world.", - "items": { - "$ref": "RouteCondition" + "limits": { + "additionalProperties": { + "type": "string" }, - "type": "array" - }, - "domain": { - "description": "Deprecated - use url instead. Domain holds the top-level domain that will distribute traffic over the provided targets.", - "type": "string" - }, - "domainInternal": { - "description": "Deprecated - use address instead. For Cloud Run, identifical to domain.", - "type": "string" + "description": "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" }, - "observedGeneration": { - "description": "ObservedGeneration is the 'Generation' of the Route that was last processed by the controller. Clients polling for completed reconciliation should poll until observedGeneration = metadata.generation and the Ready condition's status is True or False. Note that providing a trafficTarget that only has a configurationName will result in a Route that does not increment either its metadata.generation or its observedGeneration, as new \"latest ready\" revisions from the Configuration are processed without an update to the Route's spec.", - "format": "int32", - "type": "integer" + "limitsInMap": { + "additionalProperties": { + "$ref": "Quantity" + }, + "description": "Limits describes the maximum amount of compute resources allowed. This is a temporary field created to migrate away from the map limits field. This is done to become compliant with k8s style API. This field is deprecated in favor of limits field.", + "type": "object" }, - "traffic": { - "description": "Traffic holds the configured traffic distribution. These entries will always contain RevisionName references. When ConfigurationName appears in the spec, this will hold the LatestReadyRevisionName that we last observed.", - "items": { - "$ref": "TrafficTarget" + "requests": { + "additionalProperties": { + "type": "string" }, - "type": "array" + "description": "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" }, - "url": { - "description": "URL holds the url that will distribute traffic over the provided traffic targets. It generally has the form https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.app", - "type": "string" + "requestsInMap": { + "additionalProperties": { + "$ref": "Quantity" + }, + "description": "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. This is a temporary field created to migrate away from the map requests field. This is done to become compliant with k8s style API. This field is deprecated in favor of requests field.", + "type": "object" } }, "type": "object" @@ -3824,221 +1333,6 @@ }, "type": "object" }, - "Service": { - "description": "Service acts as a top-level container that manages a set of Routes and Configurations which implement a network service. Service exists to provide a singular abstraction which can be access controlled, reasoned about, and which encapsulates software lifecycle decisions such as rollout policy and team resource ownership. Service acts only as an orchestrator of the underlying Routes and Configurations (much as a kubernetes Deployment orchestrates ReplicaSets). The Service's controller will track the statuses of its owned Configuration and Route, reflecting their statuses and conditions as its own. See also: https://github.com/knative/serving/blob/master/docs/spec/overview.md#service", - "id": "Service", - "properties": { - "apiVersion": { - "description": "The API version for this call such as \"serving.knative.dev/v1alpha1\".", - "type": "string" - }, - "kind": { - "description": "The kind of resource, in this case \"Service\".", - "type": "string" - }, - "metadata": { - "$ref": "ObjectMeta", - "description": "Metadata associated with this Service, including name, namespace, labels, and annotations." - }, - "spec": { - "$ref": "ServiceSpec", - "description": "Spec holds the desired state of the Service (from the client)." - }, - "status": { - "$ref": "ServiceStatus", - "description": "Status communicates the observed state of the Service (from the controller)." - } - }, - "type": "object" - }, - "ServiceCondition": { - "description": "ServiceCondition defines a readiness condition for a Service.", - "id": "ServiceCondition", - "properties": { - "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another. +optional", - "format": "google-datetime", - "type": "string" - }, - "message": { - "description": "Human-readable message indicating details about last transition. +optional", - "type": "string" - }, - "reason": { - "description": "One-word CamelCase reason for the condition's last transition. +optional", - "type": "string" - }, - "severity": { - "description": "How to interpret failures of this condition, one of Error, Warning, Info +optional", - "type": "string" - }, - "status": { - "description": "Status of the condition, one of True, False, Unknown.", - "type": "string" - }, - "type": { - "description": "ServiceConditionType is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting Types include: \"Ready\", \"ConfigurationsReady\", and \"RoutesReady\". \"Ready\" will be true when the underlying Route and Configuration are ready.", - "type": "string" - } - }, - "type": "object" - }, - "ServiceSpec": { - "description": "ServiceSpec holds the desired state of the Route (from the client), which is used to manipulate the underlying Route and Configuration(s).", - "id": "ServiceSpec", - "properties": { - "generation": { - "description": "Deprecated and not currently populated by Cloud Run. See metadata.generation instead, which is the sequence number containing the latest generation of the desired state. Read-only.", - "format": "int32", - "type": "integer" - }, - "manual": { - "$ref": "ServiceSpecManualType", - "description": "Manual contains the options for configuring a manual service. See ServiceSpec for more details. Not currently supported by Cloud Run." - }, - "pinned": { - "$ref": "ServiceSpecPinnedType", - "description": "Pins this service to a specific revision name. The revision must be owned by the configuration provided. Deprecated and not supported by Cloud Run. +optional" - }, - "release": { - "$ref": "ServiceSpecReleaseType", - "description": "Release enables gradual promotion of new revisions by allowing traffic to be split between two revisions. This type replaces the deprecated Pinned type. Not currently supported by Cloud Run." - }, - "runLatest": { - "$ref": "ServiceSpecRunLatest", - "description": "RunLatest defines a simple Service. It will automatically configure a route that keeps the latest ready revision from the supplied configuration running. +optional" - }, - "template": { - "$ref": "RevisionTemplate", - "description": "Template holds the latest specification for the Revision to be stamped out." - }, - "traffic": { - "description": "Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations.", - "items": { - "$ref": "TrafficTarget" - }, - "type": "array" - } - }, - "type": "object" - }, - "ServiceSpecManualType": { - "description": "ServiceSpecManualType contains the options for configuring a manual service. See ServiceSpec for more details. Not currently supported by Cloud Run.", - "id": "ServiceSpecManualType", - "properties": {}, - "type": "object" - }, - "ServiceSpecPinnedType": { - "description": "ServiceSpecPinnedType Pins this service to a specific revision name. The revision must be owned by the configuration provided. Deprecated and not supported by Cloud Run.", - "id": "ServiceSpecPinnedType", - "properties": { - "configuration": { - "$ref": "ConfigurationSpec", - "description": "The configuration for this service." - }, - "revisionName": { - "description": "The revision name to pin this service to until changed to a different service type.", - "type": "string" - } - }, - "type": "object" - }, - "ServiceSpecReleaseType": { - "description": "ServiceSpecReleaseType contains the options for slowly releasing revisions. See ServiceSpec for more details. Not currently supported by Cloud Run.", - "id": "ServiceSpecReleaseType", - "properties": { - "configuration": { - "$ref": "ConfigurationSpec", - "description": "The configuration for this service. All revisions from this service must come from a single configuration." - }, - "revisions": { - "description": "Revisions is an ordered list of 1 or 2 revisions. The first is the current revision, and the second is the candidate revision. If a single revision is provided, traffic will be pinned at that revision. \"@latest\" is a shortcut for usage that refers to the latest created revision by the configuration.", - "items": { - "type": "string" - }, - "type": "array" - }, - "rolloutPercent": { - "description": "RolloutPercent is the percent of traffic that should be sent to the candidate revision, i.e. the 2nd revision in the revisions list. Valid values are between 0 and 99 inclusive.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "ServiceSpecRunLatest": { - "description": "ServiceSpecRunLatest contains the options for always having a route to the latest configuration. See ServiceSpec for more details.", - "id": "ServiceSpecRunLatest", - "properties": { - "configuration": { - "$ref": "ConfigurationSpec", - "description": "The configuration for this service." - } - }, - "type": "object" - }, - "ServiceStatus": { - "description": "The current state of the Service. Output only.", - "id": "ServiceStatus", - "properties": { - "address": { - "$ref": "Addressable", - "description": "From RouteStatus. Similar to url, information on where the service is available on HTTP." - }, - "conditions": { - "description": "Conditions communicates information about ongoing/complete reconciliation processes that bring the \"spec\" inline with the observed state of the world.", - "items": { - "$ref": "ServiceCondition" - }, - "type": "array" - }, - "domain": { - "description": "From RouteStatus. Domain holds the top-level domain that will distribute traffic over the provided targets. It generally has the form https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.app", - "type": "string" - }, - "latestCreatedRevisionName": { - "description": "From ConfigurationStatus. LatestCreatedRevisionName is the last revision that was created from this Service's Configuration. It might not be ready yet, for that use LatestReadyRevisionName.", - "type": "string" - }, - "latestReadyRevisionName": { - "description": "From ConfigurationStatus. LatestReadyRevisionName holds the name of the latest Revision stamped out from this Service's Configuration that has had its \"Ready\" condition become \"True\".", - "type": "string" - }, - "observedGeneration": { - "description": "ObservedGeneration is the 'Generation' of the Route that was last processed by the controller. Clients polling for completed reconciliation should poll until observedGeneration = metadata.generation and the Ready condition's status is True or False.", - "format": "int32", - "type": "integer" - }, - "traffic": { - "description": "From RouteStatus. Traffic holds the configured traffic distribution. These entries will always contain RevisionName references. When ConfigurationName appears in the spec, this will hold the LatestReadyRevisionName that we last observed.", - "items": { - "$ref": "TrafficTarget" - }, - "type": "array" - }, - "url": { - "description": "From RouteStatus. URL holds the url that will distribute traffic over the provided traffic targets. It generally has the form https://{route-hash}-{project-hash}-{cluster-level-suffix}.a.run.app", - "type": "string" - } - }, - "type": "object" - }, - "SetIamPolicyRequest": { - "description": "Request message for `SetIamPolicy` method.", - "id": "SetIamPolicyRequest", - "properties": { - "policy": { - "$ref": "Policy", - "description": "REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them." - }, - "updateMask": { - "description": "OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: \"bindings, etag\"`", - "format": "google-fieldmask", - "type": "string" - } - }, - "type": "object" - }, "TCPSocketAction": { "description": "TCPSocketAction describes an action based on opening a socket", "id": "TCPSocketAction", @@ -4054,70 +1348,6 @@ }, "type": "object" }, - "TestIamPermissionsRequest": { - "description": "Request message for `TestIamPermissions` method.", - "id": "TestIamPermissionsRequest", - "properties": { - "permissions": { - "description": "The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "TestIamPermissionsResponse": { - "description": "Response message for `TestIamPermissions` method.", - "id": "TestIamPermissionsResponse", - "properties": { - "permissions": { - "description": "A subset of `TestPermissionsRequest.permissions` that the caller is allowed.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, - "TrafficTarget": { - "description": "TrafficTarget holds a single entry of the routing table for a Route.", - "id": "TrafficTarget", - "properties": { - "configurationName": { - "description": "ConfigurationName of a configuration to whose latest revision we will send this portion of traffic. When the \"status.latestReadyRevisionName\" of the referenced configuration changes, we will automatically migrate traffic from the prior \"latest ready\" revision to the new one. This field is never set in Route's status, only its spec. This is mutually exclusive with RevisionName. Cloud Run currently supports a single ConfigurationName.", - "type": "string" - }, - "latestRevision": { - "description": "LatestRevision may be optionally provided to indicate that the latest ready Revision of the Configuration should be used for this traffic target. When provided LatestRevision must be true if RevisionName is empty; it must be false when RevisionName is non-empty. +optional", - "type": "boolean" - }, - "name": { - "description": "Name is optionally used to expose a dedicated hostname for referencing this target exclusively. Not currently supported by Cloud Run. +optional", - "type": "string" - }, - "percent": { - "description": "Percent specifies percent of the traffic to this Revision or Configuration. This defaults to zero if unspecified. Cloud Run currently requires 100 percent for a single ConfigurationName TrafficTarget entry.", - "format": "int32", - "type": "integer" - }, - "revisionName": { - "description": "RevisionName of a specific revision to which to send this portion of traffic. This is mutually exclusive with ConfigurationName. Providing RevisionName in spec is not currently supported by Cloud Run.", - "type": "string" - }, - "tag": { - "description": "Tag is optionally used to expose a dedicated url for referencing this target exclusively. Not currently supported in Cloud Run. +optional", - "type": "string" - }, - "url": { - "description": "Output only. URL displays the URL for accessing named traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. http://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc. Not currently supported in Cloud Run.", - "type": "string" - } - }, - "type": "object" - }, "Volume": { "description": "Volume represents a named volume in a container.", "id": "Volume", diff --git a/src/apis/run/v1.ts b/src/apis/run/v1.ts index f91e2c2d319..217cb9c6229 100644 --- a/src/apis/run/v1.ts +++ b/src/apis/run/v1.ts @@ -352,6 +352,10 @@ export namespace run_v1 { * (Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ */ securityContext?: Schema$SecurityContext; + /** + * (Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: not supported Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + */ + startupProbe?: Schema$Probe; /** * (Optional) Cloud Run fully managed: not supported Cloud Run for Anthos: supported Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. */ @@ -4543,7 +4547,7 @@ export namespace run_v1 { * filter: 'placeholder-value', * // The resource that owns the locations collection, if applicable. * name: 'projects/my-project', - * // The maximum number of results to return. If not set, the service will select a default. + * // The maximum number of results to return. If not set, the service selects a default. * pageSize: 'placeholder-value', * // A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. * pageToken: 'placeholder-value', @@ -4665,7 +4669,7 @@ export namespace run_v1 { */ name?: string; /** - * The maximum number of results to return. If not set, the service will select a default. + * The maximum number of results to return. If not set, the service selects a default. */ pageSize?: number; /** diff --git a/src/apis/run/v1alpha1.ts b/src/apis/run/v1alpha1.ts index c4653c909db..725d4f0afc5 100644 --- a/src/apis/run/v1alpha1.ts +++ b/src/apis/run/v1alpha1.ts @@ -114,7 +114,6 @@ export namespace run_v1alpha1 { export class Run { context: APIRequestContext; namespaces: Resource$Namespaces; - projects: Resource$Projects; constructor(options: GlobalOptions, google?: GoogleConfigurable) { this.context = { @@ -123,76 +122,9 @@ export namespace run_v1alpha1 { }; this.namespaces = new Resource$Namespaces(this.context); - this.projects = new Resource$Projects(this.context); } } - /** - * Information for connecting over HTTP(s). - */ - export interface Schema$Addressable { - /** - * Deprecated - use url instead. - */ - hostname?: string | null; - url?: string | null; - } - /** - * Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] \}, { "log_type": "DATA_WRITE" \}, { "log_type": "ADMIN_READ" \} ] \}, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" \}, { "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" ] \} ] \} ] \} For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging. - */ - export interface Schema$AuditConfig { - /** - * The configuration for logging of each type of permission. - */ - auditLogConfigs?: Schema$AuditLogConfig[]; - /** - * Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services. - */ - service?: string | null; - } - /** - * Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] \}, { "log_type": "DATA_WRITE" \} ] \} This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging. - */ - export interface Schema$AuditLogConfig { - /** - * Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. - */ - exemptedMembers?: string[] | null; - /** - * The log type that this config enables. - */ - logType?: string | null; - } - /** - * A domain that a user has been authorized to administer. To authorize use of a domain, verify ownership via [Webmaster Central](https://www.google.com/webmasters/verification/home). - */ - export interface Schema$AuthorizedDomain { - /** - * Relative name of the domain authorized for use. Example: `example.com`. - */ - id?: string | null; - /** - * Read only. Full path to the `AuthorizedDomain` resource in the API. Example: `apps/myapp/authorizedDomains/example.com`. - */ - name?: string | null; - } - /** - * Associates `members` with a `role`. - */ - export interface Schema$Binding { - /** - * The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - condition?: Schema$Expr; - /** - * Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid\}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid\}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid\}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid\}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid\}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid\}` and the recovered group retains the role in the binding. * `domain:{domain\}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. - */ - members?: string[] | null; - /** - * Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - */ - role?: string | null; - } /** * Adds and removes POSIX capabilities from running containers. */ @@ -265,98 +197,6 @@ export namespace run_v1alpha1 { */ optional?: boolean | null; } - /** - * Configuration represents the "floating HEAD" of a linear history of Revisions, and optionally how the containers those revisions reference are built. Users create new Revisions by updating the Configuration's spec. The "latest created" revision's name is available under status, as is the "latest ready" revision's name. See also: https://github.com/knative/serving/blob/master/docs/spec/overview.md#configuration - */ - export interface Schema$Configuration { - /** - * The API version for this call such as "serving.knative.dev/v1alpha1". - */ - apiVersion?: string | null; - /** - * The kind of resource, in this case always "Configuration". - */ - kind?: string | null; - /** - * Metadata associated with this Configuration, including name, namespace, labels, and annotations. - */ - metadata?: Schema$ObjectMeta; - /** - * Spec holds the desired state of the Configuration (from the client). - */ - spec?: Schema$ConfigurationSpec; - /** - * Status communicates the observed state of the Configuration (from the controller). - */ - status?: Schema$ConfigurationStatus; - } - /** - * ConfigurationCondition defines a readiness condition for a Configuration. - */ - export interface Schema$ConfigurationCondition { - /** - * Last time the condition transitioned from one status to another. +optional - */ - lastTransitionTime?: string | null; - /** - * Human-readable message indicating details about last transition. +optional - */ - message?: string | null; - /** - * One-word CamelCase reason for the condition's last transition. +optional - */ - reason?: string | null; - /** - * How to interpret failures of this condition, one of Error, Warning, Info +optional - */ - severity?: string | null; - /** - * Status of the condition, one of True, False, Unknown. - */ - status?: string | null; - /** - * ConfigurationConditionType is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting Types include:"Ready" - */ - type?: string | null; - } - /** - * ConfigurationSpec holds the desired state of the Configuration (from the client). - */ - export interface Schema$ConfigurationSpec { - /** - * Deprecated and not currently populated by Cloud Run. See metadata.generation instead, which is the sequence number containing the latest generation of the desired state. Read-only. - */ - generation?: number | null; - /** - * RevisionTemplate holds the latest specification for the Revision to be stamped out. The template references the container image, and may also include labels and annotations that should be attached to the Revision. To correlate a Revision, and/or to force a Revision to be created when the spec doesn't otherwise change, a nonce label may be provided in the template metadata. For more details, see: https://github.com/knative/serving/blob/master/docs/client-conventions.md#associate-modifications-with-revisions Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source. - */ - revisionTemplate?: Schema$RevisionTemplate; - /** - * Template holds the latest specification for the Revision to be stamped out. - */ - template?: Schema$RevisionTemplate; - } - /** - * ConfigurationStatus communicates the observed state of the Configuration (from the controller). - */ - export interface Schema$ConfigurationStatus { - /** - * Conditions communicates information about ongoing/complete reconciliation processes that bring the "spec" inline with the observed state of the world. - */ - conditions?: Schema$ConfigurationCondition[]; - /** - * LatestCreatedRevisionName is the last revision that was created from this Configuration. It might not be ready yet, for that use LatestReadyRevisionName. - */ - latestCreatedRevisionName?: string | null; - /** - * LatestReadyRevisionName holds the name of the latest Revision stamped out from this Configuration that has had its "Ready" condition become "True". - */ - latestReadyRevisionName?: string | null; - /** - * ObservedGeneration is the 'Generation' of the Configuration that was last processed by the controller. The observed generation is updated even if the controller failed to process the spec and create the Revision. Clients polling for completed reconciliation should poll until observedGeneration = metadata.generation, and the Ready condition's status is True or False. - */ - observedGeneration?: number | null; - } /** * A single application container. This specifies both the container to run, the command to run in the container and the arguments to supply to it. Note that additional arguments may be supplied by the system to the container at runtime. */ @@ -471,102 +311,6 @@ export namespace run_v1alpha1 { */ protocol?: string | null; } - /** - * Resource to hold the state and status of a user's domain mapping. NOTE: This resource is currently in Beta. - */ - export interface Schema$DomainMapping { - /** - * The API version for this call such as "domains.cloudrun.com/v1alpha1". - */ - apiVersion?: string | null; - /** - * The kind of resource, in this case "DomainMapping". - */ - kind?: string | null; - /** - * Metadata associated with this BuildTemplate. - */ - metadata?: Schema$ObjectMeta; - /** - * The spec for this DomainMapping. - */ - spec?: Schema$DomainMappingSpec; - /** - * The current status of the DomainMapping. - */ - status?: Schema$DomainMappingStatus; - } - /** - * DomainMappingCondition contains state information for a DomainMapping. - */ - export interface Schema$DomainMappingCondition { - /** - * Last time the condition transitioned from one status to another. +optional - */ - lastTransitionTime?: string | null; - /** - * Human readable message indicating details about the current status. +optional - */ - message?: string | null; - /** - * One-word CamelCase reason for the condition's current status. +optional - */ - reason?: string | null; - /** - * How to interpret failures of this condition, one of Error, Warning, Info +optional - */ - severity?: string | null; - /** - * Status of the condition, one of True, False, Unknown. - */ - status?: string | null; - /** - * Type of domain mapping condition. - */ - type?: string | null; - } - /** - * The desired state of the Domain Mapping. - */ - export interface Schema$DomainMappingSpec { - /** - * The mode of the certificate. - */ - certificateMode?: string | null; - /** - * If set, the mapping will override any mapping set before this spec was set. It is recommended that the user leaves this empty to receive an error warning about a potential conflict and only set it once the respective UI has given such a warning. - */ - forceOverride?: boolean | null; - /** - * The name of the Knative Route that this DomainMapping applies to. The route must exist. - */ - routeName?: string | null; - } - /** - * The current state of the Domain Mapping. - */ - export interface Schema$DomainMappingStatus { - /** - * Array of observed DomainMappingConditions, indicating the current state of the DomainMapping. - */ - conditions?: Schema$DomainMappingCondition[]; - /** - * The name of the route that the mapping currently points to. - */ - mappedRouteName?: string | null; - /** - * ObservedGeneration is the 'Generation' of the DomainMapping that was last processed by the controller. Clients polling for completed reconciliation should poll until observedGeneration = metadata.generation and the Ready condition's status is True or False. - */ - observedGeneration?: number | null; - /** - * The resource records required to configure this domain mapping. These records must be added to the domain's DNS configuration in order to serve the application via this domain mapping. - */ - resourceRecords?: Schema$ResourceRecord[]; - /** - * Cloud Run fully managed: not supported Cloud Run on GKE: supported Holds the URL that will serve the traffic of the DomainMapping. +optional - */ - url?: string | null; - } /** * A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \} The JSON representation for `Empty` is empty JSON object `{\}`. */ @@ -627,27 +371,6 @@ export namespace run_v1alpha1 { */ command?: string[] | null; } - /** - * Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. - */ - export interface Schema$Expr { - /** - * Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. - */ - description?: string | null; - /** - * Textual representation of an expression in Common Expression Language syntax. - */ - expression?: string | null; - /** - * Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. - */ - location?: string | null; - /** - * Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. - */ - title?: string | null; - } /** * Handler defines a specific action that should be taken */ @@ -945,69 +668,6 @@ export namespace run_v1alpha1 { */ preStop?: Schema$Handler; } - /** - * A list of Authorized Domains. - */ - export interface Schema$ListAuthorizedDomainsResponse { - /** - * The authorized domains belonging to the user. - */ - domains?: Schema$AuthorizedDomain[]; - /** - * Continuation token for fetching the next page of results. - */ - nextPageToken?: string | null; - } - /** - * ListConfigurationsResponse is a list of Configuration resources. - */ - export interface Schema$ListConfigurationsResponse { - /** - * The API version for this call such as "serving.knative.dev/v1alpha1". - */ - apiVersion?: string | null; - /** - * List of Configurations. - */ - items?: Schema$Configuration[]; - /** - * The kind of this resource, in this case "ConfigurationList". - */ - kind?: string | null; - /** - * Metadata associated with this Configuration list. - */ - metadata?: Schema$ListMeta; - /** - * Locations that could not be reached. - */ - unreachable?: string[] | null; - } - /** - * ListDomainMappingsResponse is a list of DomainMapping resources. - */ - export interface Schema$ListDomainMappingsResponse { - /** - * The API version for this call such as "domains.cloudrun.com/v1alpha1". - */ - apiVersion?: string | null; - /** - * List of DomainMappings. - */ - items?: Schema$DomainMapping[]; - /** - * The kind of this resource, in this case "DomainMappingList". - */ - kind?: string | null; - /** - * Metadata associated with this DomainMapping list. - */ - metadata?: Schema$ListMeta; - /** - * Locations that could not be reached. - */ - unreachable?: string[] | null; - } /** * ListJobsResponse is a list of Jobs resources. */ @@ -1037,19 +697,6 @@ export namespace run_v1alpha1 { */ unreachable?: string[] | null; } - /** - * The response message for Locations.ListLocations. - */ - export interface Schema$ListLocationsResponse { - /** - * A list of locations that matches the specified filter in the request. - */ - locations?: Schema$Location[]; - /** - * The standard List next-page token. - */ - nextPageToken?: string | null; - } /** * ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta\}. */ @@ -1068,150 +715,50 @@ export namespace run_v1alpha1 { selfLink?: string | null; } /** - * ListRevisionsResponse is a list of Revision resources. + * LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. */ - export interface Schema$ListRevisionsResponse { + export interface Schema$LocalObjectReference { /** - * The API version for this call such as "serving.knative.dev/v1alpha1". + * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */ - apiVersion?: string | null; + name?: string | null; + } + /** + * ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. + */ + export interface Schema$ObjectMeta { /** - * List of Revisions. + * Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional */ - items?: Schema$Revision[]; + annotations?: {[key: string]: string} | null; /** - * The kind of this resource, in this case "RevisionList". + * Not currently supported by Cloud Run. The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional */ - kind?: string | null; + clusterName?: string | null; /** - * Metadata associated with this revision list. + * CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata +optional */ - metadata?: Schema$ListMeta; + creationTimestamp?: string | null; /** - * Locations that could not be reached. + * Not currently supported by Cloud Run. Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. +optional */ - unreachable?: string[] | null; - } - /** - * ListRoutesResponse is a list of Route resources. - */ - export interface Schema$ListRoutesResponse { + deletionGracePeriodSeconds?: number | null; /** - * The API version for this call such as "serving.knative.dev/v1alpha1". + * DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata +optional */ - apiVersion?: string | null; + deletionTimestamp?: string | null; /** - * List of Routes. + * Not currently supported by Cloud Run. Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. +optional +patchStrategy=merge */ - items?: Schema$Route[]; + finalizers?: string[] | null; /** - * The kind of this resource, in this case always "RouteList". + * Not currently supported by Cloud Run. GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency +optional string generateName = 2; */ - kind?: string | null; + generateName?: string | null; /** - * Metadata associated with this Route list. + * A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. +optional */ - metadata?: Schema$ListMeta; - /** - * Locations that could not be reached. - */ - unreachable?: string[] | null; - } - /** - * A list of Service resources. - */ - export interface Schema$ListServicesResponse { - /** - * The API version for this call such as "serving.knative.dev/v1alpha1". - */ - apiVersion?: string | null; - /** - * List of Services. - */ - items?: Schema$Service[]; - /** - * The kind of this resource, in this case "ServiceList". - */ - kind?: string | null; - /** - * Metadata associated with this Service list. - */ - metadata?: Schema$ListMeta; - /** - * Locations that could not be reached. - */ - unreachable?: string[] | null; - } - /** - * LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. - */ - export interface Schema$LocalObjectReference { - /** - * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - */ - name?: string | null; - } - /** - * A resource that represents Google Cloud Platform location. - */ - export interface Schema$Location { - /** - * The friendly name for this location, typically a nearby city name. For example, "Tokyo". - */ - displayName?: string | null; - /** - * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"\} - */ - labels?: {[key: string]: string} | null; - /** - * The canonical id for this location. For example: `"us-east1"`. - */ - locationId?: string | null; - /** - * Service-specific metadata. For example the available capacity at the given location. - */ - metadata?: {[key: string]: any} | null; - /** - * Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"` - */ - name?: string | null; - } - /** - * ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. - */ - export interface Schema$ObjectMeta { - /** - * Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional - */ - annotations?: {[key: string]: string} | null; - /** - * Not currently supported by Cloud Run. The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional - */ - clusterName?: string | null; - /** - * CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata +optional - */ - creationTimestamp?: string | null; - /** - * Not currently supported by Cloud Run. Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. +optional - */ - deletionGracePeriodSeconds?: number | null; - /** - * DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata +optional - */ - deletionTimestamp?: string | null; - /** - * Not currently supported by Cloud Run. Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. +optional +patchStrategy=merge - */ - finalizers?: string[] | null; - /** - * Not currently supported by Cloud Run. GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency +optional string generateName = 2; - */ - generateName?: string | null; - /** - * A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. +optional - */ - generation?: number | null; + generation?: number | null; /** * Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and routes. More info: http://kubernetes.io/docs/user-guide/labels +optional */ @@ -1270,27 +817,6 @@ export namespace run_v1alpha1 { */ uid?: string | null; } - /** - * An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] \}, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", \} \} ], "etag": "BwWWja0YfJA=", "version": 3 \} **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). - */ - export interface Schema$Policy { - /** - * Specifies cloud audit logging configuration for this policy. - */ - auditConfigs?: Schema$AuditConfig[]; - /** - * Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member. - */ - bindings?: Schema$Binding[]; - /** - * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. - */ - etag?: string | null; - /** - * Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - version?: number | null; - } /** * Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. */ @@ -1329,23 +855,6 @@ export namespace run_v1alpha1 { */ string?: string | null; } - /** - * A DNS resource record. - */ - export interface Schema$ResourceRecord { - /** - * Relative name of the object affected by this record. Only applicable for `CNAME` records. Example: 'www'. - */ - name?: string | null; - /** - * Data for this record. Values vary by record type, as defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1). - */ - rrdata?: string | null; - /** - * Resource record type. Example: `AAAA`. - */ - type?: string | null; - } /** * ResourceRequirements describes the compute resource requirements. */ @@ -1367,236 +876,6 @@ export namespace run_v1alpha1 { */ requestsInMap?: {[key: string]: Schema$Quantity} | null; } - /** - * Revision is an immutable snapshot of code and configuration. A revision references a container image. Revisions are created by updates to a Configuration. Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source. See also: https://github.com/knative/serving/blob/master/docs/spec/overview.md#revision - */ - export interface Schema$Revision { - /** - * The API version for this call such as "serving.knative.dev/v1alpha1". - */ - apiVersion?: string | null; - /** - * The kind of this resource, in this case "Revision". - */ - kind?: string | null; - /** - * Metadata associated with this Revision, including name, namespace, labels, and annotations. - */ - metadata?: Schema$ObjectMeta; - /** - * Spec holds the desired state of the Revision (from the client). - */ - spec?: Schema$RevisionSpec; - /** - * Status communicates the observed state of the Revision (from the controller). - */ - status?: Schema$RevisionStatus; - } - /** - * RevisionCondition defines a readiness condition for a Revision. - */ - export interface Schema$RevisionCondition { - /** - * Last time the condition transitioned from one status to another. +optional - */ - lastTransitionTime?: string | null; - /** - * Human readable message indicating details about the current status. +optional - */ - message?: string | null; - /** - * One-word CamelCase reason for the condition's last transition. +optional - */ - reason?: string | null; - /** - * How to interpret failures of this condition, one of Error, Warning, Info +optional - */ - severity?: string | null; - /** - * Status of the condition, one of True, False, Unknown. - */ - status?: string | null; - /** - * RevisionConditionType is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting Types include: * "Ready": True when the Revision is ready. * "ResourcesAvailable": True when underlying resources have been provisioned. * "ContainerHealthy": True when the Revision readiness check completes. * "Active": True when the Revision may receive traffic. - */ - type?: string | null; - } - /** - * RevisionSpec holds the desired state of the Revision (from the client). - */ - export interface Schema$RevisionSpec { - /** - * ConcurrencyModel specifies the desired concurrency model (Single or Multi) for the Revision. Defaults to Multi. Deprecated in favor of ContainerConcurrency. +optional - */ - concurrencyModel?: string | null; - /** - * Container defines the unit of execution for this Revision. In the context of a Revision, we disallow a number of the fields of this Container, including: name, ports, and volumeMounts. The runtime contract is documented here: https://github.com/knative/serving/blob/master/docs/runtime-contract.md - */ - container?: Schema$Container; - /** - * (Optional) ContainerConcurrency specifies the maximum allowed in-flight (concurrent) requests per container instance of the Revision. Cloud Run fully managed: supported, defaults to 80 Cloud Run on GKE: supported, defaults to 0, which means concurrency to the application is not limited, and the system decides the target concurrency for the autoscaler. - */ - containerConcurrency?: number | null; - /** - * Containers holds the single container that defines the unit of execution for this Revision. In the context of a Revision, we disallow a number of fields on this Container, including: name and lifecycle. In Cloud Run, only a single container may be provided. - */ - containers?: Schema$Container[]; - /** - * Deprecated and not currently populated by Cloud Run. See metadata.generation instead, which is the sequence number containing the latest generation of the desired state. Read-only. - */ - generation?: number | null; - /** - * Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account. - */ - serviceAccountName?: string | null; - /** - * ServingState holds a value describing the state the resources are in for this Revision. Users must not specify this when creating a revision. It is expected that the system will manipulate this based on routability and load. Populated by the system. Read-only. - */ - servingState?: string | null; - /** - * TimeoutSeconds holds the max duration the instance is allowed for responding to a request. Not currently used by Cloud Run. - */ - timeoutSeconds?: number | null; - volumes?: Schema$Volume[]; - } - /** - * RevisionStatus communicates the observed state of the Revision (from the controller). - */ - export interface Schema$RevisionStatus { - /** - * Conditions communicates information about ongoing/complete reconciliation processes that bring the "spec" inline with the observed state of the world. As a Revision is being prepared, it will incrementally update conditions "ResourcesAvailable", "ContainerHealthy", and "Active", which contribute to the overall "Ready" condition. - */ - conditions?: Schema$RevisionCondition[]; - /** - * ImageDigest holds the resolved digest for the image specified within .Spec.Container.Image. The digest is resolved during the creation of Revision. This field holds the digest value regardless of whether a tag or digest was originally specified in the Container object. - */ - imageDigest?: string | null; - /** - * Specifies the generated logging url for this particular revision based on the revision url template specified in the controller's config. +optional - */ - logUrl?: string | null; - /** - * ObservedGeneration is the 'Generation' of the Revision that was last processed by the controller. Clients polling for completed reconciliation should poll until observedGeneration = metadata.generation, and the Ready condition's status is True or False. - */ - observedGeneration?: number | null; - /** - * Not currently used by Cloud Run. - */ - serviceName?: string | null; - } - /** - * RevisionTemplateSpec describes the data a revision should have when created from a template. Based on: https://github.com/kubernetes/api/blob/e771f807/core/v1/types.go#L3179-L3190 - */ - export interface Schema$RevisionTemplate { - /** - * 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 on GKE 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. - */ - metadata?: Schema$ObjectMeta; - /** - * RevisionSpec holds the desired state of the Revision (from the client). - */ - spec?: Schema$RevisionSpec; - } - /** - * Route is responsible for configuring ingress over a collection of Revisions. Some of the Revisions a Route distributes traffic over may be specified by referencing the Configuration responsible for creating them; in these cases the Route is additionally responsible for monitoring the Configuration for "latest ready" revision changes, and smoothly rolling out latest revisions. See also: https://github.com/knative/serving/blob/master/docs/spec/overview.md#route Cloud Run currently supports referencing a single Configuration to automatically deploy the "latest ready" Revision from that Configuration. - */ - export interface Schema$Route { - /** - * The API version for this call such as "serving.knative.dev/v1alpha1". - */ - apiVersion?: string | null; - /** - * The kind of this resource, in this case always "Route". - */ - kind?: string | null; - /** - * Metadata associated with this Route, including name, namespace, labels, and annotations. - */ - metadata?: Schema$ObjectMeta; - /** - * Spec holds the desired state of the Route (from the client). - */ - spec?: Schema$RouteSpec; - /** - * Status communicates the observed state of the Route (from the controller). - */ - status?: Schema$RouteStatus; - } - /** - * RouteCondition defines a readiness condition for a Route. - */ - export interface Schema$RouteCondition { - /** - * Last time the condition transitioned from one status to another. +optional - */ - lastTransitionTime?: string | null; - /** - * Human-readable message indicating details about last transition. +optional - */ - message?: string | null; - /** - * One-word CamelCase reason for the condition's last transition. +optional - */ - reason?: string | null; - /** - * How to interpret failures of this condition, one of Error, Warning, Info +optional - */ - severity?: string | null; - /** - * Status of the condition, one of "True", "False", "Unknown". - */ - status?: string | null; - /** - * RouteConditionType is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting Types include: "Ready". - */ - type?: string | null; - } - /** - * RouteSpec holds the desired state of the Route (from the client). - */ - export interface Schema$RouteSpec { - /** - * Deprecated and not currently populated by Cloud Run. See metadata.generation instead, which is the sequence number containing the latest generation of the desired state. Read-only. - */ - generation?: number | null; - /** - * Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations. Cloud Run currently supports a single configurationName. - */ - traffic?: Schema$TrafficTarget[]; - } - /** - * RouteStatus communicates the observed state of the Route (from the controller). - */ - export interface Schema$RouteStatus { - /** - * Similar to url, information on where the service is available on HTTP. - */ - address?: Schema$Addressable; - /** - * Conditions communicates information about ongoing/complete reconciliation processes that bring the "spec" inline with the observed state of the world. - */ - conditions?: Schema$RouteCondition[]; - /** - * Deprecated - use url instead. Domain holds the top-level domain that will distribute traffic over the provided targets. - */ - domain?: string | null; - /** - * Deprecated - use address instead. For Cloud Run, identifical to domain. - */ - domainInternal?: string | null; - /** - * ObservedGeneration is the 'Generation' of the Route that was last processed by the controller. Clients polling for completed reconciliation should poll until observedGeneration = metadata.generation and the Ready condition's status is True or False. Note that providing a trafficTarget that only has a configurationName will result in a Route that does not increment either its metadata.generation or its observedGeneration, as new "latest ready" revisions from the Configuration are processed without an update to the Route's spec. - */ - observedGeneration?: number | null; - /** - * Traffic holds the configured traffic distribution. These entries will always contain RevisionName references. When ConfigurationName appears in the spec, this will hold the LatestReadyRevisionName that we last observed. - */ - traffic?: Schema$TrafficTarget[]; - /** - * URL holds the url that will distribute traffic over the provided traffic targets. It generally has the form https://{route-hash\}-{project-hash\}-{cluster-level-suffix\}.a.run.app - */ - url?: string | null; - } /** * 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. */ @@ -1715,249 +994,18 @@ export namespace run_v1alpha1 { user?: string | null; } /** - * Service acts as a top-level container that manages a set of Routes and Configurations which implement a network service. Service exists to provide a singular abstraction which can be access controlled, reasoned about, and which encapsulates software lifecycle decisions such as rollout policy and team resource ownership. Service acts only as an orchestrator of the underlying Routes and Configurations (much as a kubernetes Deployment orchestrates ReplicaSets). The Service's controller will track the statuses of its owned Configuration and Route, reflecting their statuses and conditions as its own. See also: https://github.com/knative/serving/blob/master/docs/spec/overview.md#service + * TCPSocketAction describes an action based on opening a socket */ - export interface Schema$Service { + export interface Schema$TCPSocketAction { /** - * The API version for this call such as "serving.knative.dev/v1alpha1". + * Optional: Host name to connect to, defaults to the pod IP. +optional */ - apiVersion?: string | null; - /** - * The kind of resource, in this case "Service". - */ - kind?: string | null; - /** - * Metadata associated with this Service, including name, namespace, labels, and annotations. - */ - metadata?: Schema$ObjectMeta; - /** - * Spec holds the desired state of the Service (from the client). - */ - spec?: Schema$ServiceSpec; - /** - * Status communicates the observed state of the Service (from the controller). - */ - status?: Schema$ServiceStatus; - } - /** - * ServiceCondition defines a readiness condition for a Service. - */ - export interface Schema$ServiceCondition { - /** - * Last time the condition transitioned from one status to another. +optional - */ - lastTransitionTime?: string | null; - /** - * Human-readable message indicating details about last transition. +optional - */ - message?: string | null; - /** - * One-word CamelCase reason for the condition's last transition. +optional - */ - reason?: string | null; - /** - * How to interpret failures of this condition, one of Error, Warning, Info +optional - */ - severity?: string | null; - /** - * Status of the condition, one of True, False, Unknown. - */ - status?: string | null; - /** - * ServiceConditionType is used to communicate the status of the reconciliation process. See also: https://github.com/knative/serving/blob/master/docs/spec/errors.md#error-conditions-and-reporting Types include: "Ready", "ConfigurationsReady", and "RoutesReady". "Ready" will be true when the underlying Route and Configuration are ready. - */ - type?: string | null; - } - /** - * ServiceSpec holds the desired state of the Route (from the client), which is used to manipulate the underlying Route and Configuration(s). - */ - export interface Schema$ServiceSpec { - /** - * Deprecated and not currently populated by Cloud Run. See metadata.generation instead, which is the sequence number containing the latest generation of the desired state. Read-only. - */ - generation?: number | null; - /** - * Manual contains the options for configuring a manual service. See ServiceSpec for more details. Not currently supported by Cloud Run. - */ - manual?: Schema$ServiceSpecManualType; - /** - * Pins this service to a specific revision name. The revision must be owned by the configuration provided. Deprecated and not supported by Cloud Run. +optional - */ - pinned?: Schema$ServiceSpecPinnedType; - /** - * Release enables gradual promotion of new revisions by allowing traffic to be split between two revisions. This type replaces the deprecated Pinned type. Not currently supported by Cloud Run. - */ - release?: Schema$ServiceSpecReleaseType; - /** - * RunLatest defines a simple Service. It will automatically configure a route that keeps the latest ready revision from the supplied configuration running. +optional - */ - runLatest?: Schema$ServiceSpecRunLatest; - /** - * Template holds the latest specification for the Revision to be stamped out. - */ - template?: Schema$RevisionTemplate; - /** - * Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations. - */ - traffic?: Schema$TrafficTarget[]; - } - /** - * ServiceSpecManualType contains the options for configuring a manual service. See ServiceSpec for more details. Not currently supported by Cloud Run. - */ - export interface Schema$ServiceSpecManualType {} - /** - * ServiceSpecPinnedType Pins this service to a specific revision name. The revision must be owned by the configuration provided. Deprecated and not supported by Cloud Run. - */ - export interface Schema$ServiceSpecPinnedType { - /** - * The configuration for this service. - */ - configuration?: Schema$ConfigurationSpec; - /** - * The revision name to pin this service to until changed to a different service type. - */ - revisionName?: string | null; - } - /** - * ServiceSpecReleaseType contains the options for slowly releasing revisions. See ServiceSpec for more details. Not currently supported by Cloud Run. - */ - export interface Schema$ServiceSpecReleaseType { - /** - * The configuration for this service. All revisions from this service must come from a single configuration. - */ - configuration?: Schema$ConfigurationSpec; - /** - * Revisions is an ordered list of 1 or 2 revisions. The first is the current revision, and the second is the candidate revision. If a single revision is provided, traffic will be pinned at that revision. "@latest" is a shortcut for usage that refers to the latest created revision by the configuration. - */ - revisions?: string[] | null; - /** - * RolloutPercent is the percent of traffic that should be sent to the candidate revision, i.e. the 2nd revision in the revisions list. Valid values are between 0 and 99 inclusive. - */ - rolloutPercent?: number | null; - } - /** - * ServiceSpecRunLatest contains the options for always having a route to the latest configuration. See ServiceSpec for more details. - */ - export interface Schema$ServiceSpecRunLatest { - /** - * The configuration for this service. - */ - configuration?: Schema$ConfigurationSpec; - } - /** - * The current state of the Service. Output only. - */ - export interface Schema$ServiceStatus { - /** - * From RouteStatus. Similar to url, information on where the service is available on HTTP. - */ - address?: Schema$Addressable; - /** - * Conditions communicates information about ongoing/complete reconciliation processes that bring the "spec" inline with the observed state of the world. - */ - conditions?: Schema$ServiceCondition[]; - /** - * From RouteStatus. Domain holds the top-level domain that will distribute traffic over the provided targets. It generally has the form https://{route-hash\}-{project-hash\}-{cluster-level-suffix\}.a.run.app - */ - domain?: string | null; - /** - * From ConfigurationStatus. LatestCreatedRevisionName is the last revision that was created from this Service's Configuration. It might not be ready yet, for that use LatestReadyRevisionName. - */ - latestCreatedRevisionName?: string | null; - /** - * From ConfigurationStatus. LatestReadyRevisionName holds the name of the latest Revision stamped out from this Service's Configuration that has had its "Ready" condition become "True". - */ - latestReadyRevisionName?: string | null; - /** - * ObservedGeneration is the 'Generation' of the Route that was last processed by the controller. Clients polling for completed reconciliation should poll until observedGeneration = metadata.generation and the Ready condition's status is True or False. - */ - observedGeneration?: number | null; - /** - * From RouteStatus. Traffic holds the configured traffic distribution. These entries will always contain RevisionName references. When ConfigurationName appears in the spec, this will hold the LatestReadyRevisionName that we last observed. - */ - traffic?: Schema$TrafficTarget[]; - /** - * From RouteStatus. URL holds the url that will distribute traffic over the provided traffic targets. It generally has the form https://{route-hash\}-{project-hash\}-{cluster-level-suffix\}.a.run.app - */ - url?: string | null; - } - /** - * Request message for `SetIamPolicy` method. - */ - export interface Schema$SetIamPolicyRequest { - /** - * REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them. - */ - policy?: Schema$Policy; - /** - * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: `paths: "bindings, etag"` - */ - updateMask?: string | null; - } - /** - * TCPSocketAction describes an action based on opening a socket - */ - export interface Schema$TCPSocketAction { - /** - * Optional: Host name to connect to, defaults to the pod IP. +optional - */ - host?: string | null; + host?: string | null; /** * Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. */ port?: Schema$IntOrString; } - /** - * Request message for `TestIamPermissions` method. - */ - export interface Schema$TestIamPermissionsRequest { - /** - * The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - */ - permissions?: string[] | null; - } - /** - * Response message for `TestIamPermissions` method. - */ - export interface Schema$TestIamPermissionsResponse { - /** - * A subset of `TestPermissionsRequest.permissions` that the caller is allowed. - */ - permissions?: string[] | null; - } - /** - * TrafficTarget holds a single entry of the routing table for a Route. - */ - export interface Schema$TrafficTarget { - /** - * ConfigurationName of a configuration to whose latest revision we will send this portion of traffic. When the "status.latestReadyRevisionName" of the referenced configuration changes, we will automatically migrate traffic from the prior "latest ready" revision to the new one. This field is never set in Route's status, only its spec. This is mutually exclusive with RevisionName. Cloud Run currently supports a single ConfigurationName. - */ - configurationName?: string | null; - /** - * LatestRevision may be optionally provided to indicate that the latest ready Revision of the Configuration should be used for this traffic target. When provided LatestRevision must be true if RevisionName is empty; it must be false when RevisionName is non-empty. +optional - */ - latestRevision?: boolean | null; - /** - * Name is optionally used to expose a dedicated hostname for referencing this target exclusively. Not currently supported by Cloud Run. +optional - */ - name?: string | null; - /** - * Percent specifies percent of the traffic to this Revision or Configuration. This defaults to zero if unspecified. Cloud Run currently requires 100 percent for a single ConfigurationName TrafficTarget entry. - */ - percent?: number | null; - /** - * RevisionName of a specific revision to which to send this portion of traffic. This is mutually exclusive with ConfigurationName. Providing RevisionName in spec is not currently supported by Cloud Run. - */ - revisionName?: string | null; - /** - * Tag is optionally used to expose a dedicated url for referencing this target exclusively. Not currently supported in Cloud Run. +optional - */ - tag?: string | null; - /** - * Output only. URL displays the URL for accessing named traffic targets. URL is displayed in status, and is disallowed on spec. URL must contain a scheme (e.g. http://) and a hostname, but may not contain anything else (e.g. basic auth, url path, etc. Not currently supported in Cloud Run. - */ - url?: string | null; - } /** * Volume represents a named volume in a container. */ @@ -2010,39 +1058,21 @@ export namespace run_v1alpha1 { export class Resource$Namespaces { context: APIRequestContext; - authorizeddomains: Resource$Namespaces$Authorizeddomains; - configurations: Resource$Namespaces$Configurations; - domainmappings: Resource$Namespaces$Domainmappings; jobs: Resource$Namespaces$Jobs; - 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.jobs = new Resource$Namespaces$Jobs(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 { + export class Resource$Namespaces$Jobs { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * RPC to list authorized domains. + * Create a job. * @example * ```js * // Before running the sample: @@ -2067,20 +1097,31 @@ export namespace run_v1alpha1 { * 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 Application resource. Example: `apps/myapp`. + * const res = await run.namespaces.jobs.create({ + * // Required. The namespace in which the job should be created. 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 * // { - * // "domains": [], - * // "nextPageToken": "my_nextPageToken" + * // "apiVersion": "my_apiVersion", + * // "kind": "my_kind", + * // "metadata": {}, + * // "spec": {}, + * // "status": {} * // } * } * @@ -2096,6181 +1137,50 @@ export namespace run_v1alpha1 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - list( - params: Params$Resource$Namespaces$Authorizeddomains$List, + create( + params: Params$Resource$Namespaces$Jobs$Create, options: StreamMethodOptions ): GaxiosPromise; - list( - params?: Params$Resource$Namespaces$Authorizeddomains$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Namespaces$Authorizeddomains$List, - 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 - ): void; - list( - callback: BodyResponseCallback - ): void; - list( - paramsOrCallback?: - | Params$Resource$Namespaces$Authorizeddomains$List - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Authorizeddomains$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Authorizeddomains$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/v1alpha1/{+parent}/authorizeddomains' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - 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 Application resource. Example: `apps/myapp`. - */ - parent?: string; - } - - export class Resource$Namespaces$Configurations { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - - /** - * Rpc to get information about a configuration. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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.get({ - * // The name of the configuration being retrieved. If needed, replace {namespace_id\} with the project ID. - * name: 'namespaces/my-namespace/configurations/my-configuration', - * }); - * console.log(res.data); - * - * // Example response - * // { - * // "apiVersion": "my_apiVersion", - * // "kind": "my_kind", - * // "metadata": {}, - * // "spec": {}, - * // "status": {} - * // } - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - get( - params: Params$Resource$Namespaces$Configurations$Get, - options: StreamMethodOptions - ): GaxiosPromise; - get( - params?: Params$Resource$Namespaces$Configurations$Get, - options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Namespaces$Configurations$Get, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Namespaces$Configurations$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Namespaces$Configurations$Get, - callback: BodyResponseCallback - ): void; - get(callback: BodyResponseCallback): void; - get( - paramsOrCallback?: - | Params$Resource$Namespaces$Configurations$Get - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Configurations$Get; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Configurations$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/v1alpha1/{+name}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * Rpc to list configurations. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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 project ID or project number from which the configurations should be listed. - * 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; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - list( - params: Params$Resource$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/v1alpha1/{+parent}/configurations' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Namespaces$Configurations$Get - extends StandardParameters { - /** - * The name of the configuration being retrieved. If needed, replace {namespace_id\} with the project ID. - */ - 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 project ID or project number from which the configurations should be listed. - */ - 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; - } - - /** - * Creates a new domain mapping. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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 project ID or project number in which this domain mapping should be created. - * 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; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - create( - params: Params$Resource$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/v1alpha1/{+parent}/domainmappings' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * Rpc to delete a domain mapping. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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 being deleted. If needed, replace {namespace_id\} with the project ID. - * name: 'namespaces/my-namespace/domainmappings/my-domainmapping', - * // Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports cascading behavior, so this must be false. This attribute is deprecated, and is now replaced with PropagationPolicy See https://github.com/kubernetes/kubernetes/issues/46659 for more info. - * orphanDependents: 'placeholder-value', - * // 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 - * // {} - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - delete( - params: Params$Resource$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/v1alpha1/{+name}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * Rpc to get information about a domain mapping. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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 being retrieved. If needed, replace {namespace_id\} with the project ID. - * 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; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - get( - params: Params$Resource$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/v1alpha1/{+name}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * Rpc to list domain mappings. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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 project ID or project number from which the domain mappings should be listed. - * 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; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - list( - params: Params$Resource$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/v1alpha1/{+parent}/domainmappings' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Namespaces$Domainmappings$Create - extends StandardParameters { - /** - * The project ID or project number in which this domain mapping should be created. - */ - 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 being deleted. If needed, replace {namespace_id\} with the project ID. - */ - name?: string; - /** - * Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports cascading behavior, so this must be false. This attribute is deprecated, and is now replaced with PropagationPolicy See https://github.com/kubernetes/kubernetes/issues/46659 for more info. - */ - orphanDependents?: boolean; - /** - * 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 being retrieved. If needed, replace {namespace_id\} with the project ID. - */ - 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 project ID or project number from which the domain mappings should be listed. - */ - 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$Jobs { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - - /** - * Create a job. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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.jobs.create({ - * // Required. The namespace in which the job should be created. 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; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - create( - params: Params$Resource$Namespaces$Jobs$Create, - options: StreamMethodOptions - ): GaxiosPromise; - create( - params?: Params$Resource$Namespaces$Jobs$Create, - options?: MethodOptions - ): GaxiosPromise; - create( - params: Params$Resource$Namespaces$Jobs$Create, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - create( - params: Params$Resource$Namespaces$Jobs$Create, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - create( - params: Params$Resource$Namespaces$Jobs$Create, - callback: BodyResponseCallback - ): void; - create(callback: BodyResponseCallback): void; - create( - paramsOrCallback?: - | Params$Resource$Namespaces$Jobs$Create - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Jobs$Create; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Jobs$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/run.googleapis.com/v1alpha1/{+parent}/jobs' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * Delete a job. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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.jobs.delete({ - * // Optional. Cloud Run currently ignores this parameter. - * apiVersion: 'placeholder-value', - * // Optional. Cloud Run currently ignores this parameter. - * kind: 'placeholder-value', - * // Required. The name of the job to delete. For Cloud Run (fully managed), replace {namespace_id\} with the project ID or number. - * name: 'namespaces/my-namespace/jobs/my-job', - * // Optional. 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 - * // {} - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - delete( - params: Params$Resource$Namespaces$Jobs$Delete, - options: StreamMethodOptions - ): GaxiosPromise; - delete( - params?: Params$Resource$Namespaces$Jobs$Delete, - options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Namespaces$Jobs$Delete, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Namespaces$Jobs$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Namespaces$Jobs$Delete, - callback: BodyResponseCallback - ): void; - delete(callback: BodyResponseCallback): void; - delete( - paramsOrCallback?: - | Params$Resource$Namespaces$Jobs$Delete - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Jobs$Delete; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Jobs$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/run.googleapis.com/v1alpha1/{+name}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * Get information about a job. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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.jobs.get({ - * // Required. The name of the job to retrieve. For Cloud Run (fully managed), replace {namespace_id\} with the project ID or number. - * name: 'namespaces/my-namespace/jobs/my-job', - * }); - * console.log(res.data); - * - * // Example response - * // { - * // "apiVersion": "my_apiVersion", - * // "kind": "my_kind", - * // "metadata": {}, - * // "spec": {}, - * // "status": {} - * // } - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - get( - params: Params$Resource$Namespaces$Jobs$Get, - options: StreamMethodOptions - ): GaxiosPromise; - get( - params?: Params$Resource$Namespaces$Jobs$Get, - options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Namespaces$Jobs$Get, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Namespaces$Jobs$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Namespaces$Jobs$Get, - callback: BodyResponseCallback - ): void; - get(callback: BodyResponseCallback): void; - get( - paramsOrCallback?: - | Params$Resource$Namespaces$Jobs$Get - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Jobs$Get; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Jobs$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/run.googleapis.com/v1alpha1/{+name}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * List jobs. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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.jobs.list({ - * // Optional. Optional encoded string to continue paging. - * continue: 'placeholder-value', - * // Optional. 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', - * // Optional. Not currently used by Cloud Run. - * includeUninitialized: 'placeholder-value', - * // Optional. Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. - * labelSelector: 'placeholder-value', - * // Optional. The maximum number of records that should be returned. - * limit: 'placeholder-value', - * // Required. The namespace from which the jobs should be listed. Replace {namespace_id\} with the project ID or number. - * parent: 'namespaces/my-namespace', - * // Optional. The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. - * resourceVersion: 'placeholder-value', - * // Optional. 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": {}, - * // "nextPageToken": "my_nextPageToken", - * // "unreachable": [] - * // } - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - list( - params: Params$Resource$Namespaces$Jobs$List, - options: StreamMethodOptions - ): GaxiosPromise; - list( - params?: Params$Resource$Namespaces$Jobs$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Namespaces$Jobs$List, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Namespaces$Jobs$List, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Namespaces$Jobs$List, - callback: BodyResponseCallback - ): void; - list(callback: BodyResponseCallback): void; - list( - paramsOrCallback?: - | Params$Resource$Namespaces$Jobs$List - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Jobs$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Jobs$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/run.googleapis.com/v1alpha1/{+parent}/jobs' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Namespaces$Jobs$Create - extends StandardParameters { - /** - * Required. The namespace in which the job should be created. Replace {namespace_id\} with the project ID or number. - */ - parent?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Job; - } - export interface Params$Resource$Namespaces$Jobs$Delete - extends StandardParameters { - /** - * Optional. Cloud Run currently ignores this parameter. - */ - apiVersion?: string; - /** - * Optional. Cloud Run currently ignores this parameter. - */ - kind?: string; - /** - * Required. The name of the job to delete. For Cloud Run (fully managed), replace {namespace_id\} with the project ID or number. - */ - name?: string; - /** - * Optional. 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$Jobs$Get - extends StandardParameters { - /** - * Required. The name of the job to retrieve. For Cloud Run (fully managed), replace {namespace_id\} with the project ID or number. - */ - name?: string; - } - export interface Params$Resource$Namespaces$Jobs$List - extends StandardParameters { - /** - * Optional. Optional encoded string to continue paging. - */ - continue?: string; - /** - * Optional. 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; - /** - * Optional. Not currently used by Cloud Run. - */ - includeUninitialized?: boolean; - /** - * Optional. Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. - */ - labelSelector?: string; - /** - * Optional. The maximum number of records that should be returned. - */ - limit?: number; - /** - * Required. The namespace from which the jobs should be listed. Replace {namespace_id\} with the project ID or number. - */ - parent?: string; - /** - * Optional. The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. - */ - resourceVersion?: string; - /** - * Optional. 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; - } - - /** - * Rpc to delete a revision. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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 being deleted. If needed, replace {namespace_id\} with the project ID. - * name: 'namespaces/my-namespace/revisions/my-revision', - * // Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports cascading behavior, so this must be false. This attribute is deprecated, and is now replaced with PropagationPolicy See https://github.com/kubernetes/kubernetes/issues/46659 for more info. - * orphanDependents: 'placeholder-value', - * // 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 - * // {} - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - delete( - params: Params$Resource$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/v1alpha1/{+name}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * Rpc to get information about a revision. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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 being retrieved. If needed, replace {namespace_id\} with the project ID. - * 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; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - get( - params: Params$Resource$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/v1alpha1/{+name}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * Rpc to list revisions. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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 project ID or project number from which the revisions should be listed. - * 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; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - list( - params: Params$Resource$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/v1alpha1/{+parent}/revisions' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Namespaces$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 being deleted. If needed, replace {namespace_id\} with the project ID. - */ - name?: string; - /** - * Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports cascading behavior, so this must be false. This attribute is deprecated, and is now replaced with PropagationPolicy See https://github.com/kubernetes/kubernetes/issues/46659 for more info. - */ - orphanDependents?: boolean; - /** - * 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 being retrieved. If needed, replace {namespace_id\} with the project ID. - */ - 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 project ID or project number from which the revisions should be listed. - */ - 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; - } - - /** - * Rpc to get information about a route. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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 being retrieved. If needed, replace {namespace_id\} with the project ID. - * 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; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - get( - params: Params$Resource$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/v1alpha1/{+name}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * Rpc to list routes. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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.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 project ID or project number from which the routes should be listed. - * 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; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - list( - params: Params$Resource$Namespaces$Routes$List, - options: StreamMethodOptions - ): GaxiosPromise; - list( - params?: Params$Resource$Namespaces$Routes$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Namespaces$Routes$List, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Namespaces$Routes$List, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Namespaces$Routes$List, - callback: BodyResponseCallback - ): void; - list(callback: BodyResponseCallback): void; - list( - paramsOrCallback?: - | Params$Resource$Namespaces$Routes$List - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Routes$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Routes$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/v1alpha1/{+parent}/routes' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Namespaces$Routes$Get - extends StandardParameters { - /** - * The name of the route being retrieved. If needed, replace {namespace_id\} with the project ID. - */ - 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 project ID or project number from which the routes should be listed. - */ - 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; - } - - /** - * Rpc to create a service. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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.services.create({ - * // The project ID or project number in which this service should be created. - * 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; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - create( - params: Params$Resource$Namespaces$Services$Create, - options: StreamMethodOptions - ): GaxiosPromise; - create( - params?: Params$Resource$Namespaces$Services$Create, - options?: MethodOptions - ): GaxiosPromise; - create( - params: Params$Resource$Namespaces$Services$Create, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - create( - params: Params$Resource$Namespaces$Services$Create, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - create( - params: Params$Resource$Namespaces$Services$Create, - callback: BodyResponseCallback - ): void; - create(callback: BodyResponseCallback): void; - create( - paramsOrCallback?: - | Params$Resource$Namespaces$Services$Create - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Services$Create; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Services$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/serving.knative.dev/v1alpha1/{+parent}/services' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * Rpc to delete a service. This will cause the Service to stop serving traffic and will delete the child entities like Routes, Configurations and Revisions. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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.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 being deleted. If needed, replace {namespace_id\} with the project ID. - * name: 'namespaces/my-namespace/services/my-service', - * // Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports cascading behavior, so this must be false. This attribute is deprecated, and is now replaced with PropagationPolicy See https://github.com/kubernetes/kubernetes/issues/46659 for more info. - * orphanDependents: 'placeholder-value', - * // 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 - * // {} - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - delete( - params: Params$Resource$Namespaces$Services$Delete, - options: StreamMethodOptions - ): GaxiosPromise; - delete( - params?: Params$Resource$Namespaces$Services$Delete, - options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Namespaces$Services$Delete, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Namespaces$Services$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Namespaces$Services$Delete, - callback: BodyResponseCallback - ): void; - delete(callback: BodyResponseCallback): void; - delete( - paramsOrCallback?: - | Params$Resource$Namespaces$Services$Delete - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Services$Delete; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Services$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/v1alpha1/{+name}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * Rpc to get information about a service. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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.services.get({ - * // The name of the service being retrieved. If needed, replace {namespace_id\} with the project ID. - * name: 'namespaces/my-namespace/services/my-service', - * }); - * console.log(res.data); - * - * // Example response - * // { - * // "apiVersion": "my_apiVersion", - * // "kind": "my_kind", - * // "metadata": {}, - * // "spec": {}, - * // "status": {} - * // } - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - get( - params: Params$Resource$Namespaces$Services$Get, - options: StreamMethodOptions - ): GaxiosPromise; - get( - params?: Params$Resource$Namespaces$Services$Get, - options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Namespaces$Services$Get, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Namespaces$Services$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Namespaces$Services$Get, - callback: BodyResponseCallback - ): void; - get(callback: BodyResponseCallback): void; - get( - paramsOrCallback?: - | Params$Resource$Namespaces$Services$Get - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Services$Get; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Services$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/v1alpha1/{+name}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * Rpc to list services. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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.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 project ID or project number from which the services should be listed. - * 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; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - list( - params: Params$Resource$Namespaces$Services$List, - options: StreamMethodOptions - ): GaxiosPromise; - list( - params?: Params$Resource$Namespaces$Services$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Namespaces$Services$List, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Namespaces$Services$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Namespaces$Services$List, - callback: BodyResponseCallback - ): void; - list(callback: BodyResponseCallback): void; - list( - paramsOrCallback?: - | Params$Resource$Namespaces$Services$List - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Namespaces$Services$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Namespaces$Services$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/v1alpha1/{+parent}/services' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * Rpc to 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 - * ```js - * // 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('v1alpha1'); - * - * 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.services.replaceService({ - * // The name of the service being replaced. If needed, replace {namespace_id\} with the project ID. - * 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); - * - * // Example response - * // { - * // "apiVersion": "my_apiVersion", - * // "kind": "my_kind", - * // "metadata": {}, - * // "spec": {}, - * // "status": {} - * // } - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - 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/v1alpha1/{+name}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Namespaces$Services$Create - extends StandardParameters { - /** - * The project ID or project number in which this service should be created. - */ - 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 being deleted. If needed, replace {namespace_id\} with the project ID. - */ - name?: string; - /** - * Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports cascading behavior, so this must be false. This attribute is deprecated, and is now replaced with PropagationPolicy See https://github.com/kubernetes/kubernetes/issues/46659 for more info. - */ - orphanDependents?: boolean; - /** - * 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 being retrieved. If needed, replace {namespace_id\} with the project ID. - */ - 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 project ID or project number from which the services should be listed. - */ - 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. If needed, replace {namespace_id\} with the project ID. - */ - name?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Service; - } - - export class Resource$Projects { - context: APIRequestContext; - locations: Resource$Projects$Locations; - constructor(context: APIRequestContext) { - this.context = context; - this.locations = new Resource$Projects$Locations(this.context); - } - } - - export class Resource$Projects$Locations { - context: APIRequestContext; - 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); - } - - /** - * Lists information about the supported locations for this service. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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.list({ - * // A filter to narrow down results to a preferred subset. The filtering language accepts strings like "displayName=tokyo", and is documented in more detail in [AIP-160](https://google.aip.dev/160). - * filter: 'placeholder-value', - * // The resource that owns the locations collection, if applicable. - * name: 'projects/my-project', - * // The maximum number of results to return. If not set, the service will select a default. - * pageSize: 'placeholder-value', - * // A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. - * pageToken: 'placeholder-value', - * }); - * console.log(res.data); - * - * // Example response - * // { - * // "locations": [], - * // "nextPageToken": "my_nextPageToken" - * // } - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - list( - params: Params$Resource$Projects$Locations$List, - options: StreamMethodOptions - ): GaxiosPromise; - list( - params?: Params$Resource$Projects$Locations$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Projects$Locations$List, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Projects$Locations$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Projects$Locations$List, - callback: BodyResponseCallback - ): void; - list(callback: BodyResponseCallback): void; - list( - paramsOrCallback?: - | Params$Resource$Projects$Locations$List - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$List; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1alpha1/{+name}/locations').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'GET', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Projects$Locations$List - extends StandardParameters { - /** - * A filter to narrow down results to a preferred subset. The filtering language accepts strings like "displayName=tokyo", and is documented in more detail in [AIP-160](https://google.aip.dev/160). - */ - filter?: string; - /** - * The resource that owns the locations collection, if applicable. - */ - name?: string; - /** - * The maximum number of results to return. If not set, the service will select a default. - */ - pageSize?: number; - /** - * A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. - */ - pageToken?: string; - } - - export class Resource$Projects$Locations$Authorizeddomains { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - - /** - * RPC to list authorized domains. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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.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 Application resource. Example: `apps/myapp`. - * parent: 'projects/my-project/locations/my-location', - * }); - * console.log(res.data); - * - * // Example response - * // { - * // "domains": [], - * // "nextPageToken": "my_nextPageToken" - * // } - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - list( - params: Params$Resource$Projects$Locations$Authorizeddomains$List, - options: StreamMethodOptions - ): GaxiosPromise; - list( - params?: Params$Resource$Projects$Locations$Authorizeddomains$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Projects$Locations$Authorizeddomains$List, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Projects$Locations$Authorizeddomains$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Projects$Locations$Authorizeddomains$List, - callback: BodyResponseCallback - ): void; - list( - callback: BodyResponseCallback - ): void; - list( - paramsOrCallback?: - | Params$Resource$Projects$Locations$Authorizeddomains$List - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Authorizeddomains$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Authorizeddomains$List; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1alpha1/{+parent}/authorizeddomains').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'GET', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - 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 Application resource. Example: `apps/myapp`. - */ - parent?: string; - } - - export class Resource$Projects$Locations$Configurations { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - - /** - * Rpc to get information about a configuration. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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.configurations.get({ - * // The name of the configuration being retrieved. If needed, replace {namespace_id\} with the project ID. - * name: - * 'projects/my-project/locations/my-location/configurations/my-configuration', - * }); - * console.log(res.data); - * - * // Example response - * // { - * // "apiVersion": "my_apiVersion", - * // "kind": "my_kind", - * // "metadata": {}, - * // "spec": {}, - * // "status": {} - * // } - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - get( - params: Params$Resource$Projects$Locations$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; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Configurations$Get; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * Rpc to list configurations. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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.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 project ID or project number from which the configurations should be listed. - * 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 - * // { - * // "apiVersion": "my_apiVersion", - * // "items": [], - * // "kind": "my_kind", - * // "metadata": {}, - * // "unreachable": [] - * // } - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - list( - params: Params$Resource$Projects$Locations$Configurations$List, - options: StreamMethodOptions - ): GaxiosPromise; - list( - params?: Params$Resource$Projects$Locations$Configurations$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Projects$Locations$Configurations$List, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Projects$Locations$Configurations$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Projects$Locations$Configurations$List, - callback: BodyResponseCallback - ): void; - list( - callback: BodyResponseCallback - ): void; - list( - paramsOrCallback?: - | Params$Resource$Projects$Locations$Configurations$List - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Configurations$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$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 + '/v1alpha1/{+parent}/configurations').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'GET', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Projects$Locations$Configurations$Get - extends StandardParameters { - /** - * The name of the configuration being retrieved. If needed, replace {namespace_id\} with the project ID. - */ - name?: string; - } - export interface Params$Resource$Projects$Locations$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 project ID or project number from which the configurations should be listed. - */ - 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 { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - - /** - * Creates a new domain mapping. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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.domainmappings.create({ - * // The project ID or project number in which this domain mapping should be created. - * parent: 'projects/my-project/locations/my-location', - * - * // 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; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - create( - params: Params$Resource$Projects$Locations$Domainmappings$Create, - options: StreamMethodOptions - ): GaxiosPromise; - create( - params?: Params$Resource$Projects$Locations$Domainmappings$Create, - options?: MethodOptions - ): GaxiosPromise; - create( - params: Params$Resource$Projects$Locations$Domainmappings$Create, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - create( - params: Params$Resource$Projects$Locations$Domainmappings$Create, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - create( - params: Params$Resource$Projects$Locations$Domainmappings$Create, - callback: BodyResponseCallback - ): void; - create(callback: BodyResponseCallback): void; - create( - paramsOrCallback?: - | Params$Resource$Projects$Locations$Domainmappings$Create - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Domainmappings$Create; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$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 + '/v1alpha1/{+parent}/domainmappings').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'POST', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * Rpc to delete a domain mapping. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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.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 being deleted. If needed, replace {namespace_id\} with the project ID. - * name: - * 'projects/my-project/locations/my-location/domainmappings/my-domainmapping', - * // Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports cascading behavior, so this must be false. This attribute is deprecated, and is now replaced with PropagationPolicy See https://github.com/kubernetes/kubernetes/issues/46659 for more info. - * orphanDependents: 'placeholder-value', - * // 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 - * // {} - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - delete( - params: Params$Resource$Projects$Locations$Domainmappings$Delete, - options: StreamMethodOptions - ): GaxiosPromise; - delete( - params?: Params$Resource$Projects$Locations$Domainmappings$Delete, - options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Projects$Locations$Domainmappings$Delete, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Projects$Locations$Domainmappings$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Projects$Locations$Domainmappings$Delete, - callback: BodyResponseCallback - ): void; - delete(callback: BodyResponseCallback): void; - delete( - paramsOrCallback?: - | Params$Resource$Projects$Locations$Domainmappings$Delete - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Domainmappings$Delete; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$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 + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * Rpc to get information about a domain mapping. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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.domainmappings.get({ - * // The name of the domain mapping being retrieved. If needed, replace {namespace_id\} with the project ID. - * name: - * 'projects/my-project/locations/my-location/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; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - get( - params: Params$Resource$Projects$Locations$Domainmappings$Get, - options: StreamMethodOptions - ): GaxiosPromise; - get( - params?: Params$Resource$Projects$Locations$Domainmappings$Get, - options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Projects$Locations$Domainmappings$Get, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Projects$Locations$Domainmappings$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Projects$Locations$Domainmappings$Get, - callback: BodyResponseCallback - ): void; - get(callback: BodyResponseCallback): void; - get( - paramsOrCallback?: - | Params$Resource$Projects$Locations$Domainmappings$Get - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Domainmappings$Get; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$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 + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * Rpc to list domain mappings. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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.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 project ID or project number from which the domain mappings should be listed. - * 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 - * // { - * // "apiVersion": "my_apiVersion", - * // "items": [], - * // "kind": "my_kind", - * // "metadata": {}, - * // "unreachable": [] - * // } - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - list( - params: Params$Resource$Projects$Locations$Domainmappings$List, - options: StreamMethodOptions - ): GaxiosPromise; - list( - params?: Params$Resource$Projects$Locations$Domainmappings$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Projects$Locations$Domainmappings$List, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Projects$Locations$Domainmappings$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Projects$Locations$Domainmappings$List, - callback: BodyResponseCallback - ): void; - list( - callback: BodyResponseCallback - ): void; - list( - paramsOrCallback?: - | Params$Resource$Projects$Locations$Domainmappings$List - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Domainmappings$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$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 + '/v1alpha1/{+parent}/domainmappings').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'GET', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Projects$Locations$Domainmappings$Create - extends StandardParameters { - /** - * The project ID or project number in which this domain mapping should be created. - */ - 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 being deleted. If needed, replace {namespace_id\} with the project ID. - */ - name?: string; - /** - * Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports cascading behavior, so this must be false. This attribute is deprecated, and is now replaced with PropagationPolicy See https://github.com/kubernetes/kubernetes/issues/46659 for more info. - */ - orphanDependents?: boolean; - /** - * 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 - extends StandardParameters { - /** - * The name of the domain mapping being retrieved. If needed, replace {namespace_id\} with the project ID. - */ - name?: string; - } - export interface Params$Resource$Projects$Locations$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 project ID or project number from which the domain mappings should be listed. - */ - 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$Revisions { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - - /** - * Rpc to delete a revision. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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.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 being deleted. If needed, replace {namespace_id\} with the project ID. - * name: 'projects/my-project/locations/my-location/revisions/my-revision', - * // Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports cascading behavior, so this must be false. This attribute is deprecated, and is now replaced with PropagationPolicy See https://github.com/kubernetes/kubernetes/issues/46659 for more info. - * orphanDependents: 'placeholder-value', - * // 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 - * // {} - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - delete( - params: Params$Resource$Projects$Locations$Revisions$Delete, - options: StreamMethodOptions - ): GaxiosPromise; - delete( - params?: Params$Resource$Projects$Locations$Revisions$Delete, - options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Projects$Locations$Revisions$Delete, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Projects$Locations$Revisions$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Projects$Locations$Revisions$Delete, - callback: BodyResponseCallback - ): void; - delete(callback: BodyResponseCallback): void; - delete( - paramsOrCallback?: - | Params$Resource$Projects$Locations$Revisions$Delete - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Revisions$Delete; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$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 + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * Rpc to get information about a revision. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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.revisions.get({ - * // The name of the revision being retrieved. If needed, replace {namespace_id\} with the project ID. - * name: 'projects/my-project/locations/my-location/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; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - get( - params: Params$Resource$Projects$Locations$Revisions$Get, - options: StreamMethodOptions - ): GaxiosPromise; - get( - params?: Params$Resource$Projects$Locations$Revisions$Get, - options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Projects$Locations$Revisions$Get, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Projects$Locations$Revisions$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Projects$Locations$Revisions$Get, - callback: BodyResponseCallback - ): void; - get(callback: BodyResponseCallback): void; - get( - paramsOrCallback?: - | Params$Resource$Projects$Locations$Revisions$Get - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Revisions$Get; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$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 + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * Rpc to list revisions. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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.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 project ID or project number from which the revisions should be listed. - * 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 - * // { - * // "apiVersion": "my_apiVersion", - * // "items": [], - * // "kind": "my_kind", - * // "metadata": {}, - * // "unreachable": [] - * // } - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - list( - params: Params$Resource$Projects$Locations$Revisions$List, - options: StreamMethodOptions - ): GaxiosPromise; - list( - params?: Params$Resource$Projects$Locations$Revisions$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Projects$Locations$Revisions$List, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Projects$Locations$Revisions$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Projects$Locations$Revisions$List, - callback: BodyResponseCallback - ): void; - list(callback: BodyResponseCallback): void; - list( - paramsOrCallback?: - | Params$Resource$Projects$Locations$Revisions$List - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Revisions$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$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 + '/v1alpha1/{+parent}/revisions').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'GET', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - 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 being deleted. If needed, replace {namespace_id\} with the project ID. - */ - name?: string; - /** - * Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports cascading behavior, so this must be false. This attribute is deprecated, and is now replaced with PropagationPolicy See https://github.com/kubernetes/kubernetes/issues/46659 for more info. - */ - orphanDependents?: boolean; - /** - * 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 being retrieved. If needed, replace {namespace_id\} with the project ID. - */ - 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 project ID or project number from which the revisions should be listed. - */ - 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; - } - - /** - * Rpc to get information about a route. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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.routes.get({ - * // The name of the route being retrieved. If needed, replace {namespace_id\} with the project ID. - * name: 'projects/my-project/locations/my-location/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; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - get( - params: Params$Resource$Projects$Locations$Routes$Get, - options: StreamMethodOptions - ): GaxiosPromise; - get( - params?: Params$Resource$Projects$Locations$Routes$Get, - options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Projects$Locations$Routes$Get, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Projects$Locations$Routes$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Projects$Locations$Routes$Get, - callback: BodyResponseCallback - ): void; - get(callback: BodyResponseCallback): void; - get( - paramsOrCallback?: - | Params$Resource$Projects$Locations$Routes$Get - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Routes$Get; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$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 + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * Rpc to list routes. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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.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 project ID or project number from which the routes should be listed. - * 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 - * // { - * // "apiVersion": "my_apiVersion", - * // "items": [], - * // "kind": "my_kind", - * // "metadata": {}, - * // "unreachable": [] - * // } - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - list( - params: Params$Resource$Projects$Locations$Routes$List, - options: StreamMethodOptions - ): GaxiosPromise; - list( - params?: Params$Resource$Projects$Locations$Routes$List, - options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Projects$Locations$Routes$List, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Projects$Locations$Routes$List, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Projects$Locations$Routes$List, - callback: BodyResponseCallback - ): void; - list(callback: BodyResponseCallback): void; - list( - paramsOrCallback?: - | Params$Resource$Projects$Locations$Routes$List - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Routes$List; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Routes$List; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1alpha1/{+parent}/routes').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'GET', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - } - - export interface Params$Resource$Projects$Locations$Routes$Get - extends StandardParameters { - /** - * The name of the route being retrieved. If needed, replace {namespace_id\} with the project ID. - */ - 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 project ID or project number from which the routes should be listed. - */ - 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$Services { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - - /** - * Rpc to create a service. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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.services.create({ - * // The project ID or project number in which this service should be created. - * parent: 'projects/my-project/locations/my-location', - * - * // 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; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - create( - params: Params$Resource$Projects$Locations$Services$Create, - options: StreamMethodOptions - ): GaxiosPromise; - create( - params?: Params$Resource$Projects$Locations$Services$Create, - options?: MethodOptions - ): GaxiosPromise; - create( - params: Params$Resource$Projects$Locations$Services$Create, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - create( - params: Params$Resource$Projects$Locations$Services$Create, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - create( - params: Params$Resource$Projects$Locations$Services$Create, - callback: BodyResponseCallback - ): void; - create(callback: BodyResponseCallback): void; - create( - paramsOrCallback?: - | Params$Resource$Projects$Locations$Services$Create - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Services$Create; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Services$Create; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1alpha1/{+parent}/services').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'POST', - }, - options - ), - params, - requiredParams: ['parent'], - pathParams: ['parent'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * Rpc to delete a service. This will cause the Service to stop serving traffic and will delete the child entities like Routes, Configurations and Revisions. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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.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 being deleted. If needed, replace {namespace_id\} with the project ID. - * name: 'projects/my-project/locations/my-location/services/my-service', - * // Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports cascading behavior, so this must be false. This attribute is deprecated, and is now replaced with PropagationPolicy See https://github.com/kubernetes/kubernetes/issues/46659 for more info. - * orphanDependents: 'placeholder-value', - * // 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 - * // {} - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - delete( - params: Params$Resource$Projects$Locations$Services$Delete, - options: StreamMethodOptions - ): GaxiosPromise; - delete( - params?: Params$Resource$Projects$Locations$Services$Delete, - options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Projects$Locations$Services$Delete, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Projects$Locations$Services$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - delete( - params: Params$Resource$Projects$Locations$Services$Delete, - callback: BodyResponseCallback - ): void; - delete(callback: BodyResponseCallback): void; - delete( - paramsOrCallback?: - | Params$Resource$Projects$Locations$Services$Delete - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Services$Delete; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Services$Delete; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * Rpc to get information about a service. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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.services.get({ - * // The name of the service being retrieved. If needed, replace {namespace_id\} with the project ID. - * name: 'projects/my-project/locations/my-location/services/my-service', - * }); - * console.log(res.data); - * - * // Example response - * // { - * // "apiVersion": "my_apiVersion", - * // "kind": "my_kind", - * // "metadata": {}, - * // "spec": {}, - * // "status": {} - * // } - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - get( - params: Params$Resource$Projects$Locations$Services$Get, - options: StreamMethodOptions - ): GaxiosPromise; - get( - params?: Params$Resource$Projects$Locations$Services$Get, - options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Projects$Locations$Services$Get, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Projects$Locations$Services$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Projects$Locations$Services$Get, - callback: BodyResponseCallback - ): void; - get(callback: BodyResponseCallback): void; - get( - paramsOrCallback?: - | Params$Resource$Projects$Locations$Services$Get - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Services$Get; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Services$Get; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', - }, - options - ), - params, - requiredParams: ['name'], - pathParams: ['name'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * Get the IAM Access Control policy currently in effect for the given Cloud Run service. This result does not include any inherited policies. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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.services.getIamPolicy({ - * // Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - * 'options.requestedPolicyVersion': 'placeholder-value', - * // REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - * resource: 'projects/my-project/locations/my-location/services/my-service', - * }); - * console.log(res.data); - * - * // Example response - * // { - * // "auditConfigs": [], - * // "bindings": [], - * // "etag": "my_etag", - * // "version": 0 - * // } - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - getIamPolicy( - params: Params$Resource$Projects$Locations$Services$Getiampolicy, - options: StreamMethodOptions - ): GaxiosPromise; - getIamPolicy( - params?: Params$Resource$Projects$Locations$Services$Getiampolicy, - options?: MethodOptions - ): GaxiosPromise; - getIamPolicy( - params: Params$Resource$Projects$Locations$Services$Getiampolicy, - options: StreamMethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - getIamPolicy( - params: Params$Resource$Projects$Locations$Services$Getiampolicy, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - getIamPolicy( - params: Params$Resource$Projects$Locations$Services$Getiampolicy, - callback: BodyResponseCallback - ): void; - getIamPolicy(callback: BodyResponseCallback): void; - getIamPolicy( - paramsOrCallback?: - | Params$Resource$Projects$Locations$Services$Getiampolicy - | BodyResponseCallback - | BodyResponseCallback, - optionsOrCallback?: - | MethodOptions - | StreamMethodOptions - | BodyResponseCallback - | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Projects$Locations$Services$Getiampolicy; - let options = (optionsOrCallback || {}) as MethodOptions; - - if (typeof paramsOrCallback === 'function') { - callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Services$Getiampolicy; - options = {}; - } - - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } - - const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'GET', - }, - options - ), - params, - requiredParams: ['resource'], - pathParams: ['resource'], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback - ); - } else { - return createAPIRequest(parameters); - } - } - - /** - * Rpc to list services. - * @example - * ```js - * // 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('v1alpha1'); - * - * 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.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 project ID or project number from which the services should be listed. - * 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 - * // { - * // "apiVersion": "my_apiVersion", - * // "items": [], - * // "kind": "my_kind", - * // "metadata": {}, - * // "unreachable": [] - * // } - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * ``` - * - * @param params - Parameters for request - * @param options - Optionally override request options, such as `url`, `method`, and `encoding`. - * @param callback - Optional callback that handles the response. - * @returns A promise if used with async/await, or void if used with a callback. - */ - list( - params: Params$Resource$Projects$Locations$Services$List, - options: StreamMethodOptions - ): GaxiosPromise; - list( - params?: Params$Resource$Projects$Locations$Services$List, + create( + params?: Params$Resource$Namespaces$Jobs$Create, options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Projects$Locations$Services$List, + ): GaxiosPromise; + create( + params: Params$Resource$Namespaces$Jobs$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Projects$Locations$Services$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + create( + params: Params$Resource$Namespaces$Jobs$Create, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Projects$Locations$Services$List, - callback: BodyResponseCallback + create( + params: Params$Resource$Namespaces$Jobs$Create, + callback: BodyResponseCallback ): void; - list(callback: BodyResponseCallback): void; - list( + create(callback: BodyResponseCallback): void; + create( paramsOrCallback?: - | Params$Resource$Projects$Locations$Services$List - | BodyResponseCallback + | Params$Resource$Namespaces$Jobs$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$Services$List; + {}) as Params$Resource$Namespaces$Jobs$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Services$List; + params = {} as Params$Resource$Namespaces$Jobs$Create; options = {}; } @@ -8283,11 +1193,10 @@ export namespace run_v1alpha1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha1/{+parent}/services').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'GET', + url: ( + rootUrl + '/apis/run.googleapis.com/v1alpha1/{+parent}/jobs' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options ), @@ -8297,17 +1206,17 @@ export namespace run_v1alpha1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * Rpc to 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. + * Delete a job. * @example * ```js * // Before running the sample: @@ -8332,32 +1241,20 @@ export namespace run_v1alpha1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.projects.locations.services.replaceService({ - * // The name of the service being replaced. If needed, replace {namespace_id\} with the project ID. - * name: 'projects/my-project/locations/my-location/services/my-service', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "apiVersion": "my_apiVersion", - * // "kind": "my_kind", - * // "metadata": {}, - * // "spec": {}, - * // "status": {} - * // } - * }, + * const res = await run.namespaces.jobs.delete({ + * // Optional. Cloud Run currently ignores this parameter. + * apiVersion: 'placeholder-value', + * // Optional. Cloud Run currently ignores this parameter. + * kind: 'placeholder-value', + * // Required. The name of the job to delete. For Cloud Run (fully managed), replace {namespace_id\} with the project ID or number. + * name: 'namespaces/my-namespace/jobs/my-job', + * // Optional. 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", - * // "metadata": {}, - * // "spec": {}, - * // "status": {} - * // } + * // {} * } * * main().catch(e => { @@ -8372,50 +1269,50 @@ export namespace run_v1alpha1 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - replaceService( - params: Params$Resource$Projects$Locations$Services$Replaceservice, + delete( + params: Params$Resource$Namespaces$Jobs$Delete, options: StreamMethodOptions ): GaxiosPromise; - replaceService( - params?: Params$Resource$Projects$Locations$Services$Replaceservice, + delete( + params?: Params$Resource$Namespaces$Jobs$Delete, options?: MethodOptions - ): GaxiosPromise; - replaceService( - params: Params$Resource$Projects$Locations$Services$Replaceservice, + ): GaxiosPromise; + delete( + params: Params$Resource$Namespaces$Jobs$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - replaceService( - params: Params$Resource$Projects$Locations$Services$Replaceservice, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + delete( + params: Params$Resource$Namespaces$Jobs$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - replaceService( - params: Params$Resource$Projects$Locations$Services$Replaceservice, - callback: BodyResponseCallback + delete( + params: Params$Resource$Namespaces$Jobs$Delete, + callback: BodyResponseCallback ): void; - replaceService(callback: BodyResponseCallback): void; - replaceService( + delete(callback: BodyResponseCallback): void; + delete( paramsOrCallback?: - | Params$Resource$Projects$Locations$Services$Replaceservice - | BodyResponseCallback + | Params$Resource$Namespaces$Jobs$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$Services$Replaceservice; + {}) as Params$Resource$Namespaces$Jobs$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Services$Replaceservice; + params = {} as Params$Resource$Namespaces$Jobs$Delete; options = {}; } @@ -8428,8 +1325,10 @@ export namespace run_v1alpha1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: ( + rootUrl + '/apis/run.googleapis.com/v1alpha1/{+name}' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options ), @@ -8439,17 +1338,17 @@ export namespace run_v1alpha1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * Sets the IAM Access control policy for the specified Service. Overwrites any existing policy. + * Get information about a job. * @example * ```js * // Before running the sample: @@ -8474,27 +1373,19 @@ export namespace run_v1alpha1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.projects.locations.services.setIamPolicy({ - * // REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - * resource: 'projects/my-project/locations/my-location/services/my-service', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "policy": {}, - * // "updateMask": "my_updateMask" - * // } - * }, + * const res = await run.namespaces.jobs.get({ + * // Required. The name of the job to retrieve. For Cloud Run (fully managed), replace {namespace_id\} with the project ID or number. + * name: 'namespaces/my-namespace/jobs/my-job', * }); * console.log(res.data); * * // Example response * // { - * // "auditConfigs": [], - * // "bindings": [], - * // "etag": "my_etag", - * // "version": 0 + * // "apiVersion": "my_apiVersion", + * // "kind": "my_kind", + * // "metadata": {}, + * // "spec": {}, + * // "status": {} * // } * } * @@ -8510,50 +1401,50 @@ export namespace run_v1alpha1 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - setIamPolicy( - params: Params$Resource$Projects$Locations$Services$Setiampolicy, + get( + params: Params$Resource$Namespaces$Jobs$Get, options: StreamMethodOptions ): GaxiosPromise; - setIamPolicy( - params?: Params$Resource$Projects$Locations$Services$Setiampolicy, + get( + params?: Params$Resource$Namespaces$Jobs$Get, options?: MethodOptions - ): GaxiosPromise; - setIamPolicy( - params: Params$Resource$Projects$Locations$Services$Setiampolicy, + ): GaxiosPromise; + get( + params: Params$Resource$Namespaces$Jobs$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - setIamPolicy( - params: Params$Resource$Projects$Locations$Services$Setiampolicy, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + get( + params: Params$Resource$Namespaces$Jobs$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - setIamPolicy( - params: Params$Resource$Projects$Locations$Services$Setiampolicy, - callback: BodyResponseCallback + get( + params: Params$Resource$Namespaces$Jobs$Get, + callback: BodyResponseCallback ): void; - setIamPolicy(callback: BodyResponseCallback): void; - setIamPolicy( + get(callback: BodyResponseCallback): void; + get( paramsOrCallback?: - | Params$Resource$Projects$Locations$Services$Setiampolicy - | BodyResponseCallback + | Params$Resource$Namespaces$Jobs$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$Services$Setiampolicy; + {}) as Params$Resource$Namespaces$Jobs$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Services$Setiampolicy; + params = {} as Params$Resource$Namespaces$Jobs$Get; options = {}; } @@ -8566,31 +1457,30 @@ export namespace run_v1alpha1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'POST', + url: ( + rootUrl + '/apis/run.googleapis.com/v1alpha1/{+name}' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options ), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['name'], + pathParams: ['name'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * Returns permissions that a caller has on the specified Project. There are no permissions required for making this API call. + * List jobs. * @example * ```js * // Before running the sample: @@ -8615,23 +1505,34 @@ export namespace run_v1alpha1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await run.projects.locations.services.testIamPermissions({ - * // REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - * resource: 'projects/my-project/locations/my-location/services/my-service', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "permissions": [] - * // } - * }, + * const res = await run.namespaces.jobs.list({ + * // Optional. Optional encoded string to continue paging. + * continue: 'placeholder-value', + * // Optional. 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', + * // Optional. Not currently used by Cloud Run. + * includeUninitialized: 'placeholder-value', + * // Optional. Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. + * labelSelector: 'placeholder-value', + * // Optional. The maximum number of records that should be returned. + * limit: 'placeholder-value', + * // Required. The namespace from which the jobs should be listed. Replace {namespace_id\} with the project ID or number. + * parent: 'namespaces/my-namespace', + * // Optional. The baseline resource version from which the list or watch operation should start. Not currently used by Cloud Run. + * resourceVersion: 'placeholder-value', + * // Optional. 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 * // { - * // "permissions": [] + * // "apiVersion": "my_apiVersion", + * // "items": [], + * // "kind": "my_kind", + * // "metadata": {}, + * // "nextPageToken": "my_nextPageToken", + * // "unreachable": [] * // } * } * @@ -8647,57 +1548,50 @@ export namespace run_v1alpha1 { * @param callback - Optional callback that handles the response. * @returns A promise if used with async/await, or void if used with a callback. */ - testIamPermissions( - params: Params$Resource$Projects$Locations$Services$Testiampermissions, + list( + params: Params$Resource$Namespaces$Jobs$List, options: StreamMethodOptions ): GaxiosPromise; - testIamPermissions( - params?: Params$Resource$Projects$Locations$Services$Testiampermissions, + list( + params?: Params$Resource$Namespaces$Jobs$List, options?: MethodOptions - ): GaxiosPromise; - testIamPermissions( - params: Params$Resource$Projects$Locations$Services$Testiampermissions, + ): GaxiosPromise; + list( + params: Params$Resource$Namespaces$Jobs$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - testIamPermissions( - params: Params$Resource$Projects$Locations$Services$Testiampermissions, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - testIamPermissions( - params: Params$Resource$Projects$Locations$Services$Testiampermissions, - callback: BodyResponseCallback + list( + params: Params$Resource$Namespaces$Jobs$List, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - testIamPermissions( - callback: BodyResponseCallback + list( + params: Params$Resource$Namespaces$Jobs$List, + callback: BodyResponseCallback ): void; - testIamPermissions( + list(callback: BodyResponseCallback): void; + list( paramsOrCallback?: - | Params$Resource$Projects$Locations$Services$Testiampermissions - | BodyResponseCallback + | Params$Resource$Namespaces$Jobs$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$Services$Testiampermissions; + {}) as Params$Resource$Namespaces$Jobs$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Projects$Locations$Services$Testiampermissions; + params = {} as Params$Resource$Namespaces$Jobs$List; options = {}; } @@ -8710,152 +1604,100 @@ export namespace run_v1alpha1 { const parameters = { options: Object.assign( { - url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'POST', + url: ( + rootUrl + '/apis/run.googleapis.com/v1alpha1/{+parent}/jobs' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options ), params, - requiredParams: ['resource'], - pathParams: ['resource'], + requiredParams: ['parent'], + pathParams: ['parent'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } } - export interface Params$Resource$Projects$Locations$Services$Create + export interface Params$Resource$Namespaces$Jobs$Create extends StandardParameters { /** - * The project ID or project number in which this service should be created. + * Required. The namespace in which the job should be created. Replace {namespace_id\} with the project ID or number. */ parent?: string; /** * Request body metadata */ - requestBody?: Schema$Service; + requestBody?: Schema$Job; } - export interface Params$Resource$Projects$Locations$Services$Delete + export interface Params$Resource$Namespaces$Jobs$Delete extends StandardParameters { /** - * Cloud Run currently ignores this parameter. + * Optional. Cloud Run currently ignores this parameter. */ apiVersion?: string; /** - * Cloud Run currently ignores this parameter. + * Optional. Cloud Run currently ignores this parameter. */ kind?: string; /** - * The name of the service being deleted. If needed, replace {namespace_id\} with the project ID. + * Required. The name of the job to delete. For Cloud Run (fully managed), replace {namespace_id\} with the project ID or number. */ name?: string; /** - * Deprecated. Specifies the cascade behavior on delete. Cloud Run only supports cascading behavior, so this must be false. This attribute is deprecated, and is now replaced with PropagationPolicy See https://github.com/kubernetes/kubernetes/issues/46659 for more info. - */ - orphanDependents?: boolean; - /** - * 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. + * Optional. 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$Services$Get + export interface Params$Resource$Namespaces$Jobs$Get extends StandardParameters { /** - * The name of the service being retrieved. If needed, replace {namespace_id\} with the project ID. + * Required. The name of the job to retrieve. For Cloud Run (fully managed), replace {namespace_id\} with the project ID or number. */ name?: string; } - export interface Params$Resource$Projects$Locations$Services$Getiampolicy - extends StandardParameters { - /** - * Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). - */ - 'options.requestedPolicyVersion'?: number; - /** - * REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. - */ - resource?: string; - } - export interface Params$Resource$Projects$Locations$Services$List + export interface Params$Resource$Namespaces$Jobs$List extends StandardParameters { /** - * Optional encoded string to continue paging. + * Optional. 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. + * Optional. 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. + * Optional. Not currently used by Cloud Run. */ includeUninitialized?: boolean; /** - * Allows to filter resources based on a label. Supported operations are =, !=, exists, in, and notIn. + * Optional. 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. + * Optional. The maximum number of records that should be returned. */ limit?: number; /** - * The project ID or project number from which the services should be listed. + * Required. The namespace from which the jobs should be listed. 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. + * Optional. 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. + * Optional. 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$Projects$Locations$Services$Replaceservice - extends StandardParameters { - /** - * The name of the service being replaced. If needed, replace {namespace_id\} with the project ID. - */ - name?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Service; - } - export interface Params$Resource$Projects$Locations$Services$Setiampolicy - extends StandardParameters { - /** - * REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$SetIamPolicyRequest; - } - export interface Params$Resource$Projects$Locations$Services$Testiampermissions - extends StandardParameters { - /** - * REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. - */ - resource?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$TestIamPermissionsRequest; - } }