Class: Google::Apis::CloudassetV1beta1::GoogleCloudAssetV1p7beta1RelationshipAttributes

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudasset_v1beta1/classes.rb,
lib/google/apis/cloudasset_v1beta1/representations.rb,
lib/google/apis/cloudasset_v1beta1/representations.rb

Overview

The relationship attributes which include type, source_resource_type, target_resource_type and action.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAssetV1p7beta1RelationshipAttributes

Returns a new instance of GoogleCloudAssetV1p7beta1RelationshipAttributes.



707
708
709
# File 'lib/google/apis/cloudasset_v1beta1/classes.rb', line 707

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#actionString

The detail of the relationship, e.g. contains, attaches Corresponds to the JSON property action

Returns:

  • (String)


689
690
691
# File 'lib/google/apis/cloudasset_v1beta1/classes.rb', line 689

def action
  @action
end

#source_resource_typeString

The source asset type. Example: compute.googleapis.com/Instance Corresponds to the JSON property sourceResourceType

Returns:

  • (String)


694
695
696
# File 'lib/google/apis/cloudasset_v1beta1/classes.rb', line 694

def source_resource_type
  @source_resource_type
end

#target_resource_typeString

The target asset type. Example: compute.googleapis.com/Disk Corresponds to the JSON property targetResourceType

Returns:

  • (String)


699
700
701
# File 'lib/google/apis/cloudasset_v1beta1/classes.rb', line 699

def target_resource_type
  @target_resource_type
end

#typeString

The unique identifier of the relationship type. Example: INSTANCE_TO_INSTANCEGROUP Corresponds to the JSON property type

Returns:

  • (String)


705
706
707
# File 'lib/google/apis/cloudasset_v1beta1/classes.rb', line 705

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



712
713
714
715
716
717
# File 'lib/google/apis/cloudasset_v1beta1/classes.rb', line 712

def update!(**args)
  @action = args[:action] if args.key?(:action)
  @source_resource_type = args[:source_resource_type] if args.key?(:source_resource_type)
  @target_resource_type = args[:target_resource_type] if args.key?(:target_resource_type)
  @type = args[:type] if args.key?(:type)
end