Class ProjectsResource.LocationsResource.NamespacesResource.WorkloadsResource
The "workloads" collection of methods.
Inherited Members
Namespace: Google.Apis.ServiceDirectory .v1beta1
Assembly: Google.Apis.ServiceDirectory.v1beta1.dll
Syntax
public class ProjectsResource.LocationsResource.NamespacesResource.WorkloadsResource
Constructors
WorkloadsResource(IClientService)
Constructs a new resource.
Declaration
public WorkloadsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClient |
service |
Methods
GetIamPolicy(GetIamPolicyRequest, string)
Gets the IAM Policy for a resource
Declaration
public virtual ProjectsResource.LocationsResource.NamespacesResource.WorkloadsResource.GetIamPolicyRequest GetIamPolicy(GetIamPolicyRequest body, string resource)
Parameters
Type | Name | Description |
---|---|---|
Get |
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 |
---|---|
Projects |
SetIamPolicy(SetIamPolicyRequest, string)
Sets the IAM Policy for a resource
Declaration
public virtual ProjectsResource.LocationsResource.NamespacesResource.WorkloadsResource.SetIamPolicyRequest SetIamPolicy(SetIamPolicyRequest body, string resource)
Parameters
Type | Name | Description |
---|---|---|
Set |
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 |
---|---|
Projects |
TestIamPermissions(TestIamPermissionsRequest, string)
Tests IAM permissions for a resource (namespace, service or service workload only).
Declaration
public virtual ProjectsResource.LocationsResource.NamespacesResource.WorkloadsResource.TestIamPermissionsRequest TestIamPermissions(TestIamPermissionsRequest body, string resource)
Parameters
Type | Name | Description |
---|---|---|
Test |
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. |