azure_mgmt_operational_insights 0.19.3 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (18) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-03-20/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb +1 -1
  3. data/lib/2015-11-01-preview/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb +1 -1
  4. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights.rb +34 -31
  5. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/data_collector_logs.rb +352 -0
  6. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/azure_entity_resource.rb +3 -1
  7. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_collector_log.rb +73 -0
  8. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_collector_logs_list_result.rb +56 -0
  9. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_export.rb +1 -12
  10. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/error_response.rb +5 -1
  11. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/proxy_resource.rb +4 -2
  12. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/resource.rb +8 -5
  13. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/tracked_resource.rb +4 -1
  14. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb +5 -1
  15. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/data_export.rb +1 -12
  16. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb +1 -1
  17. data/lib/version.rb +1 -1
  18. metadata +5 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4bc74c882caf36507e4eeec871d76b492daa6dce778dcd3e12fca3be98358115
4
- data.tar.gz: a57933badbc8820d7a04d9216f4054798458f8b745bfe741b10f35f2554d4f34
3
+ metadata.gz: d54ef194f3887d7ea441993b74aa4f0d595904584a7a3b7b01ff8a5a9c4f8e24
4
+ data.tar.gz: e83225a2c098b728871e13463f919d483974f85a287d8ae5c44a2d17c4fdc7bf
5
5
  SHA512:
6
- metadata.gz: 1be6b2c086aeecad1463db217c0c90cb2908c4a8447787b8075600c8bf58816a0ae38729f26ba4d58678579cf66674ae0b92d913625cf4ebcca845e48fc5a66d
7
- data.tar.gz: f738e394062fe000f1fa86c554ff2d339b0d9d84a8022a5ac16f3d7582c76ba599a9f7354bfe549e32d2a2e03b4e174d3fa87d77231546ca9be0b169a92bb785
6
+ metadata.gz: 787ef8519892cd9b50459342842930e78be952700630145bf43987dad4d693f632f8151cf2ccfc0115a491380c291eb3f47cf324b9abab2afb650e6e89f752be
7
+ data.tar.gz: 4f5f153c9088b86320066d0a24bf3c5d6fad98cc40231ab85218c8d60c734035e325b76356db1453b7839089fae2119ae006341880c79f0ab06c14eb0c6e40c6
@@ -144,7 +144,7 @@ module Azure::OperationalInsights::Mgmt::V2015_03_20
144
144
  #
145
145
  def add_telemetry
146
146
  sdk_information = 'azure_mgmt_operational_insights'
147
- sdk_information = "#{sdk_information}/0.19.3"
147
+ sdk_information = "#{sdk_information}/0.20.0"
148
148
  add_user_agent_information(sdk_information)
149
149
  end
150
150
  end
@@ -232,7 +232,7 @@ module Azure::OperationalInsights::Mgmt::V2015_11_01_preview
232
232
  #
233
233
  def add_telemetry
234
234
  sdk_information = 'azure_mgmt_operational_insights'
235
- sdk_information = "#{sdk_information}/0.19.3"
235
+ sdk_information = "#{sdk_information}/0.20.0"
236
236
  add_user_agent_information(sdk_information)
237
237
  end
238
238
  end
@@ -22,6 +22,7 @@ require 'ms_rest_azure'
22
22
  module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
23
23
  autoload :DataExports, '2020-03-01-preview/generated/azure_mgmt_operational_insights/data_exports.rb'
24
24
  autoload :DataSources, '2020-03-01-preview/generated/azure_mgmt_operational_insights/data_sources.rb'
25
+ autoload :DataCollectorLogs, '2020-03-01-preview/generated/azure_mgmt_operational_insights/data_collector_logs.rb'
25
26
  autoload :IntelligencePacks, '2020-03-01-preview/generated/azure_mgmt_operational_insights/intelligence_packs.rb'
26
27
  autoload :LinkedServices, '2020-03-01-preview/generated/azure_mgmt_operational_insights/linked_services.rb'
27
28
  autoload :LinkedStorageAccounts, '2020-03-01-preview/generated/azure_mgmt_operational_insights/linked_storage_accounts.rb'
