Sha256: 23aa6f0b7ac5a9d7288d43fcd7cabd2a16318c9e03b1b321084ebdc324bb9adb

Contents?: true

Size: 1.76 KB

Versions: 4

Compression:

Stored size: 1.76 KB

Contents

# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::ARM::CDN
  module Models
    #
    # Origin properties needed for origin creation or update.
    #
    class OriginParameters

      include MsRestAzure

      # @return [String] The address of the origin. Domain names, IPv4
      # addresses, and IPv6 addresses are supported.
      attr_accessor :host_name

      # @return [Integer] The value of the HTTP port. Must be between 1 and
      # 65535.
      attr_accessor :http_port

      # @return [Integer] The value of the HTTPS port. Must be between 1 and
      # 65535.
      attr_accessor :https_port


      #
      # Mapper for OriginParameters class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          required: false,
          serialized_name: 'OriginParameters',
          type: {
            name: 'Composite',
            class_name: 'OriginParameters',
            model_properties: {
              host_name: {
                required: true,
                serialized_name: 'properties.hostName',
                type: {
                  name: 'String'
                }
              },
              http_port: {
                required: false,
                serialized_name: 'properties.httpPort',
                type: {
                  name: 'Number'
                }
              },
              https_port: {
                required: false,
                serialized_name: 'properties.httpsPort',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
azure_mgmt_cdn-0.7.0 lib/generated/azure_mgmt_cdn/models/origin_parameters.rb
azure_mgmt_cdn-0.6.0 lib/generated/azure_mgmt_cdn/models/origin_parameters.rb
azure_mgmt_cdn-0.5.0 lib/generated/azure_mgmt_cdn/models/origin_parameters.rb
azure_mgmt_cdn-0.4.0 lib/generated/azure_mgmt_cdn/models/origin_parameters.rb