azure_mgmt_analysis_services 0.14.0 → 0.15.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.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-05-16/generated/azure_mgmt_analysis_services.rb +40 -0
  3. data/lib/{generated → 2016-05-16/generated}/azure_mgmt_analysis_services/analysis_services_management_client.rb +4 -8
  4. data/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/analysis_services_server.rb +149 -0
  5. data/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb +84 -0
  6. data/lib/{generated → 2016-05-16/generated}/azure_mgmt_analysis_services/models/analysis_services_servers.rb +1 -1
  7. data/lib/{generated → 2016-05-16/generated}/azure_mgmt_analysis_services/models/provisioning_state.rb +1 -1
  8. data/lib/{generated → 2016-05-16/generated}/azure_mgmt_analysis_services/models/resource.rb +1 -1
  9. data/lib/{generated → 2016-05-16/generated}/azure_mgmt_analysis_services/models/resource_sku.rb +1 -17
  10. data/lib/{generated → 2016-05-16/generated}/azure_mgmt_analysis_services/models/server_administrators.rb +2 -2
  11. data/lib/{generated → 2016-05-16/generated}/azure_mgmt_analysis_services/models/sku_details_for_existing_resource.rb +2 -2
  12. data/lib/{generated → 2016-05-16/generated}/azure_mgmt_analysis_services/models/sku_enumeration_for_existing_resource_result.rb +3 -3
  13. data/lib/{generated → 2016-05-16/generated}/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb +3 -3
  14. data/lib/{generated → 2016-05-16/generated}/azure_mgmt_analysis_services/models/sku_tier.rb +1 -1
  15. data/lib/{generated → 2016-05-16/generated}/azure_mgmt_analysis_services/models/state.rb +1 -1
  16. data/lib/2016-05-16/generated/azure_mgmt_analysis_services/module_definition.rb +9 -0
  17. data/lib/2016-05-16/generated/azure_mgmt_analysis_services/servers.rb +1245 -0
  18. data/lib/{generated → 2016-05-16/generated}/azure_mgmt_analysis_services/version.rb +2 -2
  19. data/lib/2017-07-14/generated/azure_mgmt_analysis_services.rb +45 -0
  20. data/lib/2017-07-14/generated/azure_mgmt_analysis_services/analysis_services_management_client.rb +130 -0
  21. data/lib/{generated → 2017-07-14/generated}/azure_mgmt_analysis_services/models/analysis_services_server.rb +1 -31
  22. data/lib/{generated → 2017-07-14/generated}/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb +1 -31
  23. data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb +53 -0
  24. data/lib/{generated → 2017-07-14/generated}/azure_mgmt_analysis_services/models/gateway_details.rb +1 -1
  25. data/lib/{generated → 2017-07-14/generated}/azure_mgmt_analysis_services/models/gateway_error.rb +2 -2
  26. data/lib/{generated → 2017-07-14/generated}/azure_mgmt_analysis_services/models/gateway_list_status_error.rb +2 -2
  27. data/lib/{generated → 2017-07-14/generated}/azure_mgmt_analysis_services/models/gateway_list_status_live.rb +2 -2
  28. data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/provisioning_state.rb +26 -0
  29. data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/resource.rb +107 -0
  30. data/lib/{generated/azure_mgmt_analysis_services/models/operation.rb → 2017-07-14/generated/azure_mgmt_analysis_services/models/resource_sku.rb} +15 -15
  31. data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/server_administrators.rb +51 -0
  32. data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/sku_details_for_existing_resource.rb +45 -0
  33. data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_existing_resource_result.rb +53 -0
  34. data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb +53 -0
  35. data/lib/{generated/azure_mgmt_analysis_services/models/connection_mode.rb → 2017-07-14/generated/azure_mgmt_analysis_services/models/sku_tier.rb} +6 -5
  36. data/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/state.rb +26 -0
  37. data/lib/{generated → 2017-07-14/generated}/azure_mgmt_analysis_services/models/status.rb +1 -1
  38. data/lib/2017-07-14/generated/azure_mgmt_analysis_services/module_definition.rb +9 -0
  39. data/lib/{generated → 2017-07-14/generated}/azure_mgmt_analysis_services/servers.rb +21 -18
  40. data/lib/{generated/azure_mgmt_analysis_services/module_definition.rb → 2017-07-14/generated/azure_mgmt_analysis_services/version.rb} +3 -3
  41. data/lib/azure_mgmt_analysis_services.rb +3 -1
  42. data/lib/module_definition.rb +7 -0
  43. data/lib/profiles/common/configurable.rb +73 -0
  44. data/lib/profiles/common/default.rb +68 -0
  45. data/lib/profiles/latest/analysisservices_latest_profile_client.rb +33 -0
  46. data/lib/profiles/latest/analysisservices_module_definition.rb +9 -0
  47. data/lib/profiles/latest/modules/analysisservices_profile_module.rb +110 -0
  48. data/lib/version.rb +7 -0
  49. metadata +48 -32
  50. data/lib/generated/azure_mgmt_analysis_services.rb +0 -53
  51. data/lib/generated/azure_mgmt_analysis_services/models/error_response.rb +0 -54
  52. data/lib/generated/azure_mgmt_analysis_services/models/ipv4firewall_rule.rb +0 -64
  53. data/lib/generated/azure_mgmt_analysis_services/models/ipv4firewall_settings.rb +0 -62
  54. data/lib/generated/azure_mgmt_analysis_services/models/operation_display.rb +0 -68
  55. data/lib/generated/azure_mgmt_analysis_services/models/operation_list_result.rb +0 -99
  56. data/lib/generated/azure_mgmt_analysis_services/operations.rb +0 -215
