Google Cloud Resource Manager V3 Client - Class GetOrganizationRequest (0.5.0)

Reference documentation and code samples for the Google Cloud Resource Manager V3 Client class GetOrganizationRequest.

The request sent to the GetOrganization method. The name field is required. organization_id is no longer accepted.

Generated from protobuf message google.cloud.resourcemanager.v3.GetOrganizationRequest

Methods

build

Parameter
NameDescription
name string

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". Please see {@see \Google\Cloud\ResourceManager\V3\OrganizationsClient::organizationName()} for help formatting this field.

Returns
TypeDescription
Google\Cloud\ResourceManager\V3\GetOrganizationRequest

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

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".

getName

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
TypeDescription
string

setName

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".

Parameter
NameDescription
var string
Returns
TypeDescription
$this