azure_mgmt_links 0.15.2 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/2016-09-01/generated/azure_mgmt_links/management_link_client.rb +4 -1
- data/lib/2016-09-01/generated/azure_mgmt_links/resource_links.rb +48 -43
- data/lib/profiles/latest/links_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/links_module_definition.rb +0 -1
- data/lib/profiles/latest/modules/links_profile_module.rb +42 -23
- data/lib/profiles/v2017_03_09/links_module_definition.rb +0 -1
- data/lib/profiles/v2017_03_09/links_v2017_03_09_profile_client.rb +28 -9
- data/lib/profiles/v2017_03_09/modules/links_profile_module.rb +42 -23
- 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: a9be9f098f393c56786683c947690e193b05b8a4
|
4
|
+
data.tar.gz: d2d2ed954375e2fdd42d784e046cba2597c15d07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd12537a683001c1d3c2458834d30ba3e9a3b327a89b807780f145a2221fa162854735a13869323e4df54d1bea899bda07d176bac41bac628154abf38c5f3c1a
|
7
|
+
data.tar.gz: de56eb3454cb7ad4faded774118d0ef0062d479cd87cad36d7a994b085180d5fe6a618649ea35a4432f0465a661e82c7e20dffd8ac4a4f548cef2a7b76da4ed0
|
@@ -104,6 +104,9 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
104
104
|
fail ArgumentError, 'path is nil' if path.nil?
|
105
105
|
|
106
106
|
request_url = options[:base_url] || @base_url
|
107
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
108
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
109
|
+
end
|
107
110
|
|
108
111
|
request_headers = @request_headers
|
109
112
|
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
@@ -120,7 +123,7 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
120
123
|
#
|
121
124
|
def add_telemetry
|
122
125
|
sdk_information = 'azure_mgmt_links'
|
123
|
-
sdk_information = "#{sdk_information}/0.
|
126
|
+
sdk_information = "#{sdk_information}/0.16.0"
|
124
127
|
add_user_agent_information(sdk_information)
|
125
128
|
end
|
126
129
|
end
|
@@ -38,8 +38,8 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
38
38
|
# will be added to the HTTP request.
|
39
39
|
#
|
40
40
|
#
|
41
|
-
def delete(link_id, custom_headers
|
42
|
-
response = delete_async(link_id, custom_headers).value!
|
41
|
+
def delete(link_id, custom_headers:nil)
|
42
|
+
response = delete_async(link_id, custom_headers:custom_headers).value!
|
43
43
|
nil
|
44
44
|
end
|
45
45
|
|
@@ -56,8 +56,8 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
56
56
|
#
|
57
57
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
58
58
|
#
|
59
|
-
def delete_with_http_info(link_id, custom_headers
|
60
|
-
delete_async(link_id, custom_headers).value!
|
59
|
+
def delete_with_http_info(link_id, custom_headers:nil)
|
60
|
+
delete_async(link_id, custom_headers:custom_headers).value!
|
61
61
|
end
|
62
62
|
|
63
63
|
#
|
@@ -73,12 +73,13 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
73
73
|
#
|
74
74
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
75
75
|
#
|
76
|
-
def delete_async(link_id, custom_headers
|
76
|
+
def delete_async(link_id, custom_headers:nil)
|
77
77
|
fail ArgumentError, 'link_id is nil' if link_id.nil?
|
78
78
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
79
79
|
|
80
80
|
|
81
81
|
request_headers = {}
|
82
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
82
83
|
|
83
84
|
# Set Headers
|
84
85
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -128,8 +129,8 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
128
129
|
#
|
129
130
|
# @return [ResourceLink] operation results.
|
130
131
|
#
|
131
|
-
def create_or_update(link_id, parameters, custom_headers
|
132
|
-
response = create_or_update_async(link_id, parameters, custom_headers).value!
|
132
|
+
def create_or_update(link_id, parameters, custom_headers:nil)
|
133
|
+
response = create_or_update_async(link_id, parameters, custom_headers:custom_headers).value!
|
133
134
|
response.body unless response.nil?
|
134
135
|
end
|
135
136
|
|
@@ -148,8 +149,8 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
148
149
|
#
|
149
150
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
150
151
|
#
|
151
|
-
def create_or_update_with_http_info(link_id, parameters, custom_headers
|
152
|
-
create_or_update_async(link_id, parameters, custom_headers).value!
|
152
|
+
def create_or_update_with_http_info(link_id, parameters, custom_headers:nil)
|
153
|
+
create_or_update_async(link_id, parameters, custom_headers:custom_headers).value!
|
153
154
|
end
|
154
155
|
|
155
156
|
#
|
@@ -167,20 +168,19 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
167
168
|
#
|
168
169
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
169
170
|
#
|
170
|
-
def create_or_update_async(link_id, parameters, custom_headers
|
171
|
+
def create_or_update_async(link_id, parameters, custom_headers:nil)
|
171
172
|
fail ArgumentError, 'link_id is nil' if link_id.nil?
|
172
173
|
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
173
174
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
174
175
|
|
175
176
|
|
176
177
|
request_headers = {}
|
178
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
177
179
|
|
178
180
|
# Set Headers
|
179
181
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
180
182
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
181
183
|
|
182
|
-
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
183
|
-
|
184
184
|
# Serialize Request
|
185
185
|
request_mapper = Azure::Links::Mgmt::V2016_09_01::Models::ResourceLink.mapper()
|
186
186
|
request_content = @client.serialize(request_mapper, parameters)
|
@@ -248,8 +248,8 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
248
248
|
#
|
249
249
|
# @return [ResourceLink] operation results.
|
250
250
|
#
|
251
|
-
def get(link_id, custom_headers
|
252
|
-
response = get_async(link_id, custom_headers).value!
|
251
|
+
def get(link_id, custom_headers:nil)
|
252
|
+
response = get_async(link_id, custom_headers:custom_headers).value!
|
253
253
|
response.body unless response.nil?
|
254
254
|
end
|
255
255
|
|
@@ -264,8 +264,8 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
264
264
|
#
|
265
265
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
266
266
|
#
|
267
|
-
def get_with_http_info(link_id, custom_headers
|
268
|
-
get_async(link_id, custom_headers).value!
|
267
|
+
def get_with_http_info(link_id, custom_headers:nil)
|
268
|
+
get_async(link_id, custom_headers:custom_headers).value!
|
269
269
|
end
|
270
270
|
|
271
271
|
#
|
@@ -279,12 +279,13 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
279
279
|
#
|
280
280
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
281
281
|
#
|
282
|
-
def get_async(link_id, custom_headers
|
282
|
+
def get_async(link_id, custom_headers:nil)
|
283
283
|
fail ArgumentError, 'link_id is nil' if link_id.nil?
|
284
284
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
285
285
|
|
286
286
|
|
287
287
|
request_headers = {}
|
288
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
288
289
|
|
289
290
|
# Set Headers
|
290
291
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -340,8 +341,8 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
340
341
|
#
|
341
342
|
# @return [Array<ResourceLink>] operation results.
|
342
343
|
#
|
343
|
-
def list_at_subscription(filter
|
344
|
-
first_page = list_at_subscription_as_lazy(filter, custom_headers)
|
344
|
+
def list_at_subscription(filter:nil, custom_headers:nil)
|
345
|
+
first_page = list_at_subscription_as_lazy(filter:filter, custom_headers:custom_headers)
|
345
346
|
first_page.get_all_items
|
346
347
|
end
|
347
348
|
|
@@ -356,8 +357,8 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
356
357
|
#
|
357
358
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
358
359
|
#
|
359
|
-
def list_at_subscription_with_http_info(filter
|
360
|
-
list_at_subscription_async(filter, custom_headers).value!
|
360
|
+
def list_at_subscription_with_http_info(filter:nil, custom_headers:nil)
|
361
|
+
list_at_subscription_async(filter:filter, custom_headers:custom_headers).value!
|
361
362
|
end
|
362
363
|
|
363
364
|
#
|
@@ -371,12 +372,13 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
371
372
|
#
|
372
373
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
373
374
|
#
|
374
|
-
def list_at_subscription_async(filter
|
375
|
+
def list_at_subscription_async(filter:nil, custom_headers:nil)
|
375
376
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
376
377
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
377
378
|
|
378
379
|
|
379
380
|
request_headers = {}
|
381
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
380
382
|
|
381
383
|
# Set Headers
|
382
384
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -436,8 +438,8 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
436
438
|
#
|
437
439
|
# @return [Array<ResourceLink>] operation results.
|
438
440
|
#
|
439
|
-
def list_at_source_scope(scope, filter
|
440
|
-
first_page = list_at_source_scope_as_lazy(scope, filter, custom_headers)
|
441
|
+
def list_at_source_scope(scope, filter:nil, custom_headers:nil)
|
442
|
+
first_page = list_at_source_scope_as_lazy(scope, filter:filter, custom_headers:custom_headers)
|
441
443
|
first_page.get_all_items
|
442
444
|
end
|
443
445
|
|
@@ -456,8 +458,8 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
456
458
|
#
|
457
459
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
458
460
|
#
|
459
|
-
def list_at_source_scope_with_http_info(scope, filter
|
460
|
-
list_at_source_scope_async(scope, filter, custom_headers).value!
|
461
|
+
def list_at_source_scope_with_http_info(scope, filter:nil, custom_headers:nil)
|
462
|
+
list_at_source_scope_async(scope, filter:filter, custom_headers:custom_headers).value!
|
461
463
|
end
|
462
464
|
|
463
465
|
#
|
@@ -475,12 +477,13 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
475
477
|
#
|
476
478
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
477
479
|
#
|
478
|
-
def list_at_source_scope_async(scope, filter
|
480
|
+
def list_at_source_scope_async(scope, filter:nil, custom_headers:nil)
|
479
481
|
fail ArgumentError, 'scope is nil' if scope.nil?
|
480
482
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
481
483
|
|
482
484
|
|
483
485
|
request_headers = {}
|
486
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
484
487
|
|
485
488
|
# Set Headers
|
486
489
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -535,8 +538,8 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
535
538
|
#
|
536
539
|
# @return [ResourceLinkResult] operation results.
|
537
540
|
#
|
538
|
-
def list_at_subscription_next(next_page_link, custom_headers
|
539
|
-
response = list_at_subscription_next_async(next_page_link, custom_headers).value!
|
541
|
+
def list_at_subscription_next(next_page_link, custom_headers:nil)
|
542
|
+
response = list_at_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
|
540
543
|
response.body unless response.nil?
|
541
544
|
end
|
542
545
|
|
@@ -550,8 +553,8 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
550
553
|
#
|
551
554
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
552
555
|
#
|
553
|
-
def list_at_subscription_next_with_http_info(next_page_link, custom_headers
|
554
|
-
list_at_subscription_next_async(next_page_link, custom_headers).value!
|
556
|
+
def list_at_subscription_next_with_http_info(next_page_link, custom_headers:nil)
|
557
|
+
list_at_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
|
555
558
|
end
|
556
559
|
|
557
560
|
#
|
@@ -564,11 +567,12 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
564
567
|
#
|
565
568
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
566
569
|
#
|
567
|
-
def list_at_subscription_next_async(next_page_link, custom_headers
|
570
|
+
def list_at_subscription_next_async(next_page_link, custom_headers:nil)
|
568
571
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
569
572
|
|
570
573
|
|
571
574
|
request_headers = {}
|
575
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
572
576
|
|
573
577
|
# Set Headers
|
574
578
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -622,8 +626,8 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
622
626
|
#
|
623
627
|
# @return [ResourceLinkResult] operation results.
|
624
628
|
#
|
625
|
-
def list_at_source_scope_next(next_page_link, custom_headers
|
626
|
-
response = list_at_source_scope_next_async(next_page_link, custom_headers).value!
|
629
|
+
def list_at_source_scope_next(next_page_link, custom_headers:nil)
|
630
|
+
response = list_at_source_scope_next_async(next_page_link, custom_headers:custom_headers).value!
|
627
631
|
response.body unless response.nil?
|
628
632
|
end
|
629
633
|
|
@@ -637,8 +641,8 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
637
641
|
#
|
638
642
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
639
643
|
#
|
640
|
-
def list_at_source_scope_next_with_http_info(next_page_link, custom_headers
|
641
|
-
list_at_source_scope_next_async(next_page_link, custom_headers).value!
|
644
|
+
def list_at_source_scope_next_with_http_info(next_page_link, custom_headers:nil)
|
645
|
+
list_at_source_scope_next_async(next_page_link, custom_headers:custom_headers).value!
|
642
646
|
end
|
643
647
|
|
644
648
|
#
|
@@ -651,11 +655,12 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
651
655
|
#
|
652
656
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
653
657
|
#
|
654
|
-
def list_at_source_scope_next_async(next_page_link, custom_headers
|
658
|
+
def list_at_source_scope_next_async(next_page_link, custom_headers:nil)
|
655
659
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
656
660
|
|
657
661
|
|
658
662
|
request_headers = {}
|
663
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
659
664
|
|
660
665
|
# Set Headers
|
661
666
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -711,12 +716,12 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
711
716
|
# @return [ResourceLinkResult] which provide lazy access to pages of the
|
712
717
|
# response.
|
713
718
|
#
|
714
|
-
def list_at_subscription_as_lazy(filter
|
715
|
-
response = list_at_subscription_async(filter, custom_headers).value!
|
719
|
+
def list_at_subscription_as_lazy(filter:nil, custom_headers:nil)
|
720
|
+
response = list_at_subscription_async(filter:filter, custom_headers:custom_headers).value!
|
716
721
|
unless response.nil?
|
717
722
|
page = response.body
|
718
723
|
page.next_method = Proc.new do |next_page_link|
|
719
|
-
list_at_subscription_next_async(next_page_link, custom_headers)
|
724
|
+
list_at_subscription_next_async(next_page_link, custom_headers:custom_headers)
|
720
725
|
end
|
721
726
|
page
|
722
727
|
end
|
@@ -738,12 +743,12 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
738
743
|
# @return [ResourceLinkResult] which provide lazy access to pages of the
|
739
744
|
# response.
|
740
745
|
#
|
741
|
-
def list_at_source_scope_as_lazy(scope, filter
|
742
|
-
response = list_at_source_scope_async(scope, filter, custom_headers).value!
|
746
|
+
def list_at_source_scope_as_lazy(scope, filter:nil, custom_headers:nil)
|
747
|
+
response = list_at_source_scope_async(scope, filter:filter, custom_headers:custom_headers).value!
|
743
748
|
unless response.nil?
|
744
749
|
page = response.body
|
745
750
|
page.next_method = Proc.new do |next_page_link|
|
746
|
-
list_at_source_scope_next_async(next_page_link, custom_headers)
|
751
|
+
list_at_source_scope_next_async(next_page_link, custom_headers:custom_headers)
|
747
752
|
end
|
748
753
|
page
|
749
754
|
end
|
@@ -5,17 +5,36 @@
|
|
5
5
|
require 'profiles/latest/links_module_definition'
|
6
6
|
require 'profiles/latest/modules/links_profile_module'
|
7
7
|
|
8
|
-
module Azure::Links::Profiles::Latest
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
module Azure::Links::Profiles::Latest
|
9
|
+
module Mgmt
|
10
|
+
#
|
11
|
+
# Client class for the Latest profile SDK.
|
12
|
+
#
|
13
|
+
class Client < LinksManagementClass
|
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_links'
|
6
6
|
|
7
|
-
module Azure::Links::Profiles::Latest
|
7
|
+
module Azure::Links::Profiles::Latest
|
8
|
+
module Mgmt
|
8
9
|
ResourceLinks = Azure::Links::Mgmt::V2016_09_01::ResourceLinks
|
9
10
|
|
10
11
|
module Models
|
@@ -16,9 +17,9 @@ module Azure::Links::Profiles::Latest::Mgmt
|
|
16
17
|
end
|
17
18
|
|
18
19
|
#
|
19
|
-
#
|
20
|
+
# LinksManagementClass
|
20
21
|
#
|
21
|
-
class
|
22
|
+
class LinksManagementClass
|
22
23
|
attr_reader :resource_links, :configurable, :base_url, :options, :model_classes
|
23
24
|
|
24
25
|
def initialize(options = {})
|
@@ -30,33 +31,51 @@ module Azure::Links::Profiles::Latest::Mgmt
|
|
30
31
|
|
31
32
|
reset!(options)
|
32
33
|
|
33
|
-
@configurable
|
34
|
+
@configurable = self
|
35
|
+
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
36
|
+
@options = options[:options].nil? ? nil:options[:options]
|
34
37
|
|
35
|
-
client_0 = Azure::Links::Mgmt::V2016_09_01::ManagementLinkClient.new(configurable.credentials, base_url, options)
|
36
|
-
if(client_0.respond_to?(:subscription_id))
|
37
|
-
client_0.subscription_id = configurable.subscription_id
|
38
|
+
@client_0 = Azure::Links::Mgmt::V2016_09_01::ManagementLinkClient.new(configurable.credentials, base_url, options)
|
39
|
+
if(@client_0.respond_to?(:subscription_id))
|
40
|
+
@client_0.subscription_id = configurable.subscription_id
|
38
41
|
end
|
39
|
-
@
|
42
|
+
add_telemetry(@client_0)
|
43
|
+
@resource_links = @client_0.resource_links
|
40
44
|
|
41
45
|
@model_classes = ModelClasses.new
|
42
46
|
end
|
43
47
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
def resource_link_properties
|
55
|
-
Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkProperties
|
56
|
-
end
|
57
|
-
def filter
|
58
|
-
Azure::Links::Mgmt::V2016_09_01::Models::Filter
|
48
|
+
def add_telemetry(client)
|
49
|
+
profile_information = 'Profiles/Latest/Links/Mgmt'
|
50
|
+
client.add_user_agent_information(profile_information)
|
51
|
+
end
|
52
|
+
|
53
|
+
def method_missing(method, *args)
|
54
|
+
if @client_0.respond_to?method
|
55
|
+
@client_0.send(method, *args)
|
56
|
+
else
|
57
|
+
super
|
59
58
|
end
|
60
59
|
end
|
60
|
+
|
61
|
+
end
|
62
|
+
|
63
|
+
class ModelClasses
|
64
|
+
def resource_link
|
65
|
+
Azure::Links::Mgmt::V2016_09_01::Models::ResourceLink
|
66
|
+
end
|
67
|
+
def resource_link_filter
|
68
|
+
Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkFilter
|
69
|
+
end
|
70
|
+
def resource_link_result
|
71
|
+
Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkResult
|
72
|
+
end
|
73
|
+
def resource_link_properties
|
74
|
+
Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkProperties
|
75
|
+
end
|
76
|
+
def filter
|
77
|
+
Azure::Links::Mgmt::V2016_09_01::Models::Filter
|
78
|
+
end
|
61
79
|
end
|
80
|
+
end
|
62
81
|
end
|
@@ -5,17 +5,36 @@
|
|
5
5
|
require 'profiles/v2017_03_09/links_module_definition'
|
6
6
|
require 'profiles/v2017_03_09/modules/links_profile_module'
|
7
7
|
|
8
|
-
module Azure::Links::Profiles::V2017_03_09
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
8
|
+
module Azure::Links::Profiles::V2017_03_09
|
9
|
+
module Mgmt
|
10
|
+
#
|
11
|
+
# Client class for the V2017_03_09 profile SDK.
|
12
|
+
#
|
13
|
+
class Client < LinksManagementClass
|
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_links'
|
6
6
|
|
7
|
-
module Azure::Links::Profiles::V2017_03_09
|
7
|
+
module Azure::Links::Profiles::V2017_03_09
|
8
|
+
module Mgmt
|
8
9
|
ResourceLinks = Azure::Links::Mgmt::V2016_09_01::ResourceLinks
|
9
10
|
|
10
11
|
module Models
|
@@ -16,9 +17,9 @@ module Azure::Links::Profiles::V2017_03_09::Mgmt
|
|
16
17
|
end
|
17
18
|
|
18
19
|
#
|
19
|
-
#
|
20
|
+
# LinksManagementClass
|
20
21
|
#
|
21
|
-
class
|
22
|
+
class LinksManagementClass
|
22
23
|
attr_reader :resource_links, :configurable, :base_url, :options, :model_classes
|
23
24
|
|
24
25
|
def initialize(options = {})
|
@@ -30,33 +31,51 @@ module Azure::Links::Profiles::V2017_03_09::Mgmt
|
|
30
31
|
|
31
32
|
reset!(options)
|
32
33
|
|
33
|
-
@configurable
|
34
|
+
@configurable = self
|
35
|
+
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
36
|
+
@options = options[:options].nil? ? nil:options[:options]
|
34
37
|
|
35
|
-
client_0 = Azure::Links::Mgmt::V2016_09_01::ManagementLinkClient.new(configurable.credentials, base_url, options)
|
36
|
-
if(client_0.respond_to?(:subscription_id))
|
37
|
-
client_0.subscription_id = configurable.subscription_id
|
38
|
+
@client_0 = Azure::Links::Mgmt::V2016_09_01::ManagementLinkClient.new(configurable.credentials, base_url, options)
|
39
|
+
if(@client_0.respond_to?(:subscription_id))
|
40
|
+
@client_0.subscription_id = configurable.subscription_id
|
38
41
|
end
|
39
|
-
@
|
42
|
+
add_telemetry(@client_0)
|
43
|
+
@resource_links = @client_0.resource_links
|
40
44
|
|
41
45
|
@model_classes = ModelClasses.new
|
42
46
|
end
|
43
47
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
def resource_link_properties
|
55
|
-
Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkProperties
|
56
|
-
end
|
57
|
-
def filter
|
58
|
-
Azure::Links::Mgmt::V2016_09_01::Models::Filter
|
48
|
+
def add_telemetry(client)
|
49
|
+
profile_information = 'Profiles/V2017_03_09/Links/Mgmt'
|
50
|
+
client.add_user_agent_information(profile_information)
|
51
|
+
end
|
52
|
+
|
53
|
+
def method_missing(method, *args)
|
54
|
+
if @client_0.respond_to?method
|
55
|
+
@client_0.send(method, *args)
|
56
|
+
else
|
57
|
+
super
|
59
58
|
end
|
60
59
|
end
|
60
|
+
|
61
|
+
end
|
62
|
+
|
63
|
+
class ModelClasses
|
64
|
+
def resource_link
|
65
|
+
Azure::Links::Mgmt::V2016_09_01::Models::ResourceLink
|
66
|
+
end
|
67
|
+
def resource_link_filter
|
68
|
+
Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkFilter
|
69
|
+
end
|
70
|
+
def resource_link_result
|
71
|
+
Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkResult
|
72
|
+
end
|
73
|
+
def resource_link_properties
|
74
|
+
Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkProperties
|
75
|
+
end
|
76
|
+
def filter
|
77
|
+
Azure::Links::Mgmt::V2016_09_01::Models::Filter
|
78
|
+
end
|
61
79
|
end
|
80
|
+
end
|
62
81
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_links
|
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 Links.
|