@@ -3,6 +3,6 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::AnalysisServices
7
- VERSION = '0.14.0'
6
+ module Azure::AnalysisServices::Mgmt::V2016_05_16
7
+ VERSION = '0.15.0'
8
8
  end
@@ -0,0 +1,45 @@
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
+ 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 '2017-07-14/generated/azure_mgmt_analysis_services/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::AnalysisServices::Mgmt::V2017_07_14
23
+ autoload :Servers, '2017-07-14/generated/azure_mgmt_analysis_services/servers.rb'
24
+ autoload :AnalysisServicesManagementClient, '2017-07-14/generated/azure_mgmt_analysis_services/analysis_services_management_client.rb'
25
+
26
+ module Models
27
+ autoload :AnalysisServicesServerUpdateParameters, '2017-07-14/generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb'
28
+ autoload :GatewayListStatusLive, '2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_list_status_live.rb'
29
+ autoload :Resource, '2017-07-14/generated/azure_mgmt_analysis_services/models/resource.rb'
30
+ autoload :GatewayError, '2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_error.rb'
31
+ autoload :AnalysisServicesServers, '2017-07-14/generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb'
32
+ autoload :GatewayListStatusError, '2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_list_status_error.rb'
33
+ autoload :GatewayDetails, '2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_details.rb'
34
+ autoload :SkuEnumerationForNewResourceResult, '2017-07-14/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb'
35
+ autoload :ServerAdministrators, '2017-07-14/generated/azure_mgmt_analysis_services/models/server_administrators.rb'
36
+ autoload :SkuDetailsForExistingResource, '2017-07-14/generated/azure_mgmt_analysis_services/models/sku_details_for_existing_resource.rb'
37
+ autoload :ResourceSku, '2017-07-14/generated/azure_mgmt_analysis_services/models/resource_sku.rb'
38
+ autoload :SkuEnumerationForExistingResourceResult, '2017-07-14/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_existing_resource_result.rb'
39
+ autoload :AnalysisServicesServer, '2017-07-14/generated/azure_mgmt_analysis_services/models/analysis_services_server.rb'
40
+ autoload :SkuTier, '2017-07-14/generated/azure_mgmt_analysis_services/models/sku_tier.rb'
41
+ autoload :State, '2017-07-14/generated/azure_mgmt_analysis_services/models/state.rb'
42
+ autoload :ProvisioningState, '2017-07-14/generated/azure_mgmt_analysis_services/models/provisioning_state.rb'
43
+ autoload :Status, '2017-07-14/generated/azure_mgmt_analysis_services/models/status.rb'
44
+ end
45
+ end
@@ -0,0 +1,130 @@
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::AnalysisServices::Mgmt::V2017_07_14
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 = nil, base_url = nil, options = nil)
48
+ super(credentials, options)
49
+ @base_url = base_url || 'https://management.azure.com'
50
+
51
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
52
+ @credentials = credentials
53
+
54
+ @servers = Servers.new(self)
55
+ @api_version = '2017-07-14'
56
+ @accept_language = 'en-US'
57
+ @long_running_operation_retry_timeout = 30
58
+ @generate_client_request_id = true
59
+ add_telemetry
60
+ end
61
+
62
+ #
63
+ # Makes a request and returns the body of the response.
64
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
65
+ # @param path [String] the path, relative to {base_url}.
66
+ # @param options [Hash{String=>String}] specifying any request options like :body.
67
+ # @return [Hash{String=>String}] containing the body of the response.
68
+ # Example:
69
+ #
70
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
71
+ # path = "/path"
72
+ # options = {
73
+ # body: request_content,
74
+ # query_params: {'api-version' => '2016-02-01'}
75
+ # }
76
+ # result = @client.make_request(:put, path, options)
77
+ #
78
+ def make_request(method, path, options = {})
79
+ result = make_request_with_http_info(method, path, options)
80
+ result.body unless result.nil?
81
+ end
82
+
83
+ #
84
+ # Makes a request and returns the operation response.
85
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
86
+ # @param path [String] the path, relative to {base_url}.
87
+ # @param options [Hash{String=>String}] specifying any request options like :body.
88
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
89
+ #
90
+ def make_request_with_http_info(method, path, options = {})
91
+ result = make_request_async(method, path, options).value!
92
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
93
+ result
94
+ end
95
+
96
+ #
97
+ # Makes a request asynchronously.
98
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
99
+ # @param path [String] the path, relative to {base_url}.
100
+ # @param options [Hash{String=>String}] specifying any request options like :body.
101
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
102
+ #
103
+ def make_request_async(method, path, options = {})
104
+ fail ArgumentError, 'method is nil' if method.nil?
105
+ fail ArgumentError, 'path is nil' if path.nil?
106
+
107
+ request_url = options[:base_url] || @base_url
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
+ private
119
+ #
120
+ # Adds telemetry information.
121
+ #
122
+ def add_telemetry
123
+ sdk_information = 'azure_mgmt_analysis_services'
124
+ if defined? Azure::AnalysisServices::Mgmt::V2017_07_14::VERSION
125
+ sdk_information = "#{sdk_information}/#{Azure::AnalysisServices::Mgmt::V2017_07_14::VERSION}"
126
+ end
127
+ add_user_agent_information(sdk_information)
128
+ end
129
+ end
130
+ end
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::AnalysisServices
6
+ module Azure::AnalysisServices::Mgmt::V2017_07_14
7
7
  module Models
