Represents an Organizations
Inheritance
$protobuf.rpc.Service > protos.google.cloud.resourcemanager.v3.OrganizationsPackage
@google-cloud/resource-managerConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new Organizations service.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
getIamPolicy(request)
public getIamPolicy(request: google.iam.v1.IGetIamPolicyRequest): Promise<google.iam.v1.Policy>;
Calls GetIamPolicy.
Parameter | |
---|---|
Name | Description |
request |
IGetIamPolicyRequest
GetIamPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
getOrganization(request)
public getOrganization(request: google.cloud.resourcemanager.v3.IGetOrganizationRequest): Promise<google.cloud.resourcemanager.v3.Organization>;
Calls GetOrganization.
Parameter | |
---|---|
Name | Description |
request |
IGetOrganizationRequest
GetOrganizationRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | 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 |
void |
searchOrganizations(request)
public searchOrganizations(request: google.cloud.resourcemanager.v3.ISearchOrganizationsRequest): Promise<google.cloud.resourcemanager.v3.SearchOrganizationsResponse>;
Calls SearchOrganizations.
Parameter | |
---|---|
Name | 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)
public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest, callback: google.cloud.resourcemanager.v3.Organizations.SetIamPolicyCallback): void;
Calls SetIamPolicy.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
setIamPolicy(request)
public setIamPolicy(request: google.iam.v1.ISetIamPolicyRequest): Promise<google.iam.v1.Policy>;
Calls SetIamPolicy.
Parameter | |
---|---|
Name | Description |
request |
ISetIamPolicyRequest
SetIamPolicyRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | 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 |
void |
testIamPermissions(request)
public testIamPermissions(request: google.iam.v1.ITestIamPermissionsRequest): Promise<google.iam.v1.TestIamPermissionsResponse>;
Calls TestIamPermissions.
Parameter | |
---|---|
Name | Description |
request |
google.iam.v1.ITestIamPermissionsRequest
TestIamPermissionsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.iam.v1.TestIamPermissionsResponse> | Promise |