azure_mgmt_resourcegraph 0.17.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 +7 -0
- data/LICENSE.txt +21 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph.rb +47 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/column.rb +59 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/column_data_type.rb +19 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/error.rb +79 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/error_details.rb +77 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/error_response.rb +49 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet.rb +60 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet_error.rb +79 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet_request.rb +59 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet_request_options.rb +91 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet_result.rb +94 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet_sort_order.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/operation.rb +70 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/operation_display.rb +79 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/operation_list_result.rb +57 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/query_request.rb +99 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/query_request_options.rb +80 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/query_response.rb +119 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/result_truncated.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/table.rb +82 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/module_definition.rb +9 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/operations.rb +107 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/resource_graph_client.rb +224 -0
- data/lib/azure_mgmt_resourcegraph.rb +6 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/modules/resourcegraph_profile_module.rb +137 -0
- data/lib/profiles/latest/resourcegraph_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/resourcegraph_module_definition.rb +8 -0
- data/lib/version.rb +7 -0
- metadata +148 -0
@@ -0,0 +1,224 @@
|
|
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::ResourceGraph::Mgmt::V2019_04_01
|
7
|
+
#
|
8
|
+
# A service client - single point of access to the REST API.
|
9
|
+
#
|
10
|
+
class ResourceGraphClient < MsRestAzure::AzureServiceClient
|
11
|
+
include MsRestAzure
|
12
|
+
include MsRestAzure::Serialization
|
13
|
+
|
14
|
+
# @return [String] the base URI of the service.
|
15
|
+
attr_accessor :base_url
|
16
|
+
|
17
|
+
# @return Credentials needed for the client to connect to Azure.
|
18
|
+
attr_reader :credentials
|
19
|
+
|
20
|
+
# @return [String] API version.
|
21
|
+
attr_reader :api_version
|
22
|
+
|
23
|
+
# @return [String] The preferred language for the response.
|
24
|
+
attr_accessor :accept_language
|
25
|
+
|
26
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
27
|
+
# Operations. Default value is 30.
|
28
|
+
attr_accessor :long_running_operation_retry_timeout
|
29
|
+
|
30
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
31
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
32
|
+
# generated and included in each request. Default is true.
|
33
|
+
attr_accessor :generate_client_request_id
|
34
|
+
|
35
|
+
# @return [Operations] operations
|
36
|
+
attr_reader :operations
|
37
|
+
|
38
|
+
#
|
39
|
+
# Creates initializes a new instance of the ResourceGraphClient class.
|
40
|
+
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
41
|
+
# @param base_url [String] the base URI of the service.
|
42
|
+
# @param options [Array] filters to be applied to the HTTP requests.
|
43
|
+
#
|
44
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
45
|
+
super(credentials, options)
|
46
|
+
@base_url = base_url || 'https://management.azure.com'
|
47
|
+
|
48
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
49
|
+
@credentials = credentials
|
50
|
+
|
51
|
+
@operations = Operations.new(self)
|
52
|
+
@api_version = '2019-04-01'
|
53
|
+
@accept_language = 'en-US'
|
54
|
+
@long_running_operation_retry_timeout = 30
|
55
|
+
@generate_client_request_id = true
|
56
|
+
add_telemetry
|
57
|
+
end
|
58
|
+
|
59
|
+
#
|
60
|
+
# Makes a request and returns the body of the response.
|
61
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
62
|
+
# @param path [String] the path, relative to {base_url}.
|
63
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
64
|
+
# @return [Hash{String=>String}] containing the body of the response.
|
65
|
+
# Example:
|
66
|
+
#
|
67
|
+
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
68
|
+
# path = "/path"
|
69
|
+
# options = {
|
70
|
+
# body: request_content,
|
71
|
+
# query_params: {'api-version' => '2016-02-01'}
|
72
|
+
# }
|
73
|
+
# result = @client.make_request(:put, path, options)
|
74
|
+
#
|
75
|
+
def make_request(method, path, options = {})
|
76
|
+
result = make_request_with_http_info(method, path, options)
|
77
|
+
result.body unless result.nil?
|
78
|
+
end
|
79
|
+
|
80
|
+
#
|
81
|
+
# Makes a request and returns the operation response.
|
82
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
83
|
+
# @param path [String] the path, relative to {base_url}.
|
84
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
85
|
+
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
86
|
+
#
|
87
|
+
def make_request_with_http_info(method, path, options = {})
|
88
|
+
result = make_request_async(method, path, options).value!
|
89
|
+
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
90
|
+
result
|
91
|
+
end
|
92
|
+
|
93
|
+
#
|
94
|
+
# Makes a request asynchronously.
|
95
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
96
|
+
# @param path [String] the path, relative to {base_url}.
|
97
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
98
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
99
|
+
#
|
100
|
+
def make_request_async(method, path, options = {})
|
101
|
+
fail ArgumentError, 'method is nil' if method.nil?
|
102
|
+
fail ArgumentError, 'path is nil' if path.nil?
|
103
|
+
|
104
|
+
request_url = options[:base_url] || @base_url
|
105
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
106
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
107
|
+
end
|
108
|
+
|
109
|
+
request_headers = @request_headers
|
110
|
+
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
111
|
+
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
112
|
+
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
113
|
+
|
114
|
+
super(request_url, method, path, options)
|
115
|
+
end
|
116
|
+
|
117
|
+
#
|
118
|
+
# Queries the resources managed by Azure Resource Manager for all subscriptions
|
119
|
+
# specified in the request.
|
120
|
+
#
|
121
|
+
# @param query [QueryRequest] Request specifying query and its options.
|
122
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
123
|
+
# will be added to the HTTP request.
|
124
|
+
#
|
125
|
+
# @return [QueryResponse] operation results.
|
126
|
+
#
|
127
|
+
def resources(query, custom_headers:nil)
|
128
|
+
response = resources_async(query, custom_headers:custom_headers).value!
|
129
|
+
response.body unless response.nil?
|
130
|
+
end
|
131
|
+
|
132
|
+
#
|
133
|
+
# Queries the resources managed by Azure Resource Manager for all subscriptions
|
134
|
+
# specified in the request.
|
135
|
+
#
|
136
|
+
# @param query [QueryRequest] Request specifying query and its options.
|
137
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
138
|
+
# will be added to the HTTP request.
|
139
|
+
#
|
140
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
141
|
+
#
|
142
|
+
def resources_with_http_info(query, custom_headers:nil)
|
143
|
+
resources_async(query, custom_headers:custom_headers).value!
|
144
|
+
end
|
145
|
+
|
146
|
+
#
|
147
|
+
# Queries the resources managed by Azure Resource Manager for all subscriptions
|
148
|
+
# specified in the request.
|
149
|
+
#
|
150
|
+
# @param query [QueryRequest] Request specifying query and its options.
|
151
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
152
|
+
# to the HTTP request.
|
153
|
+
#
|
154
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
155
|
+
#
|
156
|
+
def resources_async(query, custom_headers:nil)
|
157
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
158
|
+
fail ArgumentError, 'query is nil' if query.nil?
|
159
|
+
|
160
|
+
|
161
|
+
request_headers = {}
|
162
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
163
|
+
|
164
|
+
# Set Headers
|
165
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
166
|
+
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
167
|
+
|
168
|
+
# Serialize Request
|
169
|
+
request_mapper = Azure::ResourceGraph::Mgmt::V2019_04_01::Models::QueryRequest.mapper()
|
170
|
+
request_content = self.serialize(request_mapper, query)
|
171
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
172
|
+
|
173
|
+
path_template = 'providers/Microsoft.ResourceGraph/resources'
|
174
|
+
|
175
|
+
request_url = @base_url || self.base_url
|
176
|
+
|
177
|
+
options = {
|
178
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
179
|
+
query_params: {'api-version' => api_version},
|
180
|
+
body: request_content,
|
181
|
+
headers: request_headers.merge(custom_headers || {}),
|
182
|
+
base_url: request_url
|
183
|
+
}
|
184
|
+
promise = self.make_request_async(:post, path_template, options)
|
185
|
+
|
186
|
+
promise = promise.then do |result|
|
187
|
+
http_response = result.response
|
188
|
+
status_code = http_response.status
|
189
|
+
response_content = http_response.body
|
190
|
+
unless status_code == 200
|
191
|
+
error_model = JSON.load(response_content)
|
192
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
193
|
+
end
|
194
|
+
|
195
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
196
|
+
# Deserialize Response
|
197
|
+
if status_code == 200
|
198
|
+
begin
|
199
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
200
|
+
result_mapper = Azure::ResourceGraph::Mgmt::V2019_04_01::Models::QueryResponse.mapper()
|
201
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
202
|
+
rescue Exception => e
|
203
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
207
|
+
result
|
208
|
+
end
|
209
|
+
|
210
|
+
promise.execute
|
211
|
+
end
|
212
|
+
|
213
|
+
|
214
|
+
private
|
215
|
+
#
|
216
|
+
# Adds telemetry information.
|
217
|
+
#
|
218
|
+
def add_telemetry
|
219
|
+
sdk_information = 'azure_mgmt_resourcegraph'
|
220
|
+
sdk_information = "#{sdk_information}/0.17.0"
|
221
|
+
add_user_agent_information(sdk_information)
|
222
|
+
end
|
223
|
+
end
|
224
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
require '2019-04-01/generated/azure_mgmt_resourcegraph'
|
6
|
+
require 'profiles/latest/resourcegraph_latest_profile_client'
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
module Azure end
|
6
|
+
module Azure::ResourceGraph end
|
7
|
+
module Azure::ResourceGraph::Mgmt end
|
@@ -0,0 +1,137 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
require 'azure_mgmt_resourcegraph'
|
6
|
+
|
7
|
+
module Azure::ResourceGraph::Profiles::Latest
|
8
|
+
module Mgmt
|
9
|
+
Operations = Azure::ResourceGraph::Mgmt::V2019_04_01::Operations
|
10
|
+
|
11
|
+
module Models
|
12
|
+
QueryResponse = Azure::ResourceGraph::Mgmt::V2019_04_01::Models::QueryResponse
|
13
|
+
QueryRequestOptions = Azure::ResourceGraph::Mgmt::V2019_04_01::Models::QueryRequestOptions
|
14
|
+
FacetRequest = Azure::ResourceGraph::Mgmt::V2019_04_01::Models::FacetRequest
|
15
|
+
ErrorDetails = Azure::ResourceGraph::Mgmt::V2019_04_01::Models::ErrorDetails
|
16
|
+
Column = Azure::ResourceGraph::Mgmt::V2019_04_01::Models::Column
|
17
|
+
OperationListResult = Azure::ResourceGraph::Mgmt::V2019_04_01::Models::OperationListResult
|
18
|
+
Facet = Azure::ResourceGraph::Mgmt::V2019_04_01::Models::Facet
|
19
|
+
Error = Azure::ResourceGraph::Mgmt::V2019_04_01::Models::Error
|
20
|
+
QueryRequest = Azure::ResourceGraph::Mgmt::V2019_04_01::Models::QueryRequest
|
21
|
+
ErrorResponse = Azure::ResourceGraph::Mgmt::V2019_04_01::Models::ErrorResponse
|
22
|
+
FacetRequestOptions = Azure::ResourceGraph::Mgmt::V2019_04_01::Models::FacetRequestOptions
|
23
|
+
OperationDisplay = Azure::ResourceGraph::Mgmt::V2019_04_01::Models::OperationDisplay
|
24
|
+
Table = Azure::ResourceGraph::Mgmt::V2019_04_01::Models::Table
|
25
|
+
Operation = Azure::ResourceGraph::Mgmt::V2019_04_01::Models::Operation
|
26
|
+
FacetResult = Azure::ResourceGraph::Mgmt::V2019_04_01::Models::FacetResult
|
27
|
+
FacetError = Azure::ResourceGraph::Mgmt::V2019_04_01::Models::FacetError
|
28
|
+
FacetSortOrder = Azure::ResourceGraph::Mgmt::V2019_04_01::Models::FacetSortOrder
|
29
|
+
ResultTruncated = Azure::ResourceGraph::Mgmt::V2019_04_01::Models::ResultTruncated
|
30
|
+
ColumnDataType = Azure::ResourceGraph::Mgmt::V2019_04_01::Models::ColumnDataType
|
31
|
+
end
|
32
|
+
|
33
|
+
#
|
34
|
+
# ResourceGraphManagementClass
|
35
|
+
#
|
36
|
+
class ResourceGraphManagementClass
|
37
|
+
attr_reader :operations, :configurable, :base_url, :options, :model_classes
|
38
|
+
|
39
|
+
def initialize(options = {})
|
40
|
+
if options.is_a?(Hash) && options.length == 0
|
41
|
+
@options = setup_default_options
|
42
|
+
else
|
43
|
+
@options = options
|
44
|
+
end
|
45
|
+
|
46
|
+
reset!(options)
|
47
|
+
|
48
|
+
@configurable = self
|
49
|
+
@base_url = options[:base_url].nil? ? nil:options[:base_url]
|
50
|
+
@options = options[:options].nil? ? nil:options[:options]
|
51
|
+
|
52
|
+
@client_0 = Azure::ResourceGraph::Mgmt::V2019_04_01::ResourceGraphClient.new(configurable.credentials, base_url, options)
|
53
|
+
if(@client_0.respond_to?(:subscription_id))
|
54
|
+
@client_0.subscription_id = configurable.subscription_id
|
55
|
+
end
|
56
|
+
add_telemetry(@client_0)
|
57
|
+
@operations = @client_0.operations
|
58
|
+
|
59
|
+
@model_classes = ModelClasses.new
|
60
|
+
end
|
61
|
+
|
62
|
+
def add_telemetry(client)
|
63
|
+
profile_information = 'Profiles/Latest/ResourceGraph/Mgmt'
|
64
|
+
client.add_user_agent_information(profile_information)
|
65
|
+
end
|
66
|
+
|
67
|
+
def method_missing(method, *args)
|
68
|
+
if @client_0.respond_to?method
|
69
|
+
@client_0.send(method, *args)
|
70
|
+
else
|
71
|
+
super
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
end
|
76
|
+
|
77
|
+
class ModelClasses
|
78
|
+
def query_response
|
79
|
+
Azure::ResourceGraph::Mgmt::V2019_04_01::Models::QueryResponse
|
80
|
+
end
|
81
|
+
def query_request_options
|
82
|
+
Azure::ResourceGraph::Mgmt::V2019_04_01::Models::QueryRequestOptions
|
83
|
+
end
|
84
|
+
def facet_request
|
85
|
+
Azure::ResourceGraph::Mgmt::V2019_04_01::Models::FacetRequest
|
86
|
+
end
|
87
|
+
def error_details
|
88
|
+
Azure::ResourceGraph::Mgmt::V2019_04_01::Models::ErrorDetails
|
89
|
+
end
|
90
|
+
def column
|
91
|
+
Azure::ResourceGraph::Mgmt::V2019_04_01::Models::Column
|
92
|
+
end
|
93
|
+
def operation_list_result
|
94
|
+
Azure::ResourceGraph::Mgmt::V2019_04_01::Models::OperationListResult
|
95
|
+
end
|
96
|
+
def facet
|
97
|
+
Azure::ResourceGraph::Mgmt::V2019_04_01::Models::Facet
|
98
|
+
end
|
99
|
+
def error
|
100
|
+
Azure::ResourceGraph::Mgmt::V2019_04_01::Models::Error
|
101
|
+
end
|
102
|
+
def query_request
|
103
|
+
Azure::ResourceGraph::Mgmt::V2019_04_01::Models::QueryRequest
|
104
|
+
end
|
105
|
+
def error_response
|
106
|
+
Azure::ResourceGraph::Mgmt::V2019_04_01::Models::ErrorResponse
|
107
|
+
end
|
108
|
+
def facet_request_options
|
109
|
+
Azure::ResourceGraph::Mgmt::V2019_04_01::Models::FacetRequestOptions
|
110
|
+
end
|
111
|
+
def operation_display
|
112
|
+
Azure::ResourceGraph::Mgmt::V2019_04_01::Models::OperationDisplay
|
113
|
+
end
|
114
|
+
def table
|
115
|
+
Azure::ResourceGraph::Mgmt::V2019_04_01::Models::Table
|
116
|
+
end
|
117
|
+
def operation
|
118
|
+
Azure::ResourceGraph::Mgmt::V2019_04_01::Models::Operation
|
119
|
+
end
|
120
|
+
def facet_result
|
121
|
+
Azure::ResourceGraph::Mgmt::V2019_04_01::Models::FacetResult
|
122
|
+
end
|
123
|
+
def facet_error
|
124
|
+
Azure::ResourceGraph::Mgmt::V2019_04_01::Models::FacetError
|
125
|
+
end
|
126
|
+
def facet_sort_order
|
127
|
+
Azure::ResourceGraph::Mgmt::V2019_04_01::Models::FacetSortOrder
|
128
|
+
end
|
129
|
+
def result_truncated
|
130
|
+
Azure::ResourceGraph::Mgmt::V2019_04_01::Models::ResultTruncated
|
131
|
+
end
|
132
|
+
def column_data_type
|
133
|
+
Azure::ResourceGraph::Mgmt::V2019_04_01::Models::ColumnDataType
|
134
|
+
end
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
require 'profiles/latest/resourcegraph_module_definition'
|
6
|
+
require 'profiles/latest/modules/resourcegraph_profile_module'
|
7
|
+
|
8
|
+
module Azure::ResourceGraph::Profiles::Latest
|
9
|
+
module Mgmt
|
10
|
+
#
|
11
|
+
# Client class for the Latest profile SDK.
|
12
|
+
#
|
13
|
+
class Client < ResourceGraphManagementClass
|
14
|
+
include MsRestAzure::Common::Configurable
|
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
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
|
+
|
5
|
+
module Azure end
|
6
|
+
module Azure::ResourceGraph end
|
7
|
+
module Azure::ResourceGraph::Profiles end
|
8
|
+
module Azure::ResourceGraph::Profiles::Latest end
|
data/lib/version.rb
ADDED
metadata
ADDED
@@ -0,0 +1,148 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: azure_mgmt_resourcegraph
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.17.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Microsoft Corporation
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-04-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.9'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.9'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: dotenv
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: ms_rest_azure
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.11.0
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.11.0
|
83
|
+
description: Microsoft Azure Resource Graph Library for Ruby
|
84
|
+
email: azrubyteam@microsoft.com
|
85
|
+
executables: []
|
86
|
+
extensions: []
|
87
|
+
extra_rdoc_files: []
|
88
|
+
files:
|
89
|
+
- LICENSE.txt
|
90
|
+
- lib/2019-04-01/generated/azure_mgmt_resourcegraph.rb
|
91
|
+
- lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/column.rb
|
92
|
+
- lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/column_data_type.rb
|
93
|
+
- lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/error.rb
|
94
|
+
- lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/error_details.rb
|
95
|
+
- lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/error_response.rb
|
96
|
+
- lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet.rb
|
97
|
+
- lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet_error.rb
|
98
|
+
- lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet_request.rb
|
99
|
+
- lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet_request_options.rb
|
100
|
+
- lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet_result.rb
|
101
|
+
- lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet_sort_order.rb
|
102
|
+
- lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/operation.rb
|
103
|
+
- lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/operation_display.rb
|
104
|
+
- lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/operation_list_result.rb
|
105
|
+
- lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/query_request.rb
|
106
|
+
- lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/query_request_options.rb
|
107
|
+
- lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/query_response.rb
|
108
|
+
- lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/result_truncated.rb
|
109
|
+
- lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/table.rb
|
110
|
+
- lib/2019-04-01/generated/azure_mgmt_resourcegraph/module_definition.rb
|
111
|
+
- lib/2019-04-01/generated/azure_mgmt_resourcegraph/operations.rb
|
112
|
+
- lib/2019-04-01/generated/azure_mgmt_resourcegraph/resource_graph_client.rb
|
113
|
+
- lib/azure_mgmt_resourcegraph.rb
|
114
|
+
- lib/module_definition.rb
|
115
|
+
- lib/profiles/latest/modules/resourcegraph_profile_module.rb
|
116
|
+
- lib/profiles/latest/resourcegraph_latest_profile_client.rb
|
117
|
+
- lib/profiles/latest/resourcegraph_module_definition.rb
|
118
|
+
- lib/version.rb
|
119
|
+
homepage: https://aka.ms/azure-sdk-for-ruby
|
120
|
+
licenses:
|
121
|
+
- MIT
|
122
|
+
metadata:
|
123
|
+
bug_tracker_uri: https://github.com/Azure/azure-sdk-for-ruby/issues
|
124
|
+
changelog_uri: https://github.com/Azure/azure-sdk-for-ruby/blob/master/ChangeLog.md
|
125
|
+
documentation_uri: https://azure.microsoft.com/en-us/develop/ruby/
|
126
|
+
homepage_uri: https://aka.ms/azure-sdk-for-ruby
|
127
|
+
source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/master/management/azure_mgmt_resourcegraph
|
128
|
+
post_install_message:
|
129
|
+
rdoc_options: []
|
130
|
+
require_paths:
|
131
|
+
- lib
|
132
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
133
|
+
requirements:
|
134
|
+
- - ">="
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: 2.0.0
|
137
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
|
+
requirements:
|
139
|
+
- - ">="
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
requirements: []
|
143
|
+
rubyforge_project:
|
144
|
+
rubygems_version: 2.7.6
|
145
|
+
signing_key:
|
146
|
+
specification_version: 4
|
147
|
+
summary: Official Ruby client library to consume Microsoft Azure Resource Graph.
|
148
|
+
test_files: []
|