8
8
  #
9
9
  # Represents an instance of an Analysis Services resource.
@@ -22,19 +22,6 @@ module Azure::ARM::AnalysisServices
22
22
  # server.
23
23
  attr_accessor :gateway_details
24
24
 
25
- # @return [IPv4FirewallSettings] The firewall settings for the AS server.
26
- attr_accessor :ip_v4firewall_settings
27
-
28
- # @return [ConnectionMode] How the read-write server's participation in
29
- # the query pool is controlled.<br/>It can have the following values:
30
- # <ul><li>readOnly - indicates that the read-write server is intended not
31
- # to participate in query operations</li><li>all - indicates that the
32
- # read-write server can participate in query
33
- # operations</li></ul>Specifying readOnly when capacity is 1 results in
34
- # error. Possible values include: 'All', 'ReadOnly'. Default value: 'All'
35
- # .
36
- attr_accessor :querypool_connection_mode
37
-
38
25
  # @return [State] The current state of Analysis Services resource. The
39
26
  # state is to indicate more states outside of resource provisioning.
40
27
  # Possible values include: 'Deleting', 'Succeeded', 'Failed', 'Paused',
@@ -141,23 +128,6 @@ module Azure::ARM::AnalysisServices
141
128
  class_name: 'GatewayDetails'
