Class FoldersResource
The "folders" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudResourceManager.v1
Assembly: Google.Apis.CloudResourceManager.v1.dll
Syntax
public class FoldersResource
Constructors
FoldersResource(IClientService)
Constructs a new resource.
Declaration
public FoldersResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
ClearOrgPolicy(ClearOrgPolicyRequest, string)
Clears a Policy from a resource.
Declaration
public virtual FoldersResource.ClearOrgPolicyRequest ClearOrgPolicy(ClearOrgPolicyRequest body, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| ClearOrgPolicyRequest | body | The body of the request. |
| string | resource | Name of the resource for the |
Returns
| Type | Description |
|---|---|
| FoldersResource.ClearOrgPolicyRequest |
GetEffectiveOrgPolicy(GetEffectiveOrgPolicyRequest, string)
Gets the effective Policy on a resource. This is the result of merging Policies in the resource
hierarchy. The returned Policy will not have an etagset because it is a computed Policy across
multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be
expanded.
Declaration
public virtual FoldersResource.GetEffectiveOrgPolicyRequest GetEffectiveOrgPolicy(GetEffectiveOrgPolicyRequest body, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| GetEffectiveOrgPolicyRequest | body | The body of the request. |
| string | resource | The name of the resource to start computing the effective |
Returns
| Type | Description |
|---|---|
| FoldersResource.GetEffectiveOrgPolicyRequest |
GetOrgPolicy(GetOrgPolicyRequest, string)
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.
Declaration
public virtual FoldersResource.GetOrgPolicyRequest GetOrgPolicy(GetOrgPolicyRequest body, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| GetOrgPolicyRequest | body | The body of the request. |
| string | resource | Name of the resource the |
Returns
| Type | Description |
|---|---|
| FoldersResource.GetOrgPolicyRequest |
ListAvailableOrgPolicyConstraints(ListAvailableOrgPolicyConstraintsRequest, string)
Lists Constraints that could be applied on the specified resource.
Declaration
public virtual FoldersResource.ListAvailableOrgPolicyConstraintsRequest ListAvailableOrgPolicyConstraints(ListAvailableOrgPolicyConstraintsRequest body, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| ListAvailableOrgPolicyConstraintsRequest | body | The body of the request. |
| string | resource | Name of the resource to list |
Returns
| Type | Description |
|---|---|
| FoldersResource.ListAvailableOrgPolicyConstraintsRequest |
ListOrgPolicies(ListOrgPoliciesRequest, string)
Lists all the Policies set for a particular resource.
Declaration
public virtual FoldersResource.ListOrgPoliciesRequest ListOrgPolicies(ListOrgPoliciesRequest body, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| ListOrgPoliciesRequest | body | The body of the request. |
| string | resource | Name of the resource to list Policies for. |
Returns
| Type | Description |
|---|---|
| FoldersResource.ListOrgPoliciesRequest |
SetOrgPolicy(SetOrgPolicyRequest, string)
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.
Declaration
public virtual FoldersResource.SetOrgPolicyRequest SetOrgPolicy(SetOrgPolicyRequest body, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| SetOrgPolicyRequest | body | The body of the request. |
| string | resource | Resource name of the resource to attach the |
Returns
| Type | Description |
|---|---|
| FoldersResource.SetOrgPolicyRequest |