azure_mgmt_operational_insights 0.18.0 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) 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/data_exports.rb +64 -114
  7. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/linked_storage_accounts.rb +18 -9
  8. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/azure_entity_resource.rb +3 -1
  9. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_collector_log.rb +73 -0
  10. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_collector_logs_list_result.rb +56 -0
  11. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_export.rb +1 -12
  12. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_source.rb +3 -3
  13. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/data_source_type.rb +3 -0
  14. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/error_response.rb +5 -1
  15. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/linked_storage_accounts_resource.rb +1 -1
  16. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/proxy_resource.rb +4 -2
  17. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/resource.rb +8 -5
  18. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/saved_search.rb +3 -3
  19. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/models/tracked_resource.rb +4 -1
  20. data/lib/2020-03-01-preview/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb +5 -1
  21. data/lib/2020-08-01/generated/azure_mgmt_operational_insights.rb +123 -0
  22. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/available_service_tiers.rb +146 -0
  23. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/clusters.rb +959 -0
  24. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/data_exports.rb +473 -0
  25. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/data_sources.rb +603 -0
  26. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/deleted_workspaces.rb +211 -0
  27. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/gateways.rb +123 -0
  28. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/intelligence_packs.rb +351 -0
  29. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/linked_services.rb +577 -0
  30. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/linked_storage_accounts.rb +481 -0
  31. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/management_groups.rb +130 -0
  32. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/available_service_tier.rb +124 -0
  33. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/azure_entity_resource.rb +77 -0
  34. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/cluster.rb +159 -0
  35. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/cluster_entity_status.rb +21 -0
  36. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/cluster_error_response.rb +48 -0
  37. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/cluster_list_result.rb +98 -0
  38. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/cluster_patch.rb +78 -0
  39. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/cluster_sku.rb +58 -0
  40. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/cluster_sku_name_enum.rb +15 -0
  41. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/core_summary.rb +57 -0
  42. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/data_export.rb +163 -0
  43. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/data_export_error_response.rb +48 -0
  44. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/data_export_list_result.rb +56 -0
  45. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/data_ingestion_status.rb +20 -0
  46. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/data_source.rb +130 -0
  47. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/data_source_filter.rb +61 -0
  48. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/data_source_kind.rb +47 -0
  49. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/data_source_list_result.rb +98 -0
  50. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/data_source_type.rb +18 -0
  51. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/error_additional_info.rb +59 -0
  52. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/error_contract.rb +49 -0
  53. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/error_response.rb +117 -0
  54. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/identity.rb +72 -0
  55. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/identity_type.rb +16 -0
  56. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/intelligence_pack.rb +69 -0
  57. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/key_vault_properties.rb +71 -0
  58. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/linked_service.rb +120 -0
  59. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/linked_service_entity_status.rb +18 -0
  60. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/linked_service_list_result.rb +55 -0
  61. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/linked_storage_accounts_list_result.rb +56 -0
  62. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/linked_storage_accounts_resource.rb +95 -0
  63. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/management_group.rb +128 -0
  64. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/metric_name.rb +57 -0
  65. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/operation.rb +59 -0
  66. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/operation_display.rb +79 -0
  67. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/operation_list_result.rb +101 -0
  68. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/operation_status.rb +102 -0
  69. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/private_link_scoped_resource.rb +58 -0
  70. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/proxy_resource.rb +65 -0
  71. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/public_network_access_type.rb +16 -0
  72. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/purge_state.rb +16 -0
  73. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/resource.rb +86 -0
  74. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/saved_search.rb +165 -0
  75. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/saved_searches_list_result.rb +55 -0
  76. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/search_get_schema_response.rb +67 -0
  77. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/search_metadata.rb +241 -0
  78. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/search_metadata_schema.rb +57 -0
  79. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/search_schema_value.rb +123 -0
  80. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/search_sort.rb +58 -0
  81. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/search_sort_enum.rb +16 -0
  82. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/shared_keys.rb +57 -0
  83. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/sku_name_enum.rb +21 -0
  84. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/storage_account.rb +58 -0
  85. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/storage_insight.rb +157 -0
  86. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/storage_insight_list_result.rb +98 -0
  87. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/storage_insight_state.rb +16 -0
  88. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/storage_insight_status.rb +58 -0
  89. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/table.rb +79 -0
  90. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/tables_list_result.rb +55 -0
  91. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/tag.rb +57 -0
  92. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/tracked_resource.rb +95 -0
  93. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/type.rb +16 -0
  94. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/usage_metric.rb +103 -0
  95. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace.rb +213 -0
  96. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_capping.rb +72 -0
  97. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_entity_status.rb +21 -0
  98. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_list_management_groups_result.rb +56 -0
  99. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_list_result.rb +55 -0
  100. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_list_usages_result.rb +56 -0
  101. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_patch.rb +206 -0
  102. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_purge_body.rb +67 -0
  103. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_purge_body_filters.rb +85 -0
  104. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_purge_response.rb +47 -0
  105. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_purge_status_response.rb +47 -0
  106. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_sku.rb +85 -0
  107. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/models/workspace_sku_name_enum.rb +21 -0
  108. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/module_definition.rb +9 -0
  109. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/operation_statuses.rb +121 -0
  110. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/operational_insights_management_client.rb +207 -0
  111. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/operations.rb +220 -0
  112. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/saved_searches.rb +457 -0
  113. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/schema.rb +130 -0
  114. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/shared_keys_operations.rb +238 -0
  115. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/storage_insight_configs.rb +592 -0
  116. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/tables.rb +359 -0
  117. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/usages.rb +130 -0
  118. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/workspace_purge.rb +277 -0
  119. data/lib/2020-08-01/generated/azure_mgmt_operational_insights/workspaces.rb +768 -0
  120. data/lib/azure_mgmt_operational_insights.rb +2 -1
  121. data/lib/profiles/latest/modules/operationalinsights_profile_module.rb +173 -173
  122. data/lib/version.rb +1 -1
  123. metadata +105 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b6866ea55985ebb466de1976c9f3bffe0ad00e1576345227aba21b590a3bb0e
4
- data.tar.gz: ca7be351364db527c4366c232a604a1a7730980b4ea7ae9e3ae1802f1ba6fbf3
3
+ metadata.gz: d54ef194f3887d7ea441993b74aa4f0d595904584a7a3b7b01ff8a5a9c4f8e24
4
+ data.tar.gz: e83225a2c098b728871e13463f919d483974f85a287d8ae5c44a2d17c4fdc7bf
5
5
  SHA512:
6
- metadata.gz: 3e9aa9dc433847a012ff5833b596271ee6c871ea7ab33338b89bf805c801d433f9836614e6aad5b3b1a1644dd09d159807ac0859674c8ad7ca776d8eb1bc0079
7
- data.tar.gz: 6b2ea7265c01449fe66da5441d3749d9b397f862a88341bd35e5c495fe15a295ff6e8a69d546f60c95ddf45856d960ddb63c118ed851b3e47822fba6b2de0b9f
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.18.0"
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.18.0"
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