Class FoldersResource.GetOrgPolicyRequest
Gets a Policy
on a resource. If no Policy
is set on the resource, a Policy
is returned with default
values including POLICY_TYPE_NOT_SET
for the policy_type oneof
. The etag
value can be used with
SetOrgPolicy()
to create or update a Policy
during read-modify-write.
Inheritance
FoldersResource.GetOrgPolicyRequest
Inherited Members
Namespace: Google.Apis.CloudResourceManager.v1
Assembly: Google.Apis.CloudResourceManager.v1.dll
Syntax
public class FoldersResource.GetOrgPolicyRequest : CloudResourceManagerBaseServiceRequest<OrgPolicy>, IClientServiceRequest<OrgPolicy>, IClientServiceRequest
Constructors
GetOrgPolicyRequest(IClientService, GetOrgPolicyRequest, string)
Constructs a new GetOrgPolicy request.
Declaration
public GetOrgPolicyRequest(IClientService service, GetOrgPolicyRequest body, string resource)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GetOrgPolicyRequest | 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
Name of the resource the Policy
is set on.
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 GetOrgPolicy parameter list.
Declaration
protected override void InitParameters()