azure_mgmt_reservations 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) 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 +228 -0
  29. data/lib/2017-11-01/generated/azure_mgmt_reservations/reservation.rb +1109 -0
  30. data/lib/2017-11-01/generated/azure_mgmt_reservations/reservation_order.rb +332 -0
  31. data/lib/2017-11-01/generated/azure_mgmt_reservations/reservations_management_client.rb +335 -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 +228 -0
  63. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/reservation.rb +1109 -0
  64. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/reservation_order.rb +332 -0
  65. data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/reservations_management_client.rb +348 -0
  66. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations.rb +64 -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 +110 -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 +143 -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 +88 -0
  85. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/purchase_request.rb +159 -0
  86. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/purchase_request_properties_reserved_resource_properties.rb +48 -0
  87. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_list.rb +98 -0
  88. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_merge_properties.rb +70 -0
  89. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_order_list.rb +98 -0
  90. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_order_response.rb +183 -0
  91. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_properties.rb +206 -0
  92. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_response.rb +120 -0
  93. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_split_properties.rb +70 -0
  94. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_status_code.rb +23 -0
  95. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_term.rb +16 -0
  96. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reserved_resource_type.rb +18 -0
  97. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/sku_name.rb +47 -0
  98. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/sku_property.rb +58 -0
  99. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/sku_restriction.rb +79 -0
  100. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/split_request.rb +69 -0
  101. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/module_definition.rb +9 -0
  102. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/operation.rb +228 -0
  103. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/reservation.rb +1072 -0
  104. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/reservation_order.rb +594 -0
  105. data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/reservations_management_client.rb +348 -0
  106. data/lib/azure_mgmt_reservations.rb +8 -0
  107. data/lib/module_definition.rb +7 -0
  108. data/lib/profiles/latest/modules/reservations_profile_module.rb +201 -0
  109. data/lib/profiles/latest/reservations_latest_profile_client.rb +40 -0
  110. data/lib/profiles/latest/reservations_module_definition.rb +8 -0
  111. data/lib/version.rb +7 -0
  112. metadata +227 -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,143 @@
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 [Array<ReservationTerm>] Available reservation terms for this
23
+ # resource
24
+ attr_accessor :terms
25
+
26
+ # @return [Array<String>]
27
+ attr_accessor :locations
28
+
29
+ # @return [Array<SkuProperty>]
30
+ attr_accessor :sku_properties
31
+
32
+ # @return [Array<SkuRestriction>]
33
+ attr_accessor :restrictions
34
+
35
+
36
+ #
37
+ # Mapper for Catalog class as Ruby Hash.
38
+ # This will be used for serialization/deserialization.
39
+ #
40
+ def self.mapper()
41
+ {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'Catalog',
45
+ type: {
46
+ name: 'Composite',
47
+ class_name: 'Catalog',
48
+ model_properties: {
49
+ resource_type: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ read_only: true,
53
+ serialized_name: 'resourceType',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ name: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ read_only: true,
62
+ serialized_name: 'name',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ terms: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ read_only: true,
71
+ serialized_name: 'terms',
72
+ type: {
73
+ name: 'Sequence',
74
+ element: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'ReservationTermElementType',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ }
82
+ }
83
+ },
84
+ locations: {
85
+ client_side_validation: true,
86
+ required: false,
87
+ read_only: true,
88
+ serialized_name: 'locations',
89
+ type: {
90
+ name: 'Sequence',
91
+ element: {
92
+ client_side_validation: true,
93
+ required: false,
94
+ serialized_name: 'StringElementType',
95
+ type: {
96
+ name: 'String'
97
+ }
98
+ }
99
+ }
100
+ },
101
+ sku_properties: {
102
+ client_side_validation: true,
103
+ required: false,
104
+ read_only: true,
105
+ serialized_name: 'skuProperties',
106
+ type: {
107
+ name: 'Sequence',
108
+ element: {
109
+ client_side_validation: true,
110
+ required: false,
111
+ serialized_name: 'SkuPropertyElementType',
112
+ type: {
113
+ name: 'Composite',
114
+ class_name: 'SkuProperty'
115
+ }
116
+ }
117
+ }
118
+ },
119
+ restrictions: {
120
+ client_side_validation: true,
121
+ required: false,
122
+ read_only: true,
123
+ serialized_name: 'restrictions',
124
+ type: {
125
+ name: 'Sequence',
126
+ element: {
127
+ client_side_validation: true,
128
+ required: false,
129
+ serialized_name: 'SkuRestrictionElementType',
130
+ type: {
131
+ name: 'Composite',
132
+ class_name: 'SkuRestriction'
133
+ }
134
+ }
135
+ }
136
+ }
137
+ }
138
+ }
139
+ }
140
+ end
141
+ end
142
+ end
143
+ 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