@@ -43,59 +44,61 @@ module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
43
44
  autoload :OperationalInsightsManagementClient, '2020-03-01-preview/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb'
44
45
 
45
46
  module Models
46
- autoload :WorkspaceSku, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_sku.rb'
47
47
  autoload :WorkspaceCapping, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_capping.rb'
48
- autoload :DataExportListResult, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_export_list_result.rb'
49
48
  autoload :PrivateLinkScopedResource, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/private_link_scoped_resource.rb'
49
+ autoload :DataExportListResult, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_export_list_result.rb'
50
+ autoload :WorkspaceSku, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_sku.rb'
50
51
  autoload :ErrorResponse, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/error_response.rb'
51
- autoload :SearchSort, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/search_sort.rb'
52
- autoload :WorkspacePurgeBody, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_purge_body.rb'
53
- autoload :ErrorAdditionalInfo, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/error_additional_info.rb'
54
- autoload :WorkspacePurgeBodyFilters, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_purge_body_filters.rb'
52
+ autoload :MetricName, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/metric_name.rb'
53
+ autoload :UsageMetric, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/usage_metric.rb'
54
+ autoload :SearchGetSchemaResponse, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/search_get_schema_response.rb'
55
+ autoload :WorkspaceListUsagesResult, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_list_usages_result.rb'
56
+ autoload :AvailableServiceTier, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/available_service_tier.rb'
57
+ autoload :SearchSchemaValue, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/search_schema_value.rb'
55
58
  autoload :DataExportErrorResponse, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_export_error_response.rb'
56
- autoload :DataSourceFilter, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_source_filter.rb'
57
- autoload :SearchMetadataSchema, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/search_metadata_schema.rb'
59
+ autoload :DataSourceListResult, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_source_list_result.rb'
60
+ autoload :CoreSummary, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/core_summary.rb'
61
+ autoload :DataCollectorLogsListResult, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_collector_logs_list_result.rb'
62
+ autoload :ErrorAdditionalInfo, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/error_additional_info.rb'
58
63
  autoload :IntelligencePack, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/intelligence_pack.rb'
59
- autoload :ErrorContract, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/error_contract.rb'
60
64
  autoload :LinkedServiceListResult, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/linked_service_list_result.rb'
61
- autoload :WorkspaceListResult, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_list_result.rb'
65
+ autoload :TablesListResult, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/tables_list_result.rb'
62
66
  autoload :LinkedStorageAccountsListResult, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/linked_storage_accounts_list_result.rb'
63
- autoload :KeyVaultProperties, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/key_vault_properties.rb'
67
+ autoload :WorkspaceListResult, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_list_result.rb'
64
68
  autoload :WorkspaceListManagementGroupsResult, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_list_management_groups_result.rb'
65
- autoload :ClusterErrorResponse, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster_error_response.rb'
69
+ autoload :KeyVaultProperties, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/key_vault_properties.rb'
66
70
  autoload :Operation, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/operation.rb'
67
- autoload :ClusterSku, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster_sku.rb'
71
+ autoload :ClusterErrorResponse, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster_error_response.rb'
68
72
  autoload :OperationStatus, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/operation_status.rb'
73
+ autoload :ClusterSku, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster_sku.rb'
74
+ autoload :WorkspacePurgeBodyFilters, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_purge_body_filters.rb'
69
75
  autoload :ClusterPatch, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster_patch.rb'
70
- autoload :MetricName, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/metric_name.rb'
76
+ autoload :DataSourceFilter, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_source_filter.rb'
71
77
  autoload :Identity, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/identity.rb'
72
- autoload :WorkspaceListUsagesResult, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_list_usages_result.rb'
73
- autoload :TablesListResult, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/tables_list_result.rb'
74
- autoload :SearchGetSchemaResponse, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/search_get_schema_response.rb'
78
+ autoload :ErrorContract, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/error_contract.rb'
79
+ autoload :WorkspacePurgeStatusResponse, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_purge_status_response.rb'
80
+ autoload :SearchSort, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/search_sort.rb'
75
81
  autoload :ClusterListResult, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster_list_result.rb'