142
129
  }
143
130
  },
144
- ip_v4firewall_settings: {
145
- required: false,
146
- serialized_name: 'properties.ipV4FirewallSettings',
147
- type: {
148
- name: 'Composite',
149
- class_name: 'IPv4FirewallSettings'
150
- }
151
- },
152
- querypool_connection_mode: {
153
- required: false,
154
- serialized_name: 'properties.querypoolConnectionMode',
155
- default_value: 'All',
156
- type: {
157
- name: 'Enum',
158
- module: 'ConnectionMode'
159
- }
160
- },
161
131
  state: {
162
132
  required: false,
163
133
  read_only: true,
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::AnalysisServices
6
+ module Azure::AnalysisServices::Mgmt::V2017_07_14
7
7
  module Models
8
8
  #
9
9
  # Provision request specification
@@ -29,19 +29,6 @@ module Azure::ARM::AnalysisServices
29
29
  # server.
30
30
  attr_accessor :gateway_details
31
31
 
32
- # @return [IPv4FirewallSettings] The firewall settings for the AS server.
33
- attr_accessor :ip_v4firewall_settings
34
-
35
- # @return [ConnectionMode] How the read-write server's participation in
36
- # the query pool is controlled.<br/>It can have the following values:
37
- # <ul><li>readOnly - indicates that the read-write server is intended not
38
- # to participate in query operations</li><li>all - indicates that the
39
- # read-write server can participate in query
40
- # operations</li></ul>Specifying readOnly when capacity is 1 results in
41
- # error. Possible values include: 'All', 'ReadOnly'. Default value: 'All'
42
- # .
43
- attr_accessor :querypool_connection_mode
44
-
45
32
 
46
33
  #
47
34
  # Mapper for AnalysisServicesServerUpdateParameters class as Ruby Hash.
@@ -99,23 +86,6 @@ module Azure::ARM::AnalysisServices
99
86
  name: 'Composite',
100
87
  class_name: 'GatewayDetails'
101
88
  }
102
- },
103
- ip_v4firewall_settings: {
104
- required: false,
105
- serialized_name: 'properties.ipV4FirewallSettings',
106
- type: {
107
- name: 'Composite',
108
- class_name: 'IPv4FirewallSettings'
109
- }
110
- },
111
- querypool_connection_mode: {
112
- required: false,
113
- serialized_name: 'properties.querypoolConnectionMode',
114
- default_value: 'All',
115
- type: {
116
- name: 'Enum',
117
- module: 'ConnectionMode'
118
- }
119
89
  }
120
90
  }
121
91
  }
@@ -0,0 +1,53 @@
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::AnalysisServices::Mgmt::V2017_07_14
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
@@ -3,7 +3,7 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::AnalysisServices
6
+ module Azure::AnalysisServices::Mgmt::V2017_07_14
7
7
  module Models
8
8
  #
9
9
  # The gateway details.
@@ -3,10 +3,10 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::AnalysisServices
6
+ module Azure::AnalysisServices::Mgmt::V2017_07_14
7
7
  module Models
8
8
  #
