Class: OCI::FusionApps::Models::CreateVanityDomainDetails

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/fusion_apps/models/create_vanity_domain_details.rb

Overview

Vanity domain request detail

Constant Summary collapse

ORIGIN_CERT_REQUEST_TYPE_ENUM =
[
  ORIGIN_CERT_REQUEST_TYPE_REQUEST_CSR = 'REQUEST_CSR'.freeze,
  ORIGIN_CERT_REQUEST_TYPE_REQUEST_DV = 'REQUEST_DV'.freeze
].freeze
CDN_CERT_REQUEST_TYPE_ENUM =
[
  CDN_CERT_REQUEST_TYPE_REQUEST_CSR = 'REQUEST_CSR'.freeze,
  CDN_CERT_REQUEST_TYPE_REQUEST_DV = 'REQUEST_DV'.freeze
].freeze
DNS_MANAGED_BY_ENUM =
[
  DNS_MANAGED_BY_ORACLE_MANAGED = 'ORACLE_MANAGED'.freeze,
  DNS_MANAGED_BY_CUSTOMER_MANAGED = 'CUSTOMER_MANAGED'.freeze
].freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ CreateVanityDomainDetails

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):



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
139
# File 'lib/oci/fusion_apps/models/create_vanity_domain_details.rb', line 96

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.origin_cert_request_type = attributes[:'originCertRequestType'] if attributes[:'originCertRequestType']

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

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

  self.cdn_cert_request_type = attributes[:'cdnCertRequestType'] if attributes[:'cdnCertRequestType']

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

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

  self.vanity_domain = attributes[:'vanityDomain'] if attributes[:'vanityDomain']

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

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

  self.dns_managed_by = attributes[:'dnsManagedBy'] if attributes[:'dnsManagedBy']

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

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

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

  self.certificate_info = attributes[:'certificateInfo'] if attributes[:'certificateInfo']

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

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

  self.change_management_link = attributes[:'changeManagementLink'] if attributes[:'changeManagementLink']

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

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

Instance Attribute Details

#cdn_cert_request_typeString

The cdn request type for which the certificate is generated

Returns:

  • (String)


32
33
34
# File 'lib/oci/fusion_apps/models/create_vanity_domain_details.rb', line 32

def cdn_cert_request_type
  @cdn_cert_request_type
end

#certificate_infoOCI::FusionApps::Models::CertificateInfo



47
48
49
# File 'lib/oci/fusion_apps/models/create_vanity_domain_details.rb', line 47

def certificate_info
  @certificate_info
end

The cm link that was used to create the DNS prefix

Returns:

  • (String)


51
52
53
# File 'lib/oci/fusion_apps/models/create_vanity_domain_details.rb', line 51

def change_management_link
  @change_management_link
end

#dns_managed_byString

The dns is managed by the customer or Oracle

Returns:

  • (String)


40
41
42
# File 'lib/oci/fusion_apps/models/create_vanity_domain_details.rb', line 40

def dns_managed_by
  @dns_managed_by
end

#origin_cert_request_typeString

The origin request type for which the certificate is generated

Returns:

  • (String)


28
29
30
# File 'lib/oci/fusion_apps/models/create_vanity_domain_details.rb', line 28

def origin_cert_request_type
  @origin_cert_request_type
end

#prefixString

The prefix value of the DnsPrefix. Can't be changed after creation

Returns:

  • (String)


44
45
46
# File 'lib/oci/fusion_apps/models/create_vanity_domain_details.rb', line 44

def prefix
  @prefix
end

#vanity_domainString

Vanity domain

Returns:

  • (String)


36
37
38
# File 'lib/oci/fusion_apps/models/create_vanity_domain_details.rb', line 36

def vanity_domain
  @vanity_domain
end

Class Method Details

.attribute_mapObject

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



54
55
56
57
58
59
60
61
62
63
64
65
66
# File 'lib/oci/fusion_apps/models/create_vanity_domain_details.rb', line 54

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'origin_cert_request_type': :'originCertRequestType',
    'cdn_cert_request_type': :'cdnCertRequestType',
    'vanity_domain': :'vanityDomain',
    'dns_managed_by': :'dnsManagedBy',
    'prefix': :'prefix',
    'certificate_info': :'certificateInfo',
    'change_management_link': :'changeManagementLink'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



69
70
71
72
73
74
75
76
77
78
79
80
81
# File 'lib/oci/fusion_apps/models/create_vanity_domain_details.rb', line 69

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'origin_cert_request_type': :'String',
    'cdn_cert_request_type': :'String',
    'vanity_domain': :'String',
    'dns_managed_by': :'String',
    'prefix': :'String',
    'certificate_info': :'OCI::FusionApps::Models::CertificateInfo',
    'change_management_link': :'String'
    # 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



172
173
174
175
176
177
178
179
180
181
182
183
# File 'lib/oci/fusion_apps/models/create_vanity_domain_details.rb', line 172

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

  self.class == other.class &&
    origin_cert_request_type == other.origin_cert_request_type &&
    cdn_cert_request_type == other.cdn_cert_request_type &&
    vanity_domain == other.vanity_domain &&
    dns_managed_by == other.dns_managed_by &&
    prefix == other.prefix &&
    certificate_info == other.certificate_info &&
    change_management_link == other.change_management_link
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



208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
# File 'lib/oci/fusion_apps/models/create_vanity_domain_details.rb', line 208

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


188
189
190
# File 'lib/oci/fusion_apps/models/create_vanity_domain_details.rb', line 188

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



197
198
199
# File 'lib/oci/fusion_apps/models/create_vanity_domain_details.rb', line 197

def hash
  [origin_cert_request_type, cdn_cert_request_type, vanity_domain, dns_managed_by, prefix, certificate_info, change_management_link].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



241
242
243
244
245
246
247
248
249
250
# File 'lib/oci/fusion_apps/models/create_vanity_domain_details.rb', line 241

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



235
236
237
# File 'lib/oci/fusion_apps/models/create_vanity_domain_details.rb', line 235

def to_s
  to_hash.to_s
end