76
- autoload :SearchSchemaValue, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/search_schema_value.rb'
82
+ autoload :OperationDisplay, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/operation_display.rb'
77
83
  autoload :StorageAccount, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/storage_account.rb'
78
- autoload :ManagementGroup, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/management_group.rb'
84
+ autoload :SharedKeys, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/shared_keys.rb'
79
85
  autoload :StorageInsightStatus, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/storage_insight_status.rb'
80
- autoload :OperationListResult, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/operation_list_result.rb'
81
- autoload :WorkspacePurgeStatusResponse, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_purge_status_response.rb'
82
- autoload :UsageMetric, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/usage_metric.rb'
83
- autoload :StorageInsightListResult, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/storage_insight_list_result.rb'
84
- autoload :DataSourceListResult, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_source_list_result.rb'
85
- autoload :Tag, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/tag.rb'
86
- autoload :OperationDisplay, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/operation_display.rb'
86
+ autoload :SearchMetadata, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/search_metadata.rb'
87
87
  autoload :WorkspacePurgeResponse, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_purge_response.rb'
88
+ autoload :ManagementGroup, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/management_group.rb'
89
+ autoload :StorageInsightListResult, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/storage_insight_list_result.rb'
88
90
  autoload :Resource, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/resource.rb'
91
+ autoload :Tag, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/tag.rb'
92
+ autoload :OperationListResult, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/operation_list_result.rb'
93
+ autoload :WorkspacePurgeBody, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace_purge_body.rb'
94
+ autoload :SearchMetadataSchema, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/search_metadata_schema.rb'
89
95
  autoload :SavedSearchesListResult, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/saved_searches_list_result.rb'
90
- autoload :SharedKeys, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/shared_keys.rb'
91
- autoload :AvailableServiceTier, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/available_service_tier.rb'
92
- autoload :SearchMetadata, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/search_metadata.rb'
93
- autoload :CoreSummary, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/core_summary.rb'
96
+ autoload :ProxyResource, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/proxy_resource.rb'
94
97
  autoload :DataExport, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_export.rb'
95
98
  autoload :TrackedResource, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/tracked_resource.rb'
96
99
  autoload :AzureEntityResource, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/azure_entity_resource.rb'
97
- autoload :ProxyResource, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/proxy_resource.rb'
98
100
  autoload :DataSource, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_source.rb'
101
+ autoload :DataCollectorLog, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_collector_log.rb'
99
102
  autoload :LinkedService, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/linked_service.rb'
100
103
  autoload :LinkedStorageAccountsResource, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/linked_storage_accounts_resource.rb'
101
104
  autoload :Workspace, '2020-03-01-preview/generated/azure_mgmt_operational_insights/models/workspace.rb'
