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,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
+ # Amount that Microsoft uses for record. Used during refund for calculating
10
+ # refund limit. Tax is not included.
11
+ #
12
+ class CalculatePriceResponsePropertiesPricingCurrencyTotal
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String]
17
+ attr_accessor :currency_code
18
+
19
+ # @return [Float]
20
+ attr_accessor :amount
21
+
22
+
23
+ #
24
+ # Mapper for CalculatePriceResponsePropertiesPricingCurrencyTotal class
25
+ # 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: 'CalculatePriceResponseProperties_pricingCurrencyTotal',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'CalculatePriceResponsePropertiesPricingCurrencyTotal',
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,171 @@
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 Catalog
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] The type of resource the SKU applies to.
17
+ attr_accessor :resource_type
18
+
19
+ # @return [String] The name of SKU
20
+ attr_accessor :name
21
+
22
+ # @return [Hash{String => Array<ReservationBillingPlan>}] The billing
23
+ # plan options available for this SKU.
24
+ attr_accessor :billing_plans
25
+
26
+ # @return [Array<ReservationTerm>] Available reservation terms for this
27
+ # resource
28
+ attr_accessor :terms
29
+
30
+ # @return [Array<String>]
31
+ attr_accessor :locations
32
+
33
+ # @return [Array<SkuProperty>]
34
+ attr_accessor :sku_properties
35
+
36
+ # @return [Array<SkuRestriction>]
37
+ attr_accessor :restrictions
38
+
39
+
40
+ #
41
+ # Mapper for Catalog 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: 'Catalog',
49
+ type: {
50
+ name: 'Composite',
51
+ class_name: 'Catalog',
52
+ model_properties: {
53
+ resource_type: {
54
+ client_side_validation: true,
55
+ required: false,
56
+ read_only: true,
57
+ serialized_name: 'resourceType',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ name: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ read_only: true,
66
+ serialized_name: 'name',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ },
71
+ billing_plans: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ serialized_name: 'billingPlans',
75
+ type: {
76
+ name: 'Dictionary',
77
+ value: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ serialized_name: 'ArrayElementType',
81
+ type: {
82
+ name: 'Sequence',
83
+ element: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ serialized_name: 'ReservationBillingPlanElementType',
87
+ type: {
88
+ name: 'String'
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ },
95
+ terms: {
96
+ client_side_validation: true,
97
+ required: false,
98
+ read_only: true,
99
+ serialized_name: 'terms',
100
+ type: {
101
+ name: 'Sequence',
102
+ element: {
103
+ client_side_validation: true,
104
+ required: false,
105
+ serialized_name: 'ReservationTermElementType',
106
+ type: {
107
+ name: 'String'
108
+ }
109
+ }
110
+ }
111
+ },
112
+ locations: {
113
+ client_side_validation: true,
114
+ required: false,
115
+ read_only: true,
116
+ serialized_name: 'locations',
117
+ type: {
118
+ name: 'Sequence',
119
+ element: {
120
+ client_side_validation: true,
121
+ required: false,
122
+ serialized_name: 'StringElementType',
123
+ type: {
124
+ name: 'String'
125
+ }
126
+ }
127
+ }
128
+ },
129
+ sku_properties: {
130
+ client_side_validation: true,
131
+ required: false,
132
+ read_only: true,
133
+ serialized_name: 'skuProperties',
134
+ type: {
135
+ name: 'Sequence',
136
+ element: {
137
+ client_side_validation: true,
138
+ required: false,
139
+ serialized_name: 'SkuPropertyElementType',
140
+ type: {
141
+ name: 'Composite',
142
+ class_name: 'SkuProperty'
143
+ }
144
+ }
145
+ }
146
+ },
147
+ restrictions: {
148
+ client_side_validation: true,
149
+ required: false,
150
+ read_only: true,
151
+ serialized_name: 'restrictions',
152
+ type: {
153
+ name: 'Sequence',
154
+ element: {
155
+ client_side_validation: true,
156
+ required: false,
157
+ serialized_name: 'SkuRestrictionElementType',
158
+ type: {
159
+ name: 'Composite',
160
+ class_name: 'SkuRestriction'
161
+ }
162
+ }
163
+ }
164
+ }
165
+ }
166
+ }
167
+ }
168
+ end
169
+ end
170
+ end
171
+ 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 Error
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [ExtendedErrorInfo]
17
+ attr_accessor :error
18
+
19
+
20
+ #
21
+ # Mapper for Error 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: 'Error',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'Error',
32
+ model_properties: {
33
+ error: {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'error',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'ExtendedErrorInfo'
40
+ }
41
+ }
42
+ }
43
+ }
44
+ }
45
+ end
46
+ end
47
+ end
48
+ end
@@ -0,0 +1,69 @@
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 ErrorResponseCode
10
+ #
11
+ module ErrorResponseCode
12
+ NotSpecified = "NotSpecified"
13
+ InternalServerError = "InternalServerError"
14
+ ServerTimeout = "ServerTimeout"
15
+ AuthorizationFailed = "AuthorizationFailed"
16
+ BadRequest = "BadRequest"
17
+ ClientCertificateThumbprintNotSet = "ClientCertificateThumbprintNotSet"
18
+ InvalidRequestContent = "InvalidRequestContent"
19
+ OperationFailed = "OperationFailed"
20
+ HttpMethodNotSupported = "HttpMethodNotSupported"
21
+ InvalidRequestUri = "InvalidRequestUri"
22
+ MissingTenantId = "MissingTenantId"
23
+ InvalidTenantId = "InvalidTenantId"
24
+ InvalidReservationOrderId = "InvalidReservationOrderId"
25
+ InvalidReservationId = "InvalidReservationId"
26
+ ReservationIdNotInReservationOrder = "ReservationIdNotInReservationOrder"
27
+ ReservationOrderNotFound = "ReservationOrderNotFound"
28
+ InvalidSubscriptionId = "InvalidSubscriptionId"
29
+ InvalidAccessToken = "InvalidAccessToken"
30
+ InvalidLocationId = "InvalidLocationId"
31
+ UnauthenticatedRequestsThrottled = "UnauthenticatedRequestsThrottled"
32
+ InvalidHealthCheckType = "InvalidHealthCheckType"
33
+ Forbidden = "Forbidden"
34
+ BillingScopeIdCannotBeChanged = "BillingScopeIdCannotBeChanged"
35
+ AppliedScopesNotAssociatedWithCommerceAccount = "AppliedScopesNotAssociatedWithCommerceAccount"
36
+ PatchValuesSameAsExisting = "PatchValuesSameAsExisting"
37
+ RoleAssignmentCreationFailed = "RoleAssignmentCreationFailed"
38
+ ReservationOrderCreationFailed = "ReservationOrderCreationFailed"
39
+ ReservationOrderNotEnabled = "ReservationOrderNotEnabled"
40
+ CapacityUpdateScopesFailed = "CapacityUpdateScopesFailed"
41
+ UnsupportedReservationTerm = "UnsupportedReservationTerm"
42
+ ReservationOrderIdAlreadyExists = "ReservationOrderIdAlreadyExists"
43
+ RiskCheckFailed = "RiskCheckFailed"
44
+ CreateQuoteFailed = "CreateQuoteFailed"
45
+ ActivateQuoteFailed = "ActivateQuoteFailed"
46
+ NonsupportedAccountId = "NonsupportedAccountId"
47
+ PaymentInstrumentNotFound = "PaymentInstrumentNotFound"
48
+ MissingAppliedScopesForSingle = "MissingAppliedScopesForSingle"
49
+ NoValidReservationsToReRate = "NoValidReservationsToReRate"
50
+ ReRateOnlyAllowedForEA = "ReRateOnlyAllowedForEA"
51
+ OperationCannotBePerformedInCurrentState = "OperationCannotBePerformedInCurrentState"
52
+ InvalidSingleAppliedScopesCount = "InvalidSingleAppliedScopesCount"
53
+ InvalidFulfillmentRequestParameters = "InvalidFulfillmentRequestParameters"
54
+ NotSupportedCountry = "NotSupportedCountry"
55
+ InvalidRefundQuantity = "InvalidRefundQuantity"
56
+ PurchaseError = "PurchaseError"
57
+ BillingCustomerInputError = "BillingCustomerInputError"
58
+ BillingPaymentInstrumentSoftError = "BillingPaymentInstrumentSoftError"
59
+ BillingPaymentInstrumentHardError = "BillingPaymentInstrumentHardError"
60
+ BillingTransientError = "BillingTransientError"
61
+ BillingError = "BillingError"
62
+ FulfillmentConfigurationError = "FulfillmentConfigurationError"
63
+ FulfillmentOutOfStockError = "FulfillmentOutOfStockError"
64
+ FulfillmentTransientError = "FulfillmentTransientError"
65
+ FulfillmentError = "FulfillmentError"
66
+ CalculatePriceFailed = "CalculatePriceFailed"
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,84 @@
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 ExtendedErrorInfo
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [ErrorResponseCode] Possible values include: 'NotSpecified',
17
+ # 'InternalServerError', 'ServerTimeout', 'AuthorizationFailed',
18
+ # 'BadRequest', 'ClientCertificateThumbprintNotSet',
19
+ # 'InvalidRequestContent', 'OperationFailed', 'HttpMethodNotSupported',
20
+ # 'InvalidRequestUri', 'MissingTenantId', 'InvalidTenantId',
21
+ # 'InvalidReservationOrderId', 'InvalidReservationId',
22
+ # 'ReservationIdNotInReservationOrder', 'ReservationOrderNotFound',
23
+ # 'InvalidSubscriptionId', 'InvalidAccessToken', 'InvalidLocationId',
24
+ # 'UnauthenticatedRequestsThrottled', 'InvalidHealthCheckType',
25
+ # 'Forbidden', 'BillingScopeIdCannotBeChanged',
26
+ # 'AppliedScopesNotAssociatedWithCommerceAccount',
27
+ # 'PatchValuesSameAsExisting', 'RoleAssignmentCreationFailed',
28
+ # 'ReservationOrderCreationFailed', 'ReservationOrderNotEnabled',
29
+ # 'CapacityUpdateScopesFailed', 'UnsupportedReservationTerm',
30
+ # 'ReservationOrderIdAlreadyExists', 'RiskCheckFailed',
31
+ # 'CreateQuoteFailed', 'ActivateQuoteFailed', 'NonsupportedAccountId',
32
+ # 'PaymentInstrumentNotFound', 'MissingAppliedScopesForSingle',
33
+ # 'NoValidReservationsToReRate', 'ReRateOnlyAllowedForEA',
34
+ # 'OperationCannotBePerformedInCurrentState',
35
+ # 'InvalidSingleAppliedScopesCount',
36
+ # 'InvalidFulfillmentRequestParameters', 'NotSupportedCountry',
37
+ # 'InvalidRefundQuantity', 'PurchaseError', 'BillingCustomerInputError',
38
+ # 'BillingPaymentInstrumentSoftError',
39
+ # 'BillingPaymentInstrumentHardError', 'BillingTransientError',
40
+ # 'BillingError', 'FulfillmentConfigurationError',
41
+ # 'FulfillmentOutOfStockError', 'FulfillmentTransientError',
42
+ # 'FulfillmentError', 'CalculatePriceFailed'
43
+ attr_accessor :code
44
+
45
+ # @return [String]
46
+ attr_accessor :message
47
+
48
+
49
+ #
50
+ # Mapper for ExtendedErrorInfo class as Ruby Hash.
51
+ # This will be used for serialization/deserialization.
52
+ #
53
+ def self.mapper()
54
+ {
55
+ client_side_validation: true,
56
+ required: false,
57
+ serialized_name: 'ExtendedErrorInfo',
58
+ type: {
59
+ name: 'Composite',
60
+ class_name: 'ExtendedErrorInfo',
61
+ model_properties: {
62
+ code: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ serialized_name: 'code',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ },
70
+ message: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ serialized_name: 'message',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,61 @@
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 ExtendedStatusInfo
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [ReservationStatusCode] Possible values include: 'None',
17
+ # 'Pending', 'Active', 'PurchaseError', 'PaymentInstrumentError',
18
+ # 'Split', 'Merged', 'Expired', 'Succeeded'
19
+ attr_accessor :status_code
20
+
21
+ # @return [String] The message giving detailed information about the
22
+ # status code.
23
+ attr_accessor :message
24
+
25
+
26
+ #
27
+ # Mapper for ExtendedStatusInfo class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ client_side_validation: true,
33
+ required: false,
34
+ serialized_name: 'ExtendedStatusInfo',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'ExtendedStatusInfo',
38
+ model_properties: {
39
+ status_code: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'statusCode',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ message: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ serialized_name: 'message',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ }
55
+ }
56
+ }
57
+ }
58
+ end
59
+ end
60
+ end
61
+ end