azure_mgmt_reservations 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations.rb +53 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/models/applied_reservation_list.rb +66 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/models/applied_reservations.rb +85 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/models/catalog.rb +166 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/models/error.rb +48 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/models/extended_error_info.rb +84 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/models/extended_status_info.rb +61 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/models/kind.rb +15 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/models/merge_request.rb +56 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/models/operation_display.rb +80 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/models/operation_list.rb +98 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/models/operation_response.rb +70 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/models/patch.rb +66 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/models/reservation_list.rb +98 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/models/reservation_merge_properties.rb +70 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/models/reservation_order_list.rb +98 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/models/reservation_order_response.rb +187 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/models/reservation_properties.rb +176 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/models/reservation_response.rb +137 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/models/reservation_split_properties.rb +70 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/models/sku_capability.rb +58 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/models/sku_name.rb +47 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/models/sku_restriction.rb +79 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/models/split_request.rb +69 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/module_definition.rb +9 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/operation.rb +232 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/reservation.rb +1125 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/reservation_order.rb +338 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/reservations_management_client.rb +339 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations.rb +58 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/applied_reservation_list.rb +66 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/applied_reservations.rb +85 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/applied_scope_type.rb +16 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/catalog.rb +143 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/error.rb +48 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/error_response_code.rb +69 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/extended_error_info.rb +84 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/extended_status_info.rb +61 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/instance_flexibility.rb +17 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/merge_request.rb +56 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/operation_display.rb +80 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/operation_list.rb +98 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/operation_response.rb +70 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/patch.rb +89 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_list.rb +98 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_merge_properties.rb +70 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_order_list.rb +98 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_order_response.rb +184 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_properties.rb +208 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_response.rb +120 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_split_properties.rb +70 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_status_code.rb +23 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_term.rb +16 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/reserved_resource_type.rb +19 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/sku_name.rb +47 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/sku_property.rb +58 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/sku_restriction.rb +79 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/split_request.rb +69 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/module_definition.rb +9 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/operation.rb +232 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/reservation.rb +1125 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/reservation_order.rb +338 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/reservations_management_client.rb +352 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations.rb +76 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/applied_reservation_list.rb +66 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/applied_reservations.rb +85 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/applied_scope_type.rb +16 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/calculate_price_response.rb +48 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/calculate_price_response_properties.rb +130 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/calculate_price_response_properties_billing_currency_total.rb +59 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/calculate_price_response_properties_pricing_currency_total.rb +59 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/catalog.rb +171 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/error.rb +48 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/error_response_code.rb +69 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/extended_error_info.rb +84 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/extended_status_info.rb +61 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/instance_flexibility.rb +16 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/merge_request.rb +56 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/operation_display.rb +80 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/operation_list.rb +98 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/operation_response.rb +70 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/patch.rb +111 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/patch_properties_renew_properties.rb +48 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/payment_detail.rb +118 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/payment_status.rb +18 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/price.rb +59 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/properties.rb +48 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/purchase_request.rb +183 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/purchase_request_properties_reserved_resource_properties.rb +48 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/renew_properties_response.rb +76 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/renew_properties_response_billing_currency_total.rb +59 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/renew_properties_response_pricing_currency_total.rb +60 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_billing_plan.rb +16 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_list.rb +98 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_merge_properties.rb +70 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_order_billing_plan_information.rb +91 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_order_list.rb +98 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_order_response.rb +207 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_properties.rb +290 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_response.rb +120 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_split_properties.rb +70 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_status_code.rb +23 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_term.rb +16 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reserved_resource_type.rb +22 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/scope_properties.rb +58 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/sku_name.rb +47 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/sku_property.rb +58 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/sku_restriction.rb +79 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/split_request.rb +69 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/subscription_scope_properties.rb +56 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/module_definition.rb +9 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/operation.rb +232 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/reservation.rb +1266 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/reservation_order.rb +607 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/reservations_management_client.rb +355 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations.rb +54 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/auto_quota_increase.rb +223 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/actions.rb +47 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/aqi_settings.rb +46 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/auto_quota_increase_detail.rb +119 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/create_generic_quota_request_parameters.rb +55 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/current_quota_limit.rb +71 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/current_quota_limit_base.rb +47 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/email_action.rb +46 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/email_actions.rb +55 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/exception_response.rb +47 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/phone_action.rb +57 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/quota_limits.rb +99 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/quota_limits_response.rb +68 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/quota_properties.rb +120 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/quota_request_details.rb +128 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/quota_request_details_list.rb +99 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/quota_request_one_resource_submit_response.rb +121 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/quota_request_properties.rb +92 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/quota_request_submit_response.rb +83 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/quota_request_submit_response201.rb +96 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/resource_name.rb +59 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/service_error.rb +78 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/service_error_detail.rb +59 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/sub_request.rb +118 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/support_request_action.rb +142 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/module_definition.rb +9 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/quota.rb +805 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/quota_request_status.rb +397 -0
- data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/reservations_management_client.rb +136 -0
- data/lib/azure_mgmt_reservations.rb +9 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/modules/reservations_profile_module.rb +359 -0
- data/lib/profiles/latest/reservations_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/reservations_module_definition.rb +8 -0
- data/lib/version.rb +7 -0
- metadata +269 -0
data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_properties.rb
ADDED
@@ -0,0 +1,208 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Reservations::Mgmt::V2018_06_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class ReservationProperties
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [ReservedResourceType] Possible values include:
|
17
|
+
# 'VirtualMachines', 'SqlDatabases', 'SuseLinux', 'CosmosDb', 'RedHat'
|
18
|
+
attr_accessor :reserved_resource_type
|
19
|
+
|
20
|
+
# @return [InstanceFlexibility] Possible values include: 'On', 'Off',
|
21
|
+
# 'NotSupported'
|
22
|
+
attr_accessor :instance_flexibility
|
23
|
+
|
24
|
+
# @return [String] Friendly name for user to easily identify the
|
25
|
+
# reservation
|
26
|
+
attr_accessor :display_name
|
27
|
+
|
28
|
+
# @return [Array<String>]
|
29
|
+
attr_accessor :applied_scopes
|
30
|
+
|
31
|
+
# @return [AppliedScopeType] Possible values include: 'Single', 'Shared'
|
32
|
+
attr_accessor :applied_scope_type
|
33
|
+
|
34
|
+
# @return [Integer] Quantity of the SKUs that are part of the
|
35
|
+
# Reservation.
|
36
|
+
attr_accessor :quantity
|
37
|
+
|
38
|
+
# @return [String] Current state of the reservation.
|
39
|
+
attr_accessor :provisioning_state
|
40
|
+
|
41
|
+
# @return [DateTime] DateTime of the Reservation starting when this
|
42
|
+
# version is effective from.
|
43
|
+
attr_accessor :effective_date_time
|
44
|
+
|
45
|
+
# @return [DateTime] DateTime of the last time the Reservation was
|
46
|
+
# updated.
|
47
|
+
attr_accessor :last_updated_date_time
|
48
|
+
|
49
|
+
# @return [Date] This is the date when the Reservation will expire.
|
50
|
+
attr_accessor :expiry_date
|
51
|
+
|
52
|
+
# @return [String] Description of the SKU in english.
|
53
|
+
attr_accessor :sku_description
|
54
|
+
|
55
|
+
# @return [ExtendedStatusInfo]
|
56
|
+
attr_accessor :extended_status_info
|
57
|
+
|
58
|
+
# @return [ReservationSplitProperties]
|
59
|
+
attr_accessor :split_properties
|
60
|
+
|
61
|
+
# @return [ReservationMergeProperties]
|
62
|
+
attr_accessor :merge_properties
|
63
|
+
|
64
|
+
|
65
|
+
#
|
66
|
+
# Mapper for ReservationProperties class as Ruby Hash.
|
67
|
+
# This will be used for serialization/deserialization.
|
68
|
+
#
|
69
|
+
def self.mapper()
|
70
|
+
{
|
71
|
+
client_side_validation: true,
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'ReservationProperties',
|
74
|
+
type: {
|
75
|
+
name: 'Composite',
|
76
|
+
class_name: 'ReservationProperties',
|
77
|
+
model_properties: {
|
78
|
+
reserved_resource_type: {
|
79
|
+
client_side_validation: true,
|
80
|
+
required: false,
|
81
|
+
serialized_name: 'reservedResourceType',
|
82
|
+
type: {
|
83
|
+
name: 'String'
|
84
|
+
}
|
85
|
+
},
|
86
|
+
instance_flexibility: {
|
87
|
+
client_side_validation: true,
|
88
|
+
required: false,
|
89
|
+
serialized_name: 'instanceFlexibility',
|
90
|
+
type: {
|
91
|
+
name: 'String'
|
92
|
+
}
|
93
|
+
},
|
94
|
+
display_name: {
|
95
|
+
client_side_validation: true,
|
96
|
+
required: false,
|
97
|
+
serialized_name: 'displayName',
|
98
|
+
type: {
|
99
|
+
name: 'String'
|
100
|
+
}
|
101
|
+
},
|
102
|
+
applied_scopes: {
|
103
|
+
client_side_validation: true,
|
104
|
+
required: false,
|
105
|
+
serialized_name: 'appliedScopes',
|
106
|
+
type: {
|
107
|
+
name: 'Sequence',
|
108
|
+
element: {
|
109
|
+
client_side_validation: true,
|
110
|
+
required: false,
|
111
|
+
serialized_name: 'StringElementType',
|
112
|
+
type: {
|
113
|
+
name: 'String'
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
117
|
+
},
|
118
|
+
applied_scope_type: {
|
119
|
+
client_side_validation: true,
|
120
|
+
required: false,
|
121
|
+
serialized_name: 'appliedScopeType',
|
122
|
+
type: {
|
123
|
+
name: 'String'
|
124
|
+
}
|
125
|
+
},
|
126
|
+
quantity: {
|
127
|
+
client_side_validation: true,
|
128
|
+
required: false,
|
129
|
+
serialized_name: 'quantity',
|
130
|
+
type: {
|
131
|
+
name: 'Number'
|
132
|
+
}
|
133
|
+
},
|
134
|
+
provisioning_state: {
|
135
|
+
client_side_validation: true,
|
136
|
+
required: false,
|
137
|
+
serialized_name: 'provisioningState',
|
138
|
+
type: {
|
139
|
+
name: 'String'
|
140
|
+
}
|
141
|
+
},
|
142
|
+
effective_date_time: {
|
143
|
+
client_side_validation: true,
|
144
|
+
required: false,
|
145
|
+
serialized_name: 'effectiveDateTime',
|
146
|
+
type: {
|
147
|
+
name: 'DateTime'
|
148
|
+
}
|
149
|
+
},
|
150
|
+
last_updated_date_time: {
|
151
|
+
client_side_validation: true,
|
152
|
+
required: false,
|
153
|
+
read_only: true,
|
154
|
+
serialized_name: 'lastUpdatedDateTime',
|
155
|
+
type: {
|
156
|
+
name: 'DateTime'
|
157
|
+
}
|
158
|
+
},
|
159
|
+
expiry_date: {
|
160
|
+
client_side_validation: true,
|
161
|
+
required: false,
|
162
|
+
serialized_name: 'expiryDate',
|
163
|
+
type: {
|
164
|
+
name: 'Date'
|
165
|
+
}
|
166
|
+
},
|
167
|
+
sku_description: {
|
168
|
+
client_side_validation: true,
|
169
|
+
required: false,
|
170
|
+
serialized_name: 'skuDescription',
|
171
|
+
type: {
|
172
|
+
name: 'String'
|
173
|
+
}
|
174
|
+
},
|
175
|
+
extended_status_info: {
|
176
|
+
client_side_validation: true,
|
177
|
+
required: false,
|
178
|
+
serialized_name: 'extendedStatusInfo',
|
179
|
+
type: {
|
180
|
+
name: 'Composite',
|
181
|
+
class_name: 'ExtendedStatusInfo'
|
182
|
+
}
|
183
|
+
},
|
184
|
+
split_properties: {
|
185
|
+
client_side_validation: true,
|
186
|
+
required: false,
|
187
|
+
serialized_name: 'splitProperties',
|
188
|
+
type: {
|
189
|
+
name: 'Composite',
|
190
|
+
class_name: 'ReservationSplitProperties'
|
191
|
+
}
|
192
|
+
},
|
193
|
+
merge_properties: {
|
194
|
+
client_side_validation: true,
|
195
|
+
required: false,
|
196
|
+
serialized_name: 'mergeProperties',
|
197
|
+
type: {
|
198
|
+
name: 'Composite',
|
199
|
+
class_name: 'ReservationMergeProperties'
|
200
|
+
}
|
201
|
+
}
|
202
|
+
}
|
203
|
+
}
|
204
|
+
}
|
205
|
+
end
|
206
|
+
end
|
207
|
+
end
|
208
|
+
end
|
@@ -0,0 +1,120 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Reservations::Mgmt::V2018_06_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class ReservationResponse
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] The Azure Region where the reserved resource lives.
|
17
|
+
attr_accessor :location
|
18
|
+
|
19
|
+
# @return [Integer]
|
20
|
+
attr_accessor :etag
|
21
|
+
|
22
|
+
# @return [String] Identifier of the reservation
|
23
|
+
attr_accessor :id
|
24
|
+
|
25
|
+
# @return [String] Name of the reservation
|
26
|
+
attr_accessor :name
|
27
|
+
|
28
|
+
# @return [SkuName]
|
29
|
+
attr_accessor :sku
|
30
|
+
|
31
|
+
# @return [ReservationProperties]
|
32
|
+
attr_accessor :properties
|
33
|
+
|
34
|
+
# @return [String] Type of resource.
|
35
|
+
# "Microsoft.Capacity/reservationOrders/reservations"
|
36
|
+
attr_accessor :type
|
37
|
+
|
38
|
+
|
39
|
+
#
|
40
|
+
# Mapper for ReservationResponse class as Ruby Hash.
|
41
|
+
# This will be used for serialization/deserialization.
|
42
|
+
#
|
43
|
+
def self.mapper()
|
44
|
+
{
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'ReservationResponse',
|
48
|
+
type: {
|
49
|
+
name: 'Composite',
|
50
|
+
class_name: 'ReservationResponse',
|
51
|
+
model_properties: {
|
52
|
+
location: {
|
53
|
+
client_side_validation: true,
|
54
|
+
required: false,
|
55
|
+
read_only: true,
|
56
|
+
serialized_name: 'location',
|
57
|
+
type: {
|
58
|
+
name: 'String'
|
59
|
+
}
|
60
|
+
},
|
61
|
+
etag: {
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'etag',
|
65
|
+
type: {
|
66
|
+
name: 'Number'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
id: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
read_only: true,
|
73
|
+
serialized_name: 'id',
|
74
|
+
type: {
|
75
|
+
name: 'String'
|
76
|
+
}
|
77
|
+
},
|
78
|
+
name: {
|
79
|
+
client_side_validation: true,
|
80
|
+
required: false,
|
81
|
+
read_only: true,
|
82
|
+
serialized_name: 'name',
|
83
|
+
type: {
|
84
|
+
name: 'String'
|
85
|
+
}
|
86
|
+
},
|
87
|
+
sku: {
|
88
|
+
client_side_validation: true,
|
89
|
+
required: false,
|
90
|
+
serialized_name: 'sku',
|
91
|
+
type: {
|
92
|
+
name: 'Composite',
|
93
|
+
class_name: 'SkuName'
|
94
|
+
}
|
95
|
+
},
|
96
|
+
properties: {
|
97
|
+
client_side_validation: true,
|
98
|
+
required: false,
|
99
|
+
serialized_name: 'properties',
|
100
|
+
type: {
|
101
|
+
name: 'Composite',
|
102
|
+
class_name: 'ReservationProperties'
|
103
|
+
}
|
104
|
+
},
|
105
|
+
type: {
|
106
|
+
client_side_validation: true,
|
107
|
+
required: false,
|
108
|
+
read_only: true,
|
109
|
+
serialized_name: 'type',
|
110
|
+
type: {
|
111
|
+
name: 'String'
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_split_properties.rb
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Reservations::Mgmt::V2018_06_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class ReservationSplitProperties
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [Array<String>] List of destination Resource Id that are
|
17
|
+
# created due to split. Format of the resource Id is
|
18
|
+
# /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}
|
19
|
+
attr_accessor :split_destinations
|
20
|
+
|
21
|
+
# @return [String] Resource Id of the Reservation from which this is
|
22
|
+
# split. Format of the resource Id is
|
23
|
+
# /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}
|
24
|
+
attr_accessor :split_source
|
25
|
+
|
26
|
+
|
27
|
+
#
|
28
|
+
# Mapper for ReservationSplitProperties class as Ruby Hash.
|
29
|
+
# This will be used for serialization/deserialization.
|
30
|
+
#
|
31
|
+
def self.mapper()
|
32
|
+
{
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'ReservationSplitProperties',
|
36
|
+
type: {
|
37
|
+
name: 'Composite',
|
38
|
+
class_name: 'ReservationSplitProperties',
|
39
|
+
model_properties: {
|
40
|
+
split_destinations: {
|
41
|
+
client_side_validation: true,
|
42
|
+
required: false,
|
43
|
+
serialized_name: 'splitDestinations',
|
44
|
+
type: {
|
45
|
+
name: 'Sequence',
|
46
|
+
element: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: false,
|
49
|
+
serialized_name: 'StringElementType',
|
50
|
+
type: {
|
51
|
+
name: 'String'
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
},
|
56
|
+
split_source: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: false,
|
59
|
+
serialized_name: 'splitSource',
|
60
|
+
type: {
|
61
|
+
name: 'String'
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_status_code.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Reservations::Mgmt::V2018_06_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for ReservationStatusCode
|
10
|
+
#
|
11
|
+
module ReservationStatusCode
|
12
|
+
None = "None"
|
13
|
+
Pending = "Pending"
|
14
|
+
Active = "Active"
|
15
|
+
PurchaseError = "PurchaseError"
|
16
|
+
PaymentInstrumentError = "PaymentInstrumentError"
|
17
|
+
Split = "Split"
|
18
|
+
Merged = "Merged"
|
19
|
+
Expired = "Expired"
|
20
|
+
Succeeded = "Succeeded"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Reservations::Mgmt::V2018_06_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for ReservationTerm
|
10
|
+
#
|
11
|
+
module ReservationTerm
|
12
|
+
P1Y = "P1Y"
|
13
|
+
P3Y = "P3Y"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/reserved_resource_type.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Reservations::Mgmt::V2018_06_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for ReservedResourceType
|
10
|
+
#
|
11
|
+
module ReservedResourceType
|
12
|
+
VirtualMachines = "VirtualMachines"
|
13
|
+
SqlDatabases = "SqlDatabases"
|
14
|
+
SuseLinux = "SuseLinux"
|
15
|
+
CosmosDb = "CosmosDb"
|
16
|
+
RedHat = "RedHat"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|