azure_mgmt_cdn 0.16.0 → 0.17.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_cdn/cdn_management_client.rb +7 -6
- data/lib/2016-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb +7 -6
- data/lib/2016-10-02/generated/azure_mgmt_cdn/cdn_management_client.rb +7 -6
- data/lib/2017-04-02/generated/azure_mgmt_cdn/cdn_management_client.rb +7 -6
- data/lib/2017-10-12/generated/azure_mgmt_cdn/cdn_management_client.rb +108 -6
- data/lib/azure_mgmt_cdn.rb +3 -3
- data/lib/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 541ccad5ca050b4f2a4d1429153de31b629a0ea8
|
4
|
+
data.tar.gz: 059211fe53286f6fbbb813d46eed87b3a1e14463
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dacc7518a1c0d4c4e0844ff84a2955e540ff3b21e8f79d5b7a11793c92806f0cb887390aa1e005d4c834aa063d546c139bb4be973a312d0f23e0f8e98f412ffd
|
7
|
+
data.tar.gz: 5f614477b3208cb1c98bf61da17e4ae628ab76d4237da95e6a15b9649778c4f2361e352d20f0288cc886100dc1c878d38eb190a3d2ee4eb8640013e7638f398d
|
@@ -24,15 +24,16 @@ module Azure::CDN::Mgmt::V2015_06_01
|
|
24
24
|
# Current version is 2015-06-01
|
25
25
|
attr_reader :api_version
|
26
26
|
|
27
|
-
# @return [String]
|
27
|
+
# @return [String] The preferred language for the response.
|
28
28
|
attr_accessor :accept_language
|
29
29
|
|
30
|
-
# @return [Integer]
|
31
|
-
#
|
30
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
31
|
+
# Operations. Default value is 30.
|
32
32
|
attr_accessor :long_running_operation_retry_timeout
|
33
33
|
|
34
|
-
# @return [Boolean]
|
35
|
-
#
|
34
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
35
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
36
|
+
# generated and included in each request. Default is true.
|
36
37
|
attr_accessor :generate_client_request_id
|
37
38
|
|
38
39
|
# @return [Profiles] profiles
|
@@ -144,7 +145,7 @@ module Azure::CDN::Mgmt::V2015_06_01
|
|
144
145
|
#
|
145
146
|
def add_telemetry
|
146
147
|
sdk_information = 'azure_mgmt_cdn'
|
147
|
-
sdk_information = "#{sdk_information}/0.
|
148
|
+
sdk_information = "#{sdk_information}/0.17.0"
|
148
149
|
add_user_agent_information(sdk_information)
|
149
150
|
end
|
150
151
|
end
|
@@ -24,15 +24,16 @@ module Azure::CDN::Mgmt::V2016_04_02
|
|
24
24
|
# Current version is 2016-04-02
|
25
25
|
attr_reader :api_version
|
26
26
|
|
27
|
-
# @return [String]
|
27
|
+
# @return [String] The preferred language for the response.
|
28
28
|
attr_accessor :accept_language
|
29
29
|
|
30
|
-
# @return [Integer]
|
31
|
-
#
|
30
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
31
|
+
# Operations. Default value is 30.
|
32
32
|
attr_accessor :long_running_operation_retry_timeout
|
33
33
|
|
34
|
-
# @return [Boolean]
|
35
|
-
#
|
34
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
35
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
36
|
+
# generated and included in each request. Default is true.
|
36
37
|
attr_accessor :generate_client_request_id
|
37
38
|
|
38
39
|
# @return [Profiles] profiles
|
@@ -144,7 +145,7 @@ module Azure::CDN::Mgmt::V2016_04_02
|
|
144
145
|
#
|
145
146
|
def add_telemetry
|
146
147
|
sdk_information = 'azure_mgmt_cdn'
|
147
|
-
sdk_information = "#{sdk_information}/0.
|
148
|
+
sdk_information = "#{sdk_information}/0.17.0"
|
148
149
|
add_user_agent_information(sdk_information)
|
149
150
|
end
|
150
151
|
end
|
@@ -24,15 +24,16 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
24
24
|
# Current version is 2016-10-02.
|
25
25
|
attr_reader :api_version
|
26
26
|
|
27
|
-
# @return [String]
|
27
|
+
# @return [String] The preferred language for the response.
|
28
28
|
attr_accessor :accept_language
|
29
29
|
|
30
|
-
# @return [Integer]
|
31
|
-
#
|
30
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
31
|
+
# Operations. Default value is 30.
|
32
32
|
attr_accessor :long_running_operation_retry_timeout
|
33
33
|
|
34
|
-
# @return [Boolean]
|
35
|
-
#
|
34
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
35
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
36
|
+
# generated and included in each request. Default is true.
|
36
37
|
attr_accessor :generate_client_request_id
|
37
38
|
|
38
39
|
# @return [Profiles] profiles
|
@@ -742,7 +743,7 @@ module Azure::CDN::Mgmt::V2016_10_02
|
|
742
743
|
#
|
743
744
|
def add_telemetry
|
744
745
|
sdk_information = 'azure_mgmt_cdn'
|
745
|
-
sdk_information = "#{sdk_information}/0.
|
746
|
+
sdk_information = "#{sdk_information}/0.17.0"
|
746
747
|
add_user_agent_information(sdk_information)
|
747
748
|
end
|
748
749
|
end
|
@@ -24,15 +24,16 @@ module Azure::CDN::Mgmt::V2017_04_02
|
|
24
24
|
# Current version is 2017-04-02.
|
25
25
|
attr_reader :api_version
|
26
26
|
|
27
|
-
# @return [String]
|
27
|
+
# @return [String] The preferred language for the response.
|
28
28
|
attr_accessor :accept_language
|
29
29
|
|
30
|
-
# @return [Integer]
|
31
|
-
#
|
30
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
31
|
+
# Operations. Default value is 30.
|
32
32
|
attr_accessor :long_running_operation_retry_timeout
|
33
33
|
|
34
|
-
# @return [Boolean]
|
35
|
-
#
|
34
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
35
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
36
|
+
# generated and included in each request. Default is true.
|
36
37
|
attr_accessor :generate_client_request_id
|
37
38
|
|
38
39
|
# @return [Profiles] profiles
|
@@ -351,7 +352,7 @@ module Azure::CDN::Mgmt::V2017_04_02
|
|
351
352
|
#
|
352
353
|
def add_telemetry
|
353
354
|
sdk_information = 'azure_mgmt_cdn'
|
354
|
-
sdk_information = "#{sdk_information}/0.
|
355
|
+
sdk_information = "#{sdk_information}/0.17.0"
|
355
356
|
add_user_agent_information(sdk_information)
|
356
357
|
end
|
357
358
|
end
|
@@ -24,15 +24,16 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|
24
24
|
# Current version is 2017-04-02.
|
25
25
|
attr_reader :api_version
|
26
26
|
|
27
|
-
# @return [String]
|
27
|
+
# @return [String] The preferred language for the response.
|
28
28
|
attr_accessor :accept_language
|
29
29
|
|
30
|
-
# @return [Integer]
|
31
|
-
#
|
30
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
31
|
+
# Operations. Default value is 30.
|
32
32
|
attr_accessor :long_running_operation_retry_timeout
|
33
33
|
|
34
|
-
# @return [Boolean]
|
35
|
-
#
|
34
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
35
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
36
|
+
# generated and included in each request. Default is true.
|
36
37
|
attr_accessor :generate_client_request_id
|
37
38
|
|
38
39
|
# @return [Profiles] profiles
|
@@ -240,6 +241,107 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|
240
241
|
promise.execute
|
241
242
|
end
|
242
243
|
|
244
|
+
#
|
245
|
+
# Check the availability of a resource name. This is needed for resources where
|
246
|
+
# name is globally unique, such as a CDN endpoint.
|
247
|
+
#
|
248
|
+
# @param check_name_availability_input [CheckNameAvailabilityInput] Input to
|
249
|
+
# check.
|
250
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
251
|
+
# will be added to the HTTP request.
|
252
|
+
#
|
253
|
+
# @return [CheckNameAvailabilityOutput] operation results.
|
254
|
+
#
|
255
|
+
def check_name_availability_with_subscription(check_name_availability_input, custom_headers:nil)
|
256
|
+
response = check_name_availability_with_subscription_async(check_name_availability_input, custom_headers:custom_headers).value!
|
257
|
+
response.body unless response.nil?
|
258
|
+
end
|
259
|
+
|
260
|
+
#
|
261
|
+
# Check the availability of a resource name. This is needed for resources where
|
262
|
+
# name is globally unique, such as a CDN endpoint.
|
263
|
+
#
|
264
|
+
# @param check_name_availability_input [CheckNameAvailabilityInput] Input to
|
265
|
+
# check.
|
266
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
267
|
+
# will be added to the HTTP request.
|
268
|
+
#
|
269
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
270
|
+
#
|
271
|
+
def check_name_availability_with_subscription_with_http_info(check_name_availability_input, custom_headers:nil)
|
272
|
+
check_name_availability_with_subscription_async(check_name_availability_input, custom_headers:custom_headers).value!
|
273
|
+
end
|
274
|
+
|
275
|
+
#
|
276
|
+
# Check the availability of a resource name. This is needed for resources where
|
277
|
+
# name is globally unique, such as a CDN endpoint.
|
278
|
+
#
|
279
|
+
# @param check_name_availability_input [CheckNameAvailabilityInput] Input to
|
280
|
+
# check.
|
281
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
282
|
+
# to the HTTP request.
|
283
|
+
#
|
284
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
285
|
+
#
|
286
|
+
def check_name_availability_with_subscription_async(check_name_availability_input, custom_headers:nil)
|
287
|
+
fail ArgumentError, 'check_name_availability_input is nil' if check_name_availability_input.nil?
|
288
|
+
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
289
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
290
|
+
|
291
|
+
|
292
|
+
request_headers = {}
|
293
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
294
|
+
|
295
|
+
# Set Headers
|
296
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
297
|
+
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
298
|
+
|
299
|
+
# Serialize Request
|
300
|
+
request_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityInput.mapper()
|
301
|
+
request_content = self.serialize(request_mapper, check_name_availability_input)
|
302
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
303
|
+
|
304
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Cdn/checkNameAvailability'
|
305
|
+
|
306
|
+
request_url = @base_url || self.base_url
|
307
|
+
|
308
|
+
options = {
|
309
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
310
|
+
path_params: {'subscriptionId' => subscription_id},
|
311
|
+
query_params: {'api-version' => api_version},
|
312
|
+
body: request_content,
|
313
|
+
headers: request_headers.merge(custom_headers || {}),
|
314
|
+
base_url: request_url
|
315
|
+
}
|
316
|
+
promise = self.make_request_async(:post, path_template, options)
|
317
|
+
|
318
|
+
promise = promise.then do |result|
|
319
|
+
http_response = result.response
|
320
|
+
status_code = http_response.status
|
321
|
+
response_content = http_response.body
|
322
|
+
unless status_code == 200
|
323
|
+
error_model = JSON.load(response_content)
|
324
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
325
|
+
end
|
326
|
+
|
327
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
328
|
+
# Deserialize Response
|
329
|
+
if status_code == 200
|
330
|
+
begin
|
331
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
332
|
+
result_mapper = Azure::CDN::Mgmt::V2017_10_12::Models::CheckNameAvailabilityOutput.mapper()
|
333
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
334
|
+
rescue Exception => e
|
335
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
336
|
+
end
|
337
|
+
end
|
338
|
+
|
339
|
+
result
|
340
|
+
end
|
341
|
+
|
342
|
+
promise.execute
|
343
|
+
end
|
344
|
+
|
243
345
|
#
|
244
346
|
# Check if the probe path is a valid path and the file can be accessed. Probe
|
245
347
|
# path is the path to a file hosted on the origin server to help accelerate the
|
@@ -351,7 +453,7 @@ module Azure::CDN::Mgmt::V2017_10_12
|
|
351
453
|
#
|
352
454
|
def add_telemetry
|
353
455
|
sdk_information = 'azure_mgmt_cdn'
|
354
|
-
sdk_information = "#{sdk_information}/0.
|
456
|
+
sdk_information = "#{sdk_information}/0.17.0"
|
355
457
|
add_user_agent_information(sdk_information)
|
356
458
|
end
|
357
459
|
end
|
data/lib/azure_mgmt_cdn.rb
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
3
|
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
4
|
|
5
|
-
require '
|
5
|
+
require '2017-10-12/generated/azure_mgmt_cdn'
|
6
|
+
require '2017-04-02/generated/azure_mgmt_cdn'
|
6
7
|
require '2016-04-02/generated/azure_mgmt_cdn'
|
8
|
+
require '2015-06-01/generated/azure_mgmt_cdn'
|
7
9
|
require '2016-10-02/generated/azure_mgmt_cdn'
|
8
|
-
require '2017-04-02/generated/azure_mgmt_cdn'
|
9
|
-
require '2017-10-12/generated/azure_mgmt_cdn'
|
10
10
|
require 'profiles/latest/cdn_latest_profile_client'
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_cdn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.17.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: 2018-
|
11
|
+
date: 2018-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.11.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.11.0
|
83
83
|
description: Microsoft Azure CDN Management Client Library for Ruby
|
84
84
|
email: azrubyteam@microsoft.com
|
85
85
|
executables: []
|