Class OrganizationsResource
The "organizations" collection of methods.
Inheritance
Inherited Members
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 |
|---|---|---|
| System.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. May be empty if no such policy or resource
exists. The resource field should be the organization's resource name, e.g. "organizations/123".
Authorization requires the Google 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. |
| System.String | resource | REQUIRED: The resource for which the policy is being requested. See the operation documentation 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
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, e.g. "organizations/123". Authorization requires the
Google 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. |
| System.String | resource | REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. |
Returns
| Type | Description |
|---|---|
| OrganizationsResource.SetIamPolicyRequest |
TestIamPermissions(TestIamPermissionsRequest, String)
Returns permissions that a caller has on the specified Organization. The resource field should be the
organization's resource name, e.g. "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. |
| System.String | resource | REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. |
Returns
| Type | Description |
|---|---|
| OrganizationsResource.TestIamPermissionsRequest |