Show / Hide Table of Contents

Class AccessPoliciesResource.ServicePerimetersResource

The "servicePerimeters" collection of methods.

Inheritance
object
AccessPoliciesResource.ServicePerimetersResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.AccessContextManager.v1
Assembly: Google.Apis.AccessContextManager.v1.dll
Syntax
public class AccessPoliciesResource.ServicePerimetersResource

Constructors

ServicePerimetersResource(IClientService)

Constructs a new resource.

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

Methods

Commit(CommitServicePerimetersRequest, string)

Commits the dry-run specification for all the service perimeters in an access policy. A commit operation on a service perimeter involves copying its spec field to the status field of the service perimeter. Only service perimeters with use_explicit_dry_run_spec field set to true are affected by a commit operation. The long-running operation from this RPC has a successful status after the dry-run specifications for all the service perimeters have been committed. If a commit fails, it causes the long-running operation to return an error response and the entire commit operation is cancelled. When successful, the Operation.response field contains CommitServicePerimetersResponse. The dry_run and the spec fields are cleared after a successful commit operation.

Declaration
public virtual AccessPoliciesResource.ServicePerimetersResource.CommitRequest Commit(CommitServicePerimetersRequest body, string parent)
Parameters
Type Name Description
CommitServicePerimetersRequest body

The body of the request.

string parent

Required. Resource name for the parent Access Policy which owns all Service Perimeters in scope for the commit operation. Format: accessPolicies/{policy_id}

Returns
Type Description
AccessPoliciesResource.ServicePerimetersResource.CommitRequest

Create(ServicePerimeter, string)

Creates a service perimeter. The long-running operation from this RPC has a successful status after the service perimeter propagates to long-lasting storage. If a service perimeter contains errors, an error response is returned for the first error encountered.

Declaration
public virtual AccessPoliciesResource.ServicePerimetersResource.CreateRequest Create(ServicePerimeter body, string parent)
Parameters
Type Name Description
ServicePerimeter body

The body of the request.

string parent

Required. Resource name for the access policy which owns this Service Perimeter. Format: accessPolicies/{policy_id}

Returns
Type Description
AccessPoliciesResource.ServicePerimetersResource.CreateRequest

Delete(string)

Deletes a service perimeter based on the resource name. The long-running operation from this RPC has a successful status after the service perimeter is removed from long-lasting storage.

Declaration
public virtual AccessPoliciesResource.ServicePerimetersResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. Resource name for the Service Perimeter. Format: accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}

Returns
Type Description
AccessPoliciesResource.ServicePerimetersResource.DeleteRequest

Get(string)

Gets a service perimeter based on the resource name.

Declaration
public virtual AccessPoliciesResource.ServicePerimetersResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. Resource name for the Service Perimeter. Format: accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}

Returns
Type Description
AccessPoliciesResource.ServicePerimetersResource.GetRequest

List(string)

Lists all service perimeters for an access policy.

Declaration
public virtual AccessPoliciesResource.ServicePerimetersResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. Resource name for the access policy to list Service Perimeters from. Format: accessPolicies/{policy_id}

Returns
Type Description
AccessPoliciesResource.ServicePerimetersResource.ListRequest

Patch(ServicePerimeter, string)

Updates a service perimeter. The long-running operation from this RPC has a successful status after the service perimeter propagates to long-lasting storage. If a service perimeter contains errors, an error response is returned for the first error encountered.

Declaration
public virtual AccessPoliciesResource.ServicePerimetersResource.PatchRequest Patch(ServicePerimeter body, string name)
Parameters
Type Name Description
ServicePerimeter body

The body of the request.

string name

Identifier. Resource name for the ServicePerimeter. Format: accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}. The service_perimeter component must begin with a letter, followed by alphanumeric characters or _. After you create a ServicePerimeter, you cannot change its name.

Returns
Type Description
AccessPoliciesResource.ServicePerimetersResource.PatchRequest

ReplaceAll(ReplaceServicePerimetersRequest, string)

Replace all existing service perimeters in an access policy with the service perimeters provided. This is done atomically. The long-running operation from this RPC has a successful status after all replacements propagate to long-lasting storage. Replacements containing errors result in an error response for the first error encountered. Upon an error, replacement are cancelled and existing service perimeters are not affected. The Operation.response field contains ReplaceServicePerimetersResponse.

Declaration
public virtual AccessPoliciesResource.ServicePerimetersResource.ReplaceAllRequest ReplaceAll(ReplaceServicePerimetersRequest body, string parent)
Parameters
Type Name Description
ReplaceServicePerimetersRequest body

The body of the request.

string parent

Required. Resource name for the access policy which owns these Service Perimeters. Format: accessPolicies/{policy_id}

Returns
Type Description
AccessPoliciesResource.ServicePerimetersResource.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.ServicePerimetersResource.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.ServicePerimetersResource.TestIamPermissionsRequest
In this article
Back to top Generated by DocFX