azure_mgmt_analysis_services 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 328a2383d2cc45b7216a6fb924214f3d3cfe2b43
4
+ data.tar.gz: 0b258a7f39ff7bf6ec5e33d0b5a066b2ec68b74e
5
+ SHA512:
6
+ metadata.gz: 4e939f11343e6af14e9ee5388d78e3149f799af58fed95d6ffb20eecb0e3a9c836902784954012333bdd72328c92e6255513ed9bae72324cb3c98c13c6c61e77
7
+ data.tar.gz: cb71f3c422acd0c88891921ca2b90f491b27e1704852f1f78edf3fad2e36e7d7828370af0fab7d66b69915ec7baefbcfbb145326b7e3b33660dcd6bda724a511
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Microsoft Corporation
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,5 @@
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 'generated/azure_mgmt_analysis_services'
@@ -0,0 +1,35 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require 'generated/azure_mgmt_analysis_services/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::ARM::AnalysisServices
23
+ autoload :Servers, 'generated/azure_mgmt_analysis_services/servers.rb'
24
+ autoload :AnalysisServicesManagementClient, 'generated/azure_mgmt_analysis_services/analysis_services_management_client.rb'
25
+
26
+ module Models
27
+ autoload :AnalysisServicesServers, 'generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb'
28
+ autoload :AnalysisServicesServerUpdateParameters, 'generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb'
29
+ autoload :ResourceSku, 'generated/azure_mgmt_analysis_services/models/resource_sku.rb'
30
+ autoload :ServerAdministrators, 'generated/azure_mgmt_analysis_services/models/server_administrators.rb'
31
+ autoload :AnalysisServicesServer, 'generated/azure_mgmt_analysis_services/models/analysis_services_server.rb'
32
+ autoload :SkuName, 'generated/azure_mgmt_analysis_services/models/sku_name.rb'
33
+ autoload :SkuTier, 'generated/azure_mgmt_analysis_services/models/sku_tier.rb'
34
+ end
35
+ end
@@ -0,0 +1,131 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::AnalysisServices
7
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class AnalysisServicesManagementClient < 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] A unique identifier for a Microsoft Azure subscription.
21
+ # The subscription ID forms part of the URI for every service call.
22
+ attr_accessor :subscription_id
23
+
24
+ # @return [String] The client API version.
25
+ attr_reader :api_version
26
+
27
+ # @return [String] Gets or sets the preferred language for the response.
28
+ attr_accessor :accept_language
29
+
30
+ # @return [Integer] Gets or sets the retry timeout in seconds for Long
31
+ # Running Operations. Default value is 30.
32
+ attr_accessor :long_running_operation_retry_timeout
33
+
34
+ # @return [Boolean] When set to true a unique x-ms-client-request-id value
35
+ # is generated and included in each request. Default is true.
36
+ attr_accessor :generate_client_request_id
37
+
38
+ # @return [Servers] servers
39
+ attr_reader :servers
40
+
41
+ #
42
+ # Creates initializes a new instance of the AnalysisServicesManagementClient class.
43
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
44
+ # @param base_url [String] the base URI of the service.
45
+ # @param options [Array] filters to be applied to the HTTP requests.
46
+ #
47
+ def initialize(credentials, base_url = nil, options = nil)
48
+ super(credentials, options)
49
+ @base_url = base_url || 'https://management.azure.com'
50
+
51
+ fail ArgumentError, 'credentials is nil' if credentials.nil?
52
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials)
53
+ @credentials = credentials
54
+
55
+ @servers = Servers.new(self)
56
+ @api_version = '2016-05-16'
57
+ @accept_language = 'en-US'
58
+ @long_running_operation_retry_timeout = 30
59
+ @generate_client_request_id = true
60
+ add_telemetry
61
+ end
62
+
63
+ #
64
+ # Makes a request and returns the body of the response.
65
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
66
+ # @param path [String] the path, relative to {base_url}.
67
+ # @param options [Hash{String=>String}] specifying any request options like :body.
68
+ # @return [Hash{String=>String}] containing the body of the response.
69
+ # Example:
70
+ #
71
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
72
+ # path = "/path"
73
+ # options = {
74
+ # body: request_content,
75
+ # query_params: {'api-version' => '2016-02-01'}
76
+ # }
77
+ # result = @client.make_request(:put, path, options)
78
+ #
79
+ def make_request(method, path, options = {})
80
+ result = make_request_with_http_info(method, path, options)
81
+ result.body unless result.nil?
82
+ end
83
+
84
+ #
85
+ # Makes a request and returns the operation response.
86
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
87
+ # @param path [String] the path, relative to {base_url}.
88
+ # @param options [Hash{String=>String}] specifying any request options like :body.
89
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
90
+ #
91
+ def make_request_with_http_info(method, path, options = {})
92
+ result = make_request_async(method, path, options).value!
93
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
94
+ result
95
+ end
96
+
97
+ #
98
+ # Makes a request asynchronously.
99
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
100
+ # @param path [String] the path, relative to {base_url}.
101
+ # @param options [Hash{String=>String}] specifying any request options like :body.
102
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
103
+ #
104
+ def make_request_async(method, path, options = {})
105
+ fail ArgumentError, 'method is nil' if method.nil?
106
+ fail ArgumentError, 'path is nil' if path.nil?
107
+
108
+ request_url = options[:base_url] || @base_url
109
+
110
+ request_headers = @request_headers
111
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
112
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
113
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
114
+
115
+ super(request_url, method, path, options)
116
+ end
117
+
118
+
119
+ private
120
+ #
121
+ # Adds telemetry information.
122
+ #
123
+ def add_telemetry
124
+ sdk_information = 'azure_mgmt_analysis_services'
125
+ if defined? Azure::ARM::AnalysisServices::VERSION
126
+ sdk_information = "#{sdk_information}/#{Azure::ARM::AnalysisServices::VERSION}"
127
+ end
128
+ add_user_agent_information(sdk_information)
129
+ end
130
+ end
131
+ end
@@ -0,0 +1,121 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::AnalysisServices
7
+ module Models
8
+ #
9
+ # Represents an instance of an Analysis Services resource.
10
+ #
11
+ class AnalysisServicesServer < MsRestAzure::Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [ServerAdministrators]
16
+ attr_accessor :as_administrators
17
+
18
+ # @return [String] The current deployment state of Analysis Services
19
+ # resource.
20
+ attr_accessor :provisioning_state
21
+
22
+ # @return [String] The full name of the Analysis Services resource.
23
+ attr_accessor :server_full_name
24
+
25
+
26
+ #
27
+ # Mapper for AnalysisServicesServer class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ required: false,
33
+ serialized_name: 'AnalysisServicesServer',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'AnalysisServicesServer',
37
+ model_properties: {
38
+ id: {
39
+ required: false,
40
+ read_only: true,
41
+ serialized_name: 'id',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ },
46
+ name: {
47
+ required: false,
48
+ read_only: true,
49
+ serialized_name: 'name',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ type: {
55
+ required: false,
56
+ read_only: true,
57
+ serialized_name: 'type',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ location: {
63
+ required: true,
64
+ serialized_name: 'location',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ },
69
+ sku: {
70
+ required: true,
71
+ serialized_name: 'sku',
72
+ type: {
73
+ name: 'Composite',
74
+ class_name: 'ResourceSku'
75
+ }
76
+ },
77
+ tags: {
78
+ required: false,
79
+ serialized_name: 'tags',
80
+ type: {
81
+ name: 'Dictionary',
82
+ value: {
83
+ required: false,
84
+ serialized_name: 'StringElementType',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ }
89
+ }
90
+ },
91
+ as_administrators: {
92
+ required: false,
93
+ serialized_name: 'properties.asAdministrators',
94
+ type: {
95
+ name: 'Composite',
96
+ class_name: 'ServerAdministrators'
97
+ }
98
+ },
99
+ provisioning_state: {
100
+ required: false,
101
+ read_only: true,
102
+ serialized_name: 'properties.provisioningState',
103
+ type: {
104
+ name: 'String'
105
+ }
106
+ },
107
+ server_full_name: {
108
+ required: false,
109
+ read_only: true,
110
+ serialized_name: 'properties.serverFullName',
111
+ type: {
112
+ name: 'String'
113
+ }
114
+ }
115
+ }
116
+ }
117
+ }
118
+ end
119
+ end
120
+ end
121
+ end
@@ -0,0 +1,74 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::AnalysisServices
7
+ module Models
8
+ #
9
+ # Provision request specification
10
+ #
11
+ class AnalysisServicesServerUpdateParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [ResourceSku] The SKU of the Analysis Services resource.
16
+ attr_accessor :sku
17
+
18
+ # @return [Hash{String => String}] Key-value pairs of additional
19
+ # provisioning properties.
20
+ attr_accessor :tags
21
+
22
+ # @return [ServerAdministrators]
23
+ attr_accessor :as_administrators
24
+
25
+
26
+ #
27
+ # Mapper for AnalysisServicesServerUpdateParameters class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ required: false,
33
+ serialized_name: 'AnalysisServicesServerUpdateParameters',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'AnalysisServicesServerUpdateParameters',
37
+ model_properties: {
38
+ sku: {
39
+ required: false,
40
+ serialized_name: 'sku',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'ResourceSku'
44
+ }
45
+ },
46
+ tags: {
47
+ required: false,
48
+ serialized_name: 'tags',
49
+ type: {
50
+ name: 'Dictionary',
51
+ value: {
52
+ required: false,
53
+ serialized_name: 'StringElementType',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ }
58
+ }
59
+ },
60
+ as_administrators: {
61
+ required: false,
62
+ serialized_name: 'properties.asAdministrators',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'ServerAdministrators'
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+ end
72
+ end
73
+ end
74
+ end
@@ -0,0 +1,53 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::AnalysisServices
7
+ module Models
8
+ #
9
+ # An array of Analysis Services resources.
10
+ #
11
+ class AnalysisServicesServers
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<AnalysisServicesServer>] An array of Analysis Services
16
+ # resources.
17
+ attr_accessor :value
18
+
19
+
20
+ #
21
+ # Mapper for AnalysisServicesServers class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'AnalysisServicesServers',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'AnalysisServicesServers',
31
+ model_properties: {
32
+ value: {
33
+ required: true,
34
+ serialized_name: 'value',
35
+ type: {
36
+ name: 'Sequence',
37
+ element: {
38
+ required: false,
39
+ serialized_name: 'AnalysisServicesServerElementType',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'AnalysisServicesServer'
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ end
51
+ end
52
+ end
53
+ end