Class: Azure::ARM::CDN::Models::CustomDomain

Inherits:
MsRestAzure::Resource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/generated/azure_mgmt_cdn/models/custom_domain.rb

Overview

CDN CustomDomain represents a mapping between a user-specified domain name and a CDN endpoint. This is to use custom domain names to represent the URLs for branding purposes.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#host_nameString

name.

Returns:

  • (String)

    The host name of the custom domain. Must be a domain



19
20
21
# File 'lib/generated/azure_mgmt_cdn/models/custom_domain.rb', line 19

def host_name
  @host_name
end

#provisioning_stateString

Returns Provisioning status of the custom domain.

Returns:

  • (String)

    Provisioning status of the custom domain.



32
33
34
# File 'lib/generated/azure_mgmt_cdn/models/custom_domain.rb', line 32

def provisioning_state
  @provisioning_state
end

#resource_stateCustomDomainResourceState

domain. Possible values include: ‘Creating’, ‘Active’, ‘Deleting’

Returns:



23
24
25
# File 'lib/generated/azure_mgmt_cdn/models/custom_domain.rb', line 23

def resource_state
  @resource_state
end

#validation_dataString

delivering CDN to some regions due to local compliance reasons. (e.g. ICP license number of a custom domain is required to deliver content in China.)

Returns:

  • (String)

    Special validation or data may be required when



29
30
31
# File 'lib/generated/azure_mgmt_cdn/models/custom_domain.rb', line 29

def validation_data
  @validation_data
end

Class Method Details

.mapperObject

Mapper for CustomDomain class as Ruby Hash. This will be used for serialization/deserialization.



39
40
41
42
43
44
45
46
47
48
49
50
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
94
95
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
# File 'lib/generated/azure_mgmt_cdn/models/custom_domain.rb', line 39

def self.mapper()
  {
    required: false,
    serialized_name: 'CustomDomain',
    type: {
      name: 'Composite',
      class_name: 'CustomDomain',
      model_properties: {
        id: {
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        location: {
          required: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        tags: {
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        host_name: {
          required: true,
          serialized_name: 'properties.hostName',
          type: {
            name: 'String'
          }
        },
        resource_state: {
          required: false,
          read_only: true,
          serialized_name: 'properties.resourceState',
          type: {
            name: 'String'
          }
        },
        validation_data: {
          required: false,
          serialized_name: 'properties.validationData',
          type: {
            name: 'String'
          }
        },
        provisioning_state: {
          required: false,
          read_only: true,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end