azure_mgmt_operational_insights 0.19.1
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/2015-03-20/generated/azure_mgmt_operational_insights.rb +60 -0
- 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 +57 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/link_target.rb +79 -0
- 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/proxy_resource.rb +90 -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 +110 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/saved_search.rb +154 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/saved_searches_list_result.rb +68 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/search_get_schema_response.rb +67 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/search_metadata.rb +241 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/search_metadata_schema.rb +57 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/search_schema_value.rb +123 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/search_sort.rb +58 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/search_sort_enum.rb +16 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/shared_keys.rb +57 -0
- 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_account.rb +58 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/storage_insight.rb +154 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/storage_insight_list_result.rb +98 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/storage_insight_state.rb +16 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/storage_insight_status.rb +58 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/tag.rb +57 -0
- 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/module_definition.rb +9 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb +151 -0
- 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 +425 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/storage_insights.rb +559 -0
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/workspaces.rb +857 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights.rb +56 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/data_sources.rb +592 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/linked_services.rb +462 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/data_source.rb +117 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/data_source_filter.rb +51 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/data_source_kind.rb +29 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/data_source_list_result.rb +98 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/entity_status.rb +20 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/error_response.rb +57 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/intelligence_pack.rb +69 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/linked_service.rb +90 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/linked_service_list_result.rb +56 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/management_group.rb +128 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/metric_name.rb +57 -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/proxy_resource.rb +90 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/resource.rb +110 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/shared_keys.rb +57 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/sku.rb +48 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/sku_name_enum.rb +21 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/usage_metric.rb +103 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/workspace.rb +178 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/workspace_list_management_groups_result.rb +56 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/workspace_list_result.rb +55 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/models/workspace_list_usages_result.rb +56 -0
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/module_definition.rb +9 -0
- 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 +1270 -0
- 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 +473 -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 +490 -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 +19 -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/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/tracked_resource.rb +92 -0
- 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/2020-03-01-preview/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb +207 -0
- 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 +8 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/modules/operationalinsights_profile_module.rb +417 -0
- data/lib/profiles/latest/operationalinsights_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/operationalinsights_module_definition.rb +8 -0
- data/lib/version.rb +7 -0
- metadata +292 -0
@@ -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::OperationalInsights::Mgmt::V2015_03_20
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for StorageInsightState
|
10
|
+
#
|
11
|
+
module StorageInsightState
|
12
|
+
OK = "OK"
|
13
|
+
ERROR = "ERROR"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/storage_insight_status.rb
ADDED
@@ -0,0 +1,58 @@
|
|
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_03_20
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The status of the storage insight.
|
10
|
+
#
|
11
|
+
class StorageInsightStatus
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [StorageInsightState] The state of the storage insight
|
16
|
+
# connection to the workspace. Possible values include: 'OK', 'ERROR'
|
17
|
+
attr_accessor :state
|
18
|
+
|
19
|
+
# @return [String] Description of the state of the storage insight.
|
20
|
+
attr_accessor :description
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for StorageInsightStatus 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: 'StorageInsightStatus',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'StorageInsightStatus',
|
35
|
+
model_properties: {
|
36
|
+
state: {
|
37
|
+
client_side_validation: true,
|
38
|
+
required: true,
|
39
|
+
serialized_name: 'state',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
description: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'description',
|
48
|
+
type: {
|
49
|
+
name: 'String'
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
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::OperationalInsights::Mgmt::V2015_03_20
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# A tag of a saved search.
|
10
|
+
#
|
11
|
+
class Tag
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The tag name.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [String] The tag value.
|
19
|
+
attr_accessor :value
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for Tag class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
client_side_validation: true,
|
29
|
+
required: false,
|
30
|
+
serialized_name: 'Tag',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'Tag',
|
34
|
+
model_properties: {
|
35
|
+
name: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: true,
|
38
|
+
serialized_name: 'name',
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
value: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: true,
|
46
|
+
serialized_name: 'value',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,67 @@
|
|
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_03_20
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Describes the body of a purge request for an App Insights Workspace
|
10
|
+
#
|
11
|
+
class WorkspacePurgeBody
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Table from which to purge data.
|
16
|
+
attr_accessor :table
|
17
|
+
|
18
|
+
# @return [Array<WorkspacePurgeBodyFilters>] The set of columns and
|
19
|
+
# filters (queries) to run over them to purge the resulting data.
|
20
|
+
attr_accessor :filters
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for WorkspacePurgeBody 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: 'WorkspacePurgeBody',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'WorkspacePurgeBody',
|
35
|
+
model_properties: {
|
36
|
+
table: {
|
37
|
+
client_side_validation: true,
|
38
|
+
required: true,
|
39
|
+
serialized_name: 'table',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
filters: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: true,
|
47
|
+
serialized_name: 'filters',
|
48
|
+
type: {
|
49
|
+
name: 'Sequence',
|
50
|
+
element: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'WorkspacePurgeBodyFiltersElementType',
|
54
|
+
type: {
|
55
|
+
name: 'Composite',
|
56
|
+
class_name: 'WorkspacePurgeBodyFilters'
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/workspace_purge_body_filters.rb
ADDED
@@ -0,0 +1,85 @@
|
|
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_03_20
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# User-defined filters to return data which will be purged from the table.
|
10
|
+
#
|
11
|
+
class WorkspacePurgeBodyFilters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The column of the table over which the given query
|
16
|
+
# should run
|
17
|
+
attr_accessor :column
|
18
|
+
|
19
|
+
# @return [String] A query operator to evaluate over the provided column
|
20
|
+
# and value(s). Supported operators are ==, =~, in, in~, >, >=, <, <=,
|
21
|
+
# between, and have the same behavior as they would in a KQL query.
|
22
|
+
attr_accessor :operator
|
23
|
+
|
24
|
+
# @return the value for the operator to function over. This can be a
|
25
|
+
# number (e.g., > 100), a string (timestamp >= '2017-09-01') or array of
|
26
|
+
# values.
|
27
|
+
attr_accessor :value
|
28
|
+
|
29
|
+
# @return [String] When filtering over custom dimensions, this key will
|
30
|
+
# be used as the name of the custom dimension.
|
31
|
+
attr_accessor :key
|
32
|
+
|
33
|
+
|
34
|
+
#
|
35
|
+
# Mapper for WorkspacePurgeBodyFilters 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: 'WorkspacePurgeBodyFilters',
|
43
|
+
type: {
|
44
|
+
name: 'Composite',
|
45
|
+
class_name: 'WorkspacePurgeBodyFilters',
|
46
|
+
model_properties: {
|
47
|
+
column: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
serialized_name: 'column',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
operator: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: false,
|
58
|
+
serialized_name: 'operator',
|
59
|
+
type: {
|
60
|
+
name: 'String'
|
61
|
+
}
|
62
|
+
},
|
63
|
+
value: {
|
64
|
+
client_side_validation: true,
|
65
|
+
required: false,
|
66
|
+
serialized_name: 'value',
|
67
|
+
type: {
|
68
|
+
name: 'Object'
|
69
|
+
}
|
70
|
+
},
|
71
|
+
key: {
|
72
|
+
client_side_validation: true,
|
73
|
+
required: false,
|
74
|
+
serialized_name: 'key',
|
75
|
+
type: {
|
76
|
+
name: 'String'
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
data/lib/2015-03-20/generated/azure_mgmt_operational_insights/models/workspace_purge_response.rb
ADDED
@@ -0,0 +1,47 @@
|
|
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_03_20
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Response containing operationId for a specific purge action.
|
10
|
+
#
|
11
|
+
class WorkspacePurgeResponse
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Id to use when querying for status for a particular
|
16
|
+
# purge operation.
|
17
|
+
attr_accessor :operation_id
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for WorkspacePurgeResponse 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: 'WorkspacePurgeResponse',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'WorkspacePurgeResponse',
|
32
|
+
model_properties: {
|
33
|
+
operation_id: {
|
34
|
+
client_side_validation: true,
|
35
|
+
required: true,
|
36
|
+
serialized_name: 'operationId',
|
37
|
+
type: {
|
38
|
+
name: 'String'
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,47 @@
|
|
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_03_20
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Response containing status for a specific purge operation.
|
10
|
+
#
|
11
|
+
class WorkspacePurgeStatusResponse
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [PurgeState] Status of the operation represented by the
|
16
|
+
# requested Id. Possible values include: 'pending', 'completed'
|
17
|
+
attr_accessor :status
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for WorkspacePurgeStatusResponse 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: 'WorkspacePurgeStatusResponse',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'WorkspacePurgeStatusResponse',
|
32
|
+
model_properties: {
|
33
|
+
status: {
|
34
|
+
client_side_validation: true,
|
35
|
+
required: true,
|
36
|
+
serialized_name: 'status',
|
37
|
+
type: {
|
38
|
+
name: 'String'
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,9 @@
|
|
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 end
|
7
|
+
module Azure::OperationalInsights end
|
8
|
+
module Azure::OperationalInsights::Mgmt end
|
9
|
+
module Azure::OperationalInsights::Mgmt::V2015_03_20 end
|
@@ -0,0 +1,151 @@
|
|
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_03_20
|
7
|
+
#
|
8
|
+
# A service client - single point of access to the REST API.
|
9
|
+
#
|
10
|
+
class OperationalInsightsManagementClient < 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] The Subscription ID.
|
21
|
+
attr_accessor :subscription_id
|
22
|
+
|
23
|
+
# @return [String] The client API version.
|
24
|
+
attr_reader :api_version
|
25
|
+
|
26
|
+
# @return [WorkspacePurgeBody] Describes the body of a request to purge
|
27
|
+
# data in a single table of an Log Analytics Workspace
|
28
|
+
attr_accessor :body
|
29
|
+
|
30
|
+
# @return [String] In a purge status request, this is the Id of the
|
31
|
+
# operation the status of which is returned.
|
32
|
+
attr_accessor :purge_id
|
33
|
+
|
34
|
+
# @return [String] The preferred language for the response.
|
35
|
+
attr_accessor :accept_language
|
36
|
+
|
37
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
38
|
+
# Operations. Default value is 30.
|
39
|
+
attr_accessor :long_running_operation_retry_timeout
|
40
|
+
|
41
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
42
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
43
|
+
# generated and included in each request. Default is true.
|
44
|
+
attr_accessor :generate_client_request_id
|
45
|
+
|
46
|
+
# @return [StorageInsights] storage_insights
|
47
|
+
attr_reader :storage_insights
|
48
|
+
|
49
|
+
# @return [Workspaces] workspaces
|
50
|
+
attr_reader :workspaces
|
51
|
+
|
52
|
+
# @return [SavedSearches] saved_searches
|
53
|
+
attr_reader :saved_searches
|
54
|
+
|
55
|
+
# @return [Operations] operations
|
56
|
+
attr_reader :operations
|
57
|
+
|
58
|
+
#
|
59
|
+
# Creates initializes a new instance of the OperationalInsightsManagementClient class.
|
60
|
+
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
61
|
+
# @param base_url [String] the base URI of the service.
|
62
|
+
# @param options [Array] filters to be applied to the HTTP requests.
|
63
|
+
#
|
64
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
65
|
+
super(credentials, options)
|
66
|
+
@base_url = base_url || 'https://management.azure.com'
|
67
|
+
|
68
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
69
|
+
@credentials = credentials
|
70
|
+
|
71
|
+
@storage_insights = StorageInsights.new(self)
|
72
|
+
@workspaces = Workspaces.new(self)
|
73
|
+
@saved_searches = SavedSearches.new(self)
|
74
|
+
@operations = Operations.new(self)
|
75
|
+
@api_version = '2015-03-20'
|
76
|
+
@accept_language = 'en-US'
|
77
|
+
@long_running_operation_retry_timeout = 30
|
78
|
+
@generate_client_request_id = true
|
79
|
+
add_telemetry
|
80
|
+
end
|
81
|
+
|
82
|
+
#
|
83
|
+
# Makes a request and returns the body of the response.
|
84
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
85
|
+
# @param path [String] the path, relative to {base_url}.
|
86
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
87
|
+
# @return [Hash{String=>String}] containing the body of the response.
|
88
|
+
# Example:
|
89
|
+
#
|
90
|
+
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
91
|
+
# path = "/path"
|
92
|
+
# options = {
|
93
|
+
# body: request_content,
|
94
|
+
# query_params: {'api-version' => '2016-02-01'}
|
95
|
+
# }
|
96
|
+
# result = @client.make_request(:put, path, options)
|
97
|
+
#
|
98
|
+
def make_request(method, path, options = {})
|
99
|
+
result = make_request_with_http_info(method, path, options)
|
100
|
+
result.body unless result.nil?
|
101
|
+
end
|
102
|
+
|
103
|
+
#
|
104
|
+
# Makes a request and returns the operation response.
|
105
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
106
|
+
# @param path [String] the path, relative to {base_url}.
|
107
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
108
|
+
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
109
|
+
#
|
110
|
+
def make_request_with_http_info(method, path, options = {})
|
111
|
+
result = make_request_async(method, path, options).value!
|
112
|
+
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
113
|
+
result
|
114
|
+
end
|
115
|
+
|
116
|
+
#
|
117
|
+
# Makes a request asynchronously.
|
118
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
119
|
+
# @param path [String] the path, relative to {base_url}.
|
120
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
121
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
122
|
+
#
|
123
|
+
def make_request_async(method, path, options = {})
|
124
|
+
fail ArgumentError, 'method is nil' if method.nil?
|
125
|
+
fail ArgumentError, 'path is nil' if path.nil?
|
126
|
+
|
127
|
+
request_url = options[:base_url] || @base_url
|
128
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
129
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
130
|
+
end
|
131
|
+
|
132
|
+
request_headers = @request_headers
|
133
|
+
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
134
|
+
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
135
|
+
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
136
|
+
|
137
|
+
super(request_url, method, path, options)
|
138
|
+
end
|
139
|
+
|
140
|
+
|
141
|
+
private
|
142
|
+
#
|
143
|
+
# Adds telemetry information.
|
144
|
+
#
|
145
|
+
def add_telemetry
|
146
|
+
sdk_information = 'azure_mgmt_operational_insights'
|
147
|
+
sdk_information = "#{sdk_information}/0.19.1"
|
148
|
+
add_user_agent_information(sdk_information)
|
149
|
+
end
|
150
|
+
end
|
151
|
+
end
|