Class OrganizationsResource.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
System.Object
OrganizationsResource.GetOrgPolicyRequest
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.CloudResourceManager.v1
Assembly: Google.Apis.CloudResourceManager.v1.dll
Syntax
public class 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 | |
System.String | resource |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.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 |
---|---|
System.String |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.Object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudResourceManager.v1.Data.OrgPolicy>.GetBody()
InitParameters()
Initializes GetOrgPolicy parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.CloudResourceManager.v1.CloudResourceManagerBaseServiceRequest<Google.Apis.CloudResourceManager.v1.Data.OrgPolicy>.InitParameters()