Class: OCI::MarketplacePublisher::Models::LeadGenListingRevision
- Inherits:
-
ListingRevision
- Object
- ListingRevision
- OCI::MarketplacePublisher::Models::LeadGenListingRevision
- Defined in:
- lib/oci/marketplace_publisher/models/lead_gen_listing_revision.rb
Overview
Listing revision details for lead gen listings
Constant Summary
Constants inherited from ListingRevision
OCI::MarketplacePublisher::Models::ListingRevision::LIFECYCLE_STATE_ENUM, OCI::MarketplacePublisher::Models::ListingRevision::LISTING_TYPE_ENUM, OCI::MarketplacePublisher::Models::ListingRevision::PACKAGE_TYPE_ENUM, OCI::MarketplacePublisher::Models::ListingRevision::STATUS_ENUM
Instance Attribute Summary collapse
-
#demo_url ⇒ String
Url to demo of the listing.
- #download_info ⇒ OCI::MarketplacePublisher::Models::DownloadInfo
-
#pricing_plans ⇒ String
Pricing details for lead gen listing.
-
#pricing_type ⇒ String
[Required] The pricing model for the listing revision.
-
#products ⇒ Array<OCI::MarketplacePublisher::Models::ListingProduct>
[Required] List of Products subscribed by listing.
-
#recommended_service_provider_listing_ids ⇒ Array<String>
OCIDs of service listings attached to lead gen listing.
-
#self_paced_training_url ⇒ String
Url to training resources of the listing.
-
#system_requirements ⇒ String
System requirements for the listing revision.
-
#vanity_url ⇒ String
Custom link to the listing.
- #version_details ⇒ OCI::MarketplacePublisher::Models::VersionDetails
Attributes inherited from ListingRevision
#compartment_id, #content_language, #defined_tags, #display_name, #extended_metadata, #freeform_tags, #headline, #icon, #id, #keywords, #lifecycle_state, #listing_id, #listing_type, #long_description, #package_type, #revision_number, #short_description, #status, #status_notes, #support_contacts, #support_links, #supportedlanguages, #system_tags, #tagline, #time_created, #time_updated, #usage_information
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ LeadGenListingRevision
constructor
Initializes the object.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
Methods inherited from ListingRevision
Constructor Details
#initialize(attributes = {}) ⇒ LeadGenListingRevision
Initializes the object
182 183 184 185 186 187 188 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 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 |
# File 'lib/oci/marketplace_publisher/models/lead_gen_listing_revision.rb', line 182 def initialize(attributes = {}) return unless attributes.is_a?(Hash) attributes['listingType'] = 'LEAD_GENERATION' super(attributes) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } 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.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.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.demo_url = attributes[:'demoUrl'] if attributes[:'demoUrl'] raise 'You cannot provide both :demoUrl and :demo_url' if attributes.key?(:'demoUrl') && attributes.key?(:'demo_url') self.demo_url = attributes[:'demo_url'] if attributes[:'demo_url'] self.self_paced_training_url = attributes[:'selfPacedTrainingUrl'] if attributes[:'selfPacedTrainingUrl'] raise 'You cannot provide both :selfPacedTrainingUrl and :self_paced_training_url' if attributes.key?(:'selfPacedTrainingUrl') && attributes.key?(:'self_paced_training_url') self.self_paced_training_url = attributes[:'self_paced_training_url'] if attributes[:'self_paced_training_url'] self.recommended_service_provider_listing_ids = attributes[:'recommendedServiceProviderListingIds'] if attributes[:'recommendedServiceProviderListingIds'] raise 'You cannot provide both :recommendedServiceProviderListingIds and :recommended_service_provider_listing_ids' if attributes.key?(:'recommendedServiceProviderListingIds') && attributes.key?(:'recommended_service_provider_listing_ids') self.recommended_service_provider_listing_ids = attributes[:'recommended_service_provider_listing_ids'] if attributes[:'recommended_service_provider_listing_ids'] self.vanity_url = attributes[:'vanityUrl'] if attributes[:'vanityUrl'] raise 'You cannot provide both :vanityUrl and :vanity_url' if attributes.key?(:'vanityUrl') && attributes.key?(:'vanity_url') self.vanity_url = attributes[:'vanity_url'] if attributes[:'vanity_url'] self.download_info = attributes[:'downloadInfo'] if attributes[:'downloadInfo'] raise 'You cannot provide both :downloadInfo and :download_info' if attributes.key?(:'downloadInfo') && attributes.key?(:'download_info') self.download_info = attributes[:'download_info'] if attributes[:'download_info'] self.pricing_plans = attributes[:'pricingPlans'] if attributes[:'pricingPlans'] raise 'You cannot provide both :pricingPlans and :pricing_plans' if attributes.key?(:'pricingPlans') && attributes.key?(:'pricing_plans') self.pricing_plans = attributes[:'pricing_plans'] if attributes[:'pricing_plans'] self.products = attributes[:'products'] if attributes[:'products'] end |
Instance Attribute Details
#demo_url ⇒ String
Url to demo of the listing
25 26 27 |
# File 'lib/oci/marketplace_publisher/models/lead_gen_listing_revision.rb', line 25 def demo_url @demo_url end |
#download_info ⇒ OCI::MarketplacePublisher::Models::DownloadInfo
40 41 42 |
# File 'lib/oci/marketplace_publisher/models/lead_gen_listing_revision.rb', line 40 def download_info @download_info end |
#pricing_plans ⇒ String
Pricing details for lead gen listing
44 45 46 |
# File 'lib/oci/marketplace_publisher/models/lead_gen_listing_revision.rb', line 44 def pricing_plans @pricing_plans end |
#pricing_type ⇒ String
[Required] The pricing model for the listing revision.
21 22 23 |
# File 'lib/oci/marketplace_publisher/models/lead_gen_listing_revision.rb', line 21 def pricing_type @pricing_type end |
#products ⇒ Array<OCI::MarketplacePublisher::Models::ListingProduct>
[Required] List of Products subscribed by listing.
48 49 50 |
# File 'lib/oci/marketplace_publisher/models/lead_gen_listing_revision.rb', line 48 def products @products end |
#recommended_service_provider_listing_ids ⇒ Array<String>
OCIDs of service listings attached to lead gen listing
33 34 35 |
# File 'lib/oci/marketplace_publisher/models/lead_gen_listing_revision.rb', line 33 def recommended_service_provider_listing_ids @recommended_service_provider_listing_ids end |
#self_paced_training_url ⇒ String
Url to training resources of the listing
29 30 31 |
# File 'lib/oci/marketplace_publisher/models/lead_gen_listing_revision.rb', line 29 def self_paced_training_url @self_paced_training_url end |
#system_requirements ⇒ String
System requirements for the listing revision.
17 18 19 |
# File 'lib/oci/marketplace_publisher/models/lead_gen_listing_revision.rb', line 17 def system_requirements @system_requirements end |
#vanity_url ⇒ String
Custom link to the listing
37 38 39 |
# File 'lib/oci/marketplace_publisher/models/lead_gen_listing_revision.rb', line 37 def vanity_url @vanity_url end |
#version_details ⇒ OCI::MarketplacePublisher::Models::VersionDetails
13 14 15 |
# File 'lib/oci/marketplace_publisher/models/lead_gen_listing_revision.rb', line 13 def version_details @version_details end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/oci/marketplace_publisher/models/lead_gen_listing_revision.rb', line 51 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'id': :'id', 'listing_id': :'listingId', 'compartment_id': :'compartmentId', 'display_name': :'displayName', 'revision_number': :'revisionNumber', 'headline': :'headline', 'tagline': :'tagline', 'keywords': :'keywords', 'short_description': :'shortDescription', 'usage_information': :'usageInformation', 'long_description': :'longDescription', 'time_created': :'timeCreated', 'time_updated': :'timeUpdated', 'content_language': :'contentLanguage', 'supportedlanguages': :'supportedlanguages', 'support_contacts': :'supportContacts', 'support_links': :'supportLinks', 'icon': :'icon', 'status': :'status', 'status_notes': :'statusNotes', 'lifecycle_state': :'lifecycleState', 'package_type': :'packageType', 'listing_type': :'listingType', 'extended_metadata': :'extendedMetadata', 'freeform_tags': :'freeformTags', 'defined_tags': :'definedTags', 'system_tags': :'systemTags', 'version_details': :'versionDetails', 'system_requirements': :'systemRequirements', 'pricing_type': :'pricingType', 'demo_url': :'demoUrl', 'self_paced_training_url': :'selfPacedTrainingUrl', 'recommended_service_provider_listing_ids': :'recommendedServiceProviderListingIds', 'vanity_url': :'vanityUrl', 'download_info': :'downloadInfo', 'pricing_plans': :'pricingPlans', 'products': :'products' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 |
# File 'lib/oci/marketplace_publisher/models/lead_gen_listing_revision.rb', line 96 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'id': :'String', 'listing_id': :'String', 'compartment_id': :'String', 'display_name': :'String', 'revision_number': :'String', 'headline': :'String', 'tagline': :'String', 'keywords': :'String', 'short_description': :'String', 'usage_information': :'String', 'long_description': :'String', 'time_created': :'DateTime', 'time_updated': :'DateTime', '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', 'listing_type': :'String', 'extended_metadata': :'Hash<String, String>', 'freeform_tags': :'Hash<String, String>', 'defined_tags': :'Hash<String, Hash<String, Object>>', 'system_tags': :'Hash<String, Hash<String, Object>>', 'version_details': :'OCI::MarketplacePublisher::Models::VersionDetails', 'system_requirements': :'String', 'pricing_type': :'String', 'demo_url': :'String', 'self_paced_training_url': :'String', 'recommended_service_provider_listing_ids': :'Array<String>', 'vanity_url': :'String', 'download_info': :'OCI::MarketplacePublisher::Models::DownloadInfo', 'pricing_plans': :'String', 'products': :'Array<OCI::MarketplacePublisher::Models::ListingProduct>' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 |
# File 'lib/oci/marketplace_publisher/models/lead_gen_listing_revision.rb', line 256 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 && headline == other.headline && tagline == other.tagline && keywords == other.keywords && short_description == other.short_description && usage_information == other.usage_information && long_description == other.long_description && time_created == other.time_created && time_updated == other.time_updated && 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 && listing_type == other.listing_type && == other. && == other. && == other. && == other. && version_details == other.version_details && system_requirements == other.system_requirements && pricing_type == other.pricing_type && demo_url == other.demo_url && self_paced_training_url == other.self_paced_training_url && recommended_service_provider_listing_ids == other.recommended_service_provider_listing_ids && vanity_url == other.vanity_url && download_info == other.download_info && pricing_plans == other.pricing_plans && products == other.products end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 |
# File 'lib/oci/marketplace_publisher/models/lead_gen_listing_revision.rb', line 322 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
302 303 304 |
# File 'lib/oci/marketplace_publisher/models/lead_gen_listing_revision.rb', line 302 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
311 312 313 |
# File 'lib/oci/marketplace_publisher/models/lead_gen_listing_revision.rb', line 311 def hash [id, listing_id, compartment_id, display_name, revision_number, headline, tagline, keywords, short_description, usage_information, long_description, time_created, time_updated, content_language, supportedlanguages, support_contacts, support_links, icon, status, status_notes, lifecycle_state, package_type, listing_type, , , , , version_details, system_requirements, pricing_type, demo_url, self_paced_training_url, recommended_service_provider_listing_ids, vanity_url, download_info, pricing_plans, products].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
355 356 357 358 359 360 361 362 363 364 |
# File 'lib/oci/marketplace_publisher/models/lead_gen_listing_revision.rb', line 355 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_s ⇒ String
Returns the string representation of the object
349 350 351 |
# File 'lib/oci/marketplace_publisher/models/lead_gen_listing_revision.rb', line 349 def to_s to_hash.to_s end |