azure_mgmt_analysis_services 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_analysis_services.rb +17 -4
  3. data/lib/generated/azure_mgmt_analysis_services/analysis_services_management_client.rb +5 -1
  4. data/lib/generated/azure_mgmt_analysis_services/models/analysis_services_server.rb +42 -0
  5. data/lib/generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb +42 -0
  6. data/lib/generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb +0 -0
  7. data/lib/generated/azure_mgmt_analysis_services/models/connection_mode.rb +16 -0
  8. data/lib/generated/azure_mgmt_analysis_services/models/error_response.rb +55 -0
  9. data/lib/generated/azure_mgmt_analysis_services/models/gateway_details.rb +68 -0
  10. data/lib/generated/azure_mgmt_analysis_services/models/gateway_error.rb +55 -0
  11. data/lib/generated/azure_mgmt_analysis_services/models/gateway_list_status_error.rb +46 -0
  12. data/lib/generated/azure_mgmt_analysis_services/models/gateway_list_status_live.rb +47 -0
  13. data/lib/generated/azure_mgmt_analysis_services/models/ipv4firewall_rule.rb +65 -0
  14. data/lib/generated/azure_mgmt_analysis_services/models/ipv4firewall_settings.rb +63 -0
  15. data/lib/generated/azure_mgmt_analysis_services/models/operation.rb +57 -0
  16. data/lib/generated/azure_mgmt_analysis_services/models/operation_display.rb +69 -0
  17. data/lib/generated/azure_mgmt_analysis_services/models/operation_list_result.rb +99 -0
  18. data/lib/generated/azure_mgmt_analysis_services/models/provisioning_state.rb +0 -0
  19. data/lib/generated/azure_mgmt_analysis_services/models/resource.rb +0 -0
  20. data/lib/generated/azure_mgmt_analysis_services/models/resource_sku.rb +16 -0
  21. data/lib/generated/azure_mgmt_analysis_services/models/server_administrators.rb +1 -1
  22. data/lib/generated/azure_mgmt_analysis_services/models/sku_details_for_existing_resource.rb +1 -1
  23. data/lib/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_existing_resource_result.rb +2 -2
  24. data/lib/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb +2 -2
  25. data/lib/generated/azure_mgmt_analysis_services/models/sku_tier.rb +0 -0
  26. data/lib/generated/azure_mgmt_analysis_services/models/state.rb +0 -0
  27. data/lib/generated/azure_mgmt_analysis_services/models/status.rb +15 -0
  28. data/lib/generated/azure_mgmt_analysis_services/module_definition.rb +0 -0
  29. data/lib/generated/azure_mgmt_analysis_services/operations.rb +215 -0
  30. data/lib/generated/azure_mgmt_analysis_services/servers.rb +97 -0
  31. data/lib/generated/azure_mgmt_analysis_services/version.rb +1 -1
  32. metadata +17 -4
