Class PoliciesResource.DeleteRequest
Deletes a policy. This action is permanent.
Inheritance
Inherited Members
Namespace: Google.Apis.Iam.v2beta
Assembly: Google.Apis.Iam.v2beta.dll
Syntax
public class PoliciesResource.DeleteRequest : IamBaseServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest
Constructors
DeleteRequest(IClientService, string)
Constructs a new Delete request.
Declaration
public DeleteRequest(IClientService service, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | name |
Properties
Etag
Optional. The expected etag
of the policy to delete. If the value does not match the value that is
stored in IAM, the request fails with a 409
error code and ABORTED
status. If you omit this field,
the policy is deleted regardless of its current etag
.
Declaration
[RequestParameter("etag", RequestParameterType.Query)]
public virtual string Etag { get; set; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Name
Required. The resource name of the policy to delete. Format:
policies/{attachment_point}/denypolicies/{policy_id}
Use the URL-encoded full resource name, which
means that the forward-slash character, /
, must be written as %2F
. For example,
policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy
. For
organizations and folders, use the numeric ID in the full resource name. For projects, you can use the
alphanumeric or the numeric ID.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
InitParameters()
Initializes Delete parameter list.
Declaration
protected override void InitParameters()