Class: Azure::Web::Mgmt::V2016_03_01::Models::ValidateRequest

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-03-01/generated/azure_mgmt_web/models/validate_request.rb

Overview

Resource validation request content.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#capacityInteger

VM’s).



42
43
44
# File 'lib/2016-03-01/generated/azure_mgmt_web/models/validate_request.rb', line 42

def capacity
  @capacity
end

#hosting_environmentString

Service plan should be created.



46
47
48
# File 'lib/2016-03-01/generated/azure_mgmt_web/models/validate_request.rb', line 46

def hosting_environment
  @hosting_environment
end

#is_spotBoolean

instances; otherwise, false.



38
39
40
# File 'lib/2016-03-01/generated/azure_mgmt_web/models/validate_request.rb', line 38

def is_spot
  @is_spot
end

#locationString



23
24
25
# File 'lib/2016-03-01/generated/azure_mgmt_web/models/validate_request.rb', line 23

def location
  @location
end

#nameString



16
17
18
# File 'lib/2016-03-01/generated/azure_mgmt_web/models/validate_request.rb', line 16

def name
  @name
end

#need_linux_workersBoolean

workers; otherwise, false.



34
35
36
# File 'lib/2016-03-01/generated/azure_mgmt_web/models/validate_request.rb', line 34

def need_linux_workers
  @need_linux_workers
end

#server_farm_idString

the app.



27
28
29
# File 'lib/2016-03-01/generated/azure_mgmt_web/models/validate_request.rb', line 27

def server_farm_id
  @server_farm_id
end

#sku_nameString



30
31
32
# File 'lib/2016-03-01/generated/azure_mgmt_web/models/validate_request.rb', line 30

def sku_name
  @sku_name
end

#typeValidateResourceTypes

Possible values include: ‘ServerFarm’, ‘Site’



20
21
22
# File 'lib/2016-03-01/generated/azure_mgmt_web/models/validate_request.rb', line 20

def type
  @type
end

Class Method Details

.mapperObject

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



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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# File 'lib/2016-03-01/generated/azure_mgmt_web/models/validate_request.rb', line 53

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ValidateRequest',
    type: {
      name: 'Composite',
      class_name: 'ValidateRequest',
      model_properties: {
        name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        location: {
          client_side_validation: true,
          required: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        server_farm_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.serverFarmId',
          type: {
            name: 'String'
          }
        },
        sku_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.skuName',
          type: {
            name: 'String'
          }
        },
        need_linux_workers: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.needLinuxWorkers',
          type: {
            name: 'Boolean'
          }
        },
        is_spot: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.isSpot',
          type: {
            name: 'Boolean'
          }
        },
        capacity: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.capacity',
          constraints: {
            InclusiveMinimum: 1
          },
          type: {
            name: 'Number'
          }
        },
        hosting_environment: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.hostingEnvironment',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end