@@ -0,0 +1,15 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.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
+ # Defines values for Status
10
+ #
11
+ module Status
12
+ Live = "Live"
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,215 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.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
+ # The Azure Analysis Services Web API provides a RESTful set of web services
9
+ # that enables users to create, retrieve, update, and delete Analysis
10
+ # Services servers
11
+ #
12
+ class Operations
13
+ include MsRestAzure
14
+
15
+ #
16
+ # Creates and initializes a new instance of the Operations class.
17
+ # @param client service class for accessing basic functionality.
18
+ #
19
+ def initialize(client)
20
+ @client = client
21
+ end
22
+
23
+ # @return [AnalysisServicesManagementClient] reference to the AnalysisServicesManagementClient
24
+ attr_reader :client
25
+
26
+ #
27
+ # Lists all of the available consumption REST API operations.
28
+ #
29
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
30
+ # will be added to the HTTP request.
31
+ #
32
+ # @return [Array<Operation>] operation results.
33
+ #
34
+ def list(custom_headers = nil)
35
+ first_page = list_as_lazy(custom_headers)
36
+ first_page.get_all_items
37
+ end
38
+
39
+ #
40
+ # Lists all of the available consumption REST API operations.
41
+ #
42
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
43
+ # will be added to the HTTP request.
44
+ #
45
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
46
+ #
47
+ def list_with_http_info(custom_headers = nil)
48
+ list_async(custom_headers).value!
49
+ end
50
+
51
+ #
52
+ # Lists all of the available consumption REST API operations.
53
+ #
54
+ # @param [Hash{String => String}] A hash of custom headers that will be added
55
+ # to the HTTP request.
56
+ #
57
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
58
+ #
59
+ def list_async(custom_headers = nil)
60
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
61
+
62
+
63
+ request_headers = {}
64
+
65
+ # Set Headers
66
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
67
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
68
+ path_template = 'providers/Microsoft.AnalysisServices/operations'
69
+
70
+ request_url = @base_url || @client.base_url
71
+
72
+ options = {
73
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
74
+ query_params: {'api-version' => @client.api_version},
75
+ headers: request_headers.merge(custom_headers || {}),
76
+ base_url: request_url
77
+ }
78
+ promise = @client.make_request_async(:get, path_template, options)
79
+
80
+ promise = promise.then do |result|
81
+ http_response = result.response
82
+ status_code = http_response.status
83
+ response_content = http_response.body
84
+ unless status_code == 200
85
+ error_model = JSON.load(response_content)
86
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
87
+ end
88
+
89
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
90
+ # Deserialize Response
91
+ if status_code == 200
92
+ begin
93
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
94
+ result_mapper = Azure::ARM::AnalysisServices::Models::OperationListResult.mapper()
95
+ result.body = @client.deserialize(result_mapper, parsed_response)
96
+ rescue Exception => e
97
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
98
+ end
99
+ end
100
+
101
+ result
102
+ end
103
+
104
+ promise.execute
105
+ end
106
+
107
+ #
108
+ # Lists all of the available consumption REST API operations.
109
+ #
110
+ # @param next_page_link [String] The NextLink from the previous successful call
111
+ # to List operation.
112
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
113
+ # will be added to the HTTP request.
114
+ #
115
+ # @return [OperationListResult] operation results.
116
+ #
117
+ def list_next(next_page_link, custom_headers = nil)
118
+ response = list_next_async(next_page_link, custom_headers).value!
119
+ response.body unless response.nil?
120
+ end
121
+
122
+ #
123
+ # Lists all of the available consumption REST API operations.
124
+ #
125
+ # @param next_page_link [String] The NextLink from the previous successful call
126
+ # to List operation.
127
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
128
+ # will be added to the HTTP request.
129
+ #
130
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
131
+ #
132
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
133
+ list_next_async(next_page_link, custom_headers).value!
134
+ end
135
+
136
+ #
137
+ # Lists all of the available consumption REST API operations.
138
+ #
139
+ # @param next_page_link [String] The NextLink from the previous successful call
140
+ # to List operation.
141
+ # @param [Hash{String => String}] A hash of custom headers that will be added
142
+ # to the HTTP request.
143
+ #
144
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
145
+ #
146
+ def list_next_async(next_page_link, custom_headers = nil)
147
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
148
+
149
+
150
+ request_headers = {}
151
+
152
+ # Set Headers
153
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
154
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
155
+ path_template = '{nextLink}'
156
+
157
+ request_url = @base_url || @client.base_url
158
+
159
+ options = {
160
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
161
+ skip_encoding_path_params: {'nextLink' => next_page_link},
162
+ headers: request_headers.merge(custom_headers || {}),
163
+ base_url: request_url
164
+ }
165
+ promise = @client.make_request_async(:get, path_template, options)
166
+
167
+ promise = promise.then do |result|
168
+ http_response = result.response
169
+ status_code = http_response.status
170
+ response_content = http_response.body
171
+ unless status_code == 200
172
+ error_model = JSON.load(response_content)
173
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
174
+ end
175
+
176
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
177
+ # Deserialize Response
178
+ if status_code == 200
179
+ begin
180
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
181
+ result_mapper = Azure::ARM::AnalysisServices::Models::OperationListResult.mapper()
182
+ result.body = @client.deserialize(result_mapper, parsed_response)
183
+ rescue Exception => e
184
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
185
+ end
186
+ end
187
+
188
+ result
189
+ end
190
+
191
+ promise.execute
192
+ end
193
+
194
+ #
195
+ # Lists all of the available consumption REST API operations.
196
+ #
197
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
198
+ # will be added to the HTTP request.
199
+ #
200
+ # @return [OperationListResult] which provide lazy access to pages of the
201
+ # response.
202
+ #
203
+ def list_as_lazy(custom_headers = nil)
204
+ response = list_async(custom_headers).value!
205
+ unless response.nil?
206
+ page = response.body
207
+ page.next_method = Proc.new do |next_page_link|
208
+ list_next_async(next_page_link, custom_headers)
209
+ end
210
+ page
211
+ end
212
+ end
213
+
214
+ end
215
+ end
@@ -719,6 +719,103 @@ module Azure::ARM::AnalysisServices
719
719
  promise.execute
