azure_mgmt_kusto 0.17.0 → 0.17.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/kusto_management_client.rb +1 -1
  3. data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/kusto_management_client.rb +1 -1
  4. data/lib/2019-01-21/generated/azure_mgmt_kusto.rb +71 -0
  5. data/lib/2019-01-21/generated/azure_mgmt_kusto/clusters.rb +1281 -0
  6. data/lib/2019-01-21/generated/azure_mgmt_kusto/data_connections.rb +836 -0
  7. data/lib/2019-01-21/generated/azure_mgmt_kusto/databases.rb +1131 -0
  8. data/lib/2019-01-21/generated/azure_mgmt_kusto/kusto_management_client.rb +145 -0
  9. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/azure_capacity.rb +80 -0
  10. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/azure_entity_resource.rb +75 -0
  11. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/azure_resource_sku.rb +70 -0
  12. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/azure_scale_type.rb +17 -0
  13. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/azure_sku.rb +71 -0
  14. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/azure_sku_name.rb +21 -0
  15. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/check_name_result.rb +70 -0
  16. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/cluster.rb +171 -0
  17. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/cluster_check_name_request.rb +60 -0
  18. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/cluster_list_result.rb +55 -0
  19. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/cluster_update.rb +176 -0
  20. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/data_connection.rb +82 -0
  21. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/data_connection_list_result.rb +57 -0
  22. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/data_connection_validation.rb +60 -0
  23. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/data_connection_validation_list_result.rb +56 -0
  24. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/data_connection_validation_result.rb +47 -0
  25. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/data_format.rb +25 -0
  26. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/database.rb +123 -0
  27. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/database_check_name_request.rb +61 -0
  28. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/database_list_result.rb +55 -0
  29. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/database_principal.rb +105 -0
  30. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/database_principal_list_request.rb +56 -0
  31. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/database_principal_list_result.rb +56 -0
  32. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/database_principal_role.rb +20 -0
  33. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/database_principal_type.rb +17 -0
  34. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/database_statistics.rb +47 -0
  35. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/database_update.rb +123 -0
  36. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/event_grid_data_connection.rb +158 -0
  37. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/event_hub_data_connection.rb +146 -0
  38. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/list_resource_skus_result.rb +56 -0
  39. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/list_skus_result.rb +56 -0
  40. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/operation.rb +82 -0
  41. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/operation_display.rb +80 -0
  42. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/operation_list_result.rb +98 -0
  43. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/provisioning_state.rb +19 -0
  44. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/proxy_resource.rb +63 -0
  45. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/resource.rb +83 -0
  46. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/state.rb +23 -0
  47. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/tracked_resource.rb +92 -0
  48. data/lib/2019-01-21/generated/azure_mgmt_kusto/models/trusted_external_tenant.rb +46 -0
  49. data/lib/2019-01-21/generated/azure_mgmt_kusto/module_definition.rb +9 -0
  50. data/lib/2019-01-21/generated/azure_mgmt_kusto/operations.rb +217 -0
  51. data/lib/azure_mgmt_kusto.rb +1 -0
  52. data/lib/profiles/latest/modules/kusto_profile_module.rb +109 -105
  53. data/lib/version.rb +1 -1
  54. metadata +49 -2
