Class: Google::Cloud::AssuredWorkloads::V1::Workload::ResourceInfo
- Inherits:
-
Object
- Object
- Google::Cloud::AssuredWorkloads::V1::Workload::ResourceInfo
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/assuredworkloads/v1/assuredworkloads.rb
Overview
Represent the resources that are children of this Workload.
Defined Under Namespace
Modules: ResourceType
Instance Attribute Summary collapse
-
#resource_id ⇒ ::Integer
Resource identifier.
-
#resource_type ⇒ ::Google::Cloud::AssuredWorkloads::V1::Workload::ResourceInfo::ResourceType
Indicates the type of resource.
Instance Attribute Details
#resource_id ⇒ ::Integer
Returns Resource identifier. For a project this represents project_number.
220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 |
# File 'proto_docs/google/cloud/assuredworkloads/v1/assuredworkloads.rb', line 220 class ResourceInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of resource. module ResourceType # Unknown resource type. RESOURCE_TYPE_UNSPECIFIED = 0 # Consumer project. # AssuredWorkloads Projects are no longer supported. This field will be # ignored only in CreateWorkload requests. ListWorkloads and GetWorkload # will continue to provide projects information. # Use CONSUMER_FOLDER instead. CONSUMER_PROJECT = 1 # Consumer Folder. CONSUMER_FOLDER = 4 # Consumer project containing encryption keys. ENCRYPTION_KEYS_PROJECT = 2 # Keyring resource that hosts encryption keys. KEYRING = 3 end end |
#resource_type ⇒ ::Google::Cloud::AssuredWorkloads::V1::Workload::ResourceInfo::ResourceType
Returns Indicates the type of resource.
220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 |
# File 'proto_docs/google/cloud/assuredworkloads/v1/assuredworkloads.rb', line 220 class ResourceInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The type of resource. module ResourceType # Unknown resource type. RESOURCE_TYPE_UNSPECIFIED = 0 # Consumer project. # AssuredWorkloads Projects are no longer supported. This field will be # ignored only in CreateWorkload requests. ListWorkloads and GetWorkload # will continue to provide projects information. # Use CONSUMER_FOLDER instead. CONSUMER_PROJECT = 1 # Consumer Folder. CONSUMER_FOLDER = 4 # Consumer project containing encryption keys. ENCRYPTION_KEYS_PROJECT = 2 # Keyring resource that hosts encryption keys. KEYRING = 3 end end |