REST Resource: projects.locations.namespaces

Resource: Namespace

A container for services. Namespaces allow administrators to group services together and define permissions for a collection of services.

JSON representation
{
  "name": string,
  "labels": {
    string: string,
    ...
  }
}
Fields
name

string

Immutable. The resource name for the namespace in the format 'projects/*/locations/*/namespaces/*'.

labels

map (key: string, value: string)

Optional. Resource labels associated with this Namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

Methods

create

Creates a namespace, and returns the new Namespace.

delete

Deletes a namespace.

get

Gets a namespace.

getIamPolicy

Gets the IAM Policy for a resource (namespace or service only).

list

Lists all namespaces.

patch

Updates a namespace.

setIamPolicy

Sets the IAM Policy for a resource (namespace or service only).

testIamPermissions

Tests IAM permissions for a resource (namespace or service only).