Class: Google::Apis::AnalyticshubV1beta1::DataExchange

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

Overview

A data exchange is a container that lets you share data. Along with the descriptive information about the data exchange, it contains listings that reference shared datasets.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DataExchange

Returns a new instance of DataExchange.



295
296
297
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 295

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

Instance Attribute Details

#descriptionString

Optional. Description of the data exchange. The description must not contain Unicode non-characters as well as C0 and C1 control codes except tabs (HT), new lines (LF), carriage returns (CR), and page breaks (FF). Default value is an empty string. Max length: 2000 bytes. Corresponds to the JSON property description

Returns:

  • (String)


253
254
255
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 253

def description
  @description
end

#display_nameString

Required. Human-readable display name of the data exchange. The display name must contain only Unicode letters, numbers (0-9), underscores (_), dashes (-), spaces ( ), ampersands (&) and must not start or end with spaces. Default value is an empty string. Max length: 63 bytes. Corresponds to the JSON property displayName

Returns:

  • (String)


261
262
263
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 261

def display_name
  @display_name
end

#documentationString

Optional. Documentation describing the data exchange. Corresponds to the JSON property documentation

Returns:

  • (String)


266
267
268
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 266

def documentation
  @documentation
end

#iconString

Optional. Base64 encoded image representing the data exchange. Max Size: 3. 0MiB Expected image dimensions are 512x512 pixels, however the API only performs validation on size of the encoded data. Note: For byte fields, the content of the fields are base64-encoded (which increases the size of the data by 33-36%) when using JSON on the wire. Corresponds to the JSON property icon NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


276
277
278
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 276

def icon
  @icon
end

#listing_countFixnum

Output only. Number of listings contained in the data exchange. Corresponds to the JSON property listingCount

Returns:

  • (Fixnum)


281
282
283
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 281

def listing_count
  @listing_count
end

#nameString

Output only. The resource name of the data exchange. e.g. projects/myproject/ locations/US/dataExchanges/123. Corresponds to the JSON property name

Returns:

  • (String)


287
288
289
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 287

def name
  @name
end

#primary_contactString

Optional. Email or URL of the primary point of contact of the data exchange. Max Length: 1000 bytes. Corresponds to the JSON property primaryContact

Returns:

  • (String)


293
294
295
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 293

def primary_contact
  @primary_contact
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



300
301
302
303
304
305
306
307
308
# File 'lib/google/apis/analyticshub_v1beta1/classes.rb', line 300

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @documentation = args[:documentation] if args.key?(:documentation)
  @icon = args[:icon] if args.key?(:icon)
  @listing_count = args[:listing_count] if args.key?(:listing_count)
  @name = args[:name] if args.key?(:name)
  @primary_contact = args[:primary_contact] if args.key?(:primary_contact)
end