Organizations

google.cloud.resourcemanager.v3. Organizations

Represents an Organizations

Constructor

new Organizations(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new Organizations service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

getIamPolicy(request, callback) → {undefined}

Calls GetIamPolicy.

Parameters:
Name Type Description
request google.iam.v1.IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

callback google.cloud.resourcemanager.v3.Organizations.GetIamPolicyCallback

Node-style callback called with the error, if any, and Policy

Returns:
Type Description
undefined

getIamPolicy(request) → {Promise.<google.iam.v1.Policy>}

Calls GetIamPolicy.

Parameters:
Name Type Description
request google.iam.v1.IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

Returns:
Type Description
Promise.<google.iam.v1.Policy>

Promise

getOrganization(request, callback) → {undefined}

Calls GetOrganization.

Parameters:
Name Type Description
request google.cloud.resourcemanager.v3.IGetOrganizationRequest

GetOrganizationRequest message or plain object

callback google.cloud.resourcemanager.v3.Organizations.GetOrganizationCallback

Node-style callback called with the error, if any, and Organization

Returns:
Type Description
undefined

getOrganization(request) → {Promise.<google.cloud.resourcemanager.v3.Organization>}

Calls GetOrganization.

Parameters:
Name Type Description
request google.cloud.resourcemanager.v3.IGetOrganizationRequest

GetOrganizationRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.resourcemanager.v3.Organization>

Promise

searchOrganizations(request, callback) → {undefined}

Calls SearchOrganizations.

Parameters:
Name Type Description
request google.cloud.resourcemanager.v3.ISearchOrganizationsRequest

SearchOrganizationsRequest message or plain object

callback google.cloud.resourcemanager.v3.Organizations.SearchOrganizationsCallback

Node-style callback called with the error, if any, and SearchOrganizationsResponse

Returns:
Type Description
undefined

searchOrganizations(request) → {Promise.<google.cloud.resourcemanager.v3.SearchOrganizationsResponse>}

Calls SearchOrganizations.

Parameters:
Name Type Description
request google.cloud.resourcemanager.v3.ISearchOrganizationsRequest

SearchOrganizationsRequest message or plain object

Returns:
Type Description
Promise.<google.cloud.resourcemanager.v3.SearchOrganizationsResponse>

Promise

setIamPolicy(request, callback) → {undefined}

Calls SetIamPolicy.

Parameters:
Name Type Description
request google.iam.v1.ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

callback google.cloud.resourcemanager.v3.Organizations.SetIamPolicyCallback

Node-style callback called with the error, if any, and Policy

Returns:
Type Description
undefined

setIamPolicy(request) → {Promise.<google.iam.v1.Policy>}

Calls SetIamPolicy.

Parameters:
Name Type Description
request google.iam.v1.ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

Returns:
Type Description
Promise.<google.iam.v1.Policy>

Promise

testIamPermissions(request, callback) → {undefined}

Calls TestIamPermissions.

Parameters:
Name Type Description
request google.iam.v1.ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

callback google.cloud.resourcemanager.v3.Organizations.TestIamPermissionsCallback

Node-style callback called with the error, if any, and TestIamPermissionsResponse

Returns:
Type Description
undefined

testIamPermissions(request) → {Promise.<google.iam.v1.TestIamPermissionsResponse>}

Calls TestIamPermissions.

Parameters:
Name Type Description
request google.iam.v1.ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

Returns:
Type Description
Promise.<google.iam.v1.TestIamPermissionsResponse>

Promise

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {Organizations}

Creates new Organizations service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Returns:
Type Description
Organizations

RPC service. Useful where requests and/or responses are streamed.

Type Definitions

GetIamPolicyCallback(error, responseopt)

Callback as used by getIamPolicy.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.iam.v1.Policy <optional>

Policy

GetOrganizationCallback(error, responseopt)

Callback as used by getOrganization.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.resourcemanager.v3.Organization <optional>

Organization

SearchOrganizationsCallback(error, responseopt)

Callback as used by searchOrganizations.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.resourcemanager.v3.SearchOrganizationsResponse <optional>

SearchOrganizationsResponse

SetIamPolicyCallback(error, responseopt)

Callback as used by setIamPolicy.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.iam.v1.Policy <optional>

Policy

TestIamPermissionsCallback(error, responseopt)

Callback as used by testIamPermissions.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.iam.v1.TestIamPermissionsResponse <optional>

TestIamPermissionsResponse