@@ -0,0 +1,145 @@
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::Kusto::Mgmt::V2019_01_21
7
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class KustoManagementClient < 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] Gets subscription credentials which uniquely identify
21
+ # Microsoft Azure subscription. The subscription ID forms part of the URI
22
+ # for every service call.
23
+ attr_accessor :subscription_id
24
+
25
+ # @return [String] Client API Version.
26
+ attr_reader :api_version
27
+
28
+ # @return [String] The preferred language for the response.
29
+ attr_accessor :accept_language
30
+
31
+ # @return [Integer] The retry timeout in seconds for Long Running
32
+ # Operations. Default value is 30.
33
+ attr_accessor :long_running_operation_retry_timeout
34
+
35
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
36
+ # generated. When set to true a unique x-ms-client-request-id value is
37
+ # generated and included in each request. Default is true.
38
+ attr_accessor :generate_client_request_id
39
+
40
+ # @return [Clusters] clusters
41
+ attr_reader :clusters
42
+
43
+ # @return [Databases] databases
44
+ attr_reader :databases
45
+
46
+ # @return [DataConnections] data_connections
47
+ attr_reader :data_connections
48
+
49
+ # @return [Operations] operations
50
+ attr_reader :operations
51
+
52
+ #
53
+ # Creates initializes a new instance of the KustoManagementClient class.
54
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
55
+ # @param base_url [String] the base URI of the service.
56
+ # @param options [Array] filters to be applied to the HTTP requests.
57
+ #
58
+ def initialize(credentials = nil, base_url = nil, options = nil)
59
+ super(credentials, options)
60
+ @base_url = base_url || 'https://management.azure.com'
61
+
62
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
63
+ @credentials = credentials
64
+
65
+ @clusters = Clusters.new(self)
66
+ @databases = Databases.new(self)
67
+ @data_connections = DataConnections.new(self)
68
+ @operations = Operations.new(self)
69
+ @api_version = '2019-01-21'
70
+ @accept_language = 'en-US'
71
+ @long_running_operation_retry_timeout = 30
72
+ @generate_client_request_id = true
73
+ add_telemetry
74
+ end
75
+
76
+ #
77
+ # Makes a request and returns the body of the response.
78
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
79
+ # @param path [String] the path, relative to {base_url}.
80
+ # @param options [Hash{String=>String}] specifying any request options like :body.
81
+ # @return [Hash{String=>String}] containing the body of the response.
82
+ # Example:
83
+ #
84
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
85
+ # path = "/path"
86
+ # options = {
87
+ # body: request_content,
88
+ # query_params: {'api-version' => '2016-02-01'}
89
+ # }
90
+ # result = @client.make_request(:put, path, options)
91
+ #
92
+ def make_request(method, path, options = {})
93
+ result = make_request_with_http_info(method, path, options)
94
+ result.body unless result.nil?
95
+ end
96
+
97
+ #
98
+ # Makes a request and returns the operation response.
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 [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
103
+ #
104
+ def make_request_with_http_info(method, path, options = {})
105
+ result = make_request_async(method, path, options).value!
106
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
107
+ result
108
+ end
109
+
110
+ #
111
+ # Makes a request asynchronously.
112
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
113
+ # @param path [String] the path, relative to {base_url}.
114
+ # @param options [Hash{String=>String}] specifying any request options like :body.
115
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
116
+ #
117
+ def make_request_async(method, path, options = {})
118
+ fail ArgumentError, 'method is nil' if method.nil?
119
+ fail ArgumentError, 'path is nil' if path.nil?
120
+
121
+ request_url = options[:base_url] || @base_url
122
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
123
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
124
+ end
125
+
126
+ request_headers = @request_headers
127
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
128
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
129
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
130
+
131
+ super(request_url, method, path, options)
132
+ end
133
+
134
+
135
+ private
136
+ #
137
+ # Adds telemetry information.
138
+ #
139
+ def add_telemetry
140
+ sdk_information = 'azure_mgmt_kusto'
141
+ sdk_information = "#{sdk_information}/0.17.1"
142
+ add_user_agent_information(sdk_information)
143
+ end
144
+ end
145
+ 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::Kusto::Mgmt::V2019_01_21
7
+ module Models
8
+ #
9
+ # Azure capacity definition.
10
+ #
11
+ class AzureCapacity
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [AzureScaleType] Scale type. Possible values include:
16
+ # 'automatic', 'manual', 'none'
17
+ attr_accessor :scale_type
18
+
19
+ # @return [Integer] Minimum allowed capacity.
20
+ attr_accessor :minimum
21
+
22
+ # @return [Integer] Maximum allowed capacity.
23
+ attr_accessor :maximum
24
+
25
+ # @return [Integer] The default capacity that would be used.
26
+ attr_accessor :default
27
+
28
+
29
+ #
30
+ # Mapper for AzureCapacity 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: 'AzureCapacity',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'AzureCapacity',
41
+ model_properties: {
42
+ scale_type: {
43
+ client_side_validation: true,
44
+ required: true,
45
+ serialized_name: 'scaleType',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ minimum: {
51
+ client_side_validation: true,
52
+ required: true,
53
+ serialized_name: 'minimum',
54
+ type: {
55
+ name: 'Number'
56
+ }
57
+ },
58
+ maximum: {
59
+ client_side_validation: true,
60
+ required: true,
61
+ serialized_name: 'maximum',
62
+ type: {
63
+ name: 'Number'
64
+ }
65
+ },
66
+ default: {
67
+ client_side_validation: true,
68
+ required: true,
69
+ serialized_name: 'default',
70
+ type: {
71
+ name: 'Number'
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ end
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,75 @@
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::Kusto::Mgmt::V2019_01_21
7
+ module Models
8
+ #
9
+ # The resource model definition for a Azure Resource Manager resource with
10
+ # an etag.
11
+ #
12
+ class AzureEntityResource < Resource
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Resource Etag.
17
+ attr_accessor :etag
18
+
19
+
20
+ #
21
+ # Mapper for AzureEntityResource class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ client_side_validation: true,
27
+ required: false,
28
+ serialized_name: 'AzureEntityResource',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'AzureEntityResource',
32
+ model_properties: {
33
+ id: {
34
+ client_side_validation: true,
35
+ required: false,
36
+ read_only: true,
37
+ serialized_name: 'id',
38
+ type: {
39
+ name: 'String'
40
+ }
41
+ },
42
+ name: {
43
+ client_side_validation: true,
44
+ required: false,
45
+ read_only: true,
46
+ serialized_name: 'name',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ },
51
+ type: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ read_only: true,
55
+ serialized_name: 'type',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
60
+ etag: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ read_only: true,
64
+ serialized_name: 'etag',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ end
73
+ end
74
+ end
75
+ end
@@ -0,0 +1,70 @@
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::Kusto::Mgmt::V2019_01_21
7
+ module Models
8
+ #
9
+ # Azure resource SKU definition.
10
+ #
11
+ class AzureResourceSku
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Resource Namespace and Type.
16
+ attr_accessor :resource_type
17
+
18
+ # @return [AzureSku] The SKU details.
19
+ attr_accessor :sku
20
+
21
+ # @return [AzureCapacity] The SKU capacity.
22
+ attr_accessor :capacity
23
+
24
+
25
+ #
26
+ # Mapper for AzureResourceSku class as Ruby Hash.
27
+ # This will be used for serialization/deserialization.
28
+ #
29
+ def self.mapper()
30
+ {
31
+ client_side_validation: true,
32
+ required: false,
33
+ serialized_name: 'AzureResourceSku',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'AzureResourceSku',
37
+ model_properties: {
38
+ resource_type: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'resourceType',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ },
46
+ sku: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'sku',
50
+ type: {
51
+ name: 'Composite',
52
+ class_name: 'AzureSku'
53
+ }
54
+ },
55
+ capacity: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ serialized_name: 'capacity',
59
+ type: {
60
+ name: 'Composite',
61
+ class_name: 'AzureCapacity'
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
67
+ end
68
+ end
69
+ end
70
+ end
@@ -0,0 +1,17 @@
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::Kusto::Mgmt::V2019_01_21
7
+ module Models
8
+ #
9
+ # Defines values for AzureScaleType
10
+ #
11
+ module AzureScaleType
12
+ Automatic = "automatic"
13
+ Manual = "manual"
14
+ None = "none"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,71 @@
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::Kusto::Mgmt::V2019_01_21
7
+ module Models
8
+ #
9
+ # Azure SKU definition.
10
+ #
11
+ class AzureSku
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [AzureSkuName] SKU name. Possible values include: 'D13_v2',
16
+ # 'D14_v2', 'L8', 'L16', 'D11_v2', 'D12_v2', 'L4'
17
+ attr_accessor :name
18
+
19
+ # @return [Integer] SKU capacity.
20
+ attr_accessor :capacity
21
+
22
+ # @return [String] SKU tier. Default value: 'Standard' .
23
+ attr_accessor :tier
24
+
25
+
26
+ #
27
+ # Mapper for AzureSku class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ client_side_validation: true,
33
+ required: false,
34
+ serialized_name: 'AzureSku',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'AzureSku',
38
+ model_properties: {
39
+ name: {
40
+ client_side_validation: true,
41
+ required: true,
42
+ serialized_name: 'name',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ capacity: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ serialized_name: 'capacity',
51
+ type: {
52
+ name: 'Number'
53
+ }
54
+ },
55
+ tier: {
56
+ client_side_validation: true,
57
+ required: true,
58
+ is_constant: true,
59
+ serialized_name: 'tier',
60
+ default_value: 'Standard',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ end
69
+ end
70
+ end
71
+ end