azure_mgmt_reservations 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/2017-11-01/generated/azure_mgmt_reservations.rb +53 -0
  4. data/lib/2017-11-01/generated/azure_mgmt_reservations/models/applied_reservation_list.rb +66 -0
  5. data/lib/2017-11-01/generated/azure_mgmt_reservations/models/applied_reservations.rb +85 -0
  6. data/lib/2017-11-01/generated/azure_mgmt_reservations/models/catalog.rb +166 -0
  7. data/lib/2017-11-01/generated/azure_mgmt_reservations/models/error.rb +48 -0
  8. data/lib/2017-11-01/generated/azure_mgmt_reservations/models/extended_error_info.rb +84 -0
  9. data/lib/2017-11-01/generated/azure_mgmt_reservations/models/extended_status_info.rb +61 -0
  10. data/lib/2017-11-01/generated/azure_mgmt_reservations/models/kind.rb +15 -0
  11. data/lib/2017-11-01/generated/azure_mgmt_reservations/models/merge_request.rb +56 -0
  12. data/lib/2017-11-01/generated/azure_mgmt_reservations/models/operation_display.rb +80 -0
  13. data/lib/2017-11-01/generated/azure_mgmt_reservations/models/operation_list.rb +98 -0
  14. data/lib/2017-11-01/generated/azure_mgmt_reservations/models/operation_response.rb +70 -0
  15. data/lib/2017-11-01/generated/azure_mgmt_reservations/models/patch.rb +66 -0
  16. data/lib/2017-11-01/generated/azure_mgmt_reservations/models/reservation_list.rb +98 -0
  17. data/lib/2017-11-01/generated/azure_mgmt_reservations/models/reservation_merge_properties.rb +70 -0
  18. data/lib/2017-11-01/generated/azure_mgmt_reservations/models/reservation_order_list.rb +98 -0
  19. data/lib/2017-11-01/generated/azure_mgmt_reservations/models/reservation_order_response.rb +187 -0
  20. data/lib/2017-11-01/generated/azure_mgmt_reservations/models/reservation_properties.rb +176 -0
  21. data/lib/2017-11-01/generated/azure_mgmt_reservations/models/reservation_response.rb +137 -0
  22. data/lib/2017-11-01/generated/azure_mgmt_reservations/models/reservation_split_properties.rb +70 -0
  23. data/lib/2017-11-01/generated/azure_mgmt_reservations/models/sku_capability.rb +58 -0
  24. data/lib/2017-11-01/generated/azure_mgmt_reservations/models/sku_name.rb +47 -0
  25. data/lib/2017-11-01/generated/azure_mgmt_reservations/models/sku_restriction.rb +79 -0
  26. data/lib/2017-11-01/generated/azure_mgmt_reservations/models/split_request.rb +69 -0
  27. data/lib/2017-11-01/generated/azure_mgmt_reservations/module_definition.rb +9 -0
  28. data/lib/2017-11-01/generated/azure_mgmt_reservations/operation.rb +232 -0
  29. data/lib/2017-11-01/generated/azure_mgmt_reservations/reservation.rb +1125 -0
  30. data/lib/2017-11-01/generated/azure_mgmt_reservations/reservation_order.rb +338 -0
  31. data/lib/2017-11-01/generated/azure_mgmt_reservations/reservations_management_client.rb +339 -0
  32. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations.rb +58 -0
  33. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/applied_reservation_list.rb +66 -0
  34. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/applied_reservations.rb +85 -0
  35. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/applied_scope_type.rb +16 -0
  36. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/catalog.rb +143 -0
  37. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/error.rb +48 -0
  38. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/error_response_code.rb +69 -0
  39. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/extended_error_info.rb +84 -0
  40. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/extended_status_info.rb +61 -0
  41. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/instance_flexibility.rb +17 -0
  42. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/merge_request.rb +56 -0
  43. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/operation_display.rb +80 -0
  44. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/operation_list.rb +98 -0
  45. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/operation_response.rb +70 -0
  46. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/patch.rb +89 -0
  47. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_list.rb +98 -0
  48. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_merge_properties.rb +70 -0
  49. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_order_list.rb +98 -0
  50. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_order_response.rb +184 -0
  51. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_properties.rb +208 -0
  52. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_response.rb +120 -0
  53. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_split_properties.rb +70 -0
  54. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_status_code.rb +23 -0
  55. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_term.rb +16 -0
  56. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/reserved_resource_type.rb +19 -0
  57. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/sku_name.rb +47 -0
  58. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/sku_property.rb +58 -0
  59. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/sku_restriction.rb +79 -0
  60. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/models/split_request.rb +69 -0
  61. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/module_definition.rb +9 -0
  62. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/operation.rb +232 -0
  63. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/reservation.rb +1125 -0
  64. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/reservation_order.rb +338 -0
  65. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/reservations_management_client.rb +352 -0
  66. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations.rb +76 -0
  67. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/applied_reservation_list.rb +66 -0
  68. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/applied_reservations.rb +85 -0
  69. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/applied_scope_type.rb +16 -0
  70. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/calculate_price_response.rb +48 -0
  71. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/calculate_price_response_properties.rb +130 -0
  72. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/calculate_price_response_properties_billing_currency_total.rb +59 -0
  73. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/calculate_price_response_properties_pricing_currency_total.rb +59 -0
  74. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/catalog.rb +171 -0
  75. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/error.rb +48 -0
  76. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/error_response_code.rb +69 -0
  77. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/extended_error_info.rb +84 -0
  78. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/extended_status_info.rb +61 -0
  79. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/instance_flexibility.rb +16 -0
  80. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/merge_request.rb +56 -0
  81. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/operation_display.rb +80 -0
  82. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/operation_list.rb +98 -0
  83. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/operation_response.rb +70 -0
  84. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/patch.rb +111 -0
  85. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/patch_properties_renew_properties.rb +48 -0
  86. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/payment_detail.rb +118 -0
  87. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/payment_status.rb +18 -0
  88. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/price.rb +59 -0
  89. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/properties.rb +48 -0
  90. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/purchase_request.rb +183 -0
  91. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/purchase_request_properties_reserved_resource_properties.rb +48 -0
  92. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/renew_properties_response.rb +76 -0
  93. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/renew_properties_response_billing_currency_total.rb +59 -0
  94. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/renew_properties_response_pricing_currency_total.rb +60 -0
  95. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_billing_plan.rb +16 -0
  96. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_list.rb +98 -0
  97. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_merge_properties.rb +70 -0
  98. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_order_billing_plan_information.rb +91 -0
  99. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_order_list.rb +98 -0
  100. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_order_response.rb +207 -0
  101. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_properties.rb +290 -0
  102. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_response.rb +120 -0
  103. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_split_properties.rb +70 -0
  104. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_status_code.rb +23 -0
  105. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_term.rb +16 -0
  106. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reserved_resource_type.rb +22 -0
  107. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/scope_properties.rb +58 -0
  108. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/sku_name.rb +47 -0
  109. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/sku_property.rb +58 -0
  110. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/sku_restriction.rb +79 -0
  111. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/split_request.rb +69 -0
  112. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/subscription_scope_properties.rb +56 -0
  113. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/module_definition.rb +9 -0
  114. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/operation.rb +232 -0
  115. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/reservation.rb +1266 -0
  116. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/reservation_order.rb +607 -0
  117. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/reservations_management_client.rb +355 -0
  118. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations.rb +54 -0
  119. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/auto_quota_increase.rb +223 -0
  120. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/actions.rb +47 -0
  121. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/aqi_settings.rb +46 -0
  122. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/auto_quota_increase_detail.rb +119 -0
  123. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/create_generic_quota_request_parameters.rb +55 -0
  124. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/current_quota_limit.rb +71 -0
  125. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/current_quota_limit_base.rb +47 -0
  126. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/email_action.rb +46 -0
  127. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/email_actions.rb +55 -0
  128. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/exception_response.rb +47 -0
  129. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/phone_action.rb +57 -0
  130. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/quota_limits.rb +99 -0
  131. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/quota_limits_response.rb +68 -0
  132. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/quota_properties.rb +120 -0
  133. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/quota_request_details.rb +128 -0
  134. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/quota_request_details_list.rb +99 -0
  135. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/quota_request_one_resource_submit_response.rb +121 -0
  136. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/quota_request_properties.rb +92 -0
  137. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/quota_request_submit_response.rb +83 -0
  138. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/quota_request_submit_response201.rb +96 -0
  139. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/resource_name.rb +59 -0
  140. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/service_error.rb +78 -0
  141. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/service_error_detail.rb +59 -0
  142. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/sub_request.rb +118 -0
  143. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/models/support_request_action.rb +142 -0
  144. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/module_definition.rb +9 -0
  145. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/quota.rb +805 -0
  146. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/quota_request_status.rb +397 -0
  147. data/lib/2019-07-19-preview/generated/azure_mgmt_reservations/reservations_management_client.rb +136 -0
  148. data/lib/azure_mgmt_reservations.rb +9 -0
  149. data/lib/module_definition.rb +7 -0
  150. data/lib/profiles/latest/modules/reservations_profile_module.rb +359 -0
  151. data/lib/profiles/latest/reservations_latest_profile_client.rb +40 -0
  152. data/lib/profiles/latest/reservations_module_definition.rb +8 -0
  153. data/lib/version.rb +7 -0
  154. metadata +269 -0
