Class ProjectsResource.LocationsResource.NamespacesResource.ServicesResource
The "services" collection of methods.
Inherited Members
Namespace: Google.Apis.ServiceDirectory.v1
Assembly: Google.Apis.ServiceDirectory.v1.dll
Syntax
public class ProjectsResource.LocationsResource.NamespacesResource.ServicesResource
Constructors
ServicesResource(IClientService)
Constructs a new resource.
Declaration
public ServicesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
Endpoints
Gets the Endpoints resource.
Declaration
public virtual ProjectsResource.LocationsResource.NamespacesResource.ServicesResource.EndpointsResource Endpoints { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource.NamespacesResource.ServicesResource.EndpointsResource |
Methods
Create(Service, string)
Creates a service, and returns the new service.
Declaration
public virtual ProjectsResource.LocationsResource.NamespacesResource.ServicesResource.CreateRequest Create(Service body, string parent)
Parameters
Type | Name | Description |
---|---|---|
Service | body | The body of the request. |
string | parent | Required. The resource name of the namespace this service will belong to. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.NamespacesResource.ServicesResource.CreateRequest |
Delete(string)
Deletes a service. This also deletes all endpoints associated with the service.
Declaration
public virtual ProjectsResource.LocationsResource.NamespacesResource.ServicesResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the service to delete. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.NamespacesResource.ServicesResource.DeleteRequest |
Get(string)
Gets a service.
Declaration
public virtual ProjectsResource.LocationsResource.NamespacesResource.ServicesResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. The name of the service to get. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.NamespacesResource.ServicesResource.GetRequest |
GetIamPolicy(GetIamPolicyRequest, string)
Gets the IAM Policy for a resource (namespace or service only).
Declaration
public virtual ProjectsResource.LocationsResource.NamespacesResource.ServicesResource.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.ServicesResource.GetIamPolicyRequest |
List(string)
Lists all services belonging to a namespace.
Declaration
public virtual ProjectsResource.LocationsResource.NamespacesResource.ServicesResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The resource name of the namespace whose services you'd like to list. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.NamespacesResource.ServicesResource.ListRequest |
Patch(Service, string)
Updates a service.
Declaration
public virtual ProjectsResource.LocationsResource.NamespacesResource.ServicesResource.PatchRequest Patch(Service body, string name)
Parameters
Type | Name | Description |
---|---|---|
Service | body | The body of the request. |
string | name | Immutable. The resource name for the service in the format
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.NamespacesResource.ServicesResource.PatchRequest |
Resolve(ResolveServiceRequest, string)
Returns a service and its associated endpoints. Resolving a service is not considered an active developer method.
Declaration
public virtual ProjectsResource.LocationsResource.NamespacesResource.ServicesResource.ResolveRequest Resolve(ResolveServiceRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
ResolveServiceRequest | body | The body of the request. |
string | name | Required. The name of the service to resolve. |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.NamespacesResource.ServicesResource.ResolveRequest |
SetIamPolicy(SetIamPolicyRequest, string)
Sets the IAM Policy for a resource (namespace or service only).
Declaration
public virtual ProjectsResource.LocationsResource.NamespacesResource.ServicesResource.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.ServicesResource.SetIamPolicyRequest |
TestIamPermissions(TestIamPermissionsRequest, string)
Tests IAM permissions for a resource (namespace or service only).
Declaration
public virtual ProjectsResource.LocationsResource.NamespacesResource.ServicesResource.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.ServicesResource.TestIamPermissionsRequest |