Class: Google::Cloud::AssuredWorkloads::V1beta1::Workload::ResourceInfo

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/assuredworkloads/v1beta1/assuredworkloads.rb

Overview

Represent the resources that are children of this Workload.

Defined Under Namespace

Modules: ResourceType

Instance Attribute Summary collapse

Instance Attribute Details

#resource_id::Integer

Returns Resource identifier. For a project this represents project_number.

Returns:

  • (::Integer)

    Resource identifier. For a project this represents project_number.



311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
# File 'proto_docs/google/cloud/assuredworkloads/v1beta1/assuredworkloads.rb', line 311

class ResourceInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of resource.
  module ResourceType
    # Unknown resource type.
    RESOURCE_TYPE_UNSPECIFIED = 0

    # Deprecated. Existing workloads will continue to support this, but new
    # CreateWorkloadRequests should not specify this as an input value.
    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::V1beta1::Workload::ResourceInfo::ResourceType

Returns Indicates the type of resource.



311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
# File 'proto_docs/google/cloud/assuredworkloads/v1beta1/assuredworkloads.rb', line 311

class ResourceInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The type of resource.
  module ResourceType
    # Unknown resource type.
    RESOURCE_TYPE_UNSPECIFIED = 0

    # Deprecated. Existing workloads will continue to support this, but new
    # CreateWorkloadRequests should not specify this as an input value.
    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