@@ -0,0 +1,118 @@
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
+ # Information about payment related to a reservation order.
10
+ #
11
+ class PaymentDetail
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Date] Date when the payment needs to be done.
16
+ attr_accessor :due_date
17
+
18
+ # @return [Date] Date when the transaction is completed. Is null when it
19
+ # is scheduled.
20
+ attr_accessor :payment_date
21
+
22
+ # @return [Price] Amount in pricing currency. Tax not included.
23
+ attr_accessor :pricing_currency_total
24
+
25
+ # @return [Price] Amount charged in Billing currency. Tax not included.
26
+ # Is null for future payments
27
+ attr_accessor :billing_currency_total
28
+
29
+ # @return [String] Shows the Account that is charged for this payment.
30
+ attr_accessor :billing_account
31
+
32
+ # @return [PaymentStatus] Possible values include: 'Succeeded', 'Failed',
33
+ # 'Scheduled', 'Cancelled'
34
+ attr_accessor :status
35
+
36
+ # @return [ExtendedStatusInfo]
37
+ attr_accessor :extended_status_info
38
+
39
+
40
+ #
41
+ # Mapper for PaymentDetail class as Ruby Hash.
42
+ # This will be used for serialization/deserialization.
43
+ #
44
+ def self.mapper()
45
+ {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'PaymentDetail',
49
+ type: {
50
+ name: 'Composite',
51
+ class_name: 'PaymentDetail',
52
+ model_properties: {
53
+ due_date: {
54
+ client_side_validation: true,
55
+ required: false,
56
+ serialized_name: 'dueDate',
57
+ type: {
58
+ name: 'Date'
59
+ }
60
+ },
61
+ payment_date: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'paymentDate',
65
+ type: {
66
+ name: 'Date'
67
+ }
68
+ },
69
+ pricing_currency_total: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ serialized_name: 'pricingCurrencyTotal',
73
+ type: {
74
+ name: 'Composite',
75
+ class_name: 'Price'
76
+ }
77
+ },
78
+ billing_currency_total: {
79
+ client_side_validation: true,
80
+ required: false,
81
+ serialized_name: 'billingCurrencyTotal',
82
+ type: {
83
+ name: 'Composite',
84
+ class_name: 'Price'
85
+ }
86
+ },
87
+ billing_account: {
88
+ client_side_validation: true,
89
+ required: false,
90
+ serialized_name: 'billingAccount',
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ },
95
+ status: {
96
+ client_side_validation: true,
97
+ required: false,
98
+ serialized_name: 'status',
99
+ type: {
100
+ name: 'String'
101
+ }
102
+ },
103
+ extended_status_info: {
104
+ client_side_validation: true,
105
+ required: false,
106
+ serialized_name: 'extendedStatusInfo',
107
+ type: {
108
+ name: 'Composite',
109
+ class_name: 'ExtendedStatusInfo'
110
+ }
111
+ }
112
+ }
113
+ }
114
+ }
115
+ end
116
+ end
117
+ end
118
+ end
@@ -0,0 +1,18 @@
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
+ # Defines values for PaymentStatus
10
+ #
11
+ module PaymentStatus
12
+ Succeeded = "Succeeded"
13
+ Failed = "Failed"
14
+ Scheduled = "Scheduled"
15
+ Cancelled = "Cancelled"
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,59 @@
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 Price
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] The ISO 4217 3-letter currency code for the currency
17
+ # used by this purchase record.
18
+ attr_accessor :currency_code
19
+
20
+ # @return [Float]
21
+ attr_accessor :amount
22
+
23
+
24
+ #
25
+ # Mapper for Price class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ client_side_validation: true,
31
+ required: false,
32
+ serialized_name: 'Price',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'Price',
36
+ model_properties: {
37
+ currency_code: {
38
+ client_side_validation: true,
39
+ required: false,
40
+ serialized_name: 'currencyCode',
41
+ type: {
42
+ name: 'String'
43
+ }
44
+ },
45
+ amount: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'amount',
49
+ type: {
50
+ name: 'Double'
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,48 @@
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 Properties
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [SubscriptionScopeProperties]
17
+ attr_accessor :properties
18
+
19
+
20
+ #
21
+ # Mapper for Properties class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ client_side_validation: true,
27
+ required: false,
28
+ serialized_name: 'Properties',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'Properties',
32
+ model_properties: {
33
+ properties: {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'properties',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'SubscriptionScopeProperties'
40
+ }
41
+ }
42
+ }
43
+ }
44
+ }
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,183 @@
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 PurchaseRequest
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [SkuName]
17
+ attr_accessor :sku
18
+
19
+ # @return [String] The Azure Region where the reserved resource lives.
20
+ attr_accessor :location
21
+
22
+ # @return [ReservedResourceType] Possible values include:
23
+ # 'VirtualMachines', 'SqlDatabases', 'SuseLinux', 'CosmosDb', 'RedHat',
24
+ # 'SqlDataWarehouse', 'VMwareCloudSimple', 'RedHatOsa'
25
+ attr_accessor :reserved_resource_type
26
+
27
+ # @return [String]
28
+ attr_accessor :billing_scope_id
29
+
30
+ # @return [ReservationTerm] Possible values include: 'P1Y', 'P3Y'
31
+ attr_accessor :term
32
+
33
+ # @return [ReservationBillingPlan] Possible values include: 'Upfront',
34
+ # 'Monthly'
35
+ attr_accessor :billing_plan
36
+
37
+ # @return [Integer]
38
+ attr_accessor :quantity
39
+
40
+ # @return [String] Friendly name of the Reservation
41
+ attr_accessor :display_name
42
+
43
+ # @return [AppliedScopeType] Possible values include: 'Single', 'Shared'
44
+ attr_accessor :applied_scope_type
45
+
46
+ # @return [Array<String>]
47
+ attr_accessor :applied_scopes
48
+
49
+ # @return [Boolean]
50
+ attr_accessor :renew
51
+
52
+ # @return [PurchaseRequestPropertiesReservedResourceProperties]
53
+ # Properties specific to each reserved resource type. Not required if not
54
+ # applicable.
55
+ attr_accessor :reserved_resource_properties
56
+
57
+
58
+ #
59
+ # Mapper for PurchaseRequest class as Ruby Hash.
60
+ # This will be used for serialization/deserialization.
61
+ #
62
+ def self.mapper()
63
+ {
64
+ client_side_validation: true,
65
+ required: false,
66
+ serialized_name: 'PurchaseRequest',
67
+ type: {
68
+ name: 'Composite',
69
+ class_name: 'PurchaseRequest',
70
+ model_properties: {
71
+ sku: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ serialized_name: 'sku',
75
+ type: {
76
+ name: 'Composite',
77
+ class_name: 'SkuName'
78
+ }
79
+ },
80
+ location: {
81
+ client_side_validation: true,
82
+ required: false,
83
+ serialized_name: 'location',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ },
88
+ reserved_resource_type: {
89
+ client_side_validation: true,
90
+ required: false,
91
+ serialized_name: 'properties.reservedResourceType',
92
+ type: {
93
+ name: 'String'
94
+ }
95
+ },
96
+ billing_scope_id: {
97
+ client_side_validation: true,
98
+ required: false,
99
+ serialized_name: 'properties.billingScopeId',
100
+ type: {
101
+ name: 'String'
102
+ }
103
+ },
104
+ term: {
105
+ client_side_validation: true,
106
+ required: false,
107
+ serialized_name: 'properties.term',
108
+ type: {
109
+ name: 'String'
110
+ }
111
+ },
112
+ billing_plan: {
113
+ client_side_validation: true,
114
+ required: false,
115
+ serialized_name: 'properties.billingPlan',
116
+ type: {
117
+ name: 'String'
118
+ }
119
+ },
120
+ quantity: {
121
+ client_side_validation: true,
122
+ required: false,
123
+ serialized_name: 'properties.quantity',
124
+ type: {
125
+ name: 'Number'
126
+ }
127
+ },
128
+ display_name: {
129
+ client_side_validation: true,
130
+ required: false,
131
+ serialized_name: 'properties.displayName',
132
+ type: {
133
+ name: 'String'
134
+ }
135
+ },
136
+ applied_scope_type: {
137
+ client_side_validation: true,
138
+ required: false,
139
+ serialized_name: 'properties.appliedScopeType',
140
+ type: {
141
+ name: 'String'
142
+ }
143
+ },
144
+ applied_scopes: {
145
+ client_side_validation: true,
146
+ required: false,
147
+ serialized_name: 'properties.appliedScopes',
148
+ type: {
149
+ name: 'Sequence',
150
+ element: {
151
+ client_side_validation: true,
152
+ required: false,
153
+ serialized_name: 'StringElementType',
154
+ type: {
155
+ name: 'String'
156
+ }
157
+ }
158
+ }
159
+ },
160
+ renew: {
161
+ client_side_validation: true,
162
+ required: false,
163
+ serialized_name: 'properties.renew',
164
+ type: {
165
+ name: 'Boolean'
166
+ }
167
+ },
168
+ reserved_resource_properties: {
169
+ client_side_validation: true,
170
+ required: false,
171
+ serialized_name: 'properties.reservedResourceProperties',
172
+ type: {
173
+ name: 'Composite',
174
+ class_name: 'PurchaseRequestPropertiesReservedResourceProperties'
175
+ }
176
+ }
177
+ }
178
+ }
179
+ }
180
+ end
181
+ end
182
+ end
183
+ end
@@ -0,0 +1,48 @@
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
+ # Properties specific to each reserved resource type. Not required if not
10
+ # applicable.
11
+ #
12
+ class PurchaseRequestPropertiesReservedResourceProperties
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [InstanceFlexibility] Possible values include: 'On', 'Off'
17
+ attr_accessor :instance_flexibility
18
+
19
+
20
+ #
21
+ # Mapper for PurchaseRequestPropertiesReservedResourceProperties class as
22
+ # Ruby Hash.
23
+ # This will be used for serialization/deserialization.
24
+ #
25
+ def self.mapper()
26
+ {
27
+ client_side_validation: true,
28
+ required: false,
29
+ serialized_name: 'PurchaseRequestProperties_reservedResourceProperties',
30
+ type: {
31
+ name: 'Composite',
32
+ class_name: 'PurchaseRequestPropertiesReservedResourceProperties',
33
+ model_properties: {
34
+ instance_flexibility: {
35
+ client_side_validation: true,
36
+ required: false,
37
+ serialized_name: 'instanceFlexibility',
38
+ type: {
39
+ name: 'String'
40
+ }
41
+ }
42
+ }
43
+ }
44
+ }
45
+ end
46
+ end
47
+ end
48
+ end