720
720
  end
721
721
 
722
+ #
723
+ # Return the gateway status of the specified Analysis Services server instance.
724
+ #
725
+ # @param resource_group_name [String] The name of the Azure Resource group of
726
+ # which a given Analysis Services server is part. This name must be at least 1
727
+ # character in length, and no more than 90.
728
+ # @param server_name [String] The name of the Analysis Services server.
729
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
730
+ # will be added to the HTTP request.
731
+ #
732
+ # @return [GatewayListStatusLive] operation results.
733
+ #
734
+ def list_gateway_status(resource_group_name, server_name, custom_headers = nil)
735
+ response = list_gateway_status_async(resource_group_name, server_name, custom_headers).value!
736
+ response.body unless response.nil?
737
+ end
738
+
739
+ #
740
+ # Return the gateway status of the specified Analysis Services server instance.
741
+ #
742
+ # @param resource_group_name [String] The name of the Azure Resource group of
743
+ # which a given Analysis Services server is part. This name must be at least 1
744
+ # character in length, and no more than 90.
745
+ # @param server_name [String] The name of the Analysis Services server.
746
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
747
+ # will be added to the HTTP request.
748
+ #
749
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
750
+ #
751
+ def list_gateway_status_with_http_info(resource_group_name, server_name, custom_headers = nil)
752
+ list_gateway_status_async(resource_group_name, server_name, custom_headers).value!
753
+ end
754
+
755
+ #
756
+ # Return the gateway status of the specified Analysis Services server instance.
757
+ #
758
+ # @param resource_group_name [String] The name of the Azure Resource group of
759
+ # which a given Analysis Services server is part. This name must be at least 1
760
+ # character in length, and no more than 90.
761
+ # @param server_name [String] The name of the Analysis Services server.
762
+ # @param [Hash{String => String}] A hash of custom headers that will be added
763
+ # to the HTTP request.
764
+ #
765
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
766
+ #
767
+ def list_gateway_status_async(resource_group_name, server_name, custom_headers = nil)
768
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
769
+ fail ArgumentError, 'server_name is nil' if server_name.nil?
770
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
771
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
772
+
773
+
774
+ request_headers = {}
775
+
776
+ # Set Headers
777
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
778
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
779
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AnalysisServices/servers/{serverName}/listGatewayStatus'
780
+
781
+ request_url = @base_url || @client.base_url
782
+
783
+ options = {
784
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
785
+ path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'subscriptionId' => @client.subscription_id},
786
+ query_params: {'api-version' => @client.api_version},
787
+ headers: request_headers.merge(custom_headers || {}),
788
+ base_url: request_url
789
+ }
790
+ promise = @client.make_request_async(:post, path_template, options)
791
+
792
+ promise = promise.then do |result|
793
+ http_response = result.response
794
+ status_code = http_response.status
795
+ response_content = http_response.body
796
+ unless status_code == 200
797
+ error_model = JSON.load(response_content)
798
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
799
+ end
800
+
801
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
802
+ # Deserialize Response
803
+ if status_code == 200
804
+ begin
805
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
806
+ result_mapper = Azure::ARM::AnalysisServices::Models::GatewayListStatusLive.mapper()
807
+ result.body = @client.deserialize(result_mapper, parsed_response)
808
+ rescue Exception => e
809
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
810
+ end
811
+ end
812
+
813
+ result
814
+ end
815
+
816
+ promise.execute
817
+ end
818
+
722
819
  #
