azure_mgmt_kusto 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto.rb +70 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/clusters.rb +1281 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/databases.rb +1131 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/event_hub_connections.rb +854 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/kusto_management_client.rb +145 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/azure_capacity.rb +81 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/azure_entity_resource.rb +75 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/azure_resource_sku.rb +71 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/azure_scale_type.rb +17 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/azure_sku.rb +72 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/azure_sku_name.rb +22 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/check_name_result.rb +71 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/cluster.rb +183 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/cluster_check_name_request.rb +61 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/cluster_list_result.rb +55 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/cluster_update.rb +188 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/data_format.rb +17 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/database.rb +148 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/database_check_name_request.rb +62 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/database_list_result.rb +55 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/database_principal.rb +106 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/database_principal_list_request.rb +56 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/database_principal_list_result.rb +56 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/database_principal_role.rb +20 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/database_principal_type.rb +17 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/database_statistics.rb +48 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/database_update.rb +135 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/event_hub_connection.rb +133 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/event_hub_connection_list_result.rb +56 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/event_hub_connection_update.rb +133 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/event_hub_connection_validation.rb +106 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/event_hub_connection_validation_list_result.rb +56 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/event_hub_connection_validation_result.rb +48 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/list_resource_skus_result.rb +56 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/list_skus_result.rb +56 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/operation.rb +82 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/operation_display.rb +80 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/operation_list_result.rb +98 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/provisioning_state.rb +19 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/proxy_resource.rb +63 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/resource.rb +83 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/state.rb +22 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/tracked_resource.rb +92 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/models/trusted_external_tenant.rb +47 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/module_definition.rb +9 -0
- data/lib/2017-09-07-privatepreview/generated/azure_mgmt_kusto/operations.rb +217 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto.rb +70 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/clusters.rb +1281 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/databases.rb +1131 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/event_hub_connections.rb +854 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/kusto_management_client.rb +145 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/azure_capacity.rb +81 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/azure_entity_resource.rb +75 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/azure_resource_sku.rb +71 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/azure_scale_type.rb +17 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/azure_sku.rb +72 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/azure_sku_name.rb +22 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/check_name_result.rb +71 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/cluster.rb +183 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/cluster_check_name_request.rb +61 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/cluster_list_result.rb +55 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/cluster_update.rb +188 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/data_format.rb +17 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/database.rb +148 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/database_check_name_request.rb +62 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/database_list_result.rb +55 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/database_principal.rb +106 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/database_principal_list_request.rb +56 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/database_principal_list_result.rb +56 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/database_principal_role.rb +20 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/database_principal_type.rb +17 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/database_statistics.rb +48 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/database_update.rb +135 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/event_hub_connection.rb +133 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/event_hub_connection_list_result.rb +56 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/event_hub_connection_update.rb +133 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/event_hub_connection_validation.rb +106 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/event_hub_connection_validation_list_result.rb +56 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/event_hub_connection_validation_result.rb +48 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/list_resource_skus_result.rb +56 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/list_skus_result.rb +56 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/operation.rb +82 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/operation_display.rb +80 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/operation_list_result.rb +98 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/provisioning_state.rb +19 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/proxy_resource.rb +63 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/resource.rb +83 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/state.rb +22 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/tracked_resource.rb +92 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/models/trusted_external_tenant.rb +47 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/module_definition.rb +9 -0
- data/lib/2018-09-07-preview/generated/azure_mgmt_kusto/operations.rb +217 -0
- data/lib/azure_mgmt_kusto.rb +7 -0
- data/lib/module_definition.rb +8 -0
- data/lib/profiles/latest/kusto_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/kusto_module_definition.rb +8 -0
- data/lib/profiles/latest/modules/kusto_profile_module.rb +223 -0
- data/lib/version.rb +7 -0
- metadata +218 -0
@@ -0,0 +1,82 @@
|
|
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::V2018_09_07_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# A REST API operation
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class Operation
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] The operation name. This is of the format
|
17
|
+
# {provider}/{resource}/{operation}.
|
18
|
+
attr_accessor :name
|
19
|
+
|
20
|
+
# @return [OperationDisplay] The object that describes the operation.
|
21
|
+
attr_accessor :display
|
22
|
+
|
23
|
+
# @return [String] The intended executor of the operation.
|
24
|
+
attr_accessor :origin
|
25
|
+
|
26
|
+
# @return Properties of the operation.
|
27
|
+
attr_accessor :properties
|
28
|
+
|
29
|
+
|
30
|
+
#
|
31
|
+
# Mapper for Operation class as Ruby Hash.
|
32
|
+
# This will be used for serialization/deserialization.
|
33
|
+
#
|
34
|
+
def self.mapper()
|
35
|
+
{
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'Operation',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'Operation',
|
42
|
+
model_properties: {
|
43
|
+
name: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'name',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
},
|
51
|
+
display: {
|
52
|
+
client_side_validation: true,
|
53
|
+
required: false,
|
54
|
+
serialized_name: 'display',
|
55
|
+
type: {
|
56
|
+
name: 'Composite',
|
57
|
+
class_name: 'OperationDisplay'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
origin: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'origin',
|
64
|
+
type: {
|
65
|
+
name: 'String'
|
66
|
+
}
|
67
|
+
},
|
68
|
+
properties: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'properties',
|
72
|
+
type: {
|
73
|
+
name: 'Object'
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
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::V2018_09_07_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The object that describes the operation.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class OperationDisplay
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] Friendly name of the resource provider.
|
17
|
+
attr_accessor :provider
|
18
|
+
|
19
|
+
# @return [String] The operation type. For example: read, write, delete.
|
20
|
+
attr_accessor :operation
|
21
|
+
|
22
|
+
# @return [String] The resource type on which the operation is performed.
|
23
|
+
attr_accessor :resource
|
24
|
+
|
25
|
+
# @return [String] The friendly name of the operation.
|
26
|
+
attr_accessor :description
|
27
|
+
|
28
|
+
|
29
|
+
#
|
30
|
+
# Mapper for OperationDisplay 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: 'Operation_display',
|
38
|
+
type: {
|
39
|
+
name: 'Composite',
|
40
|
+
class_name: 'OperationDisplay',
|
41
|
+
model_properties: {
|
42
|
+
provider: {
|
43
|
+
client_side_validation: true,
|
44
|
+
required: false,
|
45
|
+
serialized_name: 'provider',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
},
|
50
|
+
operation: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'operation',
|
54
|
+
type: {
|
55
|
+
name: 'String'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
resource: {
|
59
|
+
client_side_validation: true,
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'resource',
|
62
|
+
type: {
|
63
|
+
name: 'String'
|
64
|
+
}
|
65
|
+
},
|
66
|
+
description: {
|
67
|
+
client_side_validation: true,
|
68
|
+
required: false,
|
69
|
+
serialized_name: 'description',
|
70
|
+
type: {
|
71
|
+
name: 'String'
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
@@ -0,0 +1,98 @@
|
|
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::V2018_09_07_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
class OperationListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<Operation>]
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String]
|
20
|
+
attr_accessor :next_link
|
21
|
+
|
22
|
+
# return [Proc] with next page method call.
|
23
|
+
attr_accessor :next_method
|
24
|
+
|
25
|
+
#
|
26
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
27
|
+
#
|
28
|
+
# @return [Array<Operation>] operation results.
|
29
|
+
#
|
30
|
+
def get_all_items
|
31
|
+
items = @value
|
32
|
+
page = self
|
33
|
+
while page.next_link != nil do
|
34
|
+
page = page.get_next_page
|
35
|
+
items.concat(page.value)
|
36
|
+
end
|
37
|
+
items
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Gets the next page of results.
|
42
|
+
#
|
43
|
+
# @return [OperationListResult] with next page content.
|
44
|
+
#
|
45
|
+
def get_next_page
|
46
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
47
|
+
unless response.nil?
|
48
|
+
@next_link = response.body.next_link
|
49
|
+
@value = response.body.value
|
50
|
+
self
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# Mapper for OperationListResult class as Ruby Hash.
|
56
|
+
# This will be used for serialization/deserialization.
|
57
|
+
#
|
58
|
+
def self.mapper()
|
59
|
+
{
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'OperationListResult',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'OperationListResult',
|
66
|
+
model_properties: {
|
67
|
+
value: {
|
68
|
+
client_side_validation: true,
|
69
|
+
required: false,
|
70
|
+
serialized_name: 'value',
|
71
|
+
type: {
|
72
|
+
name: 'Sequence',
|
73
|
+
element: {
|
74
|
+
client_side_validation: true,
|
75
|
+
required: false,
|
76
|
+
serialized_name: 'OperationElementType',
|
77
|
+
type: {
|
78
|
+
name: 'Composite',
|
79
|
+
class_name: 'Operation'
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
},
|
84
|
+
next_link: {
|
85
|
+
client_side_validation: true,
|
86
|
+
required: false,
|
87
|
+
serialized_name: 'nextLink',
|
88
|
+
type: {
|
89
|
+
name: 'String'
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
@@ -0,0 +1,19 @@
|
|
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::V2018_09_07_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for ProvisioningState
|
10
|
+
#
|
11
|
+
module ProvisioningState
|
12
|
+
Running = "Running"
|
13
|
+
Creating = "Creating"
|
14
|
+
Deleting = "Deleting"
|
15
|
+
Succeeded = "Succeeded"
|
16
|
+
Failed = "Failed"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,63 @@
|
|
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::V2018_09_07_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The resource model definition for a ARM proxy resource. It will have
|
10
|
+
# everything other than required location and tags
|
11
|
+
#
|
12
|
+
class ProxyResource < Resource
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
|
17
|
+
#
|
18
|
+
# Mapper for ProxyResource class as Ruby Hash.
|
19
|
+
# This will be used for serialization/deserialization.
|
20
|
+
#
|
21
|
+
def self.mapper()
|
22
|
+
{
|
23
|
+
client_side_validation: true,
|
24
|
+
required: false,
|
25
|
+
serialized_name: 'ProxyResource',
|
26
|
+
type: {
|
27
|
+
name: 'Composite',
|
28
|
+
class_name: 'ProxyResource',
|
29
|
+
model_properties: {
|
30
|
+
id: {
|
31
|
+
client_side_validation: true,
|
32
|
+
required: false,
|
33
|
+
read_only: true,
|
34
|
+
serialized_name: 'id',
|
35
|
+
type: {
|
36
|
+
name: 'String'
|
37
|
+
}
|
38
|
+
},
|
39
|
+
name: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
read_only: true,
|
43
|
+
serialized_name: 'name',
|
44
|
+
type: {
|
45
|
+
name: 'String'
|
46
|
+
}
|
47
|
+
},
|
48
|
+
type: {
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
read_only: true,
|
52
|
+
serialized_name: 'type',
|
53
|
+
type: {
|
54
|
+
name: 'String'
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,83 @@
|
|
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::V2018_09_07_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Model object.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class Resource
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] Fully qualified resource Id for the resource. Ex -
|
17
|
+
# /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
|
18
|
+
attr_accessor :id
|
19
|
+
|
20
|
+
# @return [String] The name of the resource
|
21
|
+
attr_accessor :name
|
22
|
+
|
23
|
+
# @return [String] The type of the resource. Ex-
|
24
|
+
# Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
|
25
|
+
attr_accessor :type
|
26
|
+
|
27
|
+
|
28
|
+
# @return [String] the name of the resource group of the resource.
|
29
|
+
def resource_group
|
30
|
+
unless self.id.nil?
|
31
|
+
groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
|
32
|
+
groups.captures[0].strip if groups
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
|
37
|
+
#
|
38
|
+
# Mapper for Resource class as Ruby Hash.
|
39
|
+
# This will be used for serialization/deserialization.
|
40
|
+
#
|
41
|
+
def self.mapper()
|
42
|
+
{
|
43
|
+
client_side_validation: true,
|
44
|
+
required: false,
|
45
|
+
serialized_name: 'Resource',
|
46
|
+
type: {
|
47
|
+
name: 'Composite',
|
48
|
+
class_name: 'Resource',
|
49
|
+
model_properties: {
|
50
|
+
id: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
read_only: true,
|
54
|
+
serialized_name: 'id',
|
55
|
+
type: {
|
56
|
+
name: 'String'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
name: {
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
read_only: true,
|
63
|
+
serialized_name: 'name',
|
64
|
+
type: {
|
65
|
+
name: 'String'
|
66
|
+
}
|
67
|
+
},
|
68
|
+
type: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
read_only: true,
|
72
|
+
serialized_name: 'type',
|
73
|
+
type: {
|
74
|
+
name: 'String'
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,22 @@
|
|
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::V2018_09_07_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for State
|
10
|
+
#
|
11
|
+
module State
|
12
|
+
Creating = "Creating"
|
13
|
+
Unavailable = "Unavailable"
|
14
|
+
Running = "Running"
|
15
|
+
Deleting = "Deleting"
|
16
|
+
Deleted = "Deleted"
|
17
|
+
Stopping = "Stopping"
|
18
|
+
Stopped = "Stopped"
|
19
|
+
Starting = "Starting"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|