azure_mgmt_kusto 0.19.2 → 0.19.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) 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/kusto_management_client.rb +1 -1
  5. data/lib/2019-05-15/generated/azure_mgmt_kusto/kusto_management_client.rb +1 -1
  6. data/lib/2019-09-07/generated/azure_mgmt_kusto/kusto_management_client.rb +1 -1
  7. data/lib/2019-11-09/generated/azure_mgmt_kusto/kusto_management_client.rb +1 -1
  8. data/lib/2020-02-15/generated/azure_mgmt_kusto/kusto_management_client.rb +1 -1
  9. data/lib/2020-06-14/generated/azure_mgmt_kusto.rb +110 -0
  10. data/lib/2020-06-14/generated/azure_mgmt_kusto/attached_database_configurations.rb +558 -0
  11. data/lib/2020-06-14/generated/azure_mgmt_kusto/cluster_principal_assignments.rb +656 -0
  12. data/lib/2020-06-14/generated/azure_mgmt_kusto/clusters.rb +2087 -0
  13. data/lib/2020-06-14/generated/azure_mgmt_kusto/data_connections.rb +1033 -0
  14. data/lib/2020-06-14/generated/azure_mgmt_kusto/database_principal_assignments.rb +683 -0
  15. data/lib/2020-06-14/generated/azure_mgmt_kusto/databases.rb +1169 -0
  16. data/lib/2020-06-14/generated/azure_mgmt_kusto/kusto_management_client.rb +157 -0
  17. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/attached_database_configuration.rb +144 -0
  18. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/attached_database_configuration_list_result.rb +56 -0
  19. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/azure_capacity.rb +80 -0
  20. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/azure_entity_resource.rb +75 -0
  21. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/azure_resource_sku.rb +70 -0
  22. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/azure_scale_type.rb +17 -0
  23. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/azure_sku.rb +77 -0
  24. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/azure_sku_name.rb +35 -0
  25. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/azure_sku_tier.rb +16 -0
  26. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/blob_storage_event_type.rb +16 -0
  27. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/check_name_request.rb +61 -0
  28. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/check_name_result.rb +82 -0
  29. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster.rb +315 -0
  30. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster_check_name_request.rb +60 -0
  31. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster_list_result.rb +55 -0
  32. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster_principal_assignment.rb +147 -0
  33. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster_principal_assignment_check_name_request.rb +62 -0
  34. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster_principal_assignment_list_result.rb +56 -0
  35. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster_principal_role.rb +16 -0
  36. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/cluster_update.rb +302 -0
  37. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/compression.rb +16 -0
  38. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/data_connection.rb +82 -0
  39. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/data_connection_check_name_request.rb +61 -0
  40. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/data_connection_list_result.rb +57 -0
  41. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/data_connection_validation.rb +60 -0
  42. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/data_connection_validation_list_result.rb +56 -0
  43. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/data_connection_validation_result.rb +47 -0
  44. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database.rb +82 -0
  45. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_list_result.rb +57 -0
  46. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal.rb +117 -0
  47. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal_assignment.rb +148 -0
  48. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal_assignment_check_name_request.rb +62 -0
  49. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal_assignment_list_result.rb +56 -0
  50. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal_list_request.rb +56 -0
  51. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal_list_result.rb +56 -0
  52. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal_role.rb +20 -0
  53. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_principal_type.rb +17 -0
  54. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/database_statistics.rb +47 -0
  55. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/default_principals_modification_kind.rb +17 -0
  56. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/diagnose_virtual_network_result.rb +56 -0
  57. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/event_grid_data_connection.rb +184 -0
  58. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/event_grid_data_format.rb +30 -0
  59. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/event_hub_data_connection.rb +178 -0
  60. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/event_hub_data_format.rb +30 -0
  61. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/follower_database_definition.rb +72 -0
  62. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/follower_database_list_result.rb +56 -0
  63. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/identity.rb +95 -0
  64. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/identity_type.rb +16 -0
  65. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/identity_user_assigned_identities_value.rb +60 -0
  66. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/iot_hub_data_connection.rb +177 -0
  67. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/iot_hub_data_format.rb +30 -0
  68. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/key_vault_properties.rb +68 -0
  69. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/language_extension.rb +47 -0
  70. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/language_extension_name.rb +16 -0
  71. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/language_extensions_list.rb +55 -0
  72. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/list_resource_skus_result.rb +56 -0
  73. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/operation.rb +82 -0
  74. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/operation_display.rb +80 -0
  75. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/operation_list_result.rb +98 -0
  76. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/optimized_autoscale.rb +80 -0
  77. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/principal_type.rb +17 -0
  78. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/principals_modification_kind.rb +17 -0
  79. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/provisioning_state.rb +20 -0
  80. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/proxy_resource.rb +63 -0
  81. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/read_only_following_database.rb +174 -0
  82. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/read_write_database.rb +147 -0
  83. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/reason.rb +16 -0
  84. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/resource.rb +83 -0
  85. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/sku_description.rb +132 -0
  86. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/sku_description_list.rb +56 -0
  87. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/sku_location_info_item.rb +65 -0
  88. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/state.rb +23 -0
  89. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/tracked_resource.rb +92 -0
  90. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/trusted_external_tenant.rb +46 -0
  91. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/type.rb +16 -0
  92. data/lib/2020-06-14/generated/azure_mgmt_kusto/models/virtual_network_configuration.rb +69 -0
  93. data/lib/2020-06-14/generated/azure_mgmt_kusto/module_definition.rb +9 -0
  94. data/lib/2020-06-14/generated/azure_mgmt_kusto/operations.rb +221 -0
  95. data/lib/azure_mgmt_kusto.rb +1 -0
  96. data/lib/profiles/latest/modules/kusto_profile_module.rb +162 -158
  97. data/lib/version.rb +1 -1
  98. metadata +88 -2
