Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.NamespacesResource

The "namespaces" collection of methods.

Inheritance
object
ProjectsResource.LocationsResource.NamespacesResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.ServiceDirectory.v1beta1
Assembly: Google.Apis.ServiceDirectory.v1beta1.dll
Syntax
public class ProjectsResource.LocationsResource.NamespacesResource

Constructors

NamespacesResource(IClientService)

Constructs a new resource.

Declaration
public NamespacesResource(IClientService service)
Parameters
Type Name Description
IClientService service

Properties

Services

Gets the Services resource.

Declaration
public virtual ProjectsResource.LocationsResource.NamespacesResource.ServicesResource Services { get; }
Property Value
Type Description
ProjectsResource.LocationsResource.NamespacesResource.ServicesResource

Workloads

Gets the Workloads resource.

Declaration
public virtual ProjectsResource.LocationsResource.NamespacesResource.WorkloadsResource Workloads { get; }
Property Value
Type Description
ProjectsResource.LocationsResource.NamespacesResource.WorkloadsResource

Methods

Create(Namespace, string)

Creates a namespace, and returns the new namespace.

Declaration
public virtual ProjectsResource.LocationsResource.NamespacesResource.CreateRequest Create(Namespace body, string parent)
Parameters
Type Name Description
Namespace body

The body of the request.

string parent

Required. The resource name of the project and location the namespace will be created in.

Returns
Type Description
ProjectsResource.LocationsResource.NamespacesResource.CreateRequest

Delete(string)

Deletes a namespace. This also deletes all services and endpoints in the namespace.

Declaration
public virtual ProjectsResource.LocationsResource.NamespacesResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. The name of the namespace to delete.

Returns
Type Description
ProjectsResource.LocationsResource.NamespacesResource.DeleteRequest

Get(string)

Gets a namespace.

Declaration
public virtual ProjectsResource.LocationsResource.NamespacesResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. The name of the namespace to retrieve.

Returns
Type Description
ProjectsResource.LocationsResource.NamespacesResource.GetRequest

GetIamPolicy(GetIamPolicyRequest, string)

Gets the IAM Policy for a resource

Declaration
public virtual ProjectsResource.LocationsResource.NamespacesResource.GetIamPolicyRequest GetIamPolicy(GetIamPolicyRequest body, string resource)
Parameters
Type Name Description
GetIamPolicyRequest body

The body of the request.

string resource

REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.

Returns
Type Description
ProjectsResource.LocationsResource.NamespacesResource.GetIamPolicyRequest

List(string)

Lists all namespaces.

Declaration
public virtual ProjectsResource.LocationsResource.NamespacesResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The resource name of the project and location whose namespaces you'd like to list.

Returns
Type Description
ProjectsResource.LocationsResource.NamespacesResource.ListRequest

Patch(Namespace, string)

Updates a namespace.

Declaration
public virtual ProjectsResource.LocationsResource.NamespacesResource.PatchRequest Patch(Namespace body, string name)
Parameters
Type Name Description
Namespace body

The body of the request.

string name

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

Returns
Type Description
ProjectsResource.LocationsResource.NamespacesResource.PatchRequest

SetIamPolicy(SetIamPolicyRequest, string)

Sets the IAM Policy for a resource

Declaration
public virtual ProjectsResource.LocationsResource.NamespacesResource.SetIamPolicyRequest SetIamPolicy(SetIamPolicyRequest body, string resource)
Parameters
Type Name Description
SetIamPolicyRequest body

The body of the request.

string resource

REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.

Returns
Type Description
ProjectsResource.LocationsResource.NamespacesResource.SetIamPolicyRequest

TestIamPermissions(TestIamPermissionsRequest, string)

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

Declaration
public virtual ProjectsResource.LocationsResource.NamespacesResource.TestIamPermissionsRequest TestIamPermissions(TestIamPermissionsRequest body, string resource)
Parameters
Type Name Description
TestIamPermissionsRequest body

The body of the request.

string resource

REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.

Returns
Type Description
ProjectsResource.LocationsResource.NamespacesResource.TestIamPermissionsRequest
In this article
Back to top Generated by DocFX