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,
    ...
  },
  "createTime": string,
  "updateTime": 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" }.

createTime

string (Timestamp format)

Output only. The timestamp when the namespace was created.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

updateTime

string (Timestamp format)

Output only. The timestamp when the namespace was last updated.

A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

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).