azure_mgmt_links 0.17.0 → 0.17.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2016-09-01/generated/azure_mgmt_links.rb +6 -2
- data/lib/2016-09-01/generated/azure_mgmt_links/management_link_client.rb +5 -1
- data/lib/2016-09-01/generated/azure_mgmt_links/models/operation.rb +58 -0
- data/lib/2016-09-01/generated/azure_mgmt_links/models/operation_display.rb +80 -0
- data/lib/2016-09-01/generated/azure_mgmt_links/models/operation_list_result.rb +100 -0
- data/lib/2016-09-01/generated/azure_mgmt_links/models/resource_link.rb +12 -0
- data/lib/2016-09-01/generated/azure_mgmt_links/operations.rb +220 -0
- data/lib/profiles/latest/modules/links_profile_module.rb +23 -9
- data/lib/profiles/v2017_03_09/modules/links_profile_module.rb +23 -9
- data/lib/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bbacb9fd5be8582e4249f6b1877f9d115e10cf3
|
4
|
+
data.tar.gz: e3fa0d132ada87d07fe24d6fb5bc5fb3dde5190d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5638743f96d5990b5cea4280d903109eeedcda6c7fe84c2d74527e268dc5317aecb3164202d4c713938673cef7523aa8762d6a5396cd2261d403b1bf3b395ae
|
7
|
+
data.tar.gz: d971ba769b5770f1e6c5f36d7167fd76164cd744f520f91092e96fc3e60c986509e9d0ea599e9a1d6700b6e934b993b4058a62bc4cbd83a64dbb30a3f6c42f2b
|
@@ -20,14 +20,18 @@ require '2016-09-01/generated/azure_mgmt_links/module_definition'
|
|
20
20
|
require 'ms_rest_azure'
|
21
21
|
|
22
22
|
module Azure::Links::Mgmt::V2016_09_01
|
23
|
+
autoload :Operations, '2016-09-01/generated/azure_mgmt_links/operations.rb'
|
23
24
|
autoload :ResourceLinks, '2016-09-01/generated/azure_mgmt_links/resource_links.rb'
|
24
25
|
autoload :ManagementLinkClient, '2016-09-01/generated/azure_mgmt_links/management_link_client.rb'
|
25
26
|
|
26
27
|
module Models
|
27
|
-
autoload :ResourceLink, '2016-09-01/generated/azure_mgmt_links/models/resource_link.rb'
|
28
|
-
autoload :ResourceLinkFilter, '2016-09-01/generated/azure_mgmt_links/models/resource_link_filter.rb'
|
29
28
|
autoload :ResourceLinkResult, '2016-09-01/generated/azure_mgmt_links/models/resource_link_result.rb'
|
29
|
+
autoload :OperationDisplay, '2016-09-01/generated/azure_mgmt_links/models/operation_display.rb'
|
30
30
|
autoload :ResourceLinkProperties, '2016-09-01/generated/azure_mgmt_links/models/resource_link_properties.rb'
|
31
|
+
autoload :Operation, '2016-09-01/generated/azure_mgmt_links/models/operation.rb'
|
32
|
+
autoload :ResourceLinkFilter, '2016-09-01/generated/azure_mgmt_links/models/resource_link_filter.rb'
|
33
|
+
autoload :OperationListResult, '2016-09-01/generated/azure_mgmt_links/models/operation_list_result.rb'
|
34
|
+
autoload :ResourceLink, '2016-09-01/generated/azure_mgmt_links/models/resource_link.rb'
|
31
35
|
autoload :Filter, '2016-09-01/generated/azure_mgmt_links/models/filter.rb'
|
32
36
|
end
|
33
37
|
end
|
@@ -35,6 +35,9 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
35
35
|
# generated and included in each request. Default is true.
|
36
36
|
attr_accessor :generate_client_request_id
|
37
37
|
|
38
|
+
# @return [Operations] operations
|
39
|
+
attr_reader :operations
|
40
|
+
|
38
41
|
# @return [ResourceLinks] resource_links
|
39
42
|
attr_reader :resource_links
|
40
43
|
|
@@ -51,6 +54,7 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
51
54
|
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
52
55
|
@credentials = credentials
|
53
56
|
|
57
|
+
@operations = Operations.new(self)
|
54
58
|
@resource_links = ResourceLinks.new(self)
|
55
59
|
@api_version = '2016-09-01'
|
56
60
|
@accept_language = 'en-US'
|
@@ -124,7 +128,7 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
124
128
|
#
|
125
129
|
def add_telemetry
|
126
130
|
sdk_information = 'azure_mgmt_links'
|
127
|
-
sdk_information = "#{sdk_information}/0.17.
|
131
|
+
sdk_information = "#{sdk_information}/0.17.1"
|
128
132
|
add_user_agent_information(sdk_information)
|
129
133
|
end
|
130
134
|
end
|
@@ -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
|
+
module Azure::Links::Mgmt::V2016_09_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Microsoft.Resources operation
|
10
|
+
#
|
11
|
+
class Operation
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Operation name: {provider}/{resource}/{operation}
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [OperationDisplay] The object that represents the operation.
|
19
|
+
attr_accessor :display
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for Operation class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
client_side_validation: true,
|
29
|
+
required: false,
|
30
|
+
serialized_name: 'Operation',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'Operation',
|
34
|
+
model_properties: {
|
35
|
+
name: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'name',
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
display: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'display',
|
47
|
+
type: {
|
48
|
+
name: 'Composite',
|
49
|
+
class_name: 'OperationDisplay'
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,80 @@
|
|
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::Links::Mgmt::V2016_09_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The object that represents the operation.
|
10
|
+
#
|
11
|
+
class OperationDisplay
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Service provider: Microsoft.Resources
|
16
|
+
attr_accessor :provider
|
17
|
+
|
18
|
+
# @return [String] Resource on which the operation is performed: Profile,
|
19
|
+
# endpoint, etc.
|
20
|
+
attr_accessor :resource
|
21
|
+
|
22
|
+
# @return [String] Operation type: Read, write, delete, etc.
|
23
|
+
attr_accessor :operation
|
24
|
+
|
25
|
+
# @return [String] Description of the operation.
|
26
|
+
attr_accessor :description
|
27
|
+
|
28
|
+
|
29
|
+
#
|
30
|
+
# Mapper for OperationDisplay class as Ruby Hash.
|
31
|
+
# This will be used for serialization/deserialization.
|
32
|
+
#
|
33
|
+
def self.mapper()
|
34
|
+
{
|
35
|
+
client_side_validation: true,
|
36
|
+
required: false,
|
37
|
+
serialized_name: 'Operation_display',
|
38
|
+
type: {
|
39
|
+
name: 'Composite',
|
40
|
+
class_name: 'OperationDisplay',
|
41
|
+
model_properties: {
|
42
|
+
provider: {
|
43
|
+
client_side_validation: true,
|
44
|
+
required: false,
|
45
|
+
serialized_name: 'provider',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
},
|
50
|
+
resource: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'resource',
|
54
|
+
type: {
|
55
|
+
name: 'String'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
operation: {
|
59
|
+
client_side_validation: true,
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'operation',
|
62
|
+
type: {
|
63
|
+
name: 'String'
|
64
|
+
}
|
65
|
+
},
|
66
|
+
description: {
|
67
|
+
client_side_validation: true,
|
68
|
+
required: false,
|
69
|
+
serialized_name: 'description',
|
70
|
+
type: {
|
71
|
+
name: 'String'
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
@@ -0,0 +1,100 @@
|
|
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::Links::Mgmt::V2016_09_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Result of the request to list Microsoft.Resources operations. It contains
|
10
|
+
# a list of operations and a URL link to get the next set of results.
|
11
|
+
#
|
12
|
+
class OperationListResult
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
include MsRest::JSONable
|
17
|
+
# @return [Array<Operation>] List of Microsoft.Resources operations.
|
18
|
+
attr_accessor :value
|
19
|
+
|
20
|
+
# @return [String] URL to get the next set of operation list results if
|
21
|
+
# there are any.
|
22
|
+
attr_accessor :next_link
|
23
|
+
|
24
|
+
# return [Proc] with next page method call.
|
25
|
+
attr_accessor :next_method
|
26
|
+
|
27
|
+
#
|
28
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
29
|
+
#
|
30
|
+
# @return [Array<Operation>] operation results.
|
31
|
+
#
|
32
|
+
def get_all_items
|
33
|
+
items = @value
|
34
|
+
page = self
|
35
|
+
while page.next_link != nil do
|
36
|
+
page = page.get_next_page
|
37
|
+
items.concat(page.value)
|
38
|
+
end
|
39
|
+
items
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# Gets the next page of results.
|
44
|
+
#
|
45
|
+
# @return [OperationListResult] with next page content.
|
46
|
+
#
|
47
|
+
def get_next_page
|
48
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
49
|
+
unless response.nil?
|
50
|
+
@next_link = response.body.next_link
|
51
|
+
@value = response.body.value
|
52
|
+
self
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
#
|
57
|
+
# Mapper for OperationListResult class as Ruby Hash.
|
58
|
+
# This will be used for serialization/deserialization.
|
59
|
+
#
|
60
|
+
def self.mapper()
|
61
|
+
{
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'OperationListResult',
|
65
|
+
type: {
|
66
|
+
name: 'Composite',
|
67
|
+
class_name: 'OperationListResult',
|
68
|
+
model_properties: {
|
69
|
+
value: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'value',
|
73
|
+
type: {
|
74
|
+
name: 'Sequence',
|
75
|
+
element: {
|
76
|
+
client_side_validation: true,
|
77
|
+
required: false,
|
78
|
+
serialized_name: 'OperationElementType',
|
79
|
+
type: {
|
80
|
+
name: 'Composite',
|
81
|
+
class_name: 'Operation'
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
},
|
86
|
+
next_link: {
|
87
|
+
client_side_validation: true,
|
88
|
+
required: false,
|
89
|
+
serialized_name: 'nextLink',
|
90
|
+
type: {
|
91
|
+
name: 'String'
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
@@ -18,6 +18,9 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
18
18
|
# @return [String] The name of the resource link.
|
19
19
|
attr_accessor :name
|
20
20
|
|
21
|
+
# @return The resource link object.
|
22
|
+
attr_accessor :type
|
23
|
+
|
21
24
|
# @return [ResourceLinkProperties] Properties for resource link.
|
22
25
|
attr_accessor :properties
|
23
26
|
|
@@ -53,6 +56,15 @@ module Azure::Links::Mgmt::V2016_09_01
|
|
53
56
|
name: 'String'
|
54
57
|
}
|
55
58
|
},
|
59
|
+
type: {
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
read_only: true,
|
63
|
+
serialized_name: 'type',
|
64
|
+
type: {
|
65
|
+
name: 'Object'
|
66
|
+
}
|
67
|
+
},
|
56
68
|
properties: {
|
57
69
|
client_side_validation: true,
|
58
70
|
required: false,
|
@@ -0,0 +1,220 @@
|
|
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::Links::Mgmt::V2016_09_01
|
7
|
+
#
|
8
|
+
# Azure resources can be linked together to form logical relationships. You
|
9
|
+
# can establish links between resources belonging to different resource
|
10
|
+
# groups. However, all the linked resources must belong to the same
|
11
|
+
# subscription. Each resource can be linked to 50 other resources. If any of
|
12
|
+
# the linked resources are deleted or moved, the link owner must clean up the
|
13
|
+
# remaining link.
|
14
|
+
#
|
15
|
+
class Operations
|
16
|
+
include MsRestAzure
|
17
|
+
|
18
|
+
#
|
19
|
+
# Creates and initializes a new instance of the Operations class.
|
20
|
+
# @param client service class for accessing basic functionality.
|
21
|
+
#
|
22
|
+
def initialize(client)
|
23
|
+
@client = client
|
24
|
+
end
|
25
|
+
|
26
|
+
# @return [ManagementLinkClient] reference to the ManagementLinkClient
|
27
|
+
attr_reader :client
|
28
|
+
|
29
|
+
#
|
30
|
+
# Lists all of the available Microsoft.Resources REST API operations.
|
31
|
+
#
|
32
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
33
|
+
# will be added to the HTTP request.
|
34
|
+
#
|
35
|
+
# @return [Array<Operation>] operation results.
|
36
|
+
#
|
37
|
+
def list(custom_headers:nil)
|
38
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
39
|
+
first_page.get_all_items
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# Lists all of the available Microsoft.Resources REST API operations.
|
44
|
+
#
|
45
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
46
|
+
# will be added to the HTTP request.
|
47
|
+
#
|
48
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
49
|
+
#
|
50
|
+
def list_with_http_info(custom_headers:nil)
|
51
|
+
list_async(custom_headers:custom_headers).value!
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# Lists all of the available Microsoft.Resources REST API operations.
|
56
|
+
#
|
57
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
58
|
+
# to the HTTP request.
|
59
|
+
#
|
60
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
61
|
+
#
|
62
|
+
def list_async(custom_headers:nil)
|
63
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
64
|
+
|
65
|
+
|
66
|
+
request_headers = {}
|
67
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
68
|
+
|
69
|
+
# Set Headers
|
70
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
71
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
72
|
+
path_template = 'providers/Microsoft.Resources/operations'
|
73
|
+
|
74
|
+
request_url = @base_url || @client.base_url
|
75
|
+
|
76
|
+
options = {
|
77
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
78
|
+
query_params: {'api-version' => @client.api_version},
|
79
|
+
headers: request_headers.merge(custom_headers || {}),
|
80
|
+
base_url: request_url
|
81
|
+
}
|
82
|
+
promise = @client.make_request_async(:get, path_template, options)
|
83
|
+
|
84
|
+
promise = promise.then do |result|
|
85
|
+
http_response = result.response
|
86
|
+
status_code = http_response.status
|
87
|
+
response_content = http_response.body
|
88
|
+
unless status_code == 200
|
89
|
+
error_model = JSON.load(response_content)
|
90
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
91
|
+
end
|
92
|
+
|
93
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
94
|
+
# Deserialize Response
|
95
|
+
if status_code == 200
|
96
|
+
begin
|
97
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
98
|
+
result_mapper = Azure::Links::Mgmt::V2016_09_01::Models::OperationListResult.mapper()
|
99
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
100
|
+
rescue Exception => e
|
101
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
result
|
106
|
+
end
|
107
|
+
|
108
|
+
promise.execute
|
109
|
+
end
|
110
|
+
|
111
|
+
#
|
112
|
+
# Lists all of the available Microsoft.Resources REST API operations.
|
113
|
+
#
|
114
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
115
|
+
# to List operation.
|
116
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
117
|
+
# will be added to the HTTP request.
|
118
|
+
#
|
119
|
+
# @return [OperationListResult] operation results.
|
120
|
+
#
|
121
|
+
def list_next(next_page_link, custom_headers:nil)
|
122
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
123
|
+
response.body unless response.nil?
|
124
|
+
end
|
125
|
+
|
126
|
+
#
|
127
|
+
# Lists all of the available Microsoft.Resources REST API operations.
|
128
|
+
#
|
129
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
130
|
+
# to List operation.
|
131
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
132
|
+
# will be added to the HTTP request.
|
133
|
+
#
|
134
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
135
|
+
#
|
136
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
137
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
138
|
+
end
|
139
|
+
|
140
|
+
#
|
141
|
+
# Lists all of the available Microsoft.Resources REST API operations.
|
142
|
+
#
|
143
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
144
|
+
# to List operation.
|
145
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
146
|
+
# to the HTTP request.
|
147
|
+
#
|
148
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
149
|
+
#
|
150
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
151
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
152
|
+
|
153
|
+
|
154
|
+
request_headers = {}
|
155
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
156
|
+
|
157
|
+
# Set Headers
|
158
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
159
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
160
|
+
path_template = '{nextLink}'
|
161
|
+
|
162
|
+
request_url = @base_url || @client.base_url
|
163
|
+
|
164
|
+
options = {
|
165
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
166
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
167
|
+
headers: request_headers.merge(custom_headers || {}),
|
168
|
+
base_url: request_url
|
169
|
+
}
|
170
|
+
promise = @client.make_request_async(:get, path_template, options)
|
171
|
+
|
172
|
+
promise = promise.then do |result|
|
173
|
+
http_response = result.response
|
174
|
+
status_code = http_response.status
|
175
|
+
response_content = http_response.body
|
176
|
+
unless status_code == 200
|
177
|
+
error_model = JSON.load(response_content)
|
178
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
179
|
+
end
|
180
|
+
|
181
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
182
|
+
# Deserialize Response
|
183
|
+
if status_code == 200
|
184
|
+
begin
|
185
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
186
|
+
result_mapper = Azure::Links::Mgmt::V2016_09_01::Models::OperationListResult.mapper()
|
187
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
188
|
+
rescue Exception => e
|
189
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
result
|
194
|
+
end
|
195
|
+
|
196
|
+
promise.execute
|
197
|
+
end
|
198
|
+
|
199
|
+
#
|
200
|
+
# Lists all of the available Microsoft.Resources REST API operations.
|
201
|
+
#
|
202
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
203
|
+
# will be added to the HTTP request.
|
204
|
+
#
|
205
|
+
# @return [OperationListResult] which provide lazy access to pages of the
|
206
|
+
# response.
|
207
|
+
#
|
208
|
+
def list_as_lazy(custom_headers:nil)
|
209
|
+
response = list_async(custom_headers:custom_headers).value!
|
210
|
+
unless response.nil?
|
211
|
+
page = response.body
|
212
|
+
page.next_method = Proc.new do |next_page_link|
|
213
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
214
|
+
end
|
215
|
+
page
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
219
|
+
end
|
220
|
+
end
|
@@ -6,13 +6,17 @@ require 'azure_mgmt_links'
|
|
6
6
|
|
7
7
|
module Azure::Links::Profiles::Latest
|
8
8
|
module Mgmt
|
9
|
+
Operations = Azure::Links::Mgmt::V2016_09_01::Operations
|
9
10
|
ResourceLinks = Azure::Links::Mgmt::V2016_09_01::ResourceLinks
|
10
11
|
|
11
12
|
module Models
|
12
|
-
ResourceLink = Azure::Links::Mgmt::V2016_09_01::Models::ResourceLink
|
13
|
-
ResourceLinkFilter = Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkFilter
|
14
13
|
ResourceLinkResult = Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkResult
|
14
|
+
OperationDisplay = Azure::Links::Mgmt::V2016_09_01::Models::OperationDisplay
|
15
15
|
ResourceLinkProperties = Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkProperties
|
16
|
+
Operation = Azure::Links::Mgmt::V2016_09_01::Models::Operation
|
17
|
+
ResourceLinkFilter = Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkFilter
|
18
|
+
OperationListResult = Azure::Links::Mgmt::V2016_09_01::Models::OperationListResult
|
19
|
+
ResourceLink = Azure::Links::Mgmt::V2016_09_01::Models::ResourceLink
|
16
20
|
Filter = Azure::Links::Mgmt::V2016_09_01::Models::Filter
|
17
21
|
end
|
18
22
|
|
@@ -20,7 +24,7 @@ module Azure::Links::Profiles::Latest
|
|
20
24
|
# LinksManagementClass
|
21
25
|
#
|
22
26
|
class LinksManagementClass
|
23
|
-
attr_reader :resource_links, :configurable, :base_url, :options, :model_classes
|
27
|
+
attr_reader :operations, :resource_links, :configurable, :base_url, :options, :model_classes
|
24
28
|
|
25
29
|
def initialize(options = {})
|
26
30
|
if options.is_a?(Hash) && options.length == 0
|
@@ -40,6 +44,7 @@ module Azure::Links::Profiles::Latest
|
|
40
44
|
@client_0.subscription_id = configurable.subscription_id
|
41
45
|
end
|
42
46
|
add_telemetry(@client_0)
|
47
|
+
@operations = @client_0.operations
|
43
48
|
@resource_links = @client_0.resource_links
|
44
49
|
|
45
50
|
@model_classes = ModelClasses.new
|
@@ -61,18 +66,27 @@ module Azure::Links::Profiles::Latest
|
|
61
66
|
end
|
62
67
|
|
63
68
|
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
69
|
def resource_link_result
|
71
70
|
Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkResult
|
72
71
|
end
|
72
|
+
def operation_display
|
73
|
+
Azure::Links::Mgmt::V2016_09_01::Models::OperationDisplay
|
74
|
+
end
|
73
75
|
def resource_link_properties
|
74
76
|
Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkProperties
|
75
77
|
end
|
78
|
+
def operation
|
79
|
+
Azure::Links::Mgmt::V2016_09_01::Models::Operation
|
80
|
+
end
|
81
|
+
def resource_link_filter
|
82
|
+
Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkFilter
|
83
|
+
end
|
84
|
+
def operation_list_result
|
85
|
+
Azure::Links::Mgmt::V2016_09_01::Models::OperationListResult
|
86
|
+
end
|
87
|
+
def resource_link
|
88
|
+
Azure::Links::Mgmt::V2016_09_01::Models::ResourceLink
|
89
|
+
end
|
76
90
|
def filter
|
77
91
|
Azure::Links::Mgmt::V2016_09_01::Models::Filter
|
78
92
|
end
|
@@ -6,13 +6,17 @@ require 'azure_mgmt_links'
|
|
6
6
|
|
7
7
|
module Azure::Links::Profiles::V2017_03_09
|
8
8
|
module Mgmt
|
9
|
+
Operations = Azure::Links::Mgmt::V2016_09_01::Operations
|
9
10
|
ResourceLinks = Azure::Links::Mgmt::V2016_09_01::ResourceLinks
|
10
11
|
|
11
12
|
module Models
|
12
|
-
ResourceLink = Azure::Links::Mgmt::V2016_09_01::Models::ResourceLink
|
13
|
-
ResourceLinkFilter = Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkFilter
|
14
13
|
ResourceLinkResult = Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkResult
|
14
|
+
OperationDisplay = Azure::Links::Mgmt::V2016_09_01::Models::OperationDisplay
|
15
15
|
ResourceLinkProperties = Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkProperties
|
16
|
+
Operation = Azure::Links::Mgmt::V2016_09_01::Models::Operation
|
17
|
+
ResourceLinkFilter = Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkFilter
|
18
|
+
OperationListResult = Azure::Links::Mgmt::V2016_09_01::Models::OperationListResult
|
19
|
+
ResourceLink = Azure::Links::Mgmt::V2016_09_01::Models::ResourceLink
|
16
20
|
Filter = Azure::Links::Mgmt::V2016_09_01::Models::Filter
|
17
21
|
end
|
18
22
|
|
@@ -20,7 +24,7 @@ module Azure::Links::Profiles::V2017_03_09
|
|
20
24
|
# LinksManagementClass
|
21
25
|
#
|
22
26
|
class LinksManagementClass
|
23
|
-
attr_reader :resource_links, :configurable, :base_url, :options, :model_classes
|
27
|
+
attr_reader :operations, :resource_links, :configurable, :base_url, :options, :model_classes
|
24
28
|
|
25
29
|
def initialize(options = {})
|
26
30
|
if options.is_a?(Hash) && options.length == 0
|
@@ -40,6 +44,7 @@ module Azure::Links::Profiles::V2017_03_09
|
|
40
44
|
@client_0.subscription_id = configurable.subscription_id
|
41
45
|
end
|
42
46
|
add_telemetry(@client_0)
|
47
|
+
@operations = @client_0.operations
|
43
48
|
@resource_links = @client_0.resource_links
|
44
49
|
|
45
50
|
@model_classes = ModelClasses.new
|
@@ -61,18 +66,27 @@ module Azure::Links::Profiles::V2017_03_09
|
|
61
66
|
end
|
62
67
|
|
63
68
|
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
69
|
def resource_link_result
|
71
70
|
Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkResult
|
72
71
|
end
|
72
|
+
def operation_display
|
73
|
+
Azure::Links::Mgmt::V2016_09_01::Models::OperationDisplay
|
74
|
+
end
|
73
75
|
def resource_link_properties
|
74
76
|
Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkProperties
|
75
77
|
end
|
78
|
+
def operation
|
79
|
+
Azure::Links::Mgmt::V2016_09_01::Models::Operation
|
80
|
+
end
|
81
|
+
def resource_link_filter
|
82
|
+
Azure::Links::Mgmt::V2016_09_01::Models::ResourceLinkFilter
|
83
|
+
end
|
84
|
+
def operation_list_result
|
85
|
+
Azure::Links::Mgmt::V2016_09_01::Models::OperationListResult
|
86
|
+
end
|
87
|
+
def resource_link
|
88
|
+
Azure::Links::Mgmt::V2016_09_01::Models::ResourceLink
|
89
|
+
end
|
76
90
|
def filter
|
77
91
|
Azure::Links::Mgmt::V2016_09_01::Models::Filter
|
78
92
|
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.17.
|
4
|
+
version: 0.17.1
|
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-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -90,11 +90,15 @@ files:
|
|
90
90
|
- lib/2016-09-01/generated/azure_mgmt_links.rb
|
91
91
|
- lib/2016-09-01/generated/azure_mgmt_links/management_link_client.rb
|
92
92
|
- lib/2016-09-01/generated/azure_mgmt_links/models/filter.rb
|
93
|
+
- lib/2016-09-01/generated/azure_mgmt_links/models/operation.rb
|
94
|
+
- lib/2016-09-01/generated/azure_mgmt_links/models/operation_display.rb
|
95
|
+
- lib/2016-09-01/generated/azure_mgmt_links/models/operation_list_result.rb
|
93
96
|
- lib/2016-09-01/generated/azure_mgmt_links/models/resource_link.rb
|
94
97
|
- lib/2016-09-01/generated/azure_mgmt_links/models/resource_link_filter.rb
|
95
98
|
- lib/2016-09-01/generated/azure_mgmt_links/models/resource_link_properties.rb
|
96
99
|
- lib/2016-09-01/generated/azure_mgmt_links/models/resource_link_result.rb
|
97
100
|
- lib/2016-09-01/generated/azure_mgmt_links/module_definition.rb
|
101
|
+
- lib/2016-09-01/generated/azure_mgmt_links/operations.rb
|
98
102
|
- lib/2016-09-01/generated/azure_mgmt_links/resource_links.rb
|
99
103
|
- lib/azure_mgmt_links.rb
|
100
104
|
- lib/module_definition.rb
|