Class PoliciesResource.UpdateRequest
Updates the specified policy. You can update only the rules and the display name for the policy. To update a
policy, you should use a read-modify-write loop: 1. Use GetPolicy to read the current version of the policy.
2. Modify the policy as needed. 3. Use UpdatePolicy
to write the updated policy. This pattern helps
prevent conflicts between concurrent updates.
Inheritance
Inherited Members
Namespace: Google.Apis.Iam.v2
Assembly: Google.Apis.Iam.v2.dll
Syntax
public class PoliciesResource.UpdateRequest : IamBaseServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest
Constructors
UpdateRequest(IClientService, GoogleIamV2Policy, string)
Constructs a new Update request.
Declaration
public UpdateRequest(IClientService service, GoogleIamV2Policy body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleIamV2Policy | body | |
string | name |
Properties
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
Immutable. The resource name of the Policy
, which must be unique. Format:
policies/{attachment_point}/denypolicies/{policy_id}
The attachment point is identified by its
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-deny-policy
. For
organizations and folders, use the numeric ID in the full resource name. For projects, requests can use
the alphanumeric or the numeric ID. Responses always contain 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
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Update parameter list.
Declaration
protected override void InitParameters()