@@ -0,0 +1,352 @@
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_03_01_preview
7
+ #
8
+ # Operational Insights Client
9
+ #
10
+ class DataCollectorLogs
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the DataCollectorLogs class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [OperationalInsightsManagementClient] reference to the OperationalInsightsManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Deletes a specify data collector log table.
26
+ #
27
+ # @param resource_group_name [String] The name of the resource group. The name
28
+ # is case insensitive.
29
+ # @param workspace_name [String] The name of the workspace.
30
+ # @param table_name [String] DataCollector table name.
31
+ # @param force [Boolean] When true, enables bypassing retention validation.
32
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
33
+ # will be added to the HTTP request.
34
+ #
35
+ #
36
+ def delete(resource_group_name, workspace_name, table_name, force:nil, custom_headers:nil)
37
+ response = delete_async(resource_group_name, workspace_name, table_name, force:force, custom_headers:custom_headers).value!
38
+ nil
39
+ end
40
+
41
+ #
42
+ # Deletes a specify data collector log table.
43
+ #
44
+ # @param resource_group_name [String] The name of the resource group. The name
45
+ # is case insensitive.
46
+ # @param workspace_name [String] The name of the workspace.
47
+ # @param table_name [String] DataCollector table name.
48
+ # @param force [Boolean] When true, enables bypassing retention validation.
49
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
50
+ # will be added to the HTTP request.
51
+ #
52
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
53
+ #
54
+ def delete_with_http_info(resource_group_name, workspace_name, table_name, force:nil, custom_headers:nil)
55
+ delete_async(resource_group_name, workspace_name, table_name, force:force, custom_headers:custom_headers).value!
56
+ end
57
+
58
+ #
59
+ # Deletes a specify data collector log table.
60
+ #
61
+ # @param resource_group_name [String] The name of the resource group. The name
62
+ # is case insensitive.
63
+ # @param workspace_name [String] The name of the workspace.
64
+ # @param table_name [String] DataCollector table name.
65
+ # @param force [Boolean] When true, enables bypassing retention validation.
66
+ # @param [Hash{String => String}] A hash of custom headers that will be added
67
+ # to the HTTP request.
68
+ #
69
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
70
+ #
71
+ def delete_async(resource_group_name, workspace_name, table_name, force:nil, custom_headers:nil)
72
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
73
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
74
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
75
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
76
+ fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
77
+ fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MaxLength': '63'" if !workspace_name.nil? && workspace_name.length > 63
78
+ fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MinLength': '4'" if !workspace_name.nil? && workspace_name.length < 4
79
+ fail ArgumentError, "'workspace_name' should satisfy the constraint - 'Pattern': '^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$'" if !workspace_name.nil? && workspace_name.match(Regexp.new('^^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$$')).nil?
80
+ fail ArgumentError, 'table_name is nil' if table_name.nil?
81
+ fail ArgumentError, "'table_name' should satisfy the constraint - 'MaxLength': '63'" if !table_name.nil? && table_name.length > 63
82
+ fail ArgumentError, "'table_name' should satisfy the constraint - 'MinLength': '4'" if !table_name.nil? && table_name.length < 4
83
+ fail ArgumentError, "'table_name' should satisfy the constraint - 'Pattern': '^[A-Za-z0-9]+[A-Za-z0-9]_CL$'" if !table_name.nil? && table_name.match(Regexp.new('^^[A-Za-z0-9]+[A-Za-z0-9]_CL$$')).nil?
84
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
85
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
86
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
87
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
88
+
89
+
90
+ request_headers = {}
91
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
92
+
93
+ # Set Headers
94
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
95
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
96
+ path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataCollectorLogs/{tableName}'
97
+
98
+ request_url = @base_url || @client.base_url
99
+
100
+ options = {
101
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
102
+ path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'tableName' => table_name,'subscriptionId' => @client.subscription_id},
103
+ query_params: {'api-version' => @client.api_version,'force' => force},
104
+ headers: request_headers.merge(custom_headers || {}),
105
+ base_url: request_url
106
+ }
107
+ promise = @client.make_request_async(:delete, path_template, options)
108
+
109
+ promise = promise.then do |result|
110
+ http_response = result.response
111
+ status_code = http_response.status
112
+ response_content = http_response.body
113
+ unless status_code == 200
114
+ error_model = JSON.load(response_content)
115
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
116
+ end
117
+
118
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
119
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
120
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
121
+
122
+ result
123
+ end
124
+
125
+ promise.execute
126
+ end
127
+
128
+ #
129
+ # Retrieves a specify data collector log table.
130
+ #
131
+ # @param resource_group_name [String] The name of the resource group. The name
132
+ # is case insensitive.
133
+ # @param workspace_name [String] The name of the workspace.
134
+ # @param table_name [String] DataCollector table name.
135
+ # @param force [Boolean] When true, enables bypassing retention validation.
136
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
137
+ # will be added to the HTTP request.
138
+ #
139
+ # @return [DataCollectorLog] operation results.
140
+ #
141
+ def get(resource_group_name, workspace_name, table_name, force:nil, custom_headers:nil)
142
+ response = get_async(resource_group_name, workspace_name, table_name, force:force, custom_headers:custom_headers).value!
143
+ response.body unless response.nil?
144
+ end
145
+
146
+ #
147
+ # Retrieves a specify data collector log table.
148
+ #
149
+ # @param resource_group_name [String] The name of the resource group. The name
150
+ # is case insensitive.
151
+ # @param workspace_name [String] The name of the workspace.
152
+ # @param table_name [String] DataCollector table name.
153
+ # @param force [Boolean] When true, enables bypassing retention validation.
154
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
155
+ # will be added to the HTTP request.
156
+ #
157
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
158
+ #
159
+ def get_with_http_info(resource_group_name, workspace_name, table_name, force:nil, custom_headers:nil)
160
+ get_async(resource_group_name, workspace_name, table_name, force:force, custom_headers:custom_headers).value!
161
+ end
162
+
163
+ #
164
+ # Retrieves a specify data collector log table.
165
+ #
166
+ # @param resource_group_name [String] The name of the resource group. The name
167
+ # is case insensitive.
168
+ # @param workspace_name [String] The name of the workspace.
169
+ # @param table_name [String] DataCollector table name.
170
+ # @param force [Boolean] When true, enables bypassing retention validation.
171
+ # @param [Hash{String => String}] A hash of custom headers that will be added
172
+ # to the HTTP request.
173
+ #
174
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
175
+ #
176
+ def get_async(resource_group_name, workspace_name, table_name, force:nil, custom_headers:nil)
177
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
178
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
179
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
180
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
181
+ fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
182
+ fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MaxLength': '63'" if !workspace_name.nil? && workspace_name.length > 63
183
+ fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MinLength': '4'" if !workspace_name.nil? && workspace_name.length < 4
184
+ fail ArgumentError, "'workspace_name' should satisfy the constraint - 'Pattern': '^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$'" if !workspace_name.nil? && workspace_name.match(Regexp.new('^^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$$')).nil?
185
+ fail ArgumentError, 'table_name is nil' if table_name.nil?
186
+ fail ArgumentError, "'table_name' should satisfy the constraint - 'MaxLength': '63'" if !table_name.nil? && table_name.length > 63
187
+ fail ArgumentError, "'table_name' should satisfy the constraint - 'MinLength': '4'" if !table_name.nil? && table_name.length < 4
188
+ fail ArgumentError, "'table_name' should satisfy the constraint - 'Pattern': '^[A-Za-z0-9]+[A-Za-z0-9]_CL$'" if !table_name.nil? && table_name.match(Regexp.new('^^[A-Za-z0-9]+[A-Za-z0-9]_CL$$')).nil?
189
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
190
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
191
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
192
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
193
+
194
+
195
+ request_headers = {}
196
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
197
+
198
+ # Set Headers
199
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
200
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
201
+ path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataCollectorLogs/{tableName}'
202
+
203
+ request_url = @base_url || @client.base_url
204
+
205
+ options = {
206
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
207
+ path_params: {'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name,'tableName' => table_name,'subscriptionId' => @client.subscription_id},
208
+ query_params: {'api-version' => @client.api_version,'force' => force},
209
+ headers: request_headers.merge(custom_headers || {}),
210
+ base_url: request_url
211
+ }
212
+ promise = @client.make_request_async(:get, path_template, options)
213
+
214
+ promise = promise.then do |result|
215
+ http_response = result.response
216
+ status_code = http_response.status
217
+ response_content = http_response.body
218
+ unless status_code == 200
219
+ error_model = JSON.load(response_content)
220
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
221
+ end
222
+
223
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
224
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
225
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
226
+ # Deserialize Response
227
+ if status_code == 200
228
+ begin
229
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
230
+ result_mapper = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::DataCollectorLog.mapper()
231
+ result.body = @client.deserialize(result_mapper, parsed_response)
232
+ rescue Exception => e
233
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
234
+ end
235
+ end
236
+
237
+ result
238
+ end
239
+
240
+ promise.execute
241
+ end
242
+
243
+ #
244
+ # Listing all data collector log tables, being created via data collector
245
+ # endpoint and scoped to the specified workspace
246
+ #
247
+ # @param resource_group_name [String] The name of the resource group. The name
248
+ # is case insensitive.
249
+ # @param workspace_name [String] The name of the workspace.
250
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
251
+ # will be added to the HTTP request.
252
+ #
253
+ # @return [DataCollectorLogsListResult] operation results.
254
+ #
255
+ def list_by_workspace(resource_group_name, workspace_name, custom_headers:nil)
256
+ response = list_by_workspace_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
257
+ response.body unless response.nil?
258
+ end
259
+
260
+ #
261
+ # Listing all data collector log tables, being created via data collector
262
+ # endpoint and scoped to the specified workspace
263
+ #
264
+ # @param resource_group_name [String] The name of the resource group. The name
265
+ # is case insensitive.
266
+ # @param workspace_name [String] The name of the workspace.
267
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
268
+ # will be added to the HTTP request.
269
+ #
270
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
271
+ #
272
+ def list_by_workspace_with_http_info(resource_group_name, workspace_name, custom_headers:nil)
273
+ list_by_workspace_async(resource_group_name, workspace_name, custom_headers:custom_headers).value!
274
+ end
275
+
276
+ #
277
+ # Listing all data collector log tables, being created via data collector
278
+ # endpoint and scoped to the specified workspace
279
+ #
280
+ # @param resource_group_name [String] The name of the resource group. The name
281
+ # is case insensitive.
282
+ # @param workspace_name [String] The name of the workspace.
283
+ # @param [Hash{String => String}] A hash of custom headers that will be added
284
+ # to the HTTP request.
285
+ #
286
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
287
+ #
288
+ def list_by_workspace_async(resource_group_name, workspace_name, custom_headers:nil)
289
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
290
+ fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
291
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
292
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
293
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
294
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
295
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
296
+ fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
297
+ fail ArgumentError, 'workspace_name is nil' if workspace_name.nil?
298
+ fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MaxLength': '63'" if !workspace_name.nil? && workspace_name.length > 63
299
+ fail ArgumentError, "'workspace_name' should satisfy the constraint - 'MinLength': '4'" if !workspace_name.nil? && workspace_name.length < 4
300
+ fail ArgumentError, "'workspace_name' should satisfy the constraint - 'Pattern': '^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$'" if !workspace_name.nil? && workspace_name.match(Regexp.new('^^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$$')).nil?
301
+
302
+
303
+ request_headers = {}
304
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
305
+
306
+ # Set Headers
307
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
308
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
309
+ path_template = 'subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/dataCollectorLogs'
310
+
311
+ request_url = @base_url || @client.base_url
312
+
313
+ options = {
314
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
315
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'workspaceName' => workspace_name},
316
+ query_params: {'api-version' => @client.api_version},
317
+ headers: request_headers.merge(custom_headers || {}),
318
+ base_url: request_url
319
+ }
320
+ promise = @client.make_request_async(:get, path_template, options)
321
+
322
+ promise = promise.then do |result|
323
+ http_response = result.response
324
+ status_code = http_response.status
325
+ response_content = http_response.body
326
+ unless status_code == 200
327
+ error_model = JSON.load(response_content)
328
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
329
+ end
330
+
331
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
332
+ result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
333
+ result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
334
+ # Deserialize Response
335
+ if status_code == 200
336
+ begin
337
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
338
+ result_mapper = Azure::OperationalInsights::Mgmt::V2020_03_01_preview::Models::DataCollectorLogsListResult.mapper()
339
+ result.body = @client.deserialize(result_mapper, parsed_response)
340
+ rescue Exception => e
341
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
342
+ end
343
+ end
344
+
345
+ result
346
+ end
347
+
348
+ promise.execute
349
+ end
350
+
351
+ end
352
+ end
@@ -6,7 +6,9 @@
6
6
  module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
