Show / Hide Table of Contents

Class FoldersResource

The "folders" collection of methods.

Inheritance
object
FoldersResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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 Policy to clear.

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 Policy.

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 Policy is set on.

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 Constraints for.

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 Policy.

Returns
Type Description
FoldersResource.SetOrgPolicyRequest
In this article
Back to top Generated by DocFX