9
- # Detail of gateway errors.
9
+ # Detail of gateway errors
10
10
  #
11
11
  class GatewayError
12
12
 
@@ -3,10 +3,10 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::AnalysisServices
6
+ module Azure::AnalysisServices::Mgmt::V2017_07_14
7
7
  module Models
8
8
  #
9
- # Status of gateway is error.
9
+ # Status of gateway is error
10
10
  #
11
11
  class GatewayListStatusError
12
12
 
@@ -3,10 +3,10 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::ARM::AnalysisServices
6
+ module Azure::AnalysisServices::Mgmt::V2017_07_14
7
7
  module Models
8
8
  #
9
- # Status of gateway is live.
9
+ # Status of gateway is live
10
10
  #
11
11
  class GatewayListStatusLive
12
12
 
@@ -0,0 +1,26 @@
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::AnalysisServices::Mgmt::V2017_07_14
7
+ module Models
8
+ #
9
+ # Defines values for ProvisioningState
10
+ #
11
+ module ProvisioningState
12
+ Deleting = "Deleting"
13
+ Succeeded = "Succeeded"
14
+ Failed = "Failed"
15
+ Paused = "Paused"
16
+ Suspended = "Suspended"
17
+ Provisioning = "Provisioning"
18
+ Updating = "Updating"
19
+ Suspending = "Suspending"
20
+ Pausing = "Pausing"
21
+ Resuming = "Resuming"
22
+ Preparing = "Preparing"
23
+ Scaling = "Scaling"
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,107 @@
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::AnalysisServices::Mgmt::V2017_07_14
7
+ module Models
8
+ #
9
+ # Represents an instance of an Analysis Services resource.
10
+ #
11
+ class Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] An identifier that represents the Analysis Services
16
+ # resource.
17
+ attr_accessor :id
18
+
19
+ # @return [String] The name of the Analysis Services resource.
20
+ attr_accessor :name
21
+
22
+ # @return [String] The type of the Analysis Services resource.
23
+ attr_accessor :type
24
+
25
+ # @return [String] Location of the Analysis Services resource.
26
+ attr_accessor :location
27
+
28
+ # @return [ResourceSku] The SKU of the Analysis Services resource.
29
+ attr_accessor :sku
30
+
31
+ # @return [Hash{String => String}] Key-value pairs of additional resource
32
+ # provisioning properties.
33
+ attr_accessor :tags
34
+
35
+
36
+ #
37
+ # Mapper for Resource class as Ruby Hash.
38
+ # This will be used for serialization/deserialization.
39
+ #
40
+ def self.mapper()
41
+ {
42
+ required: false,
43
+ serialized_name: 'Resource',
44
+ type: {
45
+ name: 'Composite',
46
+ class_name: 'Resource',
47
+ model_properties: {
48
+ id: {
49
+ required: false,
50
+ read_only: true,
51
+ serialized_name: 'id',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ name: {
57
+ required: false,
58
+ read_only: true,
59
+ serialized_name: 'name',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ type: {
65
+ required: false,
66
+ read_only: true,
67
+ serialized_name: 'type',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ location: {
73
+ required: true,
74
+ serialized_name: 'location',
75
+ type: {
76
+ name: 'String'
77
+ }
78
+ },
79
+ sku: {
80
+ required: true,
81
+ serialized_name: 'sku',
82
+ type: {
83
+ name: 'Composite',
84
+ class_name: 'ResourceSku'
85
+ }
86
+ },
87
+ tags: {
88
+ required: false,
89
+ serialized_name: 'tags',
90
+ type: {
91
+ name: 'Dictionary',
92
+ value: {
93
+ required: false,
94
+ serialized_name: 'StringElementType',
95
+ type: {
96
+ name: 'String'
97
+ }
98
+ }
99
+ }
100
+ }
101
+ }
102
+ }
103
+ }
104
+ end
105
+ end
106
+ end
107
+ end