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,58 @@
|
|
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 '2018-06-01-preview/generated/azure_mgmt_reservations/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::Reservations::Mgmt::V2018_06_01_preview
|
23
|
+
autoload :ReservationOrder, '2018-06-01-preview/generated/azure_mgmt_reservations/reservation_order.rb'
|
24
|
+
autoload :Reservation, '2018-06-01-preview/generated/azure_mgmt_reservations/reservation.rb'
|
25
|
+
autoload :Operation, '2018-06-01-preview/generated/azure_mgmt_reservations/operation.rb'
|
26
|
+
autoload :ReservationsManagementClient, '2018-06-01-preview/generated/azure_mgmt_reservations/reservations_management_client.rb'
|
27
|
+
|
28
|
+
module Models
|
29
|
+
autoload :Patch, '2018-06-01-preview/generated/azure_mgmt_reservations/models/patch.rb'
|
30
|
+
autoload :SkuName, '2018-06-01-preview/generated/azure_mgmt_reservations/models/sku_name.rb'
|
31
|
+
autoload :SplitRequest, '2018-06-01-preview/generated/azure_mgmt_reservations/models/split_request.rb'
|
32
|
+
autoload :SkuRestriction, '2018-06-01-preview/generated/azure_mgmt_reservations/models/sku_restriction.rb'
|
33
|
+
autoload :ExtendedErrorInfo, '2018-06-01-preview/generated/azure_mgmt_reservations/models/extended_error_info.rb'
|
34
|
+
autoload :ExtendedStatusInfo, '2018-06-01-preview/generated/azure_mgmt_reservations/models/extended_status_info.rb'
|
35
|
+
autoload :Error, '2018-06-01-preview/generated/azure_mgmt_reservations/models/error.rb'
|
36
|
+
autoload :ReservationMergeProperties, '2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_merge_properties.rb'
|
37
|
+
autoload :ReservationOrderList, '2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_order_list.rb'
|
38
|
+
autoload :ReservationResponse, '2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_response.rb'
|
39
|
+
autoload :ReservationList, '2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_list.rb'
|
40
|
+
autoload :MergeRequest, '2018-06-01-preview/generated/azure_mgmt_reservations/models/merge_request.rb'
|
41
|
+
autoload :AppliedReservationList, '2018-06-01-preview/generated/azure_mgmt_reservations/models/applied_reservation_list.rb'
|
42
|
+
autoload :Catalog, '2018-06-01-preview/generated/azure_mgmt_reservations/models/catalog.rb'
|
43
|
+
autoload :AppliedReservations, '2018-06-01-preview/generated/azure_mgmt_reservations/models/applied_reservations.rb'
|
44
|
+
autoload :ReservationProperties, '2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_properties.rb'
|
45
|
+
autoload :OperationDisplay, '2018-06-01-preview/generated/azure_mgmt_reservations/models/operation_display.rb'
|
46
|
+
autoload :SkuProperty, '2018-06-01-preview/generated/azure_mgmt_reservations/models/sku_property.rb'
|
47
|
+
autoload :OperationResponse, '2018-06-01-preview/generated/azure_mgmt_reservations/models/operation_response.rb'
|
48
|
+
autoload :ReservationOrderResponse, '2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_order_response.rb'
|
49
|
+
autoload :OperationList, '2018-06-01-preview/generated/azure_mgmt_reservations/models/operation_list.rb'
|
50
|
+
autoload :ReservationSplitProperties, '2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_split_properties.rb'
|
51
|
+
autoload :ReservationStatusCode, '2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_status_code.rb'
|
52
|
+
autoload :ErrorResponseCode, '2018-06-01-preview/generated/azure_mgmt_reservations/models/error_response_code.rb'
|
53
|
+
autoload :ReservationTerm, '2018-06-01-preview/generated/azure_mgmt_reservations/models/reservation_term.rb'
|
54
|
+
autoload :ReservedResourceType, '2018-06-01-preview/generated/azure_mgmt_reservations/models/reserved_resource_type.rb'
|
55
|
+
autoload :InstanceFlexibility, '2018-06-01-preview/generated/azure_mgmt_reservations/models/instance_flexibility.rb'
|
56
|
+
autoload :AppliedScopeType, '2018-06-01-preview/generated/azure_mgmt_reservations/models/applied_scope_type.rb'
|
57
|
+
end
|
58
|
+
end
|
data/lib/2018-06-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::V2018_06_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::V2018_06_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::V2018_06_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
|
@@ -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::V2018_06_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::V2018_06_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::V2018_06_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
|