azure_mgmt_resourcegraph 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/2019-04-01/generated/azure_mgmt_resourcegraph.rb +47 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/column.rb +59 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/column_data_type.rb +19 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/error.rb +79 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/error_details.rb +77 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/error_response.rb +49 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet.rb +60 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet_error.rb +79 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet_request.rb +59 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet_request_options.rb +91 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet_result.rb +94 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/facet_sort_order.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/operation.rb +70 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/operation_display.rb +79 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/operation_list_result.rb +57 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/query_request.rb +99 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/query_request_options.rb +80 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/query_response.rb +119 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/result_truncated.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/models/table.rb +82 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/module_definition.rb +9 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/operations.rb +107 -0
- data/lib/2019-04-01/generated/azure_mgmt_resourcegraph/resource_graph_client.rb +224 -0
- data/lib/azure_mgmt_resourcegraph.rb +6 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/modules/resourcegraph_profile_module.rb +137 -0
- data/lib/profiles/latest/resourcegraph_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/resourcegraph_module_definition.rb +8 -0
- data/lib/version.rb +7 -0
- metadata +148 -0
@@ -0,0 +1,59 @@
|
|
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::ResourceGraph::Mgmt::V2019_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# A request to compute additional statistics (facets) over the query
|
10
|
+
# results.
|
11
|
+
#
|
12
|
+
class FacetRequest
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] The column or list of columns to summarize by
|
17
|
+
attr_accessor :expression
|
18
|
+
|
19
|
+
# @return [FacetRequestOptions] The options for facet evaluation
|
20
|
+
attr_accessor :options
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for FacetRequest class as Ruby Hash.
|
25
|
+
# This will be used for serialization/deserialization.
|
26
|
+
#
|
27
|
+
def self.mapper()
|
28
|
+
{
|
29
|
+
client_side_validation: true,
|
30
|
+
required: false,
|
31
|
+
serialized_name: 'FacetRequest',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'FacetRequest',
|
35
|
+
model_properties: {
|
36
|
+
expression: {
|
37
|
+
client_side_validation: true,
|
38
|
+
required: true,
|
39
|
+
serialized_name: 'expression',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
options: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'options',
|
48
|
+
type: {
|
49
|
+
name: 'Composite',
|
50
|
+
class_name: 'FacetRequestOptions'
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,91 @@
|
|
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::ResourceGraph::Mgmt::V2019_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The options for facet evaluation
|
10
|
+
#
|
11
|
+
class FacetRequestOptions
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The column name or query expression to sort on.
|
16
|
+
# Defaults to count if not present.
|
17
|
+
attr_accessor :sort_by
|
18
|
+
|
19
|
+
# @return [FacetSortOrder] The sorting order by the selected column
|
20
|
+
# (count by default). Possible values include: 'asc', 'desc'. Default
|
21
|
+
# value: 'desc' .
|
22
|
+
attr_accessor :sort_order
|
23
|
+
|
24
|
+
# @return [String] Specifies the filter condition for the 'where' clause
|
25
|
+
# which will be run on main query's result, just before the actual
|
26
|
+
# faceting.
|
27
|
+
attr_accessor :filter
|
28
|
+
|
29
|
+
# @return [Integer] The maximum number of facet rows that should be
|
30
|
+
# returned.
|
31
|
+
attr_accessor :top
|
32
|
+
|
33
|
+
|
34
|
+
#
|
35
|
+
# Mapper for FacetRequestOptions class as Ruby Hash.
|
36
|
+
# This will be used for serialization/deserialization.
|
37
|
+
#
|
38
|
+
def self.mapper()
|
39
|
+
{
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'FacetRequestOptions',
|
43
|
+
type: {
|
44
|
+
name: 'Composite',
|
45
|
+
class_name: 'FacetRequestOptions',
|
46
|
+
model_properties: {
|
47
|
+
sort_by: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
serialized_name: 'sortBy',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
sort_order: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: false,
|
58
|
+
serialized_name: 'sortOrder',
|
59
|
+
default_value: 'desc',
|
60
|
+
type: {
|
61
|
+
name: 'Enum',
|
62
|
+
module: 'FacetSortOrder'
|
63
|
+
}
|
64
|
+
},
|
65
|
+
filter: {
|
66
|
+
client_side_validation: true,
|
67
|
+
required: false,
|
68
|
+
serialized_name: 'filter',
|
69
|
+
type: {
|
70
|
+
name: 'String'
|
71
|
+
}
|
72
|
+
},
|
73
|
+
top: {
|
74
|
+
client_side_validation: true,
|
75
|
+
required: false,
|
76
|
+
serialized_name: '$top',
|
77
|
+
constraints: {
|
78
|
+
InclusiveMaximum: 1000,
|
79
|
+
InclusiveMinimum: 1
|
80
|
+
},
|
81
|
+
type: {
|
82
|
+
name: 'Number'
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
@@ -0,0 +1,94 @@
|
|
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::ResourceGraph::Mgmt::V2019_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Successfully executed facet containing additional statistics on the
|
10
|
+
# response of a query.
|
11
|
+
#
|
12
|
+
class FacetResult < Facet
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
|
17
|
+
def initialize
|
18
|
+
@resultType = "FacetResult"
|
19
|
+
end
|
20
|
+
|
21
|
+
attr_accessor :resultType
|
22
|
+
|
23
|
+
# @return [Integer] Number of total records in the facet results.
|
24
|
+
attr_accessor :total_records
|
25
|
+
|
26
|
+
# @return [Integer] Number of records returned in the facet response.
|
27
|
+
attr_accessor :count
|
28
|
+
|
29
|
+
# @return [Table] A table containing the desired facets. Only present if
|
30
|
+
# the facet is valid.
|
31
|
+
attr_accessor :data
|
32
|
+
|
33
|
+
|
34
|
+
#
|
35
|
+
# Mapper for FacetResult class as Ruby Hash.
|
36
|
+
# This will be used for serialization/deserialization.
|
37
|
+
#
|
38
|
+
def self.mapper()
|
39
|
+
{
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'FacetResult',
|
43
|
+
type: {
|
44
|
+
name: 'Composite',
|
45
|
+
class_name: 'FacetResult',
|
46
|
+
model_properties: {
|
47
|
+
expression: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: true,
|
50
|
+
serialized_name: 'expression',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
resultType: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: true,
|
58
|
+
serialized_name: 'resultType',
|
59
|
+
type: {
|
60
|
+
name: 'String'
|
61
|
+
}
|
62
|
+
},
|
63
|
+
total_records: {
|
64
|
+
client_side_validation: true,
|
65
|
+
required: true,
|
66
|
+
serialized_name: 'totalRecords',
|
67
|
+
type: {
|
68
|
+
name: 'Number'
|
69
|
+
}
|
70
|
+
},
|
71
|
+
count: {
|
72
|
+
client_side_validation: true,
|
73
|
+
required: true,
|
74
|
+
serialized_name: 'count',
|
75
|
+
type: {
|
76
|
+
name: 'Number'
|
77
|
+
}
|
78
|
+
},
|
79
|
+
data: {
|
80
|
+
client_side_validation: true,
|
81
|
+
required: true,
|
82
|
+
serialized_name: 'data',
|
83
|
+
type: {
|
84
|
+
name: 'Composite',
|
85
|
+
class_name: 'Table'
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
@@ -0,0 +1,16 @@
|
|
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::ResourceGraph::Mgmt::V2019_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for FacetSortOrder
|
10
|
+
#
|
11
|
+
module FacetSortOrder
|
12
|
+
Asc = "asc"
|
13
|
+
Desc = "desc"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
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::ResourceGraph::Mgmt::V2019_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Resource Graph REST API operation definition.
|
10
|
+
#
|
11
|
+
class Operation
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Operation name: {provider}/{resource}/{operation}
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [OperationDisplay] Display metadata associated with the
|
19
|
+
# operation.
|
20
|
+
attr_accessor :display
|
21
|
+
|
22
|
+
# @return [String] The origin of operations.
|
23
|
+
attr_accessor :origin
|
24
|
+
|
25
|
+
|
26
|
+
#
|
27
|
+
# Mapper for Operation 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: 'Operation',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'Operation',
|
38
|
+
model_properties: {
|
39
|
+
name: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'name',
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
display: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
serialized_name: 'display',
|
51
|
+
type: {
|
52
|
+
name: 'Composite',
|
53
|
+
class_name: 'OperationDisplay'
|
54
|
+
}
|
55
|
+
},
|
56
|
+
origin: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: false,
|
59
|
+
serialized_name: 'origin',
|
60
|
+
type: {
|
61
|
+
name: 'String'
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,79 @@
|
|
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::ResourceGraph::Mgmt::V2019_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Display metadata associated with the operation.
|
10
|
+
#
|
11
|
+
class OperationDisplay
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Service provider: Microsoft Resource Graph.
|
16
|
+
attr_accessor :provider
|
17
|
+
|
18
|
+
# @return [String] Resource on which the operation is performed etc.
|
19
|
+
attr_accessor :resource
|
20
|
+
|
21
|
+
# @return [String] Type of operation: get, read, delete, etc.
|
22
|
+
attr_accessor :operation
|
23
|
+
|
24
|
+
# @return [String] Description for the operation.
|
25
|
+
attr_accessor :description
|
26
|
+
|
27
|
+
|
28
|
+
#
|
29
|
+
# Mapper for OperationDisplay class as Ruby Hash.
|
30
|
+
# This will be used for serialization/deserialization.
|
31
|
+
#
|
32
|
+
def self.mapper()
|
33
|
+
{
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'Operation_display',
|
37
|
+
type: {
|
38
|
+
name: 'Composite',
|
39
|
+
class_name: 'OperationDisplay',
|
40
|
+
model_properties: {
|
41
|
+
provider: {
|
42
|
+
client_side_validation: true,
|
43
|
+
required: false,
|
44
|
+
serialized_name: 'provider',
|
45
|
+
type: {
|
46
|
+
name: 'String'
|
47
|
+
}
|
48
|
+
},
|
49
|
+
resource: {
|
50
|
+
client_side_validation: true,
|
51
|
+
required: false,
|
52
|
+
serialized_name: 'resource',
|
53
|
+
type: {
|
54
|
+
name: 'String'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
operation: {
|
58
|
+
client_side_validation: true,
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'operation',
|
61
|
+
type: {
|
62
|
+
name: 'String'
|
63
|
+
}
|
64
|
+
},
|
65
|
+
description: {
|
66
|
+
client_side_validation: true,
|
67
|
+
required: false,
|
68
|
+
serialized_name: 'description',
|
69
|
+
type: {
|
70
|
+
name: 'String'
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
@@ -0,0 +1,57 @@
|
|
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::ResourceGraph::Mgmt::V2019_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Result of the request to list Resource Graph operations. It contains a
|
10
|
+
# list of operations and a URL link to get the next set of results.
|
11
|
+
#
|
12
|
+
class OperationListResult
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [Array<Operation>] List of Resource Graph operations supported
|
17
|
+
# by the Resource Graph resource provider.
|
18
|
+
attr_accessor :value
|
19
|
+
|
20
|
+
|
21
|
+
#
|
22
|
+
# Mapper for OperationListResult class as Ruby Hash.
|
23
|
+
# This will be used for serialization/deserialization.
|
24
|
+
#
|
25
|
+
def self.mapper()
|
26
|
+
{
|
27
|
+
client_side_validation: true,
|
28
|
+
required: false,
|
29
|
+
serialized_name: 'OperationListResult',
|
30
|
+
type: {
|
31
|
+
name: 'Composite',
|
32
|
+
class_name: 'OperationListResult',
|
33
|
+
model_properties: {
|
34
|
+
value: {
|
35
|
+
client_side_validation: true,
|
36
|
+
required: false,
|
37
|
+
serialized_name: 'value',
|
38
|
+
type: {
|
39
|
+
name: 'Sequence',
|
40
|
+
element: {
|
41
|
+
client_side_validation: true,
|
42
|
+
required: false,
|
43
|
+
serialized_name: 'OperationElementType',
|
44
|
+
type: {
|
45
|
+
name: 'Composite',
|
46
|
+
class_name: 'Operation'
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|