Class ProjectsResource.SetOrgPolicyRequest
Updates the specified Policy on the resource. Creates a new Policy for that Constraint on the resource
if one does not exist. Not supplying an etag on the request Policy results in an unconditional write of
the Policy.
Inheritance
ProjectsResource.SetOrgPolicyRequest
Inherited Members
Namespace: Google.Apis.CloudResourceManager.v1
Assembly: Google.Apis.CloudResourceManager.v1.dll
Syntax
public class ProjectsResource.SetOrgPolicyRequest : CloudResourceManagerBaseServiceRequest<OrgPolicy>, IClientServiceRequest<OrgPolicy>, IClientServiceRequest
Constructors
SetOrgPolicyRequest(IClientService, SetOrgPolicyRequest, string)
Constructs a new SetOrgPolicy request.
Declaration
public SetOrgPolicyRequest(IClientService service, SetOrgPolicyRequest body, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| SetOrgPolicyRequest | body | |
| string | resource |
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
Resource
Resource name of the resource to attach the Policy.
Declaration
[RequestParameter("resource", RequestParameterType.Path)]
public virtual string Resource { 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 SetOrgPolicy parameter list.
Declaration
protected override void InitParameters()