Class: Google::Apis::WorkloadmanagerV1::SapDiscoveryResource

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SapDiscoveryResource

Returns a new instance of SapDiscoveryResource.



1016
1017
1018
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1016

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

Instance Attribute Details

A list of resource URIs related to this resource. Corresponds to the JSON property relatedResources

Returns:

  • (Array<String>)


994
995
996
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 994

def related_resources
  @related_resources
end

#resource_kindString

ComputeInstance, ComputeDisk, VPC, Bare Metal server, etc. Corresponds to the JSON property resourceKind

Returns:

  • (String)


999
1000
1001
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 999

def resource_kind
  @resource_kind
end

#resource_typeString

The type of this resource. Corresponds to the JSON property resourceType

Returns:

  • (String)


1004
1005
1006
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1004

def resource_type
  @resource_type
end

#resource_uriString

URI of the resource, includes project, location, and name. Corresponds to the JSON property resourceUri

Returns:

  • (String)


1009
1010
1011
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1009

def resource_uri
  @resource_uri
end

#update_timeString

Unix timestamp of when this resource last had its discovery data updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


1014
1015
1016
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1014

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1021
1022
1023
1024
1025
1026
1027
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1021

def update!(**args)
  @related_resources = args[:related_resources] if args.key?(:related_resources)
  @resource_kind = args[:resource_kind] if args.key?(:resource_kind)
  @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