Class OrganizationsResource
The "organizations" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudResourceManager.v1beta1
Assembly: Google.Apis.CloudResourceManager.v1beta1.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 | 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".
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 |
List()
Lists 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 list.
Declaration
public virtual OrganizationsResource.ListRequest List()
Returns
Type | Description |
---|---|
OrganizationsResource.ListRequest |
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".
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 permissions that a caller has on the specified Organization. The resource
field should be the
organization's resource name, e.g. "organizations/123".
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 |
Update(Organization, string)
Updates an Organization resource identified by the specified resource name.
Declaration
public virtual OrganizationsResource.UpdateRequest Update(Organization body, string name)
Parameters
Type | Name | Description |
---|---|---|
Organization | body | The body of the request. |
string | name | Output only. The resource name of the organization. This is the organization's relative path in the API. Its format is "organizations/[organization_id]". For example, "organizations/1234". |
Returns
Type | Description |
---|---|
OrganizationsResource.UpdateRequest |