Class AccessPoliciesResource.AccessLevelsResource
The "accessLevels" collection of methods.
Inherited Members
Namespace: Google.Apis.AccessContextManager.v1
Assembly: Google.Apis.AccessContextManager.v1.dll
Syntax
public class AccessPoliciesResource.AccessLevelsResource
Constructors
AccessLevelsResource(IClientService)
Constructs a new resource.
Declaration
public AccessLevelsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(AccessLevel, string)
Creates an access level. The long-running operation from this RPC has a successful status after the access level propagates to long-lasting storage. If access levels contain errors, an error response is returned for the first error encountered.
Declaration
public virtual AccessPoliciesResource.AccessLevelsResource.CreateRequest Create(AccessLevel body, string parent)
Parameters
Type | Name | Description |
---|---|---|
AccessLevel | body | The body of the request. |
string | parent | Required. Resource name for the access policy which owns this Access Level. Format:
|
Returns
Type | Description |
---|---|
AccessPoliciesResource.AccessLevelsResource.CreateRequest |
Delete(string)
Deletes an access level based on the resource name. The long-running operation from this RPC has a successful status after the access level has been removed from long-lasting storage.
Declaration
public virtual AccessPoliciesResource.AccessLevelsResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Resource name for the Access Level. Format:
|
Returns
Type | Description |
---|---|
AccessPoliciesResource.AccessLevelsResource.DeleteRequest |
Get(string)
Gets an access level based on the resource name.
Declaration
public virtual AccessPoliciesResource.AccessLevelsResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Resource name for the Access Level. Format:
|
Returns
Type | Description |
---|---|
AccessPoliciesResource.AccessLevelsResource.GetRequest |
List(string)
Lists all access levels for an access policy.
Declaration
public virtual AccessPoliciesResource.AccessLevelsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Resource name for the access policy to list Access Levels from. Format:
|
Returns
Type | Description |
---|---|
AccessPoliciesResource.AccessLevelsResource.ListRequest |
Patch(AccessLevel, string)
Updates an access level. The long-running operation from this RPC has a successful status after the changes to the access level propagate to long-lasting storage. If access levels contain errors, an error response is returned for the first error encountered.
Declaration
public virtual AccessPoliciesResource.AccessLevelsResource.PatchRequest Patch(AccessLevel body, string name)
Parameters
Type | Name | Description |
---|---|---|
AccessLevel | body | The body of the request. |
string | name | Identifier. Resource name for the |
Returns
Type | Description |
---|---|
AccessPoliciesResource.AccessLevelsResource.PatchRequest |
ReplaceAll(ReplaceAccessLevelsRequest, string)
Replaces all existing access levels in an access policy with the access levels provided. This is done atomically. The long-running operation from this RPC has a successful status after all replacements propagate to long-lasting storage. If the replacement contains errors, an error response is returned for the first error encountered. Upon error, the replacement is cancelled, and existing access levels are not affected. The Operation.response field contains ReplaceAccessLevelsResponse. Removing access levels contained in existing service perimeters result in an error.
Declaration
public virtual AccessPoliciesResource.AccessLevelsResource.ReplaceAllRequest ReplaceAll(ReplaceAccessLevelsRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
ReplaceAccessLevelsRequest | body | The body of the request. |
string | parent | Required. Resource name for the access policy which owns these Access Levels. Format:
|
Returns
Type | Description |
---|---|
AccessPoliciesResource.AccessLevelsResource.ReplaceAllRequest |
TestIamPermissions(TestIamPermissionsRequest, string)
Returns the IAM permissions that the caller has on the specified Access Context Manager resource. The resource can be an AccessPolicy, AccessLevel, or ServicePerimeter. This method does not support other resources.
Declaration
public virtual AccessPoliciesResource.AccessLevelsResource.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 |
---|---|
AccessPoliciesResource.AccessLevelsResource.TestIamPermissionsRequest |