7
7
  module Models
8
8
  #
9
- # The resource model definition for a Azure Resource Manager resource with
9
+ # Entity Resource
10
+
11
+ # The resource model definition for an Azure Resource Manager resource with
10
12
  # an etag.
11
13
  #
12
14
  class AzureEntityResource < Resource
@@ -0,0 +1,73 @@
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_03_01_preview
7
+ module Models
8
+ #
9
+ # Data collector log top level resource container.
10
+ #
11
+ class DataCollectorLog < ProxyResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Table's name.
16
+ attr_accessor :data_collector_log_name
17
+
18
+
19
+ #
20
+ # Mapper for DataCollectorLog class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'DataCollectorLog',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'DataCollectorLog',
31
+ model_properties: {
32
+ id: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ read_only: true,
36
+ serialized_name: 'id',
37
+ type: {
38
+ name: 'String'
39
+ }
40
+ },
41
+ name: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ read_only: true,
45
+ serialized_name: 'name',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ type: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ read_only: true,
54
+ serialized_name: 'type',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ data_collector_log_name: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'properties.name',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,56 @@
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_03_01_preview
7
+ module Models
8
+ #
9
+ # Data collector log tables collection, all tables are scoped to the
10
+ # specified workspace.
11
+ #
12
+ class DataCollectorLogsListResult
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Array<DataCollectorLog>] data collector log collection.
17
+ attr_accessor :value
18
+
19
+
20
+ #
21
+ # Mapper for DataCollectorLogsListResult 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: 'DataCollectorLogsListResult',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'DataCollectorLogsListResult',
32
+ model_properties: {
33
+ value: {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'value',
37
+ type: {
38
+ name: 'Sequence',
39
+ element: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'DataCollectorLogElementType',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'DataCollectorLog'
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ end
54
+ end
55
+ end
56
+ end
@@ -15,9 +15,6 @@ module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
15
15
  # @return [String] The data export rule ID.
16
16
  attr_accessor :data_export_id
17
17
 
18
- # @return [Boolean] When ‘true’, all workspace's tables are exported.
19
- attr_accessor :all_tables
20
-
21
18
  # @return [Array<String>] An array of tables to export, for example:
22
19
  # [“Heartbeat, SecurityEvent”].
23
20
  attr_accessor :table_names
@@ -92,17 +89,9 @@ module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
92
89
  name: 'String'
93
90
  }
94
91
  },
95
- all_tables: {
96
- client_side_validation: true,
97
- required: false,
98
- serialized_name: 'properties.allTables',
99
- type: {
100
- name: 'Boolean'
101
- }
102
- },
103
92
  table_names: {
104
93
  client_side_validation: true,
105
- required: false,
94
+ required: true,
106
95
  serialized_name: 'properties.tableNames',
107
96
  type: {
108
97
  name: 'Sequence',
@@ -6,7 +6,11 @@
6
6
  module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
7
7
  module Models
8
8
  #
9
- # The resource management error response.
9
+ # Error Response
10
+
11
+ # Common error response for all Azure Resource Manager APIs to return error
12
+ # details for failed operations. (This also follows the OData error
13
+ # response format.)
10
14
  #
11
15
  class ErrorResponse
12
16
 
@@ -6,8 +6,10 @@
6
6
  module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
7
7
  module Models
8
8
  #
9
- # The resource model definition for a ARM proxy resource. It will have
10
- # everything other than required location and tags
9
+ # Proxy Resource
10
+
11
+ # The resource model definition for a Azure Resource Manager proxy
12
+ # resource. It will not have tags and a location
11
13
  #
12
14
  class ProxyResource < Resource
13
15
 
@@ -6,22 +6,25 @@
6
6
  module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
7
7
  module Models
8
8
  #
9
- # Model object.
10
- #
9
+ # Resource
10
+
11
+ # Common fields that are returned in the response for all Azure Resource
12
+ # Manager resources
11
13
  #
12
14
  class Resource
13
15
 
14
16
  include MsRestAzure
15
17
 
16
- # @return [String] Fully qualified resource Id for the resource. Ex -
18
+ # @return [String] Fully qualified resource ID for the resource. Ex -
17
19
  # /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
18
20
  attr_accessor :id
19
21
 
20
22
  # @return [String] The name of the resource
21
23
  attr_accessor :name
22
24
 
23
- # @return [String] The type of the resource. Ex-
24
- # Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
25
+ # @return [String] The type of the resource. E.g.
26
+ # "Microsoft.Compute/virtualMachines" or
27
+ # "Microsoft.Storage/storageAccounts"
25
28
  attr_accessor :type
26
29
 
27
30
 
@@ -6,7 +6,10 @@
6
6
  module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
7
7
  module Models
8
8
  #
9
- # The resource model definition for a ARM tracked top level resource
9
+ # Tracked Resource
10
+
11
+ # The resource model definition for an Azure Resource Manager tracked top
12
+ # level resource which has 'tags' and a 'location'
10
13
  #
11
14
  class TrackedResource < Resource
12
15
 
@@ -41,6 +41,9 @@ module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
41
41
  # @return [DataSources] data_sources
42
42
  attr_reader :data_sources
43
43
 
44
+ # @return [DataCollectorLogs] data_collector_logs
45
+ attr_reader :data_collector_logs
46
+
44
47
  # @return [IntelligencePacks] intelligence_packs
45
48
  attr_reader :intelligence_packs
46
49
 
@@ -110,6 +113,7 @@ module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
110
113
 
111
114
  @data_exports = DataExports.new(self)
112
115
  @data_sources = DataSources.new(self)
116
+ @data_collector_logs = DataCollectorLogs.new(self)
113
117
  @intelligence_packs = IntelligencePacks.new(self)
114
118
  @linked_services = LinkedServices.new(self)
115
119
  @linked_storage_accounts = LinkedStorageAccounts.new(self)
@@ -200,7 +204,7 @@ module Azure::OperationalInsights::Mgmt::V2020_03_01_preview
200
204
  #
201
205
  def add_telemetry
202
206
  sdk_information = 'azure_mgmt_operational_insights'
203
- sdk_information = "#{sdk_information}/0.19.3"
207
+ sdk_information = "#{sdk_information}/0.20.0"
204
208
  add_user_agent_information(sdk_information)
205
209
  end
206
210
  end
@@ -15,9 +15,6 @@ module Azure::OperationalInsights::Mgmt::V2020_08_01
15
15
  # @return [String] The data export rule ID.
16
16
  attr_accessor :data_export_id
17
17
 
18
- # @return [Boolean] When ‘true’, all workspace's tables are exported.
19
- attr_accessor :all_tables
20
-
21
18
  # @return [Array<String>] An array of tables to export, for example:
22
19
  # [“Heartbeat, SecurityEvent”].
23
20
  attr_accessor :table_names
@@ -92,17 +89,9 @@ module Azure::OperationalInsights::Mgmt::V2020_08_01
92
89
  name: 'String'
93
90
  }
94
91
  },
95
- all_tables: {
96
- client_side_validation: true,
97
- required: false,
98
- serialized_name: 'properties.allTables',
99
- type: {
100
- name: 'Boolean'
101
- }
102
- },
103
92
  table_names: {
104
93
  client_side_validation: true,
105
- required: false,
94
+ required: true,
106
95
  serialized_name: 'properties.tableNames',
107
96
  type: {
108
97
  name: 'Sequence',
@@ -200,7 +200,7 @@ module Azure::OperationalInsights::Mgmt::V2020_08_01
200
200
  #
201
201
  def add_telemetry
202
202
  sdk_information = 'azure_mgmt_operational_insights'
203
- sdk_information = "#{sdk_information}/0.19.3"
203
+ sdk_information = "#{sdk_information}/0.20.0"
204
204
  add_user_agent_information(sdk_information)
205
205
  end
206
206
  end
data/lib/version.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module Azure::OperationalInsights::Mgmt
6
- VERSION = '0.19.3'
6
+ VERSION = '0.20.0'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_operational_insights
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.3
4
+ version: 0.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-02 00:00:00.000000000 Z
11
+ date: 2021-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -158,6 +158,7 @@ files:
158
158
  - lib/2020-03-01-preview/generated/azure_mgmt_operational_insights.rb
159
159
  - lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/available_service_tiers.rb
160
160
  - lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/clusters.rb
161
+ - lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/data_collector_logs.rb
161
162
  - lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/data_exports.rb
162
163
  - lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/data_sources.rb
163
164
  - lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/deleted_workspaces.rb
@@ -176,6 +177,8 @@ files:
176
177
  - lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster_sku.rb
177
178
  - lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/cluster_sku_name_enum.rb
178
179
  - lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/core_summary.rb
180
+ - lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_collector_log.rb
181
+ - lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_collector_logs_list_result.rb
179
182
  - lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_export.rb
180
183
  - lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_export_error_response.rb
181
184
  - lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_export_list_result.rb