azure_mgmt_reservations 0.17.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 +228 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/reservation.rb +1109 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/reservation_order.rb +332 -0
- data/lib/2017-11-01/generated/azure_mgmt_reservations/reservations_management_client.rb +335 -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 +228 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/reservation.rb +1109 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/reservation_order.rb +332 -0
- data/lib/2018-06-01-preview/generated/azure_mgmt_reservations/reservations_management_client.rb +348 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations.rb +64 -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 +110 -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 +143 -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 +88 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/purchase_request.rb +159 -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/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_list.rb +98 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_order_response.rb +183 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_properties.rb +206 -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 +18 -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/module_definition.rb +9 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/operation.rb +228 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/reservation.rb +1072 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/reservation_order.rb +594 -0
- data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/reservations_management_client.rb +348 -0
- data/lib/azure_mgmt_reservations.rb +8 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/modules/reservations_profile_module.rb +201 -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 +227 -0
@@ -0,0 +1,64 @@
|
|
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
|
+
require 'uri'
|
7
|
+
require 'cgi'
|
8
|
+
require 'date'
|
9
|
+
require 'json'
|
10
|
+
require 'base64'
|
11
|
+
require 'erb'
|
12
|
+
require 'securerandom'
|
13
|
+
require 'time'
|
14
|
+
require 'timeliness'
|
15
|
+
require 'faraday'
|
16
|
+
require 'faraday-cookie_jar'
|
17
|
+
require 'concurrent'
|
18
|
+
require 'ms_rest'
|
19
|
+
require '2019-04-01-preview/generated/azure_mgmt_reservations/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::Reservations::Mgmt::V2019_04_01_preview
|
23
|
+
autoload :ReservationOrder, '2019-04-01-preview/generated/azure_mgmt_reservations/reservation_order.rb'
|
24
|
+
autoload :Reservation, '2019-04-01-preview/generated/azure_mgmt_reservations/reservation.rb'
|
25
|
+
autoload :Operation, '2019-04-01-preview/generated/azure_mgmt_reservations/operation.rb'
|
26
|
+
autoload :ReservationsManagementClient, '2019-04-01-preview/generated/azure_mgmt_reservations/reservations_management_client.rb'
|
27
|
+
|
28
|
+
module Models
|
29
|
+
autoload :PurchaseRequestPropertiesReservedResourceProperties, '2019-04-01-preview/generated/azure_mgmt_reservations/models/purchase_request_properties_reserved_resource_properties.rb'
|
30
|
+
autoload :SkuName, '2019-04-01-preview/generated/azure_mgmt_reservations/models/sku_name.rb'
|
31
|
+
autoload :MergeRequest, '2019-04-01-preview/generated/azure_mgmt_reservations/models/merge_request.rb'
|
32
|
+
autoload :SkuRestriction, '2019-04-01-preview/generated/azure_mgmt_reservations/models/sku_restriction.rb'
|
33
|
+
autoload :PurchaseRequest, '2019-04-01-preview/generated/azure_mgmt_reservations/models/purchase_request.rb'
|
34
|
+
autoload :ExtendedStatusInfo, '2019-04-01-preview/generated/azure_mgmt_reservations/models/extended_status_info.rb'
|
35
|
+
autoload :Patch, '2019-04-01-preview/generated/azure_mgmt_reservations/models/patch.rb'
|
36
|
+
autoload :ReservationMergeProperties, '2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_merge_properties.rb'
|
37
|
+
autoload :SplitRequest, '2019-04-01-preview/generated/azure_mgmt_reservations/models/split_request.rb'
|
38
|
+
autoload :ReservationResponse, '2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_response.rb'
|
39
|
+
autoload :ExtendedErrorInfo, '2019-04-01-preview/generated/azure_mgmt_reservations/models/extended_error_info.rb'
|
40
|
+
autoload :CalculatePriceResponsePropertiesBillingCurrencyTotal, '2019-04-01-preview/generated/azure_mgmt_reservations/models/calculate_price_response_properties_billing_currency_total.rb'
|
41
|
+
autoload :Error, '2019-04-01-preview/generated/azure_mgmt_reservations/models/error.rb'
|
42
|
+
autoload :CalculatePriceResponseProperties, '2019-04-01-preview/generated/azure_mgmt_reservations/models/calculate_price_response_properties.rb'
|
43
|
+
autoload :ReservationOrderList, '2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_order_list.rb'
|
44
|
+
autoload :SkuProperty, '2019-04-01-preview/generated/azure_mgmt_reservations/models/sku_property.rb'
|
45
|
+
autoload :ReservationList, '2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_list.rb'
|
46
|
+
autoload :ReservationSplitProperties, '2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_split_properties.rb'
|
47
|
+
autoload :AppliedReservationList, '2019-04-01-preview/generated/azure_mgmt_reservations/models/applied_reservation_list.rb'
|
48
|
+
autoload :ReservationOrderResponse, '2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_order_response.rb'
|
49
|
+
autoload :AppliedReservations, '2019-04-01-preview/generated/azure_mgmt_reservations/models/applied_reservations.rb'
|
50
|
+
autoload :CalculatePriceResponse, '2019-04-01-preview/generated/azure_mgmt_reservations/models/calculate_price_response.rb'
|
51
|
+
autoload :OperationDisplay, '2019-04-01-preview/generated/azure_mgmt_reservations/models/operation_display.rb'
|
52
|
+
autoload :ReservationProperties, '2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_properties.rb'
|
53
|
+
autoload :OperationResponse, '2019-04-01-preview/generated/azure_mgmt_reservations/models/operation_response.rb'
|
54
|
+
autoload :Catalog, '2019-04-01-preview/generated/azure_mgmt_reservations/models/catalog.rb'
|
55
|
+
autoload :OperationList, '2019-04-01-preview/generated/azure_mgmt_reservations/models/operation_list.rb'
|
56
|
+
autoload :CalculatePriceResponsePropertiesPricingCurrencyTotal, '2019-04-01-preview/generated/azure_mgmt_reservations/models/calculate_price_response_properties_pricing_currency_total.rb'
|
57
|
+
autoload :ReservationStatusCode, '2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_status_code.rb'
|
58
|
+
autoload :ErrorResponseCode, '2019-04-01-preview/generated/azure_mgmt_reservations/models/error_response_code.rb'
|
59
|
+
autoload :ReservationTerm, '2019-04-01-preview/generated/azure_mgmt_reservations/models/reservation_term.rb'
|
60
|
+
autoload :ReservedResourceType, '2019-04-01-preview/generated/azure_mgmt_reservations/models/reserved_resource_type.rb'
|
61
|
+
autoload :InstanceFlexibility, '2019-04-01-preview/generated/azure_mgmt_reservations/models/instance_flexibility.rb'
|
62
|
+
autoload :AppliedScopeType, '2019-04-01-preview/generated/azure_mgmt_reservations/models/applied_scope_type.rb'
|
63
|
+
end
|
64
|
+
end
|
data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/applied_reservation_list.rb
ADDED
@@ -0,0 +1,66 @@
|
|
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 AppliedReservationList
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [Array<String>]
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] Url to get the next page of reservations
|
20
|
+
attr_accessor :next_link
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for AppliedReservationList class as Ruby Hash.
|
25
|
+
# This will be used for serialization/deserialization.
|
26
|
+
#
|
27
|
+
def self.mapper()
|
28
|
+
{
|
29
|
+
client_side_validation: true,
|
30
|
+
required: false,
|
31
|
+
serialized_name: 'AppliedReservationList',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'AppliedReservationList',
|
35
|
+
model_properties: {
|
36
|
+
value: {
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'value',
|
40
|
+
type: {
|
41
|
+
name: 'Sequence',
|
42
|
+
element: {
|
43
|
+
client_side_validation: true,
|
44
|
+
required: false,
|
45
|
+
serialized_name: 'StringElementType',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
},
|
52
|
+
next_link: {
|
53
|
+
client_side_validation: true,
|
54
|
+
required: false,
|
55
|
+
serialized_name: 'nextLink',
|
56
|
+
type: {
|
57
|
+
name: 'String'
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,85 @@
|
|
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 AppliedReservations
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] Identifier of the applied reservations
|
17
|
+
attr_accessor :id
|
18
|
+
|
19
|
+
# @return [String] Name of resource
|
20
|
+
attr_accessor :name
|
21
|
+
|
22
|
+
# @return [String] Type of resource.
|
23
|
+
# "Microsoft.Capacity/AppliedReservations"
|
24
|
+
attr_accessor :type
|
25
|
+
|
26
|
+
# @return [AppliedReservationList]
|
27
|
+
attr_accessor :reservation_order_ids
|
28
|
+
|
29
|
+
|
30
|
+
#
|
31
|
+
# Mapper for AppliedReservations class as Ruby Hash.
|
32
|
+
# This will be used for serialization/deserialization.
|
33
|
+
#
|
34
|
+
def self.mapper()
|
35
|
+
{
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'AppliedReservations',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'AppliedReservations',
|
42
|
+
model_properties: {
|
43
|
+
id: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
read_only: true,
|
47
|
+
serialized_name: 'id',
|
48
|
+
type: {
|
49
|
+
name: 'String'
|
50
|
+
}
|
51
|
+
},
|
52
|
+
name: {
|
53
|
+
client_side_validation: true,
|
54
|
+
required: false,
|
55
|
+
read_only: true,
|
56
|
+
serialized_name: 'name',
|
57
|
+
type: {
|
58
|
+
name: 'String'
|
59
|
+
}
|
60
|
+
},
|
61
|
+
type: {
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
read_only: true,
|
65
|
+
serialized_name: 'type',
|
66
|
+
type: {
|
67
|
+
name: 'String'
|
68
|
+
}
|
69
|
+
},
|
70
|
+
reservation_order_ids: {
|
71
|
+
client_side_validation: true,
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'properties.reservationOrderIds',
|
74
|
+
type: {
|
75
|
+
name: 'Composite',
|
76
|
+
class_name: 'AppliedReservationList'
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Reservations::Mgmt::V2019_04_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for AppliedScopeType
|
10
|
+
#
|
11
|
+
module AppliedScopeType
|
12
|
+
Single = "Single"
|
13
|
+
Shared = "Shared"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/2019-04-01-preview/generated/azure_mgmt_reservations/models/calculate_price_response.rb
ADDED
@@ -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 CalculatePriceResponse
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [CalculatePriceResponseProperties]
|
17
|
+
attr_accessor :properties
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for CalculatePriceResponse 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: 'CalculatePriceResponse',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'CalculatePriceResponse',
|
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: 'CalculatePriceResponseProperties'
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,110 @@
|
|
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 CalculatePriceResponseProperties
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [CalculatePriceResponsePropertiesBillingCurrencyTotal] Currency
|
17
|
+
# and amount that customer will be charged in customer's local currency.
|
18
|
+
# Tax is not included.
|
19
|
+
attr_accessor :billing_currency_total
|
20
|
+
|
21
|
+
# @return [Boolean] True if billing is managed by Microsoft Partner. Used
|
22
|
+
# only for CSP accounts.
|
23
|
+
attr_accessor :is_billing_partner_managed
|
24
|
+
|
25
|
+
# @return [String] GUID that represents reservation order that can be
|
26
|
+
# placed after calculating price.
|
27
|
+
attr_accessor :reservation_order_id
|
28
|
+
|
29
|
+
# @return [String] Title of SKU that is being purchased.
|
30
|
+
attr_accessor :sku_title
|
31
|
+
|
32
|
+
# @return [String] Description of SKU that is being purchased.
|
33
|
+
attr_accessor :sku_description
|
34
|
+
|
35
|
+
# @return [CalculatePriceResponsePropertiesPricingCurrencyTotal] Amount
|
36
|
+
# that Microsoft uses for record. Used during refund for calculating
|
37
|
+
# refund limit. Tax is not included.
|
38
|
+
attr_accessor :pricing_currency_total
|
39
|
+
|
40
|
+
|
41
|
+
#
|
42
|
+
# Mapper for CalculatePriceResponseProperties class as Ruby Hash.
|
43
|
+
# This will be used for serialization/deserialization.
|
44
|
+
#
|
45
|
+
def self.mapper()
|
46
|
+
{
|
47
|
+
client_side_validation: true,
|
48
|
+
required: false,
|
49
|
+
serialized_name: 'CalculatePriceResponseProperties',
|
50
|
+
type: {
|
51
|
+
name: 'Composite',
|
52
|
+
class_name: 'CalculatePriceResponseProperties',
|
53
|
+
model_properties: {
|
54
|
+
billing_currency_total: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'billingCurrencyTotal',
|
58
|
+
type: {
|
59
|
+
name: 'Composite',
|
60
|
+
class_name: 'CalculatePriceResponsePropertiesBillingCurrencyTotal'
|
61
|
+
}
|
62
|
+
},
|
63
|
+
is_billing_partner_managed: {
|
64
|
+
client_side_validation: true,
|
65
|
+
required: false,
|
66
|
+
serialized_name: 'isBillingPartnerManaged',
|
67
|
+
type: {
|
68
|
+
name: 'Boolean'
|
69
|
+
}
|
70
|
+
},
|
71
|
+
reservation_order_id: {
|
72
|
+
client_side_validation: true,
|
73
|
+
required: false,
|
74
|
+
serialized_name: 'reservationOrderId',
|
75
|
+
type: {
|
76
|
+
name: 'String'
|
77
|
+
}
|
78
|
+
},
|
79
|
+
sku_title: {
|
80
|
+
client_side_validation: true,
|
81
|
+
required: false,
|
82
|
+
serialized_name: 'skuTitle',
|
83
|
+
type: {
|
84
|
+
name: 'String'
|
85
|
+
}
|
86
|
+
},
|
87
|
+
sku_description: {
|
88
|
+
client_side_validation: true,
|
89
|
+
required: false,
|
90
|
+
serialized_name: 'skuDescription',
|
91
|
+
type: {
|
92
|
+
name: 'String'
|
93
|
+
}
|
94
|
+
},
|
95
|
+
pricing_currency_total: {
|
96
|
+
client_side_validation: true,
|
97
|
+
required: false,
|
98
|
+
serialized_name: 'pricingCurrencyTotal',
|
99
|
+
type: {
|
100
|
+
name: 'Composite',
|
101
|
+
class_name: 'CalculatePriceResponsePropertiesPricingCurrencyTotal'
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
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
|
+
# Currency and amount that customer will be charged in customer's local
|
10
|
+
# currency. Tax is not included.
|
11
|
+
#
|
12
|
+
class CalculatePriceResponsePropertiesBillingCurrencyTotal
|
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 CalculatePriceResponsePropertiesBillingCurrencyTotal 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_billingCurrencyTotal',
|
33
|
+
type: {
|
34
|
+
name: 'Composite',
|
35
|
+
class_name: 'CalculatePriceResponsePropertiesBillingCurrencyTotal',
|
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
|