azure_mgmt_operational_insights 0.19.1 → 0.19.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-03-20/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb +1 -1
- data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb +1 -1
- data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb +1 -1
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights.rb +123 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/available_service_tiers.rb +146 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/clusters.rb +959 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/data_exports.rb +473 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/data_sources.rb +603 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/deleted_workspaces.rb +211 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/gateways.rb +123 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/intelligence_packs.rb +351 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/linked_services.rb +577 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/linked_storage_accounts.rb +481 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/management_groups.rb +130 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/available_service_tier.rb +124 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/azure_entity_resource.rb +75 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/cluster.rb +159 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/cluster_entity_status.rb +21 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/cluster_error_response.rb +48 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/cluster_list_result.rb +98 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/cluster_patch.rb +78 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/cluster_sku.rb +58 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/cluster_sku_name_enum.rb +15 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/core_summary.rb +57 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/data_export.rb +174 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/data_export_error_response.rb +48 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/data_export_list_result.rb +56 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/data_ingestion_status.rb +20 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/data_source.rb +130 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/data_source_filter.rb +61 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/data_source_kind.rb +47 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/data_source_list_result.rb +98 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/data_source_type.rb +18 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/error_additional_info.rb +59 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/error_contract.rb +49 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/error_response.rb +113 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/identity.rb +72 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/identity_type.rb +16 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/intelligence_pack.rb +69 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/key_vault_properties.rb +71 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/linked_service.rb +120 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/linked_service_entity_status.rb +18 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/linked_service_list_result.rb +55 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/linked_storage_accounts_list_result.rb +56 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/linked_storage_accounts_resource.rb +95 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/management_group.rb +128 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/metric_name.rb +57 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/operation.rb +59 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/operation_display.rb +79 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/operation_list_result.rb +101 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/operation_status.rb +102 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/private_link_scoped_resource.rb +58 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/proxy_resource.rb +63 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/public_network_access_type.rb +16 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/purge_state.rb +16 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/resource.rb +83 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/saved_search.rb +165 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/saved_searches_list_result.rb +55 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/search_get_schema_response.rb +67 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/search_metadata.rb +241 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/search_metadata_schema.rb +57 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/search_schema_value.rb +123 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/search_sort.rb +58 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/search_sort_enum.rb +16 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/shared_keys.rb +57 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/sku_name_enum.rb +21 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/storage_account.rb +58 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/storage_insight.rb +157 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/storage_insight_list_result.rb +98 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/storage_insight_state.rb +16 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/storage_insight_status.rb +58 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/table.rb +79 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/tables_list_result.rb +55 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/tag.rb +57 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/tracked_resource.rb +92 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/type.rb +16 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/usage_metric.rb +103 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace.rb +213 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_capping.rb +72 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_entity_status.rb +21 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_list_management_groups_result.rb +56 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_list_result.rb +55 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_list_usages_result.rb +56 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_patch.rb +206 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_purge_body.rb +67 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_purge_body_filters.rb +85 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_purge_response.rb +47 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_purge_status_response.rb +47 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_sku.rb +85 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_sku_name_enum.rb +21 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/module_definition.rb +9 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/operation_statuses.rb +121 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb +207 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/operations.rb +220 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/saved_searches.rb +457 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/schema.rb +130 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/shared_keys_operations.rb +238 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/storage_insight_configs.rb +592 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/tables.rb +359 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/usages.rb +130 -0
- data/lib/2020-08-01/generated/azure_mgmt_operational_insights/workspace_purge.rb +277 -0
- data/lib/2020-08-01/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 +173 -173
- data/lib/version.rb +1 -1
- metadata +101 -2
@@ -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::V2020_08_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for SearchSortEnum
|
10
|
+
#
|
11
|
+
module SearchSortEnum
|
12
|
+
Asc = "asc"
|
13
|
+
Desc = "desc"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
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::V2020_08_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The shared keys for a workspace.
|
10
|
+
#
|
11
|
+
class SharedKeys
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The primary shared key of a workspace.
|
16
|
+
attr_accessor :primary_shared_key
|
17
|
+
|
18
|
+
# @return [String] The secondary shared key of a workspace.
|
19
|
+
attr_accessor :secondary_shared_key
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for SharedKeys 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: 'SharedKeys',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'SharedKeys',
|
34
|
+
model_properties: {
|
35
|
+
primary_shared_key: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'primarySharedKey',
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
secondary_shared_key: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'secondarySharedKey',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,21 @@
|
|
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::V2020_08_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for SkuNameEnum
|
10
|
+
#
|
11
|
+
module SkuNameEnum
|
12
|
+
Free = "Free"
|
13
|
+
Standard = "Standard"
|
14
|
+
Premium = "Premium"
|
15
|
+
PerNode = "PerNode"
|
16
|
+
PerGB2018 = "PerGB2018"
|
17
|
+
Standalone = "Standalone"
|
18
|
+
CapacityReservation = "CapacityReservation"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -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::V2020_08_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Describes a storage account connection.
|
10
|
+
#
|
11
|
+
class StorageAccount
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The Azure Resource Manager ID of the storage account
|
16
|
+
# resource.
|
17
|
+
attr_accessor :id
|
18
|
+
|
19
|
+
# @return [String] The storage account key.
|
20
|
+
attr_accessor :key
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for StorageAccount 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: 'StorageAccount',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'StorageAccount',
|
35
|
+
model_properties: {
|
36
|
+
id: {
|
37
|
+
client_side_validation: true,
|
38
|
+
required: true,
|
39
|
+
serialized_name: 'id',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
key: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: true,
|
47
|
+
serialized_name: 'key',
|
48
|
+
type: {
|
49
|
+
name: 'String'
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,157 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::OperationalInsights::Mgmt::V2020_08_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The top level storage insight resource container.
|
10
|
+
#
|
11
|
+
class StorageInsight < ProxyResource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<String>] The names of the blob containers that the
|
16
|
+
# workspace should read
|
17
|
+
attr_accessor :containers
|
18
|
+
|
19
|
+
# @return [Array<String>] The names of the Azure tables that the
|
20
|
+
# workspace should read
|
21
|
+
attr_accessor :tables
|
22
|
+
|
23
|
+
# @return [StorageAccount] The storage account connection details
|
24
|
+
attr_accessor :storage_account
|
25
|
+
|
26
|
+
# @return [StorageInsightStatus] The status of the storage insight
|
27
|
+
attr_accessor :status
|
28
|
+
|
29
|
+
# @return [String] The ETag of the storage insight.
|
30
|
+
attr_accessor :e_tag
|
31
|
+
|
32
|
+
# @return [Hash{String => String}] Resource tags.
|
33
|
+
attr_accessor :tags
|
34
|
+
|
35
|
+
|
36
|
+
#
|
37
|
+
# Mapper for StorageInsight class as Ruby Hash.
|
38
|
+
# This will be used for serialization/deserialization.
|
39
|
+
#
|
40
|
+
def self.mapper()
|
41
|
+
{
|
42
|
+
client_side_validation: true,
|
43
|
+
required: false,
|
44
|
+
serialized_name: 'StorageInsight',
|
45
|
+
type: {
|
46
|
+
name: 'Composite',
|
47
|
+
class_name: 'StorageInsight',
|
48
|
+
model_properties: {
|
49
|
+
id: {
|
50
|
+
client_side_validation: true,
|
51
|
+
required: false,
|
52
|
+
read_only: true,
|
53
|
+
serialized_name: 'id',
|
54
|
+
type: {
|
55
|
+
name: 'String'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
name: {
|
59
|
+
client_side_validation: true,
|
60
|
+
required: false,
|
61
|
+
read_only: true,
|
62
|
+
serialized_name: 'name',
|
63
|
+
type: {
|
64
|
+
name: 'String'
|
65
|
+
}
|
66
|
+
},
|
67
|
+
type: {
|
68
|
+
client_side_validation: true,
|
69
|
+
required: false,
|
70
|
+
read_only: true,
|
71
|
+
serialized_name: 'type',
|
72
|
+
type: {
|
73
|
+
name: 'String'
|
74
|
+
}
|
75
|
+
},
|
76
|
+
containers: {
|
77
|
+
client_side_validation: true,
|
78
|
+
required: false,
|
79
|
+
serialized_name: 'properties.containers',
|
80
|
+
type: {
|
81
|
+
name: 'Sequence',
|
82
|
+
element: {
|
83
|
+
client_side_validation: true,
|
84
|
+
required: false,
|
85
|
+
serialized_name: 'StringElementType',
|
86
|
+
type: {
|
87
|
+
name: 'String'
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
},
|
92
|
+
tables: {
|
93
|
+
client_side_validation: true,
|
94
|
+
required: false,
|
95
|
+
serialized_name: 'properties.tables',
|
96
|
+
type: {
|
97
|
+
name: 'Sequence',
|
98
|
+
element: {
|
99
|
+
client_side_validation: true,
|
100
|
+
required: false,
|
101
|
+
serialized_name: 'StringElementType',
|
102
|
+
type: {
|
103
|
+
name: 'String'
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
},
|
108
|
+
storage_account: {
|
109
|
+
client_side_validation: true,
|
110
|
+
required: true,
|
111
|
+
serialized_name: 'properties.storageAccount',
|
112
|
+
type: {
|
113
|
+
name: 'Composite',
|
114
|
+
class_name: 'StorageAccount'
|
115
|
+
}
|
116
|
+
},
|
117
|
+
status: {
|
118
|
+
client_side_validation: true,
|
119
|
+
required: false,
|
120
|
+
read_only: true,
|
121
|
+
serialized_name: 'properties.status',
|
122
|
+
type: {
|
123
|
+
name: 'Composite',
|
124
|
+
class_name: 'StorageInsightStatus'
|
125
|
+
}
|
126
|
+
},
|
127
|
+
e_tag: {
|
128
|
+
client_side_validation: true,
|
129
|
+
required: false,
|
130
|
+
serialized_name: 'eTag',
|
131
|
+
type: {
|
132
|
+
name: 'String'
|
133
|
+
}
|
134
|
+
},
|
135
|
+
tags: {
|
136
|
+
client_side_validation: true,
|
137
|
+
required: false,
|
138
|
+
serialized_name: 'tags',
|
139
|
+
type: {
|
140
|
+
name: 'Dictionary',
|
141
|
+
value: {
|
142
|
+
client_side_validation: true,
|
143
|
+
required: false,
|
144
|
+
serialized_name: 'StringElementType',
|
145
|
+
type: {
|
146
|
+
name: 'String'
|
147
|
+
}
|
148
|
+
}
|
149
|
+
}
|
150
|
+
}
|
151
|
+
}
|
152
|
+
}
|
153
|
+
}
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|
157
|
+
end
|
data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/storage_insight_list_result.rb
ADDED
@@ -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::OperationalInsights::Mgmt::V2020_08_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The list storage insights operation response.
|
10
|
+
#
|
11
|
+
class StorageInsightListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<StorageInsight>] A list of storage insight items.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] The link (url) to the next page of results.
|
20
|
+
attr_accessor :odata_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<StorageInsight>] operation results.
|
29
|
+
#
|
30
|
+
def get_all_items
|
31
|
+
items = @value
|
32
|
+
page = self
|
33
|
+
while page.odatanext_link != nil && !page.odatanext_link.strip.empty? 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 [StorageInsightListResult] with next page content.
|
44
|
+
#
|
45
|
+
def get_next_page
|
46
|
+
response = @next_method.call(@odatanext_link).value! unless @next_method.nil?
|
47
|
+
unless response.nil?
|
48
|
+
@odatanext_link = response.body.odatanext_link
|
49
|
+
@value = response.body.value
|
50
|
+
self
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# Mapper for StorageInsightListResult 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: 'StorageInsightListResult',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'StorageInsightListResult',
|
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: 'StorageInsightElementType',
|
77
|
+
type: {
|
78
|
+
name: 'Composite',
|
79
|
+
class_name: 'StorageInsight'
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
},
|
84
|
+
odata_next_link: {
|
85
|
+
client_side_validation: true,
|
86
|
+
required: false,
|
87
|
+
serialized_name: '@odata\\.nextLink',
|
88
|
+
type: {
|
89
|
+
name: 'String'
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
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::OperationalInsights::Mgmt::V2020_08_01
|
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/2020-08-01/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::V2020_08_01
|
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
|