azure_mgmt_marketplace_ordering 0.15.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-06-01/generated/azure_mgmt_marketplace_ordering/marketplace_agreements.rb +12 -12
- data/lib/2015-06-01/generated/azure_mgmt_marketplace_ordering/marketplace_ordering_agreements.rb +4 -1
- data/lib/2015-06-01/generated/azure_mgmt_marketplace_ordering/operations.rb +15 -13
- data/lib/profiles/latest/marketplaceordering_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/marketplaceordering_module_definition.rb +0 -1
- data/lib/profiles/latest/modules/marketplaceordering_profile_module.rb +49 -30
- data/lib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8cde4af041166ee57a02c5432103668eb990e657
|
4
|
+
data.tar.gz: 78da4db81123f85c9b3e5764931aa0642cb91bb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba44de8e137dbfa1db8fa0b4c7306f4243b86ccbc8042d7740dd6d5ce758d1ad6aea5e6adfa9511904f57b256205a81454b44593fe47341f0884d928018bcb6c
|
7
|
+
data.tar.gz: bfccbd7e61e038dce671e318ebac55b00061a1eb36ce65604b7e54b0c6e6ca6bfacb8f2eb1126372050dc6a8a8ee9baab905d2b7efd783f7b7623449fbb82b34
|
@@ -33,8 +33,8 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
|
|
33
33
|
#
|
34
34
|
# @return [AgreementTerms] operation results.
|
35
35
|
#
|
36
|
-
def get(publisher_id, offer_id, plan_id, custom_headers
|
37
|
-
response = get_async(publisher_id, offer_id, plan_id, custom_headers).value!
|
36
|
+
def get(publisher_id, offer_id, plan_id, custom_headers:nil)
|
37
|
+
response = get_async(publisher_id, offer_id, plan_id, custom_headers:custom_headers).value!
|
38
38
|
response.body unless response.nil?
|
39
39
|
end
|
40
40
|
|
@@ -50,8 +50,8 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
|
|
50
50
|
#
|
51
51
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
52
52
|
#
|
53
|
-
def get_with_http_info(publisher_id, offer_id, plan_id, custom_headers
|
54
|
-
get_async(publisher_id, offer_id, plan_id, custom_headers).value!
|
53
|
+
def get_with_http_info(publisher_id, offer_id, plan_id, custom_headers:nil)
|
54
|
+
get_async(publisher_id, offer_id, plan_id, custom_headers:custom_headers).value!
|
55
55
|
end
|
56
56
|
|
57
57
|
#
|
@@ -66,7 +66,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
|
|
66
66
|
#
|
67
67
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
68
68
|
#
|
69
|
-
def get_async(publisher_id, offer_id, plan_id, custom_headers
|
69
|
+
def get_async(publisher_id, offer_id, plan_id, custom_headers:nil)
|
70
70
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
71
71
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
72
72
|
offer_type = 'virtualmachine'
|
@@ -76,6 +76,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
|
|
76
76
|
|
77
77
|
|
78
78
|
request_headers = {}
|
79
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
79
80
|
|
80
81
|
# Set Headers
|
81
82
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -134,8 +135,8 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
|
|
134
135
|
#
|
135
136
|
# @return [AgreementTerms] operation results.
|
136
137
|
#
|
137
|
-
def create(publisher_id, offer_id, plan_id, parameters, custom_headers
|
138
|
-
response = create_async(publisher_id, offer_id, plan_id, parameters, custom_headers).value!
|
138
|
+
def create(publisher_id, offer_id, plan_id, parameters, custom_headers:nil)
|
139
|
+
response = create_async(publisher_id, offer_id, plan_id, parameters, custom_headers:custom_headers).value!
|
139
140
|
response.body unless response.nil?
|
140
141
|
end
|
141
142
|
|
@@ -153,8 +154,8 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
|
|
153
154
|
#
|
154
155
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
155
156
|
#
|
156
|
-
def create_with_http_info(publisher_id, offer_id, plan_id, parameters, custom_headers
|
157
|
-
create_async(publisher_id, offer_id, plan_id, parameters, custom_headers).value!
|
157
|
+
def create_with_http_info(publisher_id, offer_id, plan_id, parameters, custom_headers:nil)
|
158
|
+
create_async(publisher_id, offer_id, plan_id, parameters, custom_headers:custom_headers).value!
|
158
159
|
end
|
159
160
|
|
160
161
|
#
|
@@ -171,7 +172,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
|
|
171
172
|
#
|
172
173
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
173
174
|
#
|
174
|
-
def create_async(publisher_id, offer_id, plan_id, parameters, custom_headers
|
175
|
+
def create_async(publisher_id, offer_id, plan_id, parameters, custom_headers:nil)
|
175
176
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
176
177
|
offer_type = 'virtualmachine'
|
177
178
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
@@ -182,13 +183,12 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
|
|
182
183
|
|
183
184
|
|
184
185
|
request_headers = {}
|
186
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
185
187
|
|
186
188
|
# Set Headers
|
187
189
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
188
190
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
189
191
|
|
190
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
191
|
-
|
192
192
|
# Serialize Request
|
193
193
|
request_mapper = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::AgreementTerms.mapper()
|
194
194
|
request_content = @client.serialize(request_mapper, parameters)
|
data/lib/2015-06-01/generated/azure_mgmt_marketplace_ordering/marketplace_ordering_agreements.rb
CHANGED
@@ -109,6 +109,9 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
|
|
109
109
|
fail ArgumentError, 'path is nil' if path.nil?
|
110
110
|
|
111
111
|
request_url = options[:base_url] || @base_url
|
112
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
113
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
114
|
+
end
|
112
115
|
|
113
116
|
request_headers = @request_headers
|
114
117
|
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
@@ -125,7 +128,7 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
|
|
125
128
|
#
|
126
129
|
def add_telemetry
|
127
130
|
sdk_information = 'azure_mgmt_marketplace_ordering'
|
128
|
-
sdk_information = "#{sdk_information}/0.
|
131
|
+
sdk_information = "#{sdk_information}/0.16.0"
|
129
132
|
add_user_agent_information(sdk_information)
|
130
133
|
end
|
131
134
|
end
|
@@ -29,8 +29,8 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
|
|
29
29
|
#
|
30
30
|
# @return [Array<Operation>] operation results.
|
31
31
|
#
|
32
|
-
def list(custom_headers
|
33
|
-
first_page = list_as_lazy(custom_headers)
|
32
|
+
def list(custom_headers:nil)
|
33
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
34
34
|
first_page.get_all_items
|
35
35
|
end
|
36
36
|
|
@@ -42,8 +42,8 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
|
|
42
42
|
#
|
43
43
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
44
44
|
#
|
45
|
-
def list_with_http_info(custom_headers
|
46
|
-
list_async(custom_headers).value!
|
45
|
+
def list_with_http_info(custom_headers:nil)
|
46
|
+
list_async(custom_headers:custom_headers).value!
|
47
47
|
end
|
48
48
|
|
49
49
|
#
|
@@ -54,11 +54,12 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
|
|
54
54
|
#
|
55
55
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
56
56
|
#
|
57
|
-
def list_async(custom_headers
|
57
|
+
def list_async(custom_headers:nil)
|
58
58
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
59
59
|
|
60
60
|
|
61
61
|
request_headers = {}
|
62
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
62
63
|
|
63
64
|
# Set Headers
|
64
65
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -112,8 +113,8 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
|
|
112
113
|
#
|
113
114
|
# @return [OperationListResult] operation results.
|
114
115
|
#
|
115
|
-
def list_next(next_page_link, custom_headers
|
116
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
116
|
+
def list_next(next_page_link, custom_headers:nil)
|
117
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
117
118
|
response.body unless response.nil?
|
118
119
|
end
|
119
120
|
|
@@ -127,8 +128,8 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
|
|
127
128
|
#
|
128
129
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
129
130
|
#
|
130
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
131
|
-
list_next_async(next_page_link, custom_headers).value!
|
131
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
132
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
132
133
|
end
|
133
134
|
|
134
135
|
#
|
@@ -141,11 +142,12 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
|
|
141
142
|
#
|
142
143
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
143
144
|
#
|
144
|
-
def list_next_async(next_page_link, custom_headers
|
145
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
145
146
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
146
147
|
|
147
148
|
|
148
149
|
request_headers = {}
|
150
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
149
151
|
|
150
152
|
# Set Headers
|
151
153
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -198,12 +200,12 @@ module Azure::MarketplaceOrdering::Mgmt::V2015_06_01
|
|
198
200
|
# @return [OperationListResult] which provide lazy access to pages of the
|
199
201
|
# response.
|
200
202
|
#
|
201
|
-
def list_as_lazy(custom_headers
|
202
|
-
response = list_async(custom_headers).value!
|
203
|
+
def list_as_lazy(custom_headers:nil)
|
204
|
+
response = list_async(custom_headers:custom_headers).value!
|
203
205
|
unless response.nil?
|
204
206
|
page = response.body
|
205
207
|
page.next_method = Proc.new do |next_page_link|
|
206
|
-
list_next_async(next_page_link, custom_headers)
|
208
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
207
209
|
end
|
208
210
|
page
|
209
211
|
end
|
@@ -5,17 +5,36 @@
|
|
5
5
|
require 'profiles/latest/marketplaceordering_module_definition'
|
6
6
|
require 'profiles/latest/modules/marketplaceordering_profile_module'
|
7
7
|
|
8
|
-
module Azure::MarketplaceOrdering::Profiles::Latest
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
module Azure::MarketplaceOrdering::Profiles::Latest
|
9
|
+
module Mgmt
|
10
|
+
#
|
11
|
+
# Client class for the Latest profile SDK.
|
12
|
+
#
|
13
|
+
class Client < MarketplaceOrderingManagementClass
|
14
|
+
include MsRestAzure::Common::Configurable
|
14
15
|
|
16
|
+
#
|
17
|
+
# Initializes a new instance of the Client class.
|
18
|
+
# @param options [Hash] hash of client options.
|
19
|
+
# options = {
|
20
|
+
# tenant_id: 'YOUR TENANT ID',
|
21
|
+
# client_id: 'YOUR CLIENT ID',
|
22
|
+
# client_secret: 'YOUR CLIENT SECRET',
|
23
|
+
# subscription_id: 'YOUR SUBSCRIPTION ID',
|
24
|
+
# credentials: credentials,
|
25
|
+
# active_directory_settings: active_directory_settings,
|
26
|
+
# base_url: 'YOUR BASE URL',
|
27
|
+
# options: options
|
28
|
+
# }
|
29
|
+
# 'credentials' are optional and if not passed in the hash, will be obtained
|
30
|
+
# from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
|
31
|
+
#
|
32
|
+
# Also, base_url, active_directory_settings & options are optional.
|
33
|
+
#
|
34
|
+
def initialize(options = {})
|
35
|
+
super(options)
|
36
|
+
end
|
15
37
|
|
16
|
-
def initialize(options = {})
|
17
|
-
super(options)
|
18
38
|
end
|
19
|
-
|
20
39
|
end
|
21
40
|
end
|
@@ -4,7 +4,8 @@
|
|
4
4
|
|
5
5
|
require 'azure_mgmt_marketplace_ordering'
|
6
6
|
|
7
|
-
module Azure::MarketplaceOrdering::Profiles::Latest
|
7
|
+
module Azure::MarketplaceOrdering::Profiles::Latest
|
8
|
+
module Mgmt
|
8
9
|
MarketplaceAgreements = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::MarketplaceAgreements
|
9
10
|
Operations = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Operations
|
10
11
|
|
@@ -19,9 +20,9 @@ module Azure::MarketplaceOrdering::Profiles::Latest::Mgmt
|
|
19
20
|
end
|
20
21
|
|
21
22
|
#
|
22
|
-
#
|
23
|
+
# MarketplaceOrderingManagementClass
|
23
24
|
#
|
24
|
-
class
|
25
|
+
class MarketplaceOrderingManagementClass
|
25
26
|
attr_reader :marketplace_agreements, :operations, :configurable, :base_url, :options, :model_classes
|
26
27
|
|
27
28
|
def initialize(options = {})
|
@@ -33,40 +34,58 @@ module Azure::MarketplaceOrdering::Profiles::Latest::Mgmt
|
|
33
34
|
|
34
35
|
reset!(options)
|
35
36
|
|
36
|
-
@configurable
|
37
|
+
@configurable = self
|
38
|
+
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
39
|
+
@options = options[:options].nil? ? nil:options[:options]
|
37
40
|
|
38
|
-
client_0 = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::MarketplaceOrderingAgreements.new(configurable.credentials, base_url, options)
|
39
|
-
if(client_0.respond_to?(:subscription_id))
|
40
|
-
client_0.subscription_id = configurable.subscription_id
|
41
|
+
@client_0 = Azure::MarketplaceOrdering::Mgmt::V2015_06_01::MarketplaceOrderingAgreements.new(configurable.credentials, base_url, options)
|
42
|
+
if(@client_0.respond_to?(:subscription_id))
|
43
|
+
@client_0.subscription_id = configurable.subscription_id
|
41
44
|
end
|
42
|
-
@
|
43
|
-
@
|
45
|
+
add_telemetry(@client_0)
|
46
|
+
@marketplace_agreements = @client_0.marketplace_agreements
|
47
|
+
@operations = @client_0.operations
|
44
48
|
|
45
49
|
@model_classes = ModelClasses.new
|
46
50
|
end
|
47
51
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
def operation_list_result
|
59
|
-
Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::OperationListResult
|
60
|
-
end
|
61
|
-
def error_response
|
62
|
-
Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::ErrorResponse
|
63
|
-
end
|
64
|
-
def resource
|
65
|
-
Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::Resource
|
66
|
-
end
|
67
|
-
def agreement_terms
|
68
|
-
Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::AgreementTerms
|
52
|
+
def add_telemetry(client)
|
53
|
+
profile_information = 'Profiles/Latest/MarketplaceOrdering/Mgmt'
|
54
|
+
client.add_user_agent_information(profile_information)
|
55
|
+
end
|
56
|
+
|
57
|
+
def method_missing(method, *args)
|
58
|
+
if @client_0.respond_to?method
|
59
|
+
@client_0.send(method, *args)
|
60
|
+
else
|
61
|
+
super
|
69
62
|
end
|
70
63
|
end
|
64
|
+
|
65
|
+
end
|
66
|
+
|
67
|
+
class ModelClasses
|
68
|
+
def operation_display
|
69
|
+
Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::OperationDisplay
|
70
|
+
end
|
71
|
+
def operation
|
72
|
+
Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::Operation
|
73
|
+
end
|
74
|
+
def error_response_error
|
75
|
+
Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::ErrorResponseError
|
76
|
+
end
|
77
|
+
def operation_list_result
|
78
|
+
Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::OperationListResult
|
79
|
+
end
|
80
|
+
def error_response
|
81
|
+
Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::ErrorResponse
|
82
|
+
end
|
83
|
+
def resource
|
84
|
+
Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::Resource
|
85
|
+
end
|
86
|
+
def agreement_terms
|
87
|
+
Azure::MarketplaceOrdering::Mgmt::V2015_06_01::Models::AgreementTerms
|
88
|
+
end
|
71
89
|
end
|
90
|
+
end
|
72
91
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_marketplace_ordering
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
130
|
version: '0'
|
131
131
|
requirements: []
|
132
132
|
rubyforge_project:
|
133
|
-
rubygems_version: 2.
|
133
|
+
rubygems_version: 2.6.10
|
134
134
|
signing_key:
|
135
135
|
specification_version: 4
|
136
136
|
summary: Official Ruby client library to consume Microsoft Azure Marketplace Ordering.
|