Show / Hide Table of Contents

Class OrganizationsResource

The "organizations" collection of methods.

Inheritance
object
OrganizationsResource
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.v3
Assembly: Google.Apis.CloudResourceManager.v3.dll
Syntax
public class OrganizationsResource

Constructors

OrganizationsResource(IClientService)

Constructs a new resource.

Declaration
public OrganizationsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Get(string)

Fetches an organization resource identified by the specified resource name.

Declaration
public virtual OrganizationsResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. The resource name of the Organization to fetch. This is the organization's relative path in the API, formatted as "organizations/[organizationId]". For example, "organizations/1234".

Returns
Type Description
OrganizationsResource.GetRequest

GetIamPolicy(GetIamPolicyRequest, string)

Gets the access control policy for an organization resource. The policy may be empty if no such policy or resource exists. The resource field should be the organization's resource name, for example: "organizations/123". Authorization requires the IAM permission resourcemanager.organizations.getIamPolicy on the specified organization.

Declaration
public virtual OrganizationsResource.GetIamPolicyRequest GetIamPolicy(GetIamPolicyRequest body, string resource)
Parameters
Type Name Description
GetIamPolicyRequest body

The body of the request.

string resource

REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.

Returns
Type Description
OrganizationsResource.GetIamPolicyRequest

Search()

Searches organization resources that are visible to the user and satisfy the specified filter. This method returns organizations in an unspecified order. New organizations do not necessarily appear at the end of the results, and may take a small amount of time to appear. Search will only return organizations on which the user has the permission resourcemanager.organizations.get or has super admin privileges.

Declaration
public virtual OrganizationsResource.SearchRequest Search()
Returns
Type Description
OrganizationsResource.SearchRequest

SetIamPolicy(SetIamPolicyRequest, string)

Sets the access control policy on an organization resource. Replaces any existing policy. The resource field should be the organization's resource name, for example: "organizations/123". Authorization requires the IAM permission resourcemanager.organizations.setIamPolicy on the specified organization.

Declaration
public virtual OrganizationsResource.SetIamPolicyRequest SetIamPolicy(SetIamPolicyRequest body, string resource)
Parameters
Type Name Description
SetIamPolicyRequest body

The body of the request.

string resource

REQUIRED: The resource for which the policy is being specified. See Resource names for the appropriate value for this field.

Returns
Type Description
OrganizationsResource.SetIamPolicyRequest

TestIamPermissions(TestIamPermissionsRequest, string)

Returns the permissions that a caller has on the specified organization. The resource field should be the organization's resource name, for example: "organizations/123". There are no permissions required for making this API call.

Declaration
public virtual OrganizationsResource.TestIamPermissionsRequest TestIamPermissions(TestIamPermissionsRequest body, string resource)
Parameters
Type Name Description
TestIamPermissionsRequest body

The body of the request.

string resource

REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.

Returns
Type Description
OrganizationsResource.TestIamPermissionsRequest
In this article
Back to top Generated by DocFX