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/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_order_list.rb
ADDED
@@ -0,0 +1,98 @@
|
|
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::V2019_04_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
class ReservationOrderList
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<ReservationOrderResponse>]
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] Url to get the next page of reservationOrders.
|
20
|
+
attr_accessor :next_link
|
21
|
+
|
22
|
+
# return [Proc] with next page method call.
|
23
|
+
attr_accessor :next_method
|
24
|
+
|
25
|
+
#
|
26
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
27
|
+
#
|
28
|
+
# @return [Array<ReservationOrderResponse>] operation results.
|
29
|
+
#
|
30
|
+
def get_all_items
|
31
|
+
items = @value
|
32
|
+
page = self
|
33
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
34
|
+
page = page.get_next_page
|
35
|
+
items.concat(page.value)
|
36
|
+
end
|
37
|
+
items
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Gets the next page of results.
|
42
|
+
#
|
43
|
+
# @return [ReservationOrderList] with next page content.
|
44
|
+
#
|
45
|
+
def get_next_page
|
46
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
47
|
+
unless response.nil?
|
48
|
+
@next_link = response.body.next_link
|
49
|
+
@value = response.body.value
|
50
|
+
self
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# Mapper for ReservationOrderList class as Ruby Hash.
|
56
|
+
# This will be used for serialization/deserialization.
|
57
|
+
#
|
58
|
+
def self.mapper()
|
59
|
+
{
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'ReservationOrderList',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'ReservationOrderList',
|
66
|
+
model_properties: {
|
67
|
+
value: {
|
68
|
+
client_side_validation: true,
|
69
|
+
required: false,
|
70
|
+
serialized_name: 'value',
|
71
|
+
type: {
|
72
|
+
name: 'Sequence',
|
73
|
+
element: {
|
74
|
+
client_side_validation: true,
|
75
|
+
required: false,
|
76
|
+
serialized_name: 'ReservationOrderResponseElementType',
|
77
|
+
type: {
|
78
|
+
name: 'Composite',
|
79
|
+
class_name: 'ReservationOrderResponse'
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
},
|
84
|
+
next_link: {
|
85
|
+
client_side_validation: true,
|
86
|
+
required: false,
|
87
|
+
serialized_name: 'nextLink',
|
88
|
+
type: {
|
89
|
+
name: 'String'
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_order_response.rb
ADDED
@@ -0,0 +1,207 @@
|
|
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::V2019_04_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class ReservationOrderResponse
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [Integer]
|
17
|
+
attr_accessor :etag
|
18
|
+
|
19
|
+
# @return [String] Identifier of the reservation
|
20
|
+
attr_accessor :id
|
21
|
+
|
22
|
+
# @return [String] Name of the reservation
|
23
|
+
attr_accessor :name
|
24
|
+
|
25
|
+
# @return [String] Friendly name for user to easily identified the
|
26
|
+
# reservation.
|
27
|
+
attr_accessor :display_name
|
28
|
+
|
29
|
+
# @return [DateTime] This is the DateTime when the reservation was
|
30
|
+
# initially requested for purchase.
|
31
|
+
attr_accessor :request_date_time
|
32
|
+
|
33
|
+
# @return [DateTime] This is the DateTime when the reservation was
|
34
|
+
# created.
|
35
|
+
attr_accessor :created_date_time
|
36
|
+
|
37
|
+
# @return [Date] This is the date when the Reservation will expire.
|
38
|
+
attr_accessor :expiry_date
|
39
|
+
|
40
|
+
# @return [Integer]
|
41
|
+
attr_accessor :original_quantity
|
42
|
+
|
43
|
+
# @return [ReservationTerm] Possible values include: 'P1Y', 'P3Y'
|
44
|
+
attr_accessor :term
|
45
|
+
|
46
|
+
# @return [String] Current state of the reservation.
|
47
|
+
attr_accessor :provisioning_state
|
48
|
+
|
49
|
+
# @return [ReservationBillingPlan] Possible values include: 'Upfront',
|
50
|
+
# 'Monthly'
|
51
|
+
attr_accessor :billing_plan
|
52
|
+
|
53
|
+
# @return [ReservationOrderBillingPlanInformation]
|
54
|
+
attr_accessor :plan_information
|
55
|
+
|
56
|
+
# @return [Array<ReservationResponse>]
|
57
|
+
attr_accessor :reservations
|
58
|
+
|
59
|
+
# @return [String] Type of resource. "Microsoft.Capacity/reservations"
|
60
|
+
attr_accessor :type
|
61
|
+
|
62
|
+
|
63
|
+
#
|
64
|
+
# Mapper for ReservationOrderResponse class as Ruby Hash.
|
65
|
+
# This will be used for serialization/deserialization.
|
66
|
+
#
|
67
|
+
def self.mapper()
|
68
|
+
{
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'ReservationOrderResponse',
|
72
|
+
type: {
|
73
|
+
name: 'Composite',
|
74
|
+
class_name: 'ReservationOrderResponse',
|
75
|
+
model_properties: {
|
76
|
+
etag: {
|
77
|
+
client_side_validation: true,
|
78
|
+
required: false,
|
79
|
+
serialized_name: 'etag',
|
80
|
+
type: {
|
81
|
+
name: 'Number'
|
82
|
+
}
|
83
|
+
},
|
84
|
+
id: {
|
85
|
+
client_side_validation: true,
|
86
|
+
required: false,
|
87
|
+
read_only: true,
|
88
|
+
serialized_name: 'id',
|
89
|
+
type: {
|
90
|
+
name: 'String'
|
91
|
+
}
|
92
|
+
},
|
93
|
+
name: {
|
94
|
+
client_side_validation: true,
|
95
|
+
required: false,
|
96
|
+
read_only: true,
|
97
|
+
serialized_name: 'name',
|
98
|
+
type: {
|
99
|
+
name: 'String'
|
100
|
+
}
|
101
|
+
},
|
102
|
+
display_name: {
|
103
|
+
client_side_validation: true,
|
104
|
+
required: false,
|
105
|
+
serialized_name: 'properties.displayName',
|
106
|
+
type: {
|
107
|
+
name: 'String'
|
108
|
+
}
|
109
|
+
},
|
110
|
+
request_date_time: {
|
111
|
+
client_side_validation: true,
|
112
|
+
required: false,
|
113
|
+
serialized_name: 'properties.requestDateTime',
|
114
|
+
type: {
|
115
|
+
name: 'DateTime'
|
116
|
+
}
|
117
|
+
},
|
118
|
+
created_date_time: {
|
119
|
+
client_side_validation: true,
|
120
|
+
required: false,
|
121
|
+
serialized_name: 'properties.createdDateTime',
|
122
|
+
type: {
|
123
|
+
name: 'DateTime'
|
124
|
+
}
|
125
|
+
},
|
126
|
+
expiry_date: {
|
127
|
+
client_side_validation: true,
|
128
|
+
required: false,
|
129
|
+
serialized_name: 'properties.expiryDate',
|
130
|
+
type: {
|
131
|
+
name: 'Date'
|
132
|
+
}
|
133
|
+
},
|
134
|
+
original_quantity: {
|
135
|
+
client_side_validation: true,
|
136
|
+
required: false,
|
137
|
+
serialized_name: 'properties.originalQuantity',
|
138
|
+
type: {
|
139
|
+
name: 'Number'
|
140
|
+
}
|
141
|
+
},
|
142
|
+
term: {
|
143
|
+
client_side_validation: true,
|
144
|
+
required: false,
|
145
|
+
serialized_name: 'properties.term',
|
146
|
+
type: {
|
147
|
+
name: 'String'
|
148
|
+
}
|
149
|
+
},
|
150
|
+
provisioning_state: {
|
151
|
+
client_side_validation: true,
|
152
|
+
required: false,
|
153
|
+
serialized_name: 'properties.provisioningState',
|
154
|
+
type: {
|
155
|
+
name: 'String'
|
156
|
+
}
|
157
|
+
},
|
158
|
+
billing_plan: {
|
159
|
+
client_side_validation: true,
|
160
|
+
required: false,
|
161
|
+
serialized_name: 'properties.billingPlan',
|
162
|
+
type: {
|
163
|
+
name: 'String'
|
164
|
+
}
|
165
|
+
},
|
166
|
+
plan_information: {
|
167
|
+
client_side_validation: true,
|
168
|
+
required: false,
|
169
|
+
serialized_name: 'properties.planInformation',
|
170
|
+
type: {
|
171
|
+
name: 'Composite',
|
172
|
+
class_name: 'ReservationOrderBillingPlanInformation'
|
173
|
+
}
|
174
|
+
},
|
175
|
+
reservations: {
|
176
|
+
client_side_validation: true,
|
177
|
+
required: false,
|
178
|
+
serialized_name: 'properties.reservations',
|
179
|
+
type: {
|
180
|
+
name: 'Sequence',
|
181
|
+
element: {
|
182
|
+
client_side_validation: true,
|
183
|
+
required: false,
|
184
|
+
serialized_name: 'ReservationResponseElementType',
|
185
|
+
type: {
|
186
|
+
name: 'Composite',
|
187
|
+
class_name: 'ReservationResponse'
|
188
|
+
}
|
189
|
+
}
|
190
|
+
}
|
191
|
+
},
|
192
|
+
type: {
|
193
|
+
client_side_validation: true,
|
194
|
+
required: false,
|
195
|
+
read_only: true,
|
196
|
+
serialized_name: 'type',
|
197
|
+
type: {
|
198
|
+
name: 'String'
|
199
|
+
}
|
200
|
+
}
|
201
|
+
}
|
202
|
+
}
|
203
|
+
}
|
204
|
+
end
|
205
|
+
end
|
206
|
+
end
|
207
|
+
end
|
data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_properties.rb
ADDED
@@ -0,0 +1,290 @@
|
|
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::V2019_04_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
|
+
# 'SqlDataWarehouse', 'VMwareCloudSimple', 'RedHatOsa'
|
19
|
+
attr_accessor :reserved_resource_type
|
20
|
+
|
21
|
+
# @return [InstanceFlexibility] Possible values include: 'On', 'Off'
|
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]
|
35
|
+
attr_accessor :quantity
|
36
|
+
|
37
|
+
# @return [String] Current state of the reservation.
|
38
|
+
attr_accessor :provisioning_state
|
39
|
+
|
40
|
+
# @return [DateTime] DateTime of the Reservation starting when this
|
41
|
+
# version is effective from.
|
42
|
+
attr_accessor :effective_date_time
|
43
|
+
|
44
|
+
# @return [DateTime] DateTime of the last time the Reservation was
|
45
|
+
# updated.
|
46
|
+
attr_accessor :last_updated_date_time
|
47
|
+
|
48
|
+
# @return [Date] This is the date when the Reservation will expire.
|
49
|
+
attr_accessor :expiry_date
|
50
|
+
|
51
|
+
# @return [String] Description of the SKU in english.
|
52
|
+
attr_accessor :sku_description
|
53
|
+
|
54
|
+
# @return [ExtendedStatusInfo]
|
55
|
+
attr_accessor :extended_status_info
|
56
|
+
|
57
|
+
# @return [ReservationBillingPlan] Possible values include: 'Upfront',
|
58
|
+
# 'Monthly'
|
59
|
+
attr_accessor :billing_plan
|
60
|
+
|
61
|
+
# @return [ReservationSplitProperties]
|
62
|
+
attr_accessor :split_properties
|
63
|
+
|
64
|
+
# @return [ReservationMergeProperties]
|
65
|
+
attr_accessor :merge_properties
|
66
|
+
|
67
|
+
# @return [String]
|
68
|
+
attr_accessor :billing_scope_id
|
69
|
+
|
70
|
+
# @return [Boolean]
|
71
|
+
attr_accessor :renew
|
72
|
+
|
73
|
+
# @return [String] Reservation Id of the reservation from which this
|
74
|
+
# reservation is renewed. Format of the resource Id is
|
75
|
+
# /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.
|
76
|
+
attr_accessor :renew_source
|
77
|
+
|
78
|
+
# @return [String] Reservation Id of the reservation which is purchased
|
79
|
+
# because of renew. Format of the resource Id is
|
80
|
+
# /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.
|
81
|
+
attr_accessor :renew_destination
|
82
|
+
|
83
|
+
# @return [RenewPropertiesResponse]
|
84
|
+
attr_accessor :renew_properties
|
85
|
+
|
86
|
+
# @return [ReservationTerm] Possible values include: 'P1Y', 'P3Y'
|
87
|
+
attr_accessor :term
|
88
|
+
|
89
|
+
|
90
|
+
#
|
91
|
+
# Mapper for ReservationProperties class as Ruby Hash.
|
92
|
+
# This will be used for serialization/deserialization.
|
93
|
+
#
|
94
|
+
def self.mapper()
|
95
|
+
{
|
96
|
+
client_side_validation: true,
|
97
|
+
required: false,
|
98
|
+
serialized_name: 'ReservationProperties',
|
99
|
+
type: {
|
100
|
+
name: 'Composite',
|
101
|
+
class_name: 'ReservationProperties',
|
102
|
+
model_properties: {
|
103
|
+
reserved_resource_type: {
|
104
|
+
client_side_validation: true,
|
105
|
+
required: false,
|
106
|
+
serialized_name: 'reservedResourceType',
|
107
|
+
type: {
|
108
|
+
name: 'String'
|
109
|
+
}
|
110
|
+
},
|
111
|
+
instance_flexibility: {
|
112
|
+
client_side_validation: true,
|
113
|
+
required: false,
|
114
|
+
serialized_name: 'instanceFlexibility',
|
115
|
+
type: {
|
116
|
+
name: 'String'
|
117
|
+
}
|
118
|
+
},
|
119
|
+
display_name: {
|
120
|
+
client_side_validation: true,
|
121
|
+
required: false,
|
122
|
+
serialized_name: 'displayName',
|
123
|
+
type: {
|
124
|
+
name: 'String'
|
125
|
+
}
|
126
|
+
},
|
127
|
+
applied_scopes: {
|
128
|
+
client_side_validation: true,
|
129
|
+
required: false,
|
130
|
+
serialized_name: 'appliedScopes',
|
131
|
+
type: {
|
132
|
+
name: 'Sequence',
|
133
|
+
element: {
|
134
|
+
client_side_validation: true,
|
135
|
+
required: false,
|
136
|
+
serialized_name: 'StringElementType',
|
137
|
+
type: {
|
138
|
+
name: 'String'
|
139
|
+
}
|
140
|
+
}
|
141
|
+
}
|
142
|
+
},
|
143
|
+
applied_scope_type: {
|
144
|
+
client_side_validation: true,
|
145
|
+
required: false,
|
146
|
+
serialized_name: 'appliedScopeType',
|
147
|
+
type: {
|
148
|
+
name: 'String'
|
149
|
+
}
|
150
|
+
},
|
151
|
+
quantity: {
|
152
|
+
client_side_validation: true,
|
153
|
+
required: false,
|
154
|
+
serialized_name: 'quantity',
|
155
|
+
type: {
|
156
|
+
name: 'Number'
|
157
|
+
}
|
158
|
+
},
|
159
|
+
provisioning_state: {
|
160
|
+
client_side_validation: true,
|
161
|
+
required: false,
|
162
|
+
serialized_name: 'provisioningState',
|
163
|
+
type: {
|
164
|
+
name: 'String'
|
165
|
+
}
|
166
|
+
},
|
167
|
+
effective_date_time: {
|
168
|
+
client_side_validation: true,
|
169
|
+
required: false,
|
170
|
+
serialized_name: 'effectiveDateTime',
|
171
|
+
type: {
|
172
|
+
name: 'DateTime'
|
173
|
+
}
|
174
|
+
},
|
175
|
+
last_updated_date_time: {
|
176
|
+
client_side_validation: true,
|
177
|
+
required: false,
|
178
|
+
read_only: true,
|
179
|
+
serialized_name: 'lastUpdatedDateTime',
|
180
|
+
type: {
|
181
|
+
name: 'DateTime'
|
182
|
+
}
|
183
|
+
},
|
184
|
+
expiry_date: {
|
185
|
+
client_side_validation: true,
|
186
|
+
required: false,
|
187
|
+
serialized_name: 'expiryDate',
|
188
|
+
type: {
|
189
|
+
name: 'Date'
|
190
|
+
}
|
191
|
+
},
|
192
|
+
sku_description: {
|
193
|
+
client_side_validation: true,
|
194
|
+
required: false,
|
195
|
+
serialized_name: 'skuDescription',
|
196
|
+
type: {
|
197
|
+
name: 'String'
|
198
|
+
}
|
199
|
+
},
|
200
|
+
extended_status_info: {
|
201
|
+
client_side_validation: true,
|
202
|
+
required: false,
|
203
|
+
serialized_name: 'extendedStatusInfo',
|
204
|
+
type: {
|
205
|
+
name: 'Composite',
|
206
|
+
class_name: 'ExtendedStatusInfo'
|
207
|
+
}
|
208
|
+
},
|
209
|
+
billing_plan: {
|
210
|
+
client_side_validation: true,
|
211
|
+
required: false,
|
212
|
+
serialized_name: 'billingPlan',
|
213
|
+
type: {
|
214
|
+
name: 'String'
|
215
|
+
}
|
216
|
+
},
|
217
|
+
split_properties: {
|
218
|
+
client_side_validation: true,
|
219
|
+
required: false,
|
220
|
+
serialized_name: 'splitProperties',
|
221
|
+
type: {
|
222
|
+
name: 'Composite',
|
223
|
+
class_name: 'ReservationSplitProperties'
|
224
|
+
}
|
225
|
+
},
|
226
|
+
merge_properties: {
|
227
|
+
client_side_validation: true,
|
228
|
+
required: false,
|
229
|
+
serialized_name: 'mergeProperties',
|
230
|
+
type: {
|
231
|
+
name: 'Composite',
|
232
|
+
class_name: 'ReservationMergeProperties'
|
233
|
+
}
|
234
|
+
},
|
235
|
+
billing_scope_id: {
|
236
|
+
client_side_validation: true,
|
237
|
+
required: false,
|
238
|
+
serialized_name: 'billingScopeId',
|
239
|
+
type: {
|
240
|
+
name: 'String'
|
241
|
+
}
|
242
|
+
},
|
243
|
+
renew: {
|
244
|
+
client_side_validation: true,
|
245
|
+
required: false,
|
246
|
+
serialized_name: 'renew',
|
247
|
+
type: {
|
248
|
+
name: 'Boolean'
|
249
|
+
}
|
250
|
+
},
|
251
|
+
renew_source: {
|
252
|
+
client_side_validation: true,
|
253
|
+
required: false,
|
254
|
+
serialized_name: 'renewSource',
|
255
|
+
type: {
|
256
|
+
name: 'String'
|
257
|
+
}
|
258
|
+
},
|
259
|
+
renew_destination: {
|
260
|
+
client_side_validation: true,
|
261
|
+
required: false,
|
262
|
+
serialized_name: 'renewDestination',
|
263
|
+
type: {
|
264
|
+
name: 'String'
|
265
|
+
}
|
266
|
+
},
|
267
|
+
renew_properties: {
|
268
|
+
client_side_validation: true,
|
269
|
+
required: false,
|
270
|
+
serialized_name: 'renewProperties',
|
271
|
+
type: {
|
272
|
+
name: 'Composite',
|
273
|
+
class_name: 'RenewPropertiesResponse'
|
274
|
+
}
|
275
|
+
},
|
276
|
+
term: {
|
277
|
+
client_side_validation: true,
|
278
|
+
required: false,
|
279
|
+
serialized_name: 'term',
|
280
|
+
type: {
|
281
|
+
name: 'String'
|
282
|
+
}
|
283
|
+
}
|
284
|
+
}
|
285
|
+
}
|
286
|
+
}
|
287
|
+
end
|
288
|
+
end
|
289
|
+
end
|
290
|
+
end
|