# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::CDN::Mgmt::V2020_04_15 module Models # # The JSON object that contains the properties to secure a custom domain. # class CustomDomainHttpsParameters include MsRestAzure @@discriminatorMap = Hash.new @@discriminatorMap["Cdn"] = "CdnManagedHttpsParameters" @@discriminatorMap["AzureKeyVault"] = "UserManagedHttpsParameters" def initialize @certificateSource = "CustomDomainHttpsParameters" end attr_accessor :certificateSource # @return [ProtocolType] Defines the TLS extension protocol that is used # for secure delivery. Possible values include: 'ServerNameIndication', # 'IPBased' attr_accessor :protocol_type # @return [MinimumTlsVersion] TLS protocol version that will be used for # Https. Possible values include: 'None', 'TLS10', 'TLS12' attr_accessor :minimum_tls_version # # Mapper for CustomDomainHttpsParameters class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'CustomDomainHttpsParameters', type: { name: 'Composite', polymorphic_discriminator: 'certificateSource', uber_parent: 'CustomDomainHttpsParameters', class_name: 'CustomDomainHttpsParameters', model_properties: { protocol_type: { client_side_validation: true, required: true, serialized_name: 'protocolType', type: { name: 'String' } }, minimum_tls_version: { client_side_validation: true, required: false, serialized_name: 'minimumTlsVersion', type: { name: 'Enum', module: 'MinimumTlsVersion' } } } } } end end end end