723
820
  # Provisions the specified Analysis Services server based on the configuration
724
821
  # specified in the request.
@@ -4,5 +4,5 @@
4
4
  # regenerated.
5
5
 
6
6
  module Azure::ARM::AnalysisServices
7
- VERSION = '0.11.0'
7
+ VERSION = '0.12.0'
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_analysis_services
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.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: 2017-07-19 00:00:00.000000000 Z
11
+ date: 2017-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.8.0
75
+ version: 0.9.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.8.0
82
+ version: 0.9.0
83
83
  description: Microsoft Azure Analysis Services Library for Ruby
84
84
  email: azrubyteam@microsoft.com
85
85
  executables: []
@@ -93,6 +93,17 @@ files:
93
93
  - lib/generated/azure_mgmt_analysis_services/models/analysis_services_server.rb
94
94
  - lib/generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb
95
95
  - lib/generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb
96
+ - lib/generated/azure_mgmt_analysis_services/models/connection_mode.rb
97
+ - lib/generated/azure_mgmt_analysis_services/models/error_response.rb
98
+ - lib/generated/azure_mgmt_analysis_services/models/gateway_details.rb
99
+ - lib/generated/azure_mgmt_analysis_services/models/gateway_error.rb
100
+ - lib/generated/azure_mgmt_analysis_services/models/gateway_list_status_error.rb
101
+ - lib/generated/azure_mgmt_analysis_services/models/gateway_list_status_live.rb
102
+ - lib/generated/azure_mgmt_analysis_services/models/ipv4firewall_rule.rb
103
+ - lib/generated/azure_mgmt_analysis_services/models/ipv4firewall_settings.rb
104
+ - lib/generated/azure_mgmt_analysis_services/models/operation.rb
105
+ - lib/generated/azure_mgmt_analysis_services/models/operation_display.rb
106
+ - lib/generated/azure_mgmt_analysis_services/models/operation_list_result.rb
96
107
  - lib/generated/azure_mgmt_analysis_services/models/provisioning_state.rb
97
108
  - lib/generated/azure_mgmt_analysis_services/models/resource.rb
98
109
  - lib/generated/azure_mgmt_analysis_services/models/resource_sku.rb
@@ -102,7 +113,9 @@ files:
102
113
  - lib/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb
103
114
  - lib/generated/azure_mgmt_analysis_services/models/sku_tier.rb
104
115
  - lib/generated/azure_mgmt_analysis_services/models/state.rb
116
+ - lib/generated/azure_mgmt_analysis_services/models/status.rb
105
117
  - lib/generated/azure_mgmt_analysis_services/module_definition.rb
118
+ - lib/generated/azure_mgmt_analysis_services/operations.rb
106
119
  - lib/generated/azure_mgmt_analysis_services/servers.rb
107
120
  - lib/generated/azure_mgmt_analysis_services/version.rb
108
121
  homepage: https://aka.ms/azure-sdk-for-ruby