Class protos.google.cloud.resourcemanager.v3.Organizations (4.3.0)

Represents an Organizations

Inheritance

$protobuf.rpc.Service > protos.google.cloud.resourcemanager.v3.Organizations

Package

@google-cloud/resource-manager

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new Organizations service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Organizations;

Creates new Organizations service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
Organizations

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

getIamPolicy(request, callback)

public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest, callback: google.cloud.resourcemanager.v3.Organizations.GetIamPolicyCallback): void;

Calls GetIamPolicy.

Parameters
NameDescription
request 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
TypeDescription
void

getIamPolicy(request)

public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise<google.iam.v1.Policy>;

Calls GetIamPolicy.

Parameter
NameDescription
request IGetIamPolicyRequest

GetIamPolicyRequest message or plain object

Returns
TypeDescription
Promise<google.iam.v1.Policy>

Promise

getOrganization(request, callback)

public getOrganization(request: google.cloud.resourcemanager.v3.IGetOrganizationRequest, callback: google.cloud.resourcemanager.v3.Organizations.GetOrganizationCallback): void;

Calls GetOrganization.

Parameters
NameDescription
request 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
TypeDescription
void

getOrganization(request)

public getOrganization(request: google.cloud.resourcemanager.v3.IGetOrganizationRequest): Promise<google.cloud.resourcemanager.v3.Organization>;

Calls GetOrganization.

Parameter
NameDescription
request IGetOrganizationRequest

GetOrganizationRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.resourcemanager.v3.Organization>

Promise

searchOrganizations(request, callback)

public searchOrganizations(request: google.cloud.resourcemanager.v3.ISearchOrganizationsRequest, callback: google.cloud.resourcemanager.v3.Organizations.SearchOrganizationsCallback): void;

Calls SearchOrganizations.

Parameters
NameDescription
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
TypeDescription
void

searchOrganizations(request)

public searchOrganizations(request: google.cloud.resourcemanager.v3.ISearchOrganizationsRequest): Promise<google.cloud.resourcemanager.v3.SearchOrganizationsResponse>;

Calls SearchOrganizations.

Parameter
NameDescription
request google.cloud.resourcemanager.v3.ISearchOrganizationsRequest

SearchOrganizationsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.resourcemanager.v3.SearchOrganizationsResponse>

Promise

setIamPolicy(request, callback)

public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.cloud.resourcemanager.v3.Organizations.SetIamPolicyCallback): void;

Calls SetIamPolicy.

Parameters
NameDescription
request 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
TypeDescription
void

setIamPolicy(request)

public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise<google.iam.v1.Policy>;

Calls SetIamPolicy.

Parameter
NameDescription
request ISetIamPolicyRequest

SetIamPolicyRequest message or plain object

Returns
TypeDescription
Promise<google.iam.v1.Policy>

Promise

testIamPermissions(request, callback)

public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest, callback: google.cloud.resourcemanager.v3.Organizations.TestIamPermissionsCallback): void;

Calls TestIamPermissions.

Parameters
NameDescription
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
TypeDescription
void

testIamPermissions(request)

public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise<google.iam.v1.TestIamPermissionsResponse>;

Calls TestIamPermissions.

Parameter
NameDescription
request google.iam.v1.ITestIamPermissionsRequest

TestIamPermissionsRequest message or plain object

Returns
TypeDescription
Promise<google.iam.v1.TestIamPermissionsResponse>

Promise