Class: OCI::MarketplacePublisher::Models::CreateLeadGenListingRevisionDetails
- Inherits:
-
CreateListingRevisionDetails
- Object
- CreateListingRevisionDetails
- OCI::MarketplacePublisher::Models::CreateLeadGenListingRevisionDetails
- Defined in:
- lib/oci/marketplace_publisher/models/create_lead_gen_listing_revision_details.rb
Overview
Listing revision update details for listings
Constant Summary
Constants inherited from CreateListingRevisionDetails
OCI::MarketplacePublisher::Models::CreateListingRevisionDetails::LISTING_TYPE_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 CreateListingRevisionDetails
#content_language, #defined_tags, #display_name, #freeform_tags, #headline, #keywords, #listing_id, #listing_type, #long_description, #short_description, #status, #support_contacts, #support_links, #supportedlanguages, #tagline, #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 = {}) ⇒ CreateLeadGenListingRevisionDetails
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 CreateListingRevisionDetails
Constructor Details
#initialize(attributes = {}) ⇒ CreateLeadGenListingRevisionDetails
Initializes the object
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 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 |
# File 'lib/oci/marketplace_publisher/models/create_lead_gen_listing_revision_details.rb', line 149 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.products = attributes[:'products'] if attributes[:'products'] 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'] end |
Instance Attribute Details
#demo_url ⇒ String
Url to demo of the listing
29 30 31 |
# File 'lib/oci/marketplace_publisher/models/create_lead_gen_listing_revision_details.rb', line 29 def demo_url @demo_url end |
#download_info ⇒ OCI::MarketplacePublisher::Models::DownloadInfo
44 45 46 |
# File 'lib/oci/marketplace_publisher/models/create_lead_gen_listing_revision_details.rb', line 44 def download_info @download_info end |
#pricing_plans ⇒ String
Pricing details for lead gen listing
48 49 50 |
# File 'lib/oci/marketplace_publisher/models/create_lead_gen_listing_revision_details.rb', line 48 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/create_lead_gen_listing_revision_details.rb', line 21 def pricing_type @pricing_type end |
#products ⇒ Array<OCI::MarketplacePublisher::Models::ListingProduct>
[Required] List of Products subscribed by listing.
25 26 27 |
# File 'lib/oci/marketplace_publisher/models/create_lead_gen_listing_revision_details.rb', line 25 def products @products end |
#recommended_service_provider_listing_ids ⇒ Array<String>
OCIDs of service listings attached to lead gen listing
37 38 39 |
# File 'lib/oci/marketplace_publisher/models/create_lead_gen_listing_revision_details.rb', line 37 def recommended_service_provider_listing_ids @recommended_service_provider_listing_ids end |
#self_paced_training_url ⇒ String
Url to training resources of the listing
33 34 35 |
# File 'lib/oci/marketplace_publisher/models/create_lead_gen_listing_revision_details.rb', line 33 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/create_lead_gen_listing_revision_details.rb', line 17 def system_requirements @system_requirements end |
#vanity_url ⇒ String
Custom link to the listing
41 42 43 |
# File 'lib/oci/marketplace_publisher/models/create_lead_gen_listing_revision_details.rb', line 41 def vanity_url @vanity_url end |
#version_details ⇒ OCI::MarketplacePublisher::Models::VersionDetails
13 14 15 |
# File 'lib/oci/marketplace_publisher/models/create_lead_gen_listing_revision_details.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 |
# File 'lib/oci/marketplace_publisher/models/create_lead_gen_listing_revision_details.rb', line 51 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'display_name': :'displayName', 'listing_id': :'listingId', 'listing_type': :'listingType', 'headline': :'headline', 'tagline': :'tagline', 'keywords': :'keywords', 'short_description': :'shortDescription', 'usage_information': :'usageInformation', 'long_description': :'longDescription', 'content_language': :'contentLanguage', 'supportedlanguages': :'supportedlanguages', 'support_contacts': :'supportContacts', 'support_links': :'supportLinks', 'status': :'status', 'freeform_tags': :'freeformTags', 'defined_tags': :'definedTags', 'version_details': :'versionDetails', 'system_requirements': :'systemRequirements', 'pricing_type': :'pricingType', 'products': :'products', 'demo_url': :'demoUrl', 'self_paced_training_url': :'selfPacedTrainingUrl', 'recommended_service_provider_listing_ids': :'recommendedServiceProviderListingIds', 'vanity_url': :'vanityUrl', 'download_info': :'downloadInfo', 'pricing_plans': :'pricingPlans' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/oci/marketplace_publisher/models/create_lead_gen_listing_revision_details.rb', line 85 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'display_name': :'String', 'listing_id': :'String', 'listing_type': :'String', 'headline': :'String', 'tagline': :'String', 'keywords': :'String', 'short_description': :'String', 'usage_information': :'String', 'long_description': :'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>', 'status': :'String', 'freeform_tags': :'Hash<String, String>', 'defined_tags': :'Hash<String, Hash<String, Object>>', 'version_details': :'OCI::MarketplacePublisher::Models::VersionDetails', 'system_requirements': :'String', 'pricing_type': :'String', 'products': :'Array<OCI::MarketplacePublisher::Models::ListingProduct>', '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' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
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 248 249 250 251 252 253 |
# File 'lib/oci/marketplace_publisher/models/create_lead_gen_listing_revision_details.rb', line 223 def ==(other) return true if equal?(other) self.class == other.class && display_name == other.display_name && listing_id == other.listing_id && listing_type == other.listing_type && headline == other.headline && tagline == other.tagline && keywords == other.keywords && short_description == other.short_description && usage_information == other.usage_information && long_description == other.long_description && content_language == other.content_language && supportedlanguages == other.supportedlanguages && support_contacts == other.support_contacts && support_links == other.support_links && status == other.status && == other. && == other. && version_details == other.version_details && system_requirements == other.system_requirements && pricing_type == other.pricing_type && products == other.products && 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 end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 |
# File 'lib/oci/marketplace_publisher/models/create_lead_gen_listing_revision_details.rb', line 278 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
258 259 260 |
# File 'lib/oci/marketplace_publisher/models/create_lead_gen_listing_revision_details.rb', line 258 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
267 268 269 |
# File 'lib/oci/marketplace_publisher/models/create_lead_gen_listing_revision_details.rb', line 267 def hash [display_name, listing_id, listing_type, headline, tagline, keywords, short_description, usage_information, long_description, content_language, supportedlanguages, support_contacts, support_links, status, , , version_details, system_requirements, pricing_type, products, demo_url, self_paced_training_url, recommended_service_provider_listing_ids, vanity_url, download_info, pricing_plans].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
311 312 313 314 315 316 317 318 319 320 |
# File 'lib/oci/marketplace_publisher/models/create_lead_gen_listing_revision_details.rb', line 311 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
305 306 307 |
# File 'lib/oci/marketplace_publisher/models/create_lead_gen_listing_revision_details.rb', line 305 def to_s to_hash.to_s end |