Google Cloud App Hub V1 Client - Class ServiceProjectAttachment (0.1.3)

Reference documentation and code samples for the Google Cloud App Hub V1 Client class ServiceProjectAttachment.

ServiceProjectAttachment represents an attachment from a service project to a host project. Service projects contain the underlying cloud infrastructure resources, and expose these resources to the host project through a ServiceProjectAttachment. With the attachments, the host project can provide an aggregated view of resources across all service projects.

Generated from protobuf message google.cloud.apphub.v1.ServiceProjectAttachment

Namespace

Google \ Cloud \ AppHub \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Identifier. The resource name of a ServiceProjectAttachment. Format: "projects/{host-project-id}/locations/global/serviceProjectAttachments/{service-project-id}."

↳ service_project string

Required. Immutable. Service project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number.

↳ create_time Google\Protobuf\Timestamp

Output only. Create time.

↳ uid string

Output only. A globally unique identifier (in UUID4 format) for the ServiceProjectAttachment.

↳ state int

Output only. ServiceProjectAttachment state.

getName

Identifier. The resource name of a ServiceProjectAttachment. Format: "projects/{host-project-id}/locations/global/serviceProjectAttachments/{service-project-id}."

Returns
Type Description
string

setName

Identifier. The resource name of a ServiceProjectAttachment. Format: "projects/{host-project-id}/locations/global/serviceProjectAttachments/{service-project-id}."

Parameter
Name Description
var string
Returns
Type Description
$this

getServiceProject

Required. Immutable. Service project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number.

Returns
Type Description
string

setServiceProject

Required. Immutable. Service project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number.

Parameter
Name Description
var string
Returns
Type Description
$this

getCreateTime

Output only. Create time.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Create time.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getUid

Output only. A globally unique identifier (in UUID4 format) for the ServiceProjectAttachment.

Returns
Type Description
string

setUid

Output only. A globally unique identifier (in UUID4 format) for the ServiceProjectAttachment.

Parameter
Name Description
var string
Returns
Type Description
$this

getState

Output only. ServiceProjectAttachment state.

Returns
Type Description
int

setState

Output only. ServiceProjectAttachment state.

Parameter
Name Description
var int
Returns
Type Description
$this