Class: Google::Apis::ApphubV1alpha::ServiceProjectAttachment
- Inherits:
-
Object
- Object
- Google::Apis::ApphubV1alpha::ServiceProjectAttachment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/apphub_v1alpha/classes.rb,
lib/google/apis/apphub_v1alpha/representations.rb,
lib/google/apis/apphub_v1alpha/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#name ⇒ String
Identifier.
-
#service_project ⇒ String
Required.
-
#state ⇒ String
Output only.
-
#uid ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ServiceProjectAttachment
constructor
A new instance of ServiceProjectAttachment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ServiceProjectAttachment
Returns a new instance of ServiceProjectAttachment.
1305 1306 1307 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1305 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Create time.
Corresponds to the JSON property createTime
1278 1279 1280 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1278 def create_time @create_time end |
#name ⇒ String
Identifier. The resource name of a ServiceProjectAttachment. Format: "projects/
host-project-id/locations/global/serviceProjectAttachments/service-project-
id."
Corresponds to the JSON property name
1285 1286 1287 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1285 def name @name end |
#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.
Corresponds to the JSON property serviceProject
1292 1293 1294 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1292 def service_project @service_project end |
#state ⇒ String
Output only. ServiceProjectAttachment state.
Corresponds to the JSON property state
1297 1298 1299 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1297 def state @state end |
#uid ⇒ String
Output only. A globally unique identifier (in UUID4 format) for the
ServiceProjectAttachment.
Corresponds to the JSON property uid
1303 1304 1305 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1303 def uid @uid end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1310 1311 1312 1313 1314 1315 1316 |
# File 'lib/google/apis/apphub_v1alpha/classes.rb', line 1310 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @name = args[:name] if args.key?(:name) @service_project = args[:service_project] if args.key?(:service_project) @state = args[:state] if args.key?(:state) @uid = args[:uid] if args.key?(:uid) end |