Class: OCI::MarketplacePublisher::Models::ListingRevision

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/marketplace_publisher/models/listing_revision.rb

Overview

The model for an Oracle Cloud Infrastructure Marketplace Publisher listing revision.

Constant Summary collapse

STATUS_ENUM =
[
  STATUS_NEW = 'NEW'.freeze,
  STATUS_PENDING_REVIEW = 'PENDING_REVIEW'.freeze,
  STATUS_REVIEW_IN_PROGRESS = 'REVIEW_IN_PROGRESS'.freeze,
  STATUS_REJECTED = 'REJECTED'.freeze,
  STATUS_APPROVED = 'APPROVED'.freeze,
  STATUS_PUBLISH_IN_PROGRESS = 'PUBLISH_IN_PROGRESS'.freeze,
  STATUS_PUBLISH_FAILED = 'PUBLISH_FAILED'.freeze,
  STATUS_PUBLISHED = 'PUBLISHED'.freeze,
  STATUS_PUBLISH_AS_PRIVATE_FAILED = 'PUBLISH_AS_PRIVATE_FAILED'.freeze,
  STATUS_PUBLISHED_AS_PRIVATE = 'PUBLISHED_AS_PRIVATE'.freeze,
  STATUS_PUBLISH_AS_PRIVATE_IN_PROGRESS = 'PUBLISH_AS_PRIVATE_IN_PROGRESS'.freeze,
  STATUS_UNPUBLISH_IN_PROGRESS = 'UNPUBLISH_IN_PROGRESS'.freeze,
  STATUS_UNPUBLISHED = 'UNPUBLISHED'.freeze,
  STATUS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
LIFECYCLE_STATE_ENUM =
[
  LIFECYCLE_STATE_CREATING = 'CREATING'.freeze,
  LIFECYCLE_STATE_UPDATING = 'UPDATING'.freeze,
  LIFECYCLE_STATE_ACTIVE = 'ACTIVE'.freeze,
  LIFECYCLE_STATE_DELETING = 'DELETING'.freeze,
  LIFECYCLE_STATE_DELETED = 'DELETED'.freeze,
  LIFECYCLE_STATE_FAILED = 'FAILED'.freeze,
  LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
PACKAGE_TYPE_ENUM =
[
  PACKAGE_TYPE_CONTAINER_IMAGE = 'CONTAINER_IMAGE'.freeze,
  PACKAGE_TYPE_HELM_CHART = 'HELM_CHART'.freeze,
  PACKAGE_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
PRICING_TYPE_ENUM =
[
  PRICING_TYPE_FREE = 'FREE'.freeze,
  PRICING_TYPE_BYOL = 'BYOL'.freeze,
  PRICING_TYPE_PAYGO = 'PAYGO'.freeze,
  PRICING_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ ListingRevision

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash

Options Hash (attributes):



309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 309

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  self.id = attributes[:'id'] if attributes[:'id']

  self.listing_id = attributes[:'listingId'] if attributes[:'listingId']

  raise 'You cannot provide both :listingId and :listing_id' if attributes.key?(:'listingId') && attributes.key?(:'listing_id')

  self.listing_id = attributes[:'listing_id'] if attributes[:'listing_id']

  self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']

  raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')

  self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']

  self.display_name = attributes[:'displayName'] if attributes[:'displayName']

  raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')

  self.display_name = attributes[:'display_name'] if attributes[:'display_name']

  self.revision_number = attributes[:'revisionNumber'] if attributes[:'revisionNumber']

  raise 'You cannot provide both :revisionNumber and :revision_number' if attributes.key?(:'revisionNumber') && attributes.key?(:'revision_number')

  self.revision_number = attributes[:'revision_number'] if attributes[:'revision_number']

  self.version_details = attributes[:'versionDetails'] if attributes[:'versionDetails']

  raise 'You cannot provide both :versionDetails and :version_details' if attributes.key?(:'versionDetails') && attributes.key?(:'version_details')

  self.version_details = attributes[:'version_details'] if attributes[:'version_details']

  self.headline = attributes[:'headline'] if attributes[:'headline']

  self.tagline = attributes[:'tagline'] if attributes[:'tagline']

  self.keywords = attributes[:'keywords'] if attributes[:'keywords']

  self.short_description = attributes[:'shortDescription'] if attributes[:'shortDescription']

  raise 'You cannot provide both :shortDescription and :short_description' if attributes.key?(:'shortDescription') && attributes.key?(:'short_description')

  self.short_description = attributes[:'short_description'] if attributes[:'short_description']

  self.usage_information = attributes[:'usageInformation'] if attributes[:'usageInformation']

  raise 'You cannot provide both :usageInformation and :usage_information' if attributes.key?(:'usageInformation') && attributes.key?(:'usage_information')

  self.usage_information = attributes[:'usage_information'] if attributes[:'usage_information']

  self.long_description = attributes[:'longDescription'] if attributes[:'longDescription']

  raise 'You cannot provide both :longDescription and :long_description' if attributes.key?(:'longDescription') && attributes.key?(:'long_description')

  self.long_description = attributes[:'long_description'] if attributes[:'long_description']

  self.system_requirements = attributes[:'systemRequirements'] if attributes[:'systemRequirements']

  raise 'You cannot provide both :systemRequirements and :system_requirements' if attributes.key?(:'systemRequirements') && attributes.key?(:'system_requirements')

  self.system_requirements = attributes[:'system_requirements'] if attributes[:'system_requirements']

  self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']

  raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')

  self.time_created = attributes[:'time_created'] if attributes[:'time_created']

  self.time_updated = attributes[:'timeUpdated'] if attributes[:'timeUpdated']

  raise 'You cannot provide both :timeUpdated and :time_updated' if attributes.key?(:'timeUpdated') && attributes.key?(:'time_updated')

  self.time_updated = attributes[:'time_updated'] if attributes[:'time_updated']

  self.categories = attributes[:'categories'] if attributes[:'categories']

  self.markets = attributes[:'markets'] if attributes[:'markets']

  self.content_language = attributes[:'contentLanguage'] if attributes[:'contentLanguage']

  raise 'You cannot provide both :contentLanguage and :content_language' if attributes.key?(:'contentLanguage') && attributes.key?(:'content_language')

  self.content_language = attributes[:'content_language'] if attributes[:'content_language']

  self.supportedlanguages = attributes[:'supportedlanguages'] if attributes[:'supportedlanguages']

  self.support_contacts = attributes[:'supportContacts'] if attributes[:'supportContacts']

  raise 'You cannot provide both :supportContacts and :support_contacts' if attributes.key?(:'supportContacts') && attributes.key?(:'support_contacts')

  self.support_contacts = attributes[:'support_contacts'] if attributes[:'support_contacts']

  self.support_links = attributes[:'supportLinks'] if attributes[:'supportLinks']

  raise 'You cannot provide both :supportLinks and :support_links' if attributes.key?(:'supportLinks') && attributes.key?(:'support_links')

  self.support_links = attributes[:'support_links'] if attributes[:'support_links']

  self.icon = attributes[:'icon'] if attributes[:'icon']

  self.status = attributes[:'status'] if attributes[:'status']

  self.status_notes = attributes[:'statusNotes'] if attributes[:'statusNotes']

  raise 'You cannot provide both :statusNotes and :status_notes' if attributes.key?(:'statusNotes') && attributes.key?(:'status_notes')

  self.status_notes = attributes[:'status_notes'] if attributes[:'status_notes']

  self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']

  raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')

  self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']

  self.package_type = attributes[:'packageType'] if attributes[:'packageType']

  raise 'You cannot provide both :packageType and :package_type' if attributes.key?(:'packageType') && attributes.key?(:'package_type')

  self.package_type = attributes[:'package_type'] if attributes[:'package_type']

  self.pricing_type = attributes[:'pricingType'] if attributes[:'pricingType']

  raise 'You cannot provide both :pricingType and :pricing_type' if attributes.key?(:'pricingType') && attributes.key?(:'pricing_type')

  self.pricing_type = attributes[:'pricing_type'] if attributes[:'pricing_type']

  self.allowed_tenancies = attributes[:'allowedTenancies'] if attributes[:'allowedTenancies']

  raise 'You cannot provide both :allowedTenancies and :allowed_tenancies' if attributes.key?(:'allowedTenancies') && attributes.key?(:'allowed_tenancies')

  self.allowed_tenancies = attributes[:'allowed_tenancies'] if attributes[:'allowed_tenancies']

  self.are_internal_tenancy_launch_allowed = attributes[:'areInternalTenancyLaunchAllowed'] unless attributes[:'areInternalTenancyLaunchAllowed'].nil?

  raise 'You cannot provide both :areInternalTenancyLaunchAllowed and :are_internal_tenancy_launch_allowed' if attributes.key?(:'areInternalTenancyLaunchAllowed') && attributes.key?(:'are_internal_tenancy_launch_allowed')

  self.are_internal_tenancy_launch_allowed = attributes[:'are_internal_tenancy_launch_allowed'] unless attributes[:'are_internal_tenancy_launch_allowed'].nil?

  self. = attributes[:'extendedMetadata'] if attributes[:'extendedMetadata']

  raise 'You cannot provide both :extendedMetadata and :extended_metadata' if attributes.key?(:'extendedMetadata') && attributes.key?(:'extended_metadata')

  self. = attributes[:'extended_metadata'] if attributes[:'extended_metadata']

  self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']

  raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')

  self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']

  self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']

  raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')

  self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']

  self.system_tags = attributes[:'systemTags'] if attributes[:'systemTags']

  raise 'You cannot provide both :systemTags and :system_tags' if attributes.key?(:'systemTags') && attributes.key?(:'system_tags')

  self.system_tags = attributes[:'system_tags'] if attributes[:'system_tags']
end

Instance Attribute Details

#allowed_tenanciesArray<String>

Allowed tenancies provided when a listing revision is published as private.

Returns:

  • (Array<String>)


159
160
161
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 159

def allowed_tenancies
  @allowed_tenancies
end

#are_internal_tenancy_launch_allowedBOOLEAN

Identifies whether publisher allows internal tenancy launches for the listing revision.

Returns:

  • (BOOLEAN)


163
164
165
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 163

def are_internal_tenancy_launch_allowed
  @are_internal_tenancy_launch_allowed
end

#categoriesArray<String>

[Required] The categories for the listing revsion.

Returns:

  • (Array<String>)


113
114
115
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 113

def categories
  @categories
end

#compartment_idString

The unique identifier for the compartment.

Returns:

  • (String)


62
63
64
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 62

def compartment_id
  @compartment_id
end

#content_languageOCI::MarketplacePublisher::Models::LanguageItem



120
121
122
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 120

def content_language
  @content_language
end

#defined_tagsHash<String, Hash<String, Object>>

Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {\"foo-namespace\": {\"bar-key\": \"value\"}}

Returns:

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


180
181
182
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 180

def defined_tags
  @defined_tags
end

#display_nameString

[Required] The name for the listing revision.

Returns:

  • (String)


66
67
68
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 66

def display_name
  @display_name
end

#extended_metadataHash<String, String>

Additional metadata key/value pairs for the listing revision summary.

Returns:

  • (Hash<String, String>)


168
169
170
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 168

def 
  @extended_metadata
end

#freeform_tagsHash<String, String>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {\"bar-key\": \"value\"}

Returns:

  • (Hash<String, String>)


174
175
176
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 174

def freeform_tags
  @freeform_tags
end

#headlineString

[Required] Single line introduction for the listing revision.

Returns:

  • (String)


77
78
79
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 77

def headline
  @headline
end

#iconOCI::MarketplacePublisher::Models::ListingRevisionIconAttachment



135
136
137
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 135

def icon
  @icon
end

#idString

[Required] Unique OCID identifier for the listing revision in Marketplace Publisher.

Returns:

  • (String)


54
55
56
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 54

def id
  @id
end

#keywordsString

Keywords associated with the listing revision.

Returns:

  • (String)


85
86
87
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 85

def keywords
  @keywords
end

#lifecycle_stateString

[Required] The current state of the listing revision.

Returns:

  • (String)


147
148
149
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 147

def lifecycle_state
  @lifecycle_state
end

#listing_idString

[Required] The unique identifier for the listing this revision belongs to.

Returns:

  • (String)


58
59
60
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 58

def listing_id
  @listing_id
end

#long_descriptionString

A long description for the listing revision.

Returns:

  • (String)


97
98
99
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 97

def long_description
  @long_description
end

#marketsArray<String>

The markets supported by the listing revision.

Returns:

  • (Array<String>)


117
118
119
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 117

def markets
  @markets
end

#package_typeString

[Required] The listing's package type. Populated from the listing.

Returns:

  • (String)


151
152
153
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 151

def package_type
  @package_type
end

#pricing_typeString

[Required] The pricing model for the listing revision.

Returns:

  • (String)


155
156
157
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 155

def pricing_type
  @pricing_type
end

#revision_numberString

The revision number for the listing revision. This is an internal attribute

Returns:

  • (String)


70
71
72
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 70

def revision_number
  @revision_number
end

#short_descriptionString

A short description for the listing revision.

Returns:

  • (String)


89
90
91
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 89

def short_description
  @short_description
end

#statusString

[Required] The current status for the Listing revision.

Returns:

  • (String)


139
140
141
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 139

def status
  @status
end

#status_notesString

Status notes for the listing revision.

Returns:

  • (String)


143
144
145
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 143

def status_notes
  @status_notes
end

#support_contactsArray<OCI::MarketplacePublisher::Models::SupportContact>

Contact information to use to get support from the publisher for the listing revision.



128
129
130
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 128

def support_contacts
  @support_contacts
end

Links to support resources for the listing revision.



132
133
134
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 132

def support_links
  @support_links
end

#supportedlanguagesArray<OCI::MarketplacePublisher::Models::LanguageItem>

Languages supported by the publisher for the listing revision.



124
125
126
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 124

def supportedlanguages
  @supportedlanguages
end

#system_requirementsString

System requirements for the listing revision.

Returns:

  • (String)


101
102
103
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 101

def system_requirements
  @system_requirements
end

#system_tagsHash<String, Hash<String, Object>>

System tags for this resource. Each key is predefined and scoped to a namespace. Example: {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}

Returns:

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


186
187
188
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 186

def system_tags
  @system_tags
end

#taglineString

The tagline of the listing revision.

Returns:

  • (String)


81
82
83
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 81

def tagline
  @tagline
end

#time_createdDateTime

[Required] The time the listing revision was created. An RFC3339 formatted datetime string.

Returns:

  • (DateTime)


105
106
107
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 105

def time_created
  @time_created
end

#time_updatedDateTime

[Required] The time the listing revision was updated. An RFC3339 formatted datetime string.

Returns:

  • (DateTime)


109
110
111
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 109

def time_updated
  @time_updated
end

#usage_informationString

Usage information for the listing revision.

Returns:

  • (String)


93
94
95
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 93

def usage_information
  @usage_information
end

#version_detailsOCI::MarketplacePublisher::Models::VersionDetails



73
74
75
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 73

def version_details
  @version_details
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 189

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'id': :'id',
    'listing_id': :'listingId',
    'compartment_id': :'compartmentId',
    'display_name': :'displayName',
    'revision_number': :'revisionNumber',
    'version_details': :'versionDetails',
    'headline': :'headline',
    'tagline': :'tagline',
    'keywords': :'keywords',
    'short_description': :'shortDescription',
    'usage_information': :'usageInformation',
    'long_description': :'longDescription',
    'system_requirements': :'systemRequirements',
    'time_created': :'timeCreated',
    'time_updated': :'timeUpdated',
    'categories': :'categories',
    'markets': :'markets',
    'content_language': :'contentLanguage',
    'supportedlanguages': :'supportedlanguages',
    'support_contacts': :'supportContacts',
    'support_links': :'supportLinks',
    'icon': :'icon',
    'status': :'status',
    'status_notes': :'statusNotes',
    'lifecycle_state': :'lifecycleState',
    'package_type': :'packageType',
    'pricing_type': :'pricingType',
    'allowed_tenancies': :'allowedTenancies',
    'are_internal_tenancy_launch_allowed': :'areInternalTenancyLaunchAllowed',
    'extended_metadata': :'extendedMetadata',
    'freeform_tags': :'freeformTags',
    'defined_tags': :'definedTags',
    'system_tags': :'systemTags'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 230

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'id': :'String',
    'listing_id': :'String',
    'compartment_id': :'String',
    'display_name': :'String',
    'revision_number': :'String',
    'version_details': :'OCI::MarketplacePublisher::Models::VersionDetails',
    'headline': :'String',
    'tagline': :'String',
    'keywords': :'String',
    'short_description': :'String',
    'usage_information': :'String',
    'long_description': :'String',
    'system_requirements': :'String',
    'time_created': :'DateTime',
    'time_updated': :'DateTime',
    'categories': :'Array<String>',
    'markets': :'Array<String>',
    'content_language': :'OCI::MarketplacePublisher::Models::LanguageItem',
    'supportedlanguages': :'Array<OCI::MarketplacePublisher::Models::LanguageItem>',
    'support_contacts': :'Array<OCI::MarketplacePublisher::Models::SupportContact>',
    'support_links': :'Array<OCI::MarketplacePublisher::Models::NamedLink>',
    'icon': :'OCI::MarketplacePublisher::Models::ListingRevisionIconAttachment',
    'status': :'String',
    'status_notes': :'String',
    'lifecycle_state': :'String',
    'package_type': :'String',
    'pricing_type': :'String',
    'allowed_tenancies': :'Array<String>',
    'are_internal_tenancy_launch_allowed': :'BOOLEAN',
    'extended_metadata': :'Hash<String, String>',
    'freeform_tags': :'Hash<String, String>',
    'defined_tags': :'Hash<String, Hash<String, Object>>',
    'system_tags': :'Hash<String, Hash<String, Object>>'
    # rubocop:enable Style/SymbolLiteral
  }
end

Instance Method Details

#==(other) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • other (Object)

    the other object to be compared



537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 537

def ==(other)
  return true if equal?(other)

  self.class == other.class &&
    id == other.id &&
    listing_id == other.listing_id &&
    compartment_id == other.compartment_id &&
    display_name == other.display_name &&
    revision_number == other.revision_number &&
    version_details == other.version_details &&
    headline == other.headline &&
    tagline == other.tagline &&
    keywords == other.keywords &&
    short_description == other.short_description &&
    usage_information == other.usage_information &&
    long_description == other.long_description &&
    system_requirements == other.system_requirements &&
    time_created == other.time_created &&
    time_updated == other.time_updated &&
    categories == other.categories &&
    markets == other.markets &&
    content_language == other.content_language &&
    supportedlanguages == other.supportedlanguages &&
    support_contacts == other.support_contacts &&
    support_links == other.support_links &&
    icon == other.icon &&
    status == other.status &&
    status_notes == other.status_notes &&
    lifecycle_state == other.lifecycle_state &&
    package_type == other.package_type &&
    pricing_type == other.pricing_type &&
    allowed_tenancies == other.allowed_tenancies &&
    are_internal_tenancy_launch_allowed == other.are_internal_tenancy_launch_allowed &&
     == other. &&
    freeform_tags == other.freeform_tags &&
    defined_tags == other.defined_tags &&
    system_tags == other.system_tags
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 599

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)

  self.class.swagger_types.each_pair do |key, type|
    if type =~ /^Array<(.*)>/i
      # check to ensure the input is an array given that the the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        public_method("#{key}=").call(
          attributes[self.class.attribute_map[key]]
            .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
        )
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      public_method("#{key}=").call(
        OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
      )
    end
    # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end

#eql?(other) ⇒ Boolean

Parameters:

  • other (Object)

    the other object to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


579
580
581
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 579

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



588
589
590
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 588

def hash
  [id, listing_id, compartment_id, display_name, revision_number, version_details, headline, tagline, keywords, short_description, usage_information, long_description, system_requirements, time_created, time_updated, categories, markets, content_language, supportedlanguages, support_contacts, support_links, icon, status, status_notes, lifecycle_state, package_type, pricing_type, allowed_tenancies, are_internal_tenancy_launch_allowed, , freeform_tags, defined_tags, system_tags].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



632
633
634
635
636
637
638
639
640
641
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 632

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = public_method(attr).call
    next if value.nil? && !instance_variable_defined?("@#{attr}")

    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



626
627
628
# File 'lib/oci/marketplace_publisher/models/listing_revision.rb', line 626

def to_s
  to_hash.to_s
end