Class FoldersResource.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
FoldersResource.SetOrgPolicyRequest
Inherited Members
Namespace: Google.Apis.CloudResourceManager.v1
Assembly: Google.Apis.CloudResourceManager.v1.dll
Syntax
public class FoldersResource.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
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudResourceManager.v1.Data.OrgPolicy>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudResourceManager.v1.Data.OrgPolicy>.MethodName
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
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudResourceManager.v1.Data.OrgPolicy>.RestPath
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudResourceManager.v1.Data.OrgPolicy>.GetBody()
InitParameters()
Initializes SetOrgPolicy parameter list.
Declaration
protected override void InitParameters()