Class: Google::Apis::ConnectorsV2::GetResourceResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GetResourceResponse

Returns a new instance of GetResourceResponse.



828
829
830
# File 'lib/google/apis/connectors_v2/classes.rb', line 828

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

Instance Attribute Details

#_metaHash<String,Object>

Metadata for the resource. Corresponds to the JSON property _meta

Returns:

  • (Hash<String,Object>)


810
811
812
# File 'lib/google/apis/connectors_v2/classes.rb', line 810

def _meta
  @_meta
end

#dataString

The content of the resource. Corresponds to the JSON property data NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


816
817
818
# File 'lib/google/apis/connectors_v2/classes.rb', line 816

def data
  @data
end

#metadataHash<String,Hash<String,Object>>

Metadata like service latency, etc. Corresponds to the JSON property metadata

Returns:

  • (Hash<String,Hash<String,Object>>)


821
822
823
# File 'lib/google/apis/connectors_v2/classes.rb', line 821

def 
  @metadata
end

#mime_typeString

The MIME type of the resource. Corresponds to the JSON property mimeType

Returns:

  • (String)


826
827
828
# File 'lib/google/apis/connectors_v2/classes.rb', line 826

def mime_type
  @mime_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



833
834
835
836
837
838
# File 'lib/google/apis/connectors_v2/classes.rb', line 833

def update!(**args)
  @_meta = args[:_meta] if args.key?(:_meta)
  @data = args[:data] if args.key?(:data)
  @metadata = args[:metadata] if args.key?(:metadata)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
end