@@ -0,0 +1,157 @@
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::V2020_06_14
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 [ClusterPrincipalAssignments] cluster_principal_assignments
44
+ attr_reader :cluster_principal_assignments
45
+
46
+ # @return [Databases] databases
47
+ attr_reader :databases
48
+
49
+ # @return [DatabasePrincipalAssignments] database_principal_assignments
50
+ attr_reader :database_principal_assignments
51
+
52
+ # @return [AttachedDatabaseConfigurations] attached_database_configurations
53
+ attr_reader :attached_database_configurations
54
+
55
+ # @return [DataConnections] data_connections
56
+ attr_reader :data_connections
57
+
58
+ # @return [Operations] operations
59
+ attr_reader :operations
60
+
61
+ #
62
+ # Creates initializes a new instance of the KustoManagementClient class.
63
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
64
+ # @param base_url [String] the base URI of the service.
65
+ # @param options [Array] filters to be applied to the HTTP requests.
66
+ #
67
+ def initialize(credentials = nil, base_url = nil, options = nil)
68
+ super(credentials, options)
69
+ @base_url = base_url || 'https://management.azure.com'
70
+
71
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
72
+ @credentials = credentials
73
+
74
+ @clusters = Clusters.new(self)
75
+ @cluster_principal_assignments = ClusterPrincipalAssignments.new(self)
76
+ @databases = Databases.new(self)
77
+ @database_principal_assignments = DatabasePrincipalAssignments.new(self)
78
+ @attached_database_configurations = AttachedDatabaseConfigurations.new(self)
79
+ @data_connections = DataConnections.new(self)
80
+ @operations = Operations.new(self)
81
+ @api_version = '2020-06-14'
82
+ @accept_language = 'en-US'
83
+ @long_running_operation_retry_timeout = 30
84
+ @generate_client_request_id = true
85
+ add_telemetry
86
+ end
87
+
88
+ #
89
+ # Makes a request and returns the body of the response.
90
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
91
+ # @param path [String] the path, relative to {base_url}.
92
+ # @param options [Hash{String=>String}] specifying any request options like :body.
93
+ # @return [Hash{String=>String}] containing the body of the response.
94
+ # Example:
95
+ #
96
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
97
+ # path = "/path"
98
+ # options = {
99
+ # body: request_content,
100
+ # query_params: {'api-version' => '2016-02-01'}
101
+ # }
102
+ # result = @client.make_request(:put, path, options)
103
+ #
104
+ def make_request(method, path, options = {})
105
+ result = make_request_with_http_info(method, path, options)
106
+ result.body unless result.nil?
107
+ end
108
+
109
+ #
110
+ # Makes a request and returns the operation response.
111
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
112
+ # @param path [String] the path, relative to {base_url}.
113
+ # @param options [Hash{String=>String}] specifying any request options like :body.
114
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
115
+ #
116
+ def make_request_with_http_info(method, path, options = {})
117
+ result = make_request_async(method, path, options).value!
118
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
119
+ result
120
+ end
121
+
122
+ #
123
+ # Makes a request asynchronously.
124
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
125
+ # @param path [String] the path, relative to {base_url}.
126
+ # @param options [Hash{String=>String}] specifying any request options like :body.
127
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
128
+ #
129
+ def make_request_async(method, path, options = {})
130
+ fail ArgumentError, 'method is nil' if method.nil?
131
+ fail ArgumentError, 'path is nil' if path.nil?
132
+
133
+ request_url = options[:base_url] || @base_url
134
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
135
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
136
+ end
137
+
138
+ request_headers = @request_headers
139
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
140
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
141
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
142
+
143
+ super(request_url, method, path, options)
144
+ end
145
+
146
+
147
+ private
148
+ #
149
+ # Adds telemetry information.
150
+ #
151
+ def add_telemetry
152
+ sdk_information = 'azure_mgmt_kusto'
153
+ sdk_information = "#{sdk_information}/0.19.3"
154
+ add_user_agent_information(sdk_information)
155
+ end
156
+ end
157
+ end
@@ -0,0 +1,144 @@
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::V2020_06_14
7
+ module Models
8
+ #
9
+ # Class representing an attached database configuration.
10
+ #
11
+ class AttachedDatabaseConfiguration < ProxyResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Resource location.
16
+ attr_accessor :location
17
+
18
+ # @return [ProvisioningState] The provisioned state of the resource.
19
+ # Possible values include: 'Running', 'Creating', 'Deleting',
20
+ # 'Succeeded', 'Failed', 'Moving'
21
+ attr_accessor :provisioning_state
22
+
23
+ # @return [String] The name of the database which you would like to
24
+ # attach, use * if you want to follow all current and future databases.
25
+ attr_accessor :database_name
26
+
27
+ # @return [String] The resource id of the cluster where the databases you
28
+ # would like to attach reside.
29
+ attr_accessor :cluster_resource_id
30
+
31
+ # @return [Array<String>] The list of databases from the
32
+ # clusterResourceId which are currently attached to the cluster.
33
+ attr_accessor :attached_database_names
34
+
35
+ # @return [DefaultPrincipalsModificationKind] The default principals
36
+ # modification kind. Possible values include: 'Union', 'Replace', 'None'
37
+ attr_accessor :default_principals_modification_kind
38
+
39
+
40
+ #
41
+ # Mapper for AttachedDatabaseConfiguration class as Ruby Hash.
42
+ # This will be used for serialization/deserialization.
43
+ #
44
+ def self.mapper()
45
+ {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'AttachedDatabaseConfiguration',
49
+ type: {
50
+ name: 'Composite',
51
+ class_name: 'AttachedDatabaseConfiguration',
52
+ model_properties: {
53
+ id: {
54
+ client_side_validation: true,
55
+ required: false,
56
+ read_only: true,
57
+ serialized_name: 'id',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ name: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ read_only: true,
66
+ serialized_name: 'name',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ },
71
+ type: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ read_only: true,
75
+ serialized_name: 'type',
76
+ type: {
77
+ name: 'String'
78
+ }
79
+ },
80
+ location: {
81
+ client_side_validation: true,
82
+ required: false,
83
+ serialized_name: 'location',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ },
88
+ provisioning_state: {
89
+ client_side_validation: true,
90
+ required: false,
91
+ read_only: true,
92
+ serialized_name: 'properties.provisioningState',
93
+ type: {
94
+ name: 'String'
95
+ }
96
+ },
97
+ database_name: {
98
+ client_side_validation: true,
99
+ required: true,
100
+ serialized_name: 'properties.databaseName',
101
+ type: {
102
+ name: 'String'
103
+ }
104
+ },
105
+ cluster_resource_id: {
106
+ client_side_validation: true,
107
+ required: true,
108
+ serialized_name: 'properties.clusterResourceId',
109
+ type: {
110
+ name: 'String'
111
+ }
112
+ },
113
+ attached_database_names: {
114
+ client_side_validation: true,
115
+ required: false,
116
+ read_only: true,
117
+ serialized_name: 'properties.attachedDatabaseNames',
118
+ type: {
119
+ name: 'Sequence',
120
+ element: {
121
+ client_side_validation: true,
122
+ required: false,
123
+ serialized_name: 'StringElementType',
124
+ type: {
125
+ name: 'String'
126
+ }
127
+ }
128
+ }
129
+ },
130
+ default_principals_modification_kind: {
131
+ client_side_validation: true,
132
+ required: true,
133
+ serialized_name: 'properties.defaultPrincipalsModificationKind',
134
+ type: {
135
+ name: 'String'
136
+ }
137
+ }
138
+ }
139
+ }
140
+ }
141
+ end
142
+ end
143
+ end
144
+ end
@@ -0,0 +1,56 @@
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::V2020_06_14
7
+ module Models
8
+ #
9
+ # The list attached database configurations operation response.
10
+ #
11
+ class AttachedDatabaseConfigurationListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<AttachedDatabaseConfiguration>] The list of attached
16
+ # database configurations.
17
+ attr_accessor :value
18
+
19
+
20
+ #
21
+ # Mapper for AttachedDatabaseConfigurationListResult 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: 'AttachedDatabaseConfigurationListResult',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'AttachedDatabaseConfigurationListResult',
32
+ model_properties: {
33
+ value: {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'value',
37
+ type: {
38
+ name: 'Sequence',
39
+ element: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'AttachedDatabaseConfigurationElementType',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'AttachedDatabaseConfiguration'
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ end
54
+ end
55
+ end
56
+ 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::V2020_06_14
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::V2020_06_14
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