azure_mgmt_operational_insights 0.15.2 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights.rb +18 -10
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/available_service_tier.rb +124 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/core_summary.rb +2 -2
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/operation.rb +59 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/operation_display.rb +68 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/operation_list_result.rb +56 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/purge_state.rb +16 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/resource.rb +9 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/saved_search.rb +37 -13
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/saved_searches_list_result.rb +3 -2
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/search_get_schema_response.rb +1 -1
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/search_metadata.rb +8 -8
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/{search_highlight.rb → shared_keys.rb} +13 -13
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/sku_name_enum.rb +21 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/storage_insight_list_result.rb +2 -3
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/tag.rb +2 -2
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/workspace_purge_body.rb +67 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/workspace_purge_body_filters.rb +85 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/workspace_purge_response.rb +47 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/workspace_purge_status_response.rb +47 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb +24 -10
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/operations.rb +109 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/saved_searches.rb +78 -181
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/storage_insights.rb +69 -82
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/workspaces.rb +476 -119
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights.rb +14 -8
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/data_sources.rb +45 -32
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/linked_services.rb +34 -24
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/data_source_list_result.rb +1 -1
- data/lib/{2015-03-20/generated/azure_mgmt_operational_insights/models/search_error.rb → 2015-11-01-preview/generated/azure_mgmt_operational_insights/models/error_response.rb} +11 -11
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/intelligence_pack.rb +11 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/operation.rb +59 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/operation_display.rb +68 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/operation_list_result.rb +101 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/operation_status.rb +102 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/resource.rb +10 -1
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/sku.rb +2 -1
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/sku_name_enum.rb +2 -1
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/workspace.rb +10 -11
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/workspace_list_management_groups_result.rb +1 -1
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb +239 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/operations.rb +219 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/workspaces.rb +202 -63
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights.rb +123 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/available_service_tiers.rb +146 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/clusters.rb +959 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/data_exports.rb +523 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/data_sources.rb +603 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/deleted_workspaces.rb +211 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/gateways.rb +123 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/intelligence_packs.rb +351 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/linked_services.rb +577 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/linked_storage_accounts.rb +481 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/management_groups.rb +130 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/available_service_tier.rb +124 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/azure_entity_resource.rb +75 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster.rb +159 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster_entity_status.rb +21 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster_error_response.rb +48 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster_list_result.rb +98 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster_patch.rb +78 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster_sku.rb +58 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster_sku_name_enum.rb +15 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/core_summary.rb +57 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_export.rb +174 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_export_error_response.rb +48 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_export_list_result.rb +56 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_ingestion_status.rb +20 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_source.rb +130 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_source_filter.rb +61 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_source_kind.rb +47 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_source_list_result.rb +98 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_source_type.rb +16 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/error_additional_info.rb +59 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/error_contract.rb +49 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/error_response.rb +113 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/identity.rb +72 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/identity_type.rb +16 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/intelligence_pack.rb +69 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/key_vault_properties.rb +71 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/linked_service.rb +120 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/linked_service_entity_status.rb +18 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/linked_service_list_result.rb +55 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/linked_storage_accounts_list_result.rb +56 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/linked_storage_accounts_resource.rb +95 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/management_group.rb +128 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/metric_name.rb +57 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/operation.rb +59 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/operation_display.rb +79 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/operation_list_result.rb +101 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/operation_status.rb +102 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/private_link_scoped_resource.rb +58 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/proxy_resource.rb +63 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/public_network_access_type.rb +16 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/purge_state.rb +16 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/resource.rb +83 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/saved_search.rb +165 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/saved_searches_list_result.rb +55 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/search_get_schema_response.rb +67 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/search_metadata.rb +241 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/search_metadata_schema.rb +57 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/search_schema_value.rb +123 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/search_sort.rb +58 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/search_sort_enum.rb +16 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/shared_keys.rb +57 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/sku_name_enum.rb +21 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/storage_account.rb +58 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/storage_insight.rb +157 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/storage_insight_list_result.rb +98 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/storage_insight_state.rb +16 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/storage_insight_status.rb +58 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/table.rb +79 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/tables_list_result.rb +55 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/tag.rb +57 -0
- data/lib/{2015-03-20/generated/azure_mgmt_operational_insights/models/search_results_response.rb → 2020-03-01-preview/generated/azure_mgmt_operational_insights/models/tracked_resource.rb} +33 -31
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/type.rb +16 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/usage_metric.rb +103 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace.rb +214 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_capping.rb +73 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_entity_status.rb +21 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_list_management_groups_result.rb +56 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_list_result.rb +55 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_list_usages_result.rb +56 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_patch.rb +207 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_purge_body.rb +67 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_purge_body_filters.rb +85 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_purge_response.rb +47 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_purge_status_response.rb +47 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_sku.rb +85 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_sku_name_enum.rb +21 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/module_definition.rb +9 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/operation_statuses.rb +121 -0
- data/lib/{2015-11-01-preview/generated/azure_mgmt_operational_insights/azure_log_analytics.rb → 2020-03-01-preview/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb} +89 -19
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/operations.rb +220 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/saved_searches.rb +457 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/schema.rb +130 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/shared_keys_operations.rb +238 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/storage_insight_configs.rb +592 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/tables.rb +359 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/usages.rb +130 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/workspace_purge.rb +277 -0
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/workspaces.rb +768 -0
- data/lib/azure_mgmt_operational_insights.rb +1 -0
- data/lib/profiles/latest/modules/operationalinsights_profile_module.rb +382 -180
- data/lib/profiles/latest/operationalinsights_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/operationalinsights_module_definition.rb +0 -1
- data/lib/version.rb +1 -1
- metadata +123 -10
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/search_parameters.rb +0 -94
@@ -30,7 +30,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
30
30
|
def get_all_items
|
31
31
|
items = @value
|
32
32
|
page = self
|
33
|
-
while page.next_link != nil do
|
33
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
34
34
|
page = page.get_next_page
|
35
35
|
items.concat(page.value)
|
36
36
|
end
|
@@ -3,39 +3,39 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::OperationalInsights::Mgmt::
|
6
|
+
module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
#
|
9
|
+
# Describes the format of Error response.
|
10
10
|
#
|
11
|
-
class
|
11
|
+
class ErrorResponse
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String]
|
16
|
-
attr_accessor :
|
15
|
+
# @return [String] Error code
|
16
|
+
attr_accessor :code
|
17
17
|
|
18
|
-
# @return [String]
|
18
|
+
# @return [String] Error message indicating why the operation failed.
|
19
19
|
attr_accessor :message
|
20
20
|
|
21
21
|
|
22
22
|
#
|
23
|
-
# Mapper for
|
23
|
+
# Mapper for ErrorResponse class as Ruby Hash.
|
24
24
|
# This will be used for serialization/deserialization.
|
25
25
|
#
|
26
26
|
def self.mapper()
|
27
27
|
{
|
28
28
|
client_side_validation: true,
|
29
29
|
required: false,
|
30
|
-
serialized_name: '
|
30
|
+
serialized_name: 'ErrorResponse',
|
31
31
|
type: {
|
32
32
|
name: 'Composite',
|
33
|
-
class_name: '
|
33
|
+
class_name: 'ErrorResponse',
|
34
34
|
model_properties: {
|
35
|
-
|
35
|
+
code: {
|
36
36
|
client_side_validation: true,
|
37
37
|
required: false,
|
38
|
-
serialized_name: '
|
38
|
+
serialized_name: 'code',
|
39
39
|
type: {
|
40
40
|
name: 'String'
|
41
41
|
}
|
data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/intelligence_pack.rb
CHANGED
@@ -19,6 +19,9 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
19
19
|
# @return [Boolean] The enabled boolean for the intelligence pack.
|
20
20
|
attr_accessor :enabled
|
21
21
|
|
22
|
+
# @return [String] The display name of the intelligence pack.
|
23
|
+
attr_accessor :display_name
|
24
|
+
|
22
25
|
|
23
26
|
#
|
24
27
|
# Mapper for IntelligencePack class as Ruby Hash.
|
@@ -48,6 +51,14 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
48
51
|
type: {
|
49
52
|
name: 'Boolean'
|
50
53
|
}
|
54
|
+
},
|
55
|
+
display_name: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: false,
|
58
|
+
serialized_name: 'displayName',
|
59
|
+
type: {
|
60
|
+
name: 'String'
|
61
|
+
}
|
51
62
|
}
|
52
63
|
}
|
53
64
|
}
|
@@ -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::OperationalInsights::Mgmt::V2015_11_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Supported operation of OperationalInsights resource provider.
|
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
|
+
|
23
|
+
#
|
24
|
+
# Mapper for Operation 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: 'Operation',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'Operation',
|
35
|
+
model_properties: {
|
36
|
+
name: {
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'name',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
display: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'display',
|
48
|
+
type: {
|
49
|
+
name: 'Composite',
|
50
|
+
class_name: 'OperationDisplay'
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/operation_display.rb
ADDED
@@ -0,0 +1,68 @@
|
|
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::OperationalInsights::Mgmt::V2015_11_01_preview
|
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 OperationsManagement.
|
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
|
+
|
25
|
+
#
|
26
|
+
# Mapper for OperationDisplay 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: 'Operation_display',
|
34
|
+
type: {
|
35
|
+
name: 'Composite',
|
36
|
+
class_name: 'OperationDisplay',
|
37
|
+
model_properties: {
|
38
|
+
provider: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'provider',
|
42
|
+
type: {
|
43
|
+
name: 'String'
|
44
|
+
}
|
45
|
+
},
|
46
|
+
resource: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: false,
|
49
|
+
serialized_name: 'resource',
|
50
|
+
type: {
|
51
|
+
name: 'String'
|
52
|
+
}
|
53
|
+
},
|
54
|
+
operation: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'operation',
|
58
|
+
type: {
|
59
|
+
name: 'String'
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,101 @@
|
|
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::OperationalInsights::Mgmt::V2015_11_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Result of the request to list solution operations.
|
10
|
+
#
|
11
|
+
class OperationListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<Operation>] List of solution operations supported by the
|
17
|
+
# OperationsManagement resource provider.
|
18
|
+
attr_accessor :value
|
19
|
+
|
20
|
+
# @return [String] URL to get the next set of operation list results if
|
21
|
+
# there are any.
|
22
|
+
attr_accessor :next_link
|
23
|
+
|
24
|
+
# return [Proc] with next page method call.
|
25
|
+
attr_accessor :next_method
|
26
|
+
|
27
|
+
#
|
28
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
29
|
+
#
|
30
|
+
# @return [Array<Operation>] operation results.
|
31
|
+
#
|
32
|
+
def get_all_items
|
33
|
+
items = @value
|
34
|
+
page = self
|
35
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
36
|
+
page = page.get_next_page
|
37
|
+
items.concat(page.value)
|
38
|
+
end
|
39
|
+
items
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# Gets the next page of results.
|
44
|
+
#
|
45
|
+
# @return [OperationListResult] with next page content.
|
46
|
+
#
|
47
|
+
def get_next_page
|
48
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
49
|
+
unless response.nil?
|
50
|
+
@next_link = response.body.next_link
|
51
|
+
@value = response.body.value
|
52
|
+
self
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
#
|
57
|
+
# Mapper for OperationListResult class as Ruby Hash.
|
58
|
+
# This will be used for serialization/deserialization.
|
59
|
+
#
|
60
|
+
def self.mapper()
|
61
|
+
{
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'OperationListResult',
|
65
|
+
type: {
|
66
|
+
name: 'Composite',
|
67
|
+
class_name: 'OperationListResult',
|
68
|
+
model_properties: {
|
69
|
+
value: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'value',
|
73
|
+
type: {
|
74
|
+
name: 'Sequence',
|
75
|
+
element: {
|
76
|
+
client_side_validation: true,
|
77
|
+
required: false,
|
78
|
+
serialized_name: 'OperationElementType',
|
79
|
+
type: {
|
80
|
+
name: 'Composite',
|
81
|
+
class_name: 'Operation'
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
},
|
86
|
+
next_link: {
|
87
|
+
client_side_validation: true,
|
88
|
+
required: false,
|
89
|
+
read_only: true,
|
90
|
+
serialized_name: 'nextLink',
|
91
|
+
type: {
|
92
|
+
name: 'String'
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/operation_status.rb
ADDED
@@ -0,0 +1,102 @@
|
|
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::OperationalInsights::Mgmt::V2015_11_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The status of operation.
|
10
|
+
#
|
11
|
+
class OperationStatus
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The operation Id.
|
16
|
+
attr_accessor :id
|
17
|
+
|
18
|
+
# @return [String] The operation name.
|
19
|
+
attr_accessor :name
|
20
|
+
|
21
|
+
# @return [String] The start time of the operation.
|
22
|
+
attr_accessor :start_time
|
23
|
+
|
24
|
+
# @return [String] The end time of the operation.
|
25
|
+
attr_accessor :end_time
|
26
|
+
|
27
|
+
# @return [String] The status of the operation.
|
28
|
+
attr_accessor :status
|
29
|
+
|
30
|
+
# @return [ErrorResponse] The error detail of the operation if any.
|
31
|
+
attr_accessor :error
|
32
|
+
|
33
|
+
|
34
|
+
#
|
35
|
+
# Mapper for OperationStatus 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: 'OperationStatus',
|
43
|
+
type: {
|
44
|
+
name: 'Composite',
|
45
|
+
class_name: 'OperationStatus',
|
46
|
+
model_properties: {
|
47
|
+
id: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
serialized_name: 'id',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
name: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: false,
|
58
|
+
serialized_name: 'name',
|
59
|
+
type: {
|
60
|
+
name: 'String'
|
61
|
+
}
|
62
|
+
},
|
63
|
+
start_time: {
|
64
|
+
client_side_validation: true,
|
65
|
+
required: false,
|
66
|
+
serialized_name: 'startTime',
|
67
|
+
type: {
|
68
|
+
name: 'String'
|
69
|
+
}
|
70
|
+
},
|
71
|
+
end_time: {
|
72
|
+
client_side_validation: true,
|
73
|
+
required: false,
|
74
|
+
serialized_name: 'endTime',
|
75
|
+
type: {
|
76
|
+
name: 'String'
|
77
|
+
}
|
78
|
+
},
|
79
|
+
status: {
|
80
|
+
client_side_validation: true,
|
81
|
+
required: false,
|
82
|
+
serialized_name: 'status',
|
83
|
+
type: {
|
84
|
+
name: 'String'
|
85
|
+
}
|
86
|
+
},
|
87
|
+
error: {
|
88
|
+
client_side_validation: true,
|
89
|
+
required: false,
|
90
|
+
serialized_name: 'error',
|
91
|
+
type: {
|
92
|
+
name: 'Composite',
|
93
|
+
class_name: 'ErrorResponse'
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
@@ -28,6 +28,15 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
28
28
|
attr_accessor :tags
|
29
29
|
|
30
30
|
|
31
|
+
# @return [String] the name of the resource group of the resource.
|
32
|
+
def resource_group
|
33
|
+
unless self.id.nil?
|
34
|
+
groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
|
35
|
+
groups.captures[0].strip if groups
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
|
31
40
|
#
|
32
41
|
# Mapper for Resource class as Ruby Hash.
|
33
42
|
# This will be used for serialization/deserialization.
|
@@ -70,7 +79,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
70
79
|
},
|
71
80
|
location: {
|
72
81
|
client_side_validation: true,
|
73
|
-
required:
|
82
|
+
required: false,
|
74
83
|
serialized_name: 'location',
|
75
84
|
type: {
|
76
85
|
name: 'String'
|
@@ -13,7 +13,8 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
15
|
# @return [SkuNameEnum] The name of the SKU. Possible values include:
|
16
|
-
# 'Free', 'Standard', 'Premium', '
|
16
|
+
# 'Free', 'Standard', 'Premium', 'PerNode', 'PerGB2018', 'Standalone',
|
17
|
+
# 'CapacityReservation'
|
17
18
|
attr_accessor :name
|
18
19
|
|
19
20
|
|