Class: Google::Apis::WorkloadmanagerV1::SapDiscoveryResource
- Inherits:
-
Object
- Object
- Google::Apis::WorkloadmanagerV1::SapDiscoveryResource
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/workloadmanager_v1/classes.rb,
lib/google/apis/workloadmanager_v1/representations.rb,
lib/google/apis/workloadmanager_v1/representations.rb
Overview
Message describing a resource.
Instance Attribute Summary collapse
-
#related_resources ⇒ Array<String>
A list of resource URIs related to this resource.
-
#resource_kind ⇒ String
ComputeInstance, ComputeDisk, VPC, Bare Metal server, etc.
-
#resource_state ⇒ String
Indicates whether this is a new, updated, or missing resource.
-
#resource_type ⇒ String
The type of this resource.
-
#resource_uri ⇒ String
URI of the resource, includes project, location, and name.
-
#update_time ⇒ String
Unix timestamp of when this resource last had its discovery data updated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SapDiscoveryResource
constructor
A new instance of SapDiscoveryResource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SapDiscoveryResource
Returns a new instance of SapDiscoveryResource.
1014 1015 1016 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1014 def initialize(**args) update!(**args) end |
Instance Attribute Details
#related_resources ⇒ Array<String>
A list of resource URIs related to this resource.
Corresponds to the JSON property relatedResources
987 988 989 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 987 def @related_resources end |
#resource_kind ⇒ String
ComputeInstance, ComputeDisk, VPC, Bare Metal server, etc.
Corresponds to the JSON property resourceKind
992 993 994 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 992 def resource_kind @resource_kind end |
#resource_state ⇒ String
Indicates whether this is a new, updated, or missing resource.
Corresponds to the JSON property resourceState
997 998 999 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 997 def resource_state @resource_state end |
#resource_type ⇒ String
The type of this resource.
Corresponds to the JSON property resourceType
1002 1003 1004 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1002 def resource_type @resource_type end |
#resource_uri ⇒ String
URI of the resource, includes project, location, and name.
Corresponds to the JSON property resourceUri
1007 1008 1009 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1007 def resource_uri @resource_uri end |
#update_time ⇒ String
Unix timestamp of when this resource last had its discovery data updated.
Corresponds to the JSON property updateTime
1012 1013 1014 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1012 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1019 1020 1021 1022 1023 1024 1025 1026 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1019 def update!(**args) @related_resources = args[:related_resources] if args.key?(:related_resources) @resource_kind = args[:resource_kind] if args.key?(:resource_kind) @resource_state = args[:resource_state] if args.key?(:resource_state) @resource_type = args[:resource_type] if args.key?(:resource_type) @resource_uri = args[:resource_uri] if args.key?(:resource_uri) @update_time = args[:update_time] if args.key?(:update_time) end |