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 \ V1Methods
__construct
Constructor.
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
↳ 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}."
string
setName
Identifier. The resource name of a ServiceProjectAttachment. Format: "projects/{host-project-id}/locations/global/serviceProjectAttachments/{service-project-id}."
var
string
$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.
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.
var
string
$this
getCreateTime
Output only. Create time.
hasCreateTime
clearCreateTime
setCreateTime
Output only. Create time.
$this
getUid
Output only. A globally unique identifier (in UUID4 format) for the ServiceProjectAttachment
.
string
setUid
Output only. A globally unique identifier (in UUID4 format) for the ServiceProjectAttachment
.
var
string
$this
getState
Output only. ServiceProjectAttachment state.
int
setState
Output only. ServiceProjectAttachment state.
var
int
$this