Class: Google::Apis::ConnectorsV2::Resource

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) ⇒ Resource

Returns a new instance of Resource.



2129
2130
2131
# File 'lib/google/apis/connectors_v2/classes.rb', line 2129

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>)


2102
2103
2104
# File 'lib/google/apis/connectors_v2/classes.rb', line 2102

def _meta
  @_meta
end

#descriptionString

A description of what this resource represents. Corresponds to the JSON property description

Returns:

  • (String)


2107
2108
2109
# File 'lib/google/apis/connectors_v2/classes.rb', line 2107

def description
  @description
end

#mime_typeString

The MIME type of this resource, if known. Corresponds to the JSON property mimeType

Returns:

  • (String)


2112
2113
2114
# File 'lib/google/apis/connectors_v2/classes.rb', line 2112

def mime_type
  @mime_type
end

#nameString

A human-readable name for this resource. Corresponds to the JSON property name

Returns:

  • (String)


2117
2118
2119
# File 'lib/google/apis/connectors_v2/classes.rb', line 2117

def name
  @name
end

#sizeFixnum

The size of the raw resource content, in bytes, if known. Corresponds to the JSON property size

Returns:

  • (Fixnum)


2122
2123
2124
# File 'lib/google/apis/connectors_v2/classes.rb', line 2122

def size
  @size
end

#uriString

The URI of this resource. Corresponds to the JSON property uri

Returns:

  • (String)


2127
2128
2129
# File 'lib/google/apis/connectors_v2/classes.rb', line 2127

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2134
2135
2136
2137
2138
2139
2140
2141
# File 'lib/google/apis/connectors_v2/classes.rb', line 2134

def update!(**args)
  @_meta = args[:_meta] if args.key?(:_meta)
  @description = args[:description] if args.key?(:description)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
  @name = args[:name] if args.key?(:name)
  @size = args[:size] if args.key?(:size)
  @uri = args[:uri] if args.key?(:uri)
end