From 1252a51be281b265201731287a9ee188e8aa90b6 Mon Sep 17 00:00:00 2001 From: DEXREQ Automation Date: Mon, 12 Feb 2024 18:06:39 +0000 Subject: [PATCH] Merge pull request #2657 in SDK/oci-go-sdk from merge_to_github2024-02-12 to github Releasing Version 65.58.1 Squashed commit of the following: commit 883400d245bc6912a1f14d412507541b68d668c8 Author: oci-dex-release-bot Date: Mon Feb 12 17:48:18 2024 +0000 Releasing version 65 58 1 --- CHANGELOG.md | 12 ++ common/version.go | 2 +- ...disaster_recovery_configuration_details.go | 3 + ..._cross_region_disaster_recovery_details.go | 3 + database/disaster_recovery_configuration.go | 3 + ...ddatabase_shardeddatabaseservice_client.go | 54 +++--- loganalytics/abstract_column.go | 10 ++ loganalytics/abstract_command_descriptor.go | 16 ++ .../abstract_parser_test_result_log_entry.go | 3 + loganalytics/chart_column.go | 8 + loganalytics/chart_data_column.go | 8 + loganalytics/classify_column.go | 11 ++ loganalytics/column.go | 8 + .../create_log_analytics_entity_details.go | 5 + ...nalytics_object_collection_rule_details.go | 9 + .../create_table_command_descriptor.go | 156 ++++++++++++++++++ loganalytics/creation_source_type.go | 4 + loganalytics/dependency.go | 46 ++++++ loganalytics/dependent_parser.go | 112 +++++++++++++ loganalytics/dependent_source.go | 61 +++++++ loganalytics/export_details.go | 2 +- loganalytics/label_source_summary.go | 5 + loganalytics/last_execution_status.go | 56 +++++++ ...log_analytics_entities_request_response.go | 4 + ...lytics_entity_topology_request_response.go | 4 + loganalytics/list_lookups_request_response.go | 6 +- loganalytics/list_rules_request_response.go | 3 + .../list_scheduled_tasks_request_response.go | 3 + loganalytics/list_sources_request_response.go | 3 + loganalytics/log_analytics_entity.go | 5 + loganalytics/log_analytics_entity_summary.go | 5 + loganalytics/log_analytics_lookup.go | 6 +- loganalytics/log_analytics_metadata.go | 45 +++++ .../log_analytics_metadata_collection.go | 39 +++++ .../log_analytics_metadata_details.go | 39 +++++ .../log_analytics_metadata_summary.go | 39 +++++ .../log_analytics_object_collection_rule.go | 9 + ...nalytics_object_collection_rule_summary.go | 6 + loganalytics/log_analytics_parser.go | 9 + loganalytics/log_analytics_parser_summary.go | 3 + loganalytics/log_types.go | 56 +++++++ loganalytics/overlapping_recall_summary.go | 6 + loganalytics/parse_query_output.go | 5 + loganalytics/recall_archived_data_details.go | 3 + loganalytics/recalled_data.go | 9 + .../register_lookup_request_response.go | 6 +- loganalytics/release_recalled_data_details.go | 4 + loganalytics/rule.go | 3 + loganalytics/rule_summary.go | 3 + loganalytics/scheduled_task_summary.go | 3 + loganalytics/sequence_command_descriptor.go | 150 +++++++++++++++++ loganalytics/storage_work_request.go | 3 + loganalytics/storage_work_request_summary.go | 3 + loganalytics/table_column.go | 17 ++ loganalytics/test_parser_payload_details.go | 3 + loganalytics/time_cluster_column.go | 11 ++ loganalytics/time_cluster_data_column.go | 11 ++ loganalytics/time_column.go | 8 + loganalytics/time_stats_column.go | 8 + loganalytics/time_stats_data_column.go | 11 ++ loganalytics/trend_column.go | 8 + .../update_log_analytics_entity_details.go | 5 + .../upload_discovery_data_request_response.go | 3 + ...upload_log_events_file_request_response.go | 3 + .../upsert_log_analytics_parser_details.go | 3 + vnmonitoring/endpoint.go | 8 + vnmonitoring/on_prem_endpoint.go | 55 ++++++ 67 files changed, 1201 insertions(+), 32 deletions(-) create mode 100644 loganalytics/create_table_command_descriptor.go create mode 100644 loganalytics/dependency.go create mode 100644 loganalytics/dependent_parser.go create mode 100644 loganalytics/dependent_source.go create mode 100644 loganalytics/last_execution_status.go create mode 100644 loganalytics/log_analytics_metadata.go create mode 100644 loganalytics/log_analytics_metadata_collection.go create mode 100644 loganalytics/log_analytics_metadata_details.go create mode 100644 loganalytics/log_analytics_metadata_summary.go create mode 100644 loganalytics/log_types.go create mode 100644 loganalytics/sequence_command_descriptor.go create mode 100644 vnmonitoring/on_prem_endpoint.go diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c9cc9e910..72a29fd07f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) +## 65.58.1 - 2024-02-13 +### Added +- Support for adding automatic backups during cross region operations and disaster recovery in the Autonomous Database service +- Support for overlapping CIDR in network path analyzer in the Virtual Network Monitoring service +- Support for additional attributes in entity and topology in the Log Analytics service +- Support for historic collection and log type while creating object collection rules in the Log Analytics service +- Support for position aware parsers in the Log Analytics service +- Support for filtering log sources, detection rules and scheduled tasks based on target service in the Log Analytics service +- Support for additional recall and release attributes in the Log Analytics service +- Support for opc-meta-properties header while uploading log events in the Log Analytics service + + ## 65.58.0 - 2024-02-06 ### Added - Support for the Globally Distributed Database service diff --git a/common/version.go b/common/version.go index 52d2aed96f..132d0b9e72 100644 --- a/common/version.go +++ b/common/version.go @@ -13,7 +13,7 @@ import ( const ( major = "65" minor = "58" - patch = "0" + patch = "1" tag = "" ) diff --git a/database/change_disaster_recovery_configuration_details.go b/database/change_disaster_recovery_configuration_details.go index 34557f715b..c0ee597ab9 100644 --- a/database/change_disaster_recovery_configuration_details.go +++ b/database/change_disaster_recovery_configuration_details.go @@ -28,6 +28,9 @@ type ChangeDisasterRecoveryConfigurationDetails struct { // Indicates if user wants to convert to a snapshot standby. For example, true would set a standby database to snapshot standby database. False would set a snapshot standby database back to regular standby database. IsSnapshotStandby *bool `mandatory:"false" json:"isSnapshotStandby"` + + // If true, 7 days worth of backups are replicated across regions for Cross-Region ADB or Backup-Based DR between Primary and Standby. If false, the backups taken on the Primary are not replicated to the Standby database. + IsReplicateAutomaticBackups *bool `mandatory:"false" json:"isReplicateAutomaticBackups"` } func (m ChangeDisasterRecoveryConfigurationDetails) String() string { diff --git a/database/create_cross_region_disaster_recovery_details.go b/database/create_cross_region_disaster_recovery_details.go index e92f1a95b6..59ae0a3be6 100644 --- a/database/create_cross_region_disaster_recovery_details.go +++ b/database/create_cross_region_disaster_recovery_details.go @@ -260,6 +260,9 @@ type CreateCrossRegionDisasterRecoveryDetails struct { // The version of the vault secret. If no version is specified, the latest version will be used. SecretVersionNumber *int `mandatory:"false" json:"secretVersionNumber"` + // If true, 7 days worth of backups are replicated across regions for Cross-Region ADB or Backup-Based DR between Primary and Standby. If false, the backups taken on the Primary are not replicated to the Standby database. + IsReplicateAutomaticBackups *bool `mandatory:"false" json:"isReplicateAutomaticBackups"` + // The Oracle Database Edition that applies to the Autonomous databases. DatabaseEdition AutonomousDatabaseSummaryDatabaseEditionEnum `mandatory:"false" json:"databaseEdition,omitempty"` diff --git a/database/disaster_recovery_configuration.go b/database/disaster_recovery_configuration.go index 186443c707..5fb6a11cf8 100644 --- a/database/disaster_recovery_configuration.go +++ b/database/disaster_recovery_configuration.go @@ -28,6 +28,9 @@ type DisasterRecoveryConfiguration struct { // Indicates if user wants to convert to a snapshot standby. For example, true would set a standby database to snapshot standby database. False would set a snapshot standby database back to regular standby database. IsSnapshotStandby *bool `mandatory:"false" json:"isSnapshotStandby"` + + // If true, 7 days worth of backups are replicated across regions for Cross-Region ADB or Backup-Based DR between Primary and Standby. If false, the backups taken on the Primary are not replicated to the Standby database. + IsReplicateAutomaticBackups *bool `mandatory:"false" json:"isReplicateAutomaticBackups"` } func (m DisasterRecoveryConfiguration) String() string { diff --git a/globallydistributeddatabase/globallydistributeddatabase_shardeddatabaseservice_client.go b/globallydistributeddatabase/globallydistributeddatabase_shardeddatabaseservice_client.go index 1cc396c678..90178b479f 100644 --- a/globallydistributeddatabase/globallydistributeddatabase_shardeddatabaseservice_client.go +++ b/globallydistributeddatabase/globallydistributeddatabase_shardeddatabaseservice_client.go @@ -145,7 +145,7 @@ func (client ShardedDatabaseServiceClient) changePrivateEndpointCompartment(ctx defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/PrivateEndpoint/ChangePrivateEndpointCompartment" err = common.PostProcessServiceError(err, "ShardedDatabaseService", "ChangePrivateEndpointCompartment", apiReferenceLink) return response, err } @@ -208,7 +208,7 @@ func (client ShardedDatabaseServiceClient) changeShardedDatabaseCompartment(ctx defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/ShardedDatabase/ChangeShardedDatabaseCompartment" err = common.PostProcessServiceError(err, "ShardedDatabaseService", "ChangeShardedDatabaseCompartment", apiReferenceLink) return response, err } @@ -274,7 +274,7 @@ func (client ShardedDatabaseServiceClient) configureShardedDatabaseGsms(ctx cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/ShardedDatabase/ConfigureShardedDatabaseGsms" err = common.PostProcessServiceError(err, "ShardedDatabaseService", "ConfigureShardedDatabaseGsms", apiReferenceLink) return response, err } @@ -341,7 +341,7 @@ func (client ShardedDatabaseServiceClient) configureSharding(ctx context.Context defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/ShardedDatabase/ConfigureSharding" err = common.PostProcessServiceError(err, "ShardedDatabaseService", "ConfigureSharding", apiReferenceLink) return response, err } @@ -530,7 +530,7 @@ func (client ShardedDatabaseServiceClient) deletePrivateEndpoint(ctx context.Con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/PrivateEndpoint/DeletePrivateEndpoint" err = common.PostProcessServiceError(err, "ShardedDatabaseService", "DeletePrivateEndpoint", apiReferenceLink) return response, err } @@ -593,7 +593,7 @@ func (client ShardedDatabaseServiceClient) deleteShardedDatabase(ctx context.Con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/ShardedDatabase/DeleteShardedDatabase" err = common.PostProcessServiceError(err, "ShardedDatabaseService", "DeleteShardedDatabase", apiReferenceLink) return response, err } @@ -658,7 +658,7 @@ func (client ShardedDatabaseServiceClient) downloadGsmCertificateSigningRequest( httpResponse, err = client.Call(ctx, &httpRequest) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/ShardedDatabase/DownloadGsmCertificateSigningRequest" err = common.PostProcessServiceError(err, "ShardedDatabaseService", "DownloadGsmCertificateSigningRequest", apiReferenceLink) return response, err } @@ -721,7 +721,7 @@ func (client ShardedDatabaseServiceClient) fetchConnectionString(ctx context.Con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/ShardedDatabase/FetchConnectionString" err = common.PostProcessServiceError(err, "ShardedDatabaseService", "FetchConnectionString", apiReferenceLink) return response, err } @@ -784,7 +784,7 @@ func (client ShardedDatabaseServiceClient) fetchShardableCloudAutonomousVmCluste defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/ShardedDatabase/FetchShardableCloudAutonomousVmClusters" err = common.PostProcessServiceError(err, "ShardedDatabaseService", "FetchShardableCloudAutonomousVmClusters", apiReferenceLink) return response, err } @@ -849,7 +849,7 @@ func (client ShardedDatabaseServiceClient) generateGsmCertificateSigningRequest( defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/ShardedDatabase/GenerateGsmCertificateSigningRequest" err = common.PostProcessServiceError(err, "ShardedDatabaseService", "GenerateGsmCertificateSigningRequest", apiReferenceLink) return response, err } @@ -911,7 +911,7 @@ func (client ShardedDatabaseServiceClient) generateWallet(ctx context.Context, r httpResponse, err = client.Call(ctx, &httpRequest) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/ShardedDatabase/GenerateWallet" err = common.PostProcessServiceError(err, "ShardedDatabaseService", "GenerateWallet", apiReferenceLink) return response, err } @@ -969,7 +969,7 @@ func (client ShardedDatabaseServiceClient) getPrivateEndpoint(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/PrivateEndpoint/GetPrivateEndpoint" err = common.PostProcessServiceError(err, "ShardedDatabaseService", "GetPrivateEndpoint", apiReferenceLink) return response, err } @@ -1027,7 +1027,7 @@ func (client ShardedDatabaseServiceClient) getShardedDatabase(ctx context.Contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/ShardedDatabase/GetShardedDatabase" err = common.PostProcessServiceError(err, "ShardedDatabaseService", "GetShardedDatabase", apiReferenceLink) return response, err } @@ -1085,7 +1085,7 @@ func (client ShardedDatabaseServiceClient) getWorkRequest(ctx context.Context, r defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/WorkRequest/GetWorkRequest" err = common.PostProcessServiceError(err, "ShardedDatabaseService", "GetWorkRequest", apiReferenceLink) return response, err } @@ -1143,7 +1143,7 @@ func (client ShardedDatabaseServiceClient) listPrivateEndpoints(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/PrivateEndpointCollection/ListPrivateEndpoints" err = common.PostProcessServiceError(err, "ShardedDatabaseService", "ListPrivateEndpoints", apiReferenceLink) return response, err } @@ -1201,7 +1201,7 @@ func (client ShardedDatabaseServiceClient) listShardedDatabases(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/ShardedDatabaseCollection/ListShardedDatabases" err = common.PostProcessServiceError(err, "ShardedDatabaseService", "ListShardedDatabases", apiReferenceLink) return response, err } @@ -1259,7 +1259,7 @@ func (client ShardedDatabaseServiceClient) listWorkRequestErrors(ctx context.Con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/WorkRequestError/ListWorkRequestErrors" err = common.PostProcessServiceError(err, "ShardedDatabaseService", "ListWorkRequestErrors", apiReferenceLink) return response, err } @@ -1317,7 +1317,7 @@ func (client ShardedDatabaseServiceClient) listWorkRequestLogs(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/WorkRequestLogEntry/ListWorkRequestLogs" err = common.PostProcessServiceError(err, "ShardedDatabaseService", "ListWorkRequestLogs", apiReferenceLink) return response, err } @@ -1375,7 +1375,7 @@ func (client ShardedDatabaseServiceClient) listWorkRequests(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/WorkRequest/ListWorkRequests" err = common.PostProcessServiceError(err, "ShardedDatabaseService", "ListWorkRequests", apiReferenceLink) return response, err } @@ -1435,7 +1435,7 @@ func (client ShardedDatabaseServiceClient) patchShardedDatabase(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/ShardedDatabase/PatchShardedDatabase" err = common.PostProcessServiceError(err, "ShardedDatabaseService", "PatchShardedDatabase", apiReferenceLink) return response, err } @@ -1498,7 +1498,7 @@ func (client ShardedDatabaseServiceClient) prevalidateShardedDatabase(ctx contex defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/ShardedDatabase/PrevalidateShardedDatabase" err = common.PostProcessServiceError(err, "ShardedDatabaseService", "PrevalidateShardedDatabase", apiReferenceLink) return response, err } @@ -1561,7 +1561,7 @@ func (client ShardedDatabaseServiceClient) startShardedDatabase(ctx context.Cont defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/ShardedDatabase/StartShardedDatabase" err = common.PostProcessServiceError(err, "ShardedDatabaseService", "StartShardedDatabase", apiReferenceLink) return response, err } @@ -1624,7 +1624,7 @@ func (client ShardedDatabaseServiceClient) stopShardedDatabase(ctx context.Conte defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/ShardedDatabase/StopShardedDatabase" err = common.PostProcessServiceError(err, "ShardedDatabaseService", "StopShardedDatabase", apiReferenceLink) return response, err } @@ -1687,7 +1687,7 @@ func (client ShardedDatabaseServiceClient) updatePrivateEndpoint(ctx context.Con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/PrivateEndpoint/UpdatePrivateEndpoint" err = common.PostProcessServiceError(err, "ShardedDatabaseService", "UpdatePrivateEndpoint", apiReferenceLink) return response, err } @@ -1745,7 +1745,7 @@ func (client ShardedDatabaseServiceClient) updateShardedDatabase(ctx context.Con defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/ShardedDatabase/UpdateShardedDatabase" err = common.PostProcessServiceError(err, "ShardedDatabaseService", "UpdateShardedDatabase", apiReferenceLink) return response, err } @@ -1810,7 +1810,7 @@ func (client ShardedDatabaseServiceClient) uploadSignedCertificateAndGenerateWal defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/ShardedDatabase/UploadSignedCertificateAndGenerateWallet" err = common.PostProcessServiceError(err, "ShardedDatabaseService", "UploadSignedCertificateAndGenerateWallet", apiReferenceLink) return response, err } @@ -1873,7 +1873,7 @@ func (client ShardedDatabaseServiceClient) validateNetwork(ctx context.Context, defer common.CloseBodyIfValid(httpResponse) response.RawResponse = httpResponse if err != nil { - apiReferenceLink := "" + apiReferenceLink := "https://docs.oracle.com/iaas/api/#/en/globally-distributed-autonomous-database/20230301/ShardedDatabase/ValidateNetwork" err = common.PostProcessServiceError(err, "ShardedDatabaseService", "ValidateNetwork", apiReferenceLink) return response, err } diff --git a/loganalytics/abstract_column.go b/loganalytics/abstract_column.go index 286e9868f9..0c981925c9 100644 --- a/loganalytics/abstract_column.go +++ b/loganalytics/abstract_column.go @@ -43,6 +43,9 @@ type AbstractColumn interface { // Identifies if this column can be used as an expression parameter in any command that accepts querylanguage expressions. GetIsEvaluable() *bool + // Identifies if this column should be hidden by default but can be displayed in the UI on demand. + GetIsHidden() *bool + // Field denoting column data type. GetValueType() ValueTypeEnum @@ -63,6 +66,7 @@ type abstractcolumn struct { IsCaseSensitive *bool `mandatory:"false" json:"isCaseSensitive"` IsGroupable *bool `mandatory:"false" json:"isGroupable"` IsEvaluable *bool `mandatory:"false" json:"isEvaluable"` + IsHidden *bool `mandatory:"false" json:"isHidden"` ValueType ValueTypeEnum `mandatory:"false" json:"valueType,omitempty"` OriginalDisplayName *string `mandatory:"false" json:"originalDisplayName"` InternalName *string `mandatory:"false" json:"internalName"` @@ -88,6 +92,7 @@ func (m *abstractcolumn) UnmarshalJSON(data []byte) error { m.IsCaseSensitive = s.Model.IsCaseSensitive m.IsGroupable = s.Model.IsGroupable m.IsEvaluable = s.Model.IsEvaluable + m.IsHidden = s.Model.IsHidden m.ValueType = s.Model.ValueType m.OriginalDisplayName = s.Model.OriginalDisplayName m.InternalName = s.Model.InternalName @@ -195,6 +200,11 @@ func (m abstractcolumn) GetIsEvaluable() *bool { return m.IsEvaluable } +// GetIsHidden returns IsHidden +func (m abstractcolumn) GetIsHidden() *bool { + return m.IsHidden +} + // GetValueType returns ValueType func (m abstractcolumn) GetValueType() ValueTypeEnum { return m.ValueType diff --git a/loganalytics/abstract_command_descriptor.go b/loganalytics/abstract_command_descriptor.go index 6d62ffcdd3..4ff55c9454 100644 --- a/loganalytics/abstract_command_descriptor.go +++ b/loganalytics/abstract_command_descriptor.go @@ -96,6 +96,10 @@ func (m *abstractcommanddescriptor) UnmarshalPolymorphicJSON(data []byte) (inter mm := TailCommandDescriptor{} err = json.Unmarshal(data, &mm) return mm, err + case "SEQUENCE": + mm := SequenceCommandDescriptor{} + err = json.Unmarshal(data, &mm) + return mm, err case "OUTLIER": mm := OutlierCommandDescriptor{} err = json.Unmarshal(data, &mm) @@ -184,6 +188,10 @@ func (m *abstractcommanddescriptor) UnmarshalPolymorphicJSON(data []byte) (inter mm := MultiSearchCommandDescriptor{} err = json.Unmarshal(data, &mm) return mm, err + case "CREATETABLE": + mm := CreateTableCommandDescriptor{} + err = json.Unmarshal(data, &mm) + return mm, err case "COMPARE": mm := CompareCommandDescriptor{} err = json.Unmarshal(data, &mm) @@ -380,6 +388,8 @@ const ( AbstractCommandDescriptorNameWhere AbstractCommandDescriptorNameEnum = "WHERE" AbstractCommandDescriptorNameClusterCompare AbstractCommandDescriptorNameEnum = "CLUSTER_COMPARE" AbstractCommandDescriptorNameDelete AbstractCommandDescriptorNameEnum = "DELETE" + AbstractCommandDescriptorNameCreatetable AbstractCommandDescriptorNameEnum = "CREATETABLE" + AbstractCommandDescriptorNameSequence AbstractCommandDescriptorNameEnum = "SEQUENCE" AbstractCommandDescriptorNameDelta AbstractCommandDescriptorNameEnum = "DELTA" AbstractCommandDescriptorNameDistinct AbstractCommandDescriptorNameEnum = "DISTINCT" AbstractCommandDescriptorNameSearchLookup AbstractCommandDescriptorNameEnum = "SEARCH_LOOKUP" @@ -436,6 +446,8 @@ var mappingAbstractCommandDescriptorNameEnum = map[string]AbstractCommandDescrip "WHERE": AbstractCommandDescriptorNameWhere, "CLUSTER_COMPARE": AbstractCommandDescriptorNameClusterCompare, "DELETE": AbstractCommandDescriptorNameDelete, + "CREATETABLE": AbstractCommandDescriptorNameCreatetable, + "SEQUENCE": AbstractCommandDescriptorNameSequence, "DELTA": AbstractCommandDescriptorNameDelta, "DISTINCT": AbstractCommandDescriptorNameDistinct, "SEARCH_LOOKUP": AbstractCommandDescriptorNameSearchLookup, @@ -492,6 +504,8 @@ var mappingAbstractCommandDescriptorNameEnumLowerCase = map[string]AbstractComma "where": AbstractCommandDescriptorNameWhere, "cluster_compare": AbstractCommandDescriptorNameClusterCompare, "delete": AbstractCommandDescriptorNameDelete, + "createtable": AbstractCommandDescriptorNameCreatetable, + "sequence": AbstractCommandDescriptorNameSequence, "delta": AbstractCommandDescriptorNameDelta, "distinct": AbstractCommandDescriptorNameDistinct, "search_lookup": AbstractCommandDescriptorNameSearchLookup, @@ -559,6 +573,8 @@ func GetAbstractCommandDescriptorNameEnumStringValues() []string { "WHERE", "CLUSTER_COMPARE", "DELETE", + "CREATETABLE", + "SEQUENCE", "DELTA", "DISTINCT", "SEARCH_LOOKUP", diff --git a/loganalytics/abstract_parser_test_result_log_entry.go b/loganalytics/abstract_parser_test_result_log_entry.go index 6de4cca435..cd7253c709 100644 --- a/loganalytics/abstract_parser_test_result_log_entry.go +++ b/loganalytics/abstract_parser_test_result_log_entry.go @@ -21,6 +21,9 @@ type AbstractParserTestResultLogEntry struct { // Extra information attributes. ExtraInfoAttributes map[string]string `mandatory:"false" json:"extraInfoAttributes"` + // The field map. + FieldMap map[string]string `mandatory:"false" json:"fieldMap"` + // The field name value map. FieldNameValueMap map[string]string `mandatory:"false" json:"fieldNameValueMap"` diff --git a/loganalytics/chart_column.go b/loganalytics/chart_column.go index cd1ff8e6c1..24b11008eb 100644 --- a/loganalytics/chart_column.go +++ b/loganalytics/chart_column.go @@ -40,6 +40,9 @@ type ChartColumn struct { // Identifies if this column can be used as an expression parameter in any command that accepts querylanguage expressions. IsEvaluable *bool `mandatory:"false" json:"isEvaluable"` + // Identifies if this column should be hidden by default but can be displayed in the UI on demand. + IsHidden *bool `mandatory:"false" json:"isHidden"` + // Same as displayName unless column renamed in which case this will hold the original display name for the column. OriginalDisplayName *string `mandatory:"false" json:"originalDisplayName"` @@ -105,6 +108,11 @@ func (m ChartColumn) GetIsEvaluable() *bool { return m.IsEvaluable } +// GetIsHidden returns IsHidden +func (m ChartColumn) GetIsHidden() *bool { + return m.IsHidden +} + // GetValueType returns ValueType func (m ChartColumn) GetValueType() ValueTypeEnum { return m.ValueType diff --git a/loganalytics/chart_data_column.go b/loganalytics/chart_data_column.go index cd801d930c..ba332c90dc 100644 --- a/loganalytics/chart_data_column.go +++ b/loganalytics/chart_data_column.go @@ -40,6 +40,9 @@ type ChartDataColumn struct { // Identifies if this column can be used as an expression parameter in any command that accepts querylanguage expressions. IsEvaluable *bool `mandatory:"false" json:"isEvaluable"` + // Identifies if this column should be hidden by default but can be displayed in the UI on demand. + IsHidden *bool `mandatory:"false" json:"isHidden"` + // Same as displayName unless column renamed in which case this will hold the original display name for the column. OriginalDisplayName *string `mandatory:"false" json:"originalDisplayName"` @@ -99,6 +102,11 @@ func (m ChartDataColumn) GetIsEvaluable() *bool { return m.IsEvaluable } +// GetIsHidden returns IsHidden +func (m ChartDataColumn) GetIsHidden() *bool { + return m.IsHidden +} + // GetValueType returns ValueType func (m ChartDataColumn) GetValueType() ValueTypeEnum { return m.ValueType diff --git a/loganalytics/classify_column.go b/loganalytics/classify_column.go index f456a65d63..12bf5993f1 100644 --- a/loganalytics/classify_column.go +++ b/loganalytics/classify_column.go @@ -40,6 +40,9 @@ type ClassifyColumn struct { // Identifies if this column can be used as an expression parameter in any command that accepts querylanguage expressions. IsEvaluable *bool `mandatory:"false" json:"isEvaluable"` + // Identifies if this column should be hidden by default but can be displayed in the UI on demand. + IsHidden *bool `mandatory:"false" json:"isHidden"` + // Same as displayName unless column renamed in which case this will hold the original display name for the column. OriginalDisplayName *string `mandatory:"false" json:"originalDisplayName"` @@ -114,6 +117,11 @@ func (m ClassifyColumn) GetIsEvaluable() *bool { return m.IsEvaluable } +// GetIsHidden returns IsHidden +func (m ClassifyColumn) GetIsHidden() *bool { + return m.IsHidden +} + // GetValueType returns ValueType func (m ClassifyColumn) GetValueType() ValueTypeEnum { return m.ValueType @@ -176,6 +184,7 @@ func (m *ClassifyColumn) UnmarshalJSON(data []byte) (e error) { IsCaseSensitive *bool `json:"isCaseSensitive"` IsGroupable *bool `json:"isGroupable"` IsEvaluable *bool `json:"isEvaluable"` + IsHidden *bool `json:"isHidden"` ValueType ValueTypeEnum `json:"valueType"` OriginalDisplayName *string `json:"originalDisplayName"` InternalName *string `json:"internalName"` @@ -209,6 +218,8 @@ func (m *ClassifyColumn) UnmarshalJSON(data []byte) (e error) { m.IsEvaluable = model.IsEvaluable + m.IsHidden = model.IsHidden + m.ValueType = model.ValueType m.OriginalDisplayName = model.OriginalDisplayName diff --git a/loganalytics/column.go b/loganalytics/column.go index 69591646b4..49c007c23b 100644 --- a/loganalytics/column.go +++ b/loganalytics/column.go @@ -40,6 +40,9 @@ type Column struct { // Identifies if this column can be used as an expression parameter in any command that accepts querylanguage expressions. IsEvaluable *bool `mandatory:"false" json:"isEvaluable"` + // Identifies if this column should be hidden by default but can be displayed in the UI on demand. + IsHidden *bool `mandatory:"false" json:"isHidden"` + // Same as displayName unless column renamed in which case this will hold the original display name for the column. OriginalDisplayName *string `mandatory:"false" json:"originalDisplayName"` @@ -93,6 +96,11 @@ func (m Column) GetIsEvaluable() *bool { return m.IsEvaluable } +// GetIsHidden returns IsHidden +func (m Column) GetIsHidden() *bool { + return m.IsHidden +} + // GetValueType returns ValueType func (m Column) GetValueType() ValueTypeEnum { return m.ValueType diff --git a/loganalytics/create_log_analytics_entity_details.go b/loganalytics/create_log_analytics_entity_details.go index da260cb614..90a72cff22 100644 --- a/loganalytics/create_log_analytics_entity_details.go +++ b/loganalytics/create_log_analytics_entity_details.go @@ -55,6 +55,11 @@ type CreateLogAnalyticsEntityDetails struct { // Defined tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"foo-namespace": {"bar-key": "value"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // The date and time the resource was last discovered, in the format defined by RFC3339. + TimeLastDiscovered *common.SDKTime `mandatory:"false" json:"timeLastDiscovered"` + + Metadata *LogAnalyticsMetadataDetails `mandatory:"false" json:"metadata"` } func (m CreateLogAnalyticsEntityDetails) String() string { diff --git a/loganalytics/create_log_analytics_object_collection_rule_details.go b/loganalytics/create_log_analytics_object_collection_rule_details.go index f28f2b499c..3efec06336 100644 --- a/loganalytics/create_log_analytics_object_collection_rule_details.go +++ b/loganalytics/create_log_analytics_object_collection_rule_details.go @@ -92,6 +92,12 @@ type CreateLogAnalyticsObjectCollectionRuleDetails struct { // For more information on filters, see Event Filters (https://docs.oracle.com/en-us/iaas/Content/Events/Concepts/filterevents.htm). ObjectNameFilters []string `mandatory:"false" json:"objectNameFilters"` + // Type of files/objects in this object collection rule. + LogType LogTypesEnum `mandatory:"false" json:"logType,omitempty"` + + // Flag to allow historic collection if poll period overlaps with existing ACTIVE collection rule + IsForceHistoricCollection *bool `mandatory:"false" json:"isForceHistoricCollection"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"foo-namespace": {"bar-key": "value"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -117,6 +123,9 @@ func (m CreateLogAnalyticsObjectCollectionRuleDetails) ValidateEnumValue() (bool if _, ok := GetMappingLogSetKeyTypesEnum(string(m.LogSetKey)); !ok && m.LogSetKey != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LogSetKey: %s. Supported values are: %s.", m.LogSetKey, strings.Join(GetLogSetKeyTypesEnumStringValues(), ","))) } + if _, ok := GetMappingLogTypesEnum(string(m.LogType)); !ok && m.LogType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LogType: %s. Supported values are: %s.", m.LogType, strings.Join(GetLogTypesEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } diff --git a/loganalytics/create_table_command_descriptor.go b/loganalytics/create_table_command_descriptor.go new file mode 100644 index 0000000000..0e018f1a44 --- /dev/null +++ b/loganalytics/create_table_command_descriptor.go @@ -0,0 +1,156 @@ +// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// CreateTableCommandDescriptor Command descriptor for querylanguage CREATETABLE command. +type CreateTableCommandDescriptor struct { + + // Command fragment display string from user specified query string formatted by query builder. + DisplayQueryString *string `mandatory:"true" json:"displayQueryString"` + + // Command fragment internal string from user specified query string formatted by query builder. + InternalQueryString *string `mandatory:"true" json:"internalQueryString"` + + // Name of the table being created. + TableName *string `mandatory:"true" json:"tableName"` + + // querylanguage command designation for example; reporting vs filtering + Category *string `mandatory:"false" json:"category"` + + // Fields referenced in command fragment from user specified query string. + ReferencedFields []AbstractField `mandatory:"false" json:"referencedFields"` + + // Fields declared in command fragment from user specified query string. + DeclaredFields []AbstractField `mandatory:"false" json:"declaredFields"` + + // Field denoting if this is a hidden command that is not shown in the query string. + IsHidden *bool `mandatory:"false" json:"isHidden"` +} + +// GetDisplayQueryString returns DisplayQueryString +func (m CreateTableCommandDescriptor) GetDisplayQueryString() *string { + return m.DisplayQueryString +} + +// GetInternalQueryString returns InternalQueryString +func (m CreateTableCommandDescriptor) GetInternalQueryString() *string { + return m.InternalQueryString +} + +// GetCategory returns Category +func (m CreateTableCommandDescriptor) GetCategory() *string { + return m.Category +} + +// GetReferencedFields returns ReferencedFields +func (m CreateTableCommandDescriptor) GetReferencedFields() []AbstractField { + return m.ReferencedFields +} + +// GetDeclaredFields returns DeclaredFields +func (m CreateTableCommandDescriptor) GetDeclaredFields() []AbstractField { + return m.DeclaredFields +} + +// GetIsHidden returns IsHidden +func (m CreateTableCommandDescriptor) GetIsHidden() *bool { + return m.IsHidden +} + +func (m CreateTableCommandDescriptor) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m CreateTableCommandDescriptor) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m CreateTableCommandDescriptor) MarshalJSON() (buff []byte, e error) { + type MarshalTypeCreateTableCommandDescriptor CreateTableCommandDescriptor + s := struct { + DiscriminatorParam string `json:"name"` + MarshalTypeCreateTableCommandDescriptor + }{ + "CREATETABLE", + (MarshalTypeCreateTableCommandDescriptor)(m), + } + + return json.Marshal(&s) +} + +// UnmarshalJSON unmarshals from json +func (m *CreateTableCommandDescriptor) UnmarshalJSON(data []byte) (e error) { + model := struct { + Category *string `json:"category"` + ReferencedFields []abstractfield `json:"referencedFields"` + DeclaredFields []abstractfield `json:"declaredFields"` + IsHidden *bool `json:"isHidden"` + DisplayQueryString *string `json:"displayQueryString"` + InternalQueryString *string `json:"internalQueryString"` + TableName *string `json:"tableName"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.Category = model.Category + + m.ReferencedFields = make([]AbstractField, len(model.ReferencedFields)) + for i, n := range model.ReferencedFields { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.ReferencedFields[i] = nn.(AbstractField) + } else { + m.ReferencedFields[i] = nil + } + } + m.DeclaredFields = make([]AbstractField, len(model.DeclaredFields)) + for i, n := range model.DeclaredFields { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.DeclaredFields[i] = nn.(AbstractField) + } else { + m.DeclaredFields[i] = nil + } + } + m.IsHidden = model.IsHidden + + m.DisplayQueryString = model.DisplayQueryString + + m.InternalQueryString = model.InternalQueryString + + m.TableName = model.TableName + + return +} diff --git a/loganalytics/creation_source_type.go b/loganalytics/creation_source_type.go index 3d93bcef42..bce67c56c8 100644 --- a/loganalytics/creation_source_type.go +++ b/loganalytics/creation_source_type.go @@ -22,6 +22,7 @@ const ( CreationSourceTypeBulkDiscovery CreationSourceTypeEnum = "BULK_DISCOVERY" CreationSourceTypeServiceConnectorHub CreationSourceTypeEnum = "SERVICE_CONNECTOR_HUB" CreationSourceTypeDiscovery CreationSourceTypeEnum = "DISCOVERY" + CreationSourceTypeLoggingAnalytics CreationSourceTypeEnum = "LOGGING_ANALYTICS" CreationSourceTypeNone CreationSourceTypeEnum = "NONE" ) @@ -30,6 +31,7 @@ var mappingCreationSourceTypeEnum = map[string]CreationSourceTypeEnum{ "BULK_DISCOVERY": CreationSourceTypeBulkDiscovery, "SERVICE_CONNECTOR_HUB": CreationSourceTypeServiceConnectorHub, "DISCOVERY": CreationSourceTypeDiscovery, + "LOGGING_ANALYTICS": CreationSourceTypeLoggingAnalytics, "NONE": CreationSourceTypeNone, } @@ -38,6 +40,7 @@ var mappingCreationSourceTypeEnumLowerCase = map[string]CreationSourceTypeEnum{ "bulk_discovery": CreationSourceTypeBulkDiscovery, "service_connector_hub": CreationSourceTypeServiceConnectorHub, "discovery": CreationSourceTypeDiscovery, + "logging_analytics": CreationSourceTypeLoggingAnalytics, "none": CreationSourceTypeNone, } @@ -57,6 +60,7 @@ func GetCreationSourceTypeEnumStringValues() []string { "BULK_DISCOVERY", "SERVICE_CONNECTOR_HUB", "DISCOVERY", + "LOGGING_ANALYTICS", "NONE", } } diff --git a/loganalytics/dependency.go b/loganalytics/dependency.go new file mode 100644 index 0000000000..795ac5e467 --- /dev/null +++ b/loganalytics/dependency.go @@ -0,0 +1,46 @@ +// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// Dependency Details of a dependency an object or feature defines on another. For +// example, a source may depend on a parser either directly or indirectly. +type Dependency struct { + + // The dependency type. + Type *string `mandatory:"false" json:"type"` + + // The type of reference that defines the dependency. + ReferenceType *string `mandatory:"false" json:"referenceType"` + + // The unique identifier of the reference, if available. + ReferenceId *int64 `mandatory:"false" json:"referenceId"` +} + +func (m Dependency) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m Dependency) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/loganalytics/dependent_parser.go b/loganalytics/dependent_parser.go new file mode 100644 index 0000000000..c22244c10b --- /dev/null +++ b/loganalytics/dependent_parser.go @@ -0,0 +1,112 @@ +// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DependentParser A parser used by another parser. +type DependentParser struct { + + // The parser name. + ParserName *string `mandatory:"false" json:"parserName"` + + // The parser display name. + ParserDisplayName *string `mandatory:"false" json:"parserDisplayName"` + + // The parser unique identifier. + ParserId *int64 `mandatory:"false" json:"parserId"` + + // The system flag. A value of false denotes a custom, or user + // defined object. A value of true denotes a built in object. + IsSystem *bool `mandatory:"false" json:"isSystem"` + + // The parser type + ParserType DependentParserParserTypeEnum `mandatory:"false" json:"parserType,omitempty"` + + // The list of dependencies of the parser. + Dependencies []Dependency `mandatory:"false" json:"dependencies"` +} + +func (m DependentParser) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DependentParser) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if _, ok := GetMappingDependentParserParserTypeEnum(string(m.ParserType)); !ok && m.ParserType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ParserType: %s. Supported values are: %s.", m.ParserType, strings.Join(GetDependentParserParserTypeEnumStringValues(), ","))) + } + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// DependentParserParserTypeEnum Enum with underlying type: string +type DependentParserParserTypeEnum string + +// Set of constants representing the allowable values for DependentParserParserTypeEnum +const ( + DependentParserParserTypeXml DependentParserParserTypeEnum = "XML" + DependentParserParserTypeJson DependentParserParserTypeEnum = "JSON" + DependentParserParserTypeRegex DependentParserParserTypeEnum = "REGEX" + DependentParserParserTypeOdl DependentParserParserTypeEnum = "ODL" + DependentParserParserTypeDelimited DependentParserParserTypeEnum = "DELIMITED" +) + +var mappingDependentParserParserTypeEnum = map[string]DependentParserParserTypeEnum{ + "XML": DependentParserParserTypeXml, + "JSON": DependentParserParserTypeJson, + "REGEX": DependentParserParserTypeRegex, + "ODL": DependentParserParserTypeOdl, + "DELIMITED": DependentParserParserTypeDelimited, +} + +var mappingDependentParserParserTypeEnumLowerCase = map[string]DependentParserParserTypeEnum{ + "xml": DependentParserParserTypeXml, + "json": DependentParserParserTypeJson, + "regex": DependentParserParserTypeRegex, + "odl": DependentParserParserTypeOdl, + "delimited": DependentParserParserTypeDelimited, +} + +// GetDependentParserParserTypeEnumValues Enumerates the set of values for DependentParserParserTypeEnum +func GetDependentParserParserTypeEnumValues() []DependentParserParserTypeEnum { + values := make([]DependentParserParserTypeEnum, 0) + for _, v := range mappingDependentParserParserTypeEnum { + values = append(values, v) + } + return values +} + +// GetDependentParserParserTypeEnumStringValues Enumerates the set of values in String for DependentParserParserTypeEnum +func GetDependentParserParserTypeEnumStringValues() []string { + return []string{ + "XML", + "JSON", + "REGEX", + "ODL", + "DELIMITED", + } +} + +// GetMappingDependentParserParserTypeEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingDependentParserParserTypeEnum(val string) (DependentParserParserTypeEnum, bool) { + enum, ok := mappingDependentParserParserTypeEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/loganalytics/dependent_source.go b/loganalytics/dependent_source.go new file mode 100644 index 0000000000..d3eb90c208 --- /dev/null +++ b/loganalytics/dependent_source.go @@ -0,0 +1,61 @@ +// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// DependentSource A source that uses the parser, either directly or indirectly. +type DependentSource struct { + + // The source name. + SourceName *string `mandatory:"false" json:"sourceName"` + + // The source display name. + SourceDisplayName *string `mandatory:"false" json:"sourceDisplayName"` + + // The source unique identifier. + SourceId *int64 `mandatory:"false" json:"sourceId"` + + // The source type. + SourceType *string `mandatory:"false" json:"sourceType"` + + // The system flag. A value of false denotes a custom, or user + // defined object. A value of true denotes a built in object. + IsSystem *bool `mandatory:"false" json:"isSystem"` + + // A flag indicating whether or not the source is marked for auto association. + IsAutoAssociationEnabled *bool `mandatory:"false" json:"isAutoAssociationEnabled"` + + // The entity types. + EntityTypes []LogAnalyticsSourceEntityType `mandatory:"false" json:"entityTypes"` + + // The list of dependencies defined by the source. + Dependencies []Dependency `mandatory:"false" json:"dependencies"` +} + +func (m DependentSource) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m DependentSource) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/loganalytics/export_details.go b/loganalytics/export_details.go index 6ddb187fec..1a55623722 100644 --- a/loganalytics/export_details.go +++ b/loganalytics/export_details.go @@ -36,7 +36,7 @@ type ExportDetails struct { // Maximum number of results retrieved from data source is determined by the specific query used and the maxTotalCount input field. // If the export results can be streamed, the maximum will be 1,000,000. // If the results cannot be streamed, the maximum limit is 500 for queries that include the link command - // and 10,000 for the queries that does not include the link command. + // and 10,000 for the queries that do not include the link command. // Queries that include certain commands such as head, tail or stats cannot be streamed and are subject to a maximum of 10,000 results. // Queries that include the sort command cannot be streamed unless the sort fields are restricted to id and/or time. // The maximum number of results retrieved is the lesser of the maxTotalCount input provided and the applicable limit described above. diff --git a/loganalytics/label_source_summary.go b/loganalytics/label_source_summary.go index 5c47bf87bf..0c7e8be18b 100644 --- a/loganalytics/label_source_summary.go +++ b/loganalytics/label_source_summary.go @@ -33,6 +33,11 @@ type LabelSourceSummary struct { // The label condition. LabelCondition *string `mandatory:"false" json:"labelCondition"` + // String representation of the label condition. + ConditionString *string `mandatory:"false" json:"conditionString"` + + ConditionBlock *ConditionBlock `mandatory:"false" json:"conditionBlock"` + // The label field display name. LabelFieldDisplayname *string `mandatory:"false" json:"labelFieldDisplayname"` diff --git a/loganalytics/last_execution_status.go b/loganalytics/last_execution_status.go new file mode 100644 index 0000000000..5e69a61fdd --- /dev/null +++ b/loganalytics/last_execution_status.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "strings" +) + +// LastExecutionStatusEnum Enum with underlying type: string +type LastExecutionStatusEnum string + +// Set of constants representing the allowable values for LastExecutionStatusEnum +const ( + LastExecutionStatusFailed LastExecutionStatusEnum = "FAILED" + LastExecutionStatusSucceeded LastExecutionStatusEnum = "SUCCEEDED" +) + +var mappingLastExecutionStatusEnum = map[string]LastExecutionStatusEnum{ + "FAILED": LastExecutionStatusFailed, + "SUCCEEDED": LastExecutionStatusSucceeded, +} + +var mappingLastExecutionStatusEnumLowerCase = map[string]LastExecutionStatusEnum{ + "failed": LastExecutionStatusFailed, + "succeeded": LastExecutionStatusSucceeded, +} + +// GetLastExecutionStatusEnumValues Enumerates the set of values for LastExecutionStatusEnum +func GetLastExecutionStatusEnumValues() []LastExecutionStatusEnum { + values := make([]LastExecutionStatusEnum, 0) + for _, v := range mappingLastExecutionStatusEnum { + values = append(values, v) + } + return values +} + +// GetLastExecutionStatusEnumStringValues Enumerates the set of values in String for LastExecutionStatusEnum +func GetLastExecutionStatusEnumStringValues() []string { + return []string{ + "FAILED", + "SUCCEEDED", + } +} + +// GetMappingLastExecutionStatusEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLastExecutionStatusEnum(val string) (LastExecutionStatusEnum, bool) { + enum, ok := mappingLastExecutionStatusEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/loganalytics/list_log_analytics_entities_request_response.go b/loganalytics/list_log_analytics_entities_request_response.go index 121190f14c..c2f00ee408 100644 --- a/loganalytics/list_log_analytics_entities_request_response.go +++ b/loganalytics/list_log_analytics_entities_request_response.go @@ -81,6 +81,10 @@ type ListLogAnalyticsEntitiesRequest struct { // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + // A filter to return only log analytics entities whose metadata name, value and type matches the specified string. + // Each item in the array has the format "{name}:{value}:{type}". All inputs are case-insensitive. + MetadataEquals []string `contributesTo:"query" name:"metadataEquals" collectionFormat:"multi"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata diff --git a/loganalytics/list_log_analytics_entity_topology_request_response.go b/loganalytics/list_log_analytics_entity_topology_request_response.go index 0e342dd532..cae71bfc9b 100644 --- a/loganalytics/list_log_analytics_entity_topology_request_response.go +++ b/loganalytics/list_log_analytics_entity_topology_request_response.go @@ -44,6 +44,10 @@ type ListLogAnalyticsEntityTopologyRequest struct { // The client request ID for tracing. OpcRequestId *string `mandatory:"false" contributesTo:"header" name:"opc-request-id"` + // A filter to return only log analytics entities whose metadata name, value and type matches the specified string. + // Each item in the array has the format "{name}:{value}:{type}". All inputs are case-insensitive. + MetadataEquals []string `contributesTo:"query" name:"metadataEquals" collectionFormat:"multi"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata diff --git a/loganalytics/list_lookups_request_response.go b/loganalytics/list_lookups_request_response.go index d184a1557c..81ec36a254 100644 --- a/loganalytics/list_lookups_request_response.go +++ b/loganalytics/list_lookups_request_response.go @@ -21,7 +21,7 @@ type ListLookupsRequest struct { // The Logging Analytics namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - // The lookup type. Valid values are Lookup or Dictionary. + // The lookup type. Valid values are Lookup, Dictionary or Module. Type ListLookupsTypeEnum `mandatory:"true" contributesTo:"query" name:"type" omitEmpty:"true"` // The lookup text used for filtering. Only lookups with the specified name @@ -153,16 +153,19 @@ type ListLookupsTypeEnum string const ( ListLookupsTypeLookup ListLookupsTypeEnum = "Lookup" ListLookupsTypeDictionary ListLookupsTypeEnum = "Dictionary" + ListLookupsTypeModule ListLookupsTypeEnum = "Module" ) var mappingListLookupsTypeEnum = map[string]ListLookupsTypeEnum{ "Lookup": ListLookupsTypeLookup, "Dictionary": ListLookupsTypeDictionary, + "Module": ListLookupsTypeModule, } var mappingListLookupsTypeEnumLowerCase = map[string]ListLookupsTypeEnum{ "lookup": ListLookupsTypeLookup, "dictionary": ListLookupsTypeDictionary, + "module": ListLookupsTypeModule, } // GetListLookupsTypeEnumValues Enumerates the set of values for ListLookupsTypeEnum @@ -179,6 +182,7 @@ func GetListLookupsTypeEnumStringValues() []string { return []string{ "Lookup", "Dictionary", + "Module", } } diff --git a/loganalytics/list_rules_request_response.go b/loganalytics/list_rules_request_response.go index 493ee411c8..d27753f033 100644 --- a/loganalytics/list_rules_request_response.go +++ b/loganalytics/list_rules_request_response.go @@ -32,6 +32,9 @@ type ListRulesRequest struct { // kind will be returned. Kind ListRulesKindEnum `mandatory:"false" contributesTo:"query" name:"kind" omitEmpty:"true"` + // The target service to use for filtering. + TargetService *string `mandatory:"false" contributesTo:"query" name:"targetService"` + // The rule lifecycle state used for filtering. Currently supported // values are ACTIVE and DELETED. LifecycleState ListRulesLifecycleStateEnum `mandatory:"false" contributesTo:"query" name:"lifecycleState" omitEmpty:"true"` diff --git a/loganalytics/list_scheduled_tasks_request_response.go b/loganalytics/list_scheduled_tasks_request_response.go index 7ecc40d5dd..327b38e138 100644 --- a/loganalytics/list_scheduled_tasks_request_response.go +++ b/loganalytics/list_scheduled_tasks_request_response.go @@ -52,6 +52,9 @@ type ListScheduledTasksRequest struct { // A filter to return only resources whose display name contains the substring. DisplayNameContains *string `mandatory:"false" contributesTo:"query" name:"displayNameContains"` + // The target service to use for filtering. + TargetService *string `mandatory:"false" contributesTo:"query" name:"targetService"` + // Metadata about the request. This information will not be transmitted to the service, but // represents information that the SDK will consume to drive retry behavior. RequestMetadata common.RequestMetadata diff --git a/loganalytics/list_sources_request_response.go b/loganalytics/list_sources_request_response.go index c671b30a6a..5c30a693d1 100644 --- a/loganalytics/list_sources_request_response.go +++ b/loganalytics/list_sources_request_response.go @@ -57,6 +57,9 @@ type ListSourcesRequest struct { // is case-insensitive. Name *string `mandatory:"false" contributesTo:"query" name:"name"` + // The source type. + SourceType *string `mandatory:"false" contributesTo:"query" name:"sourceType"` + // A comma-separated list of categories used for filtering Categories *string `mandatory:"false" contributesTo:"query" name:"categories"` diff --git a/loganalytics/log_analytics_entity.go b/loganalytics/log_analytics_entity.go index a7aac1cf18..580cc9fe4f 100644 --- a/loganalytics/log_analytics_entity.go +++ b/loganalytics/log_analytics_entity.go @@ -63,6 +63,11 @@ type LogAnalyticsEntity struct { CreationSource *CreationSource `mandatory:"false" json:"creationSource"` + // The date and time the resource was last discovered, in the format defined by RFC3339. + TimeLastDiscovered *common.SDKTime `mandatory:"false" json:"timeLastDiscovered"` + + Metadata *LogAnalyticsMetadataSummary `mandatory:"false" json:"metadata"` + // The Boolean flag to indicate if logs are collected for an entity for log analytics usage. AreLogsCollected *bool `mandatory:"false" json:"areLogsCollected"` diff --git a/loganalytics/log_analytics_entity_summary.go b/loganalytics/log_analytics_entity_summary.go index 100792988c..555c1449af 100644 --- a/loganalytics/log_analytics_entity_summary.go +++ b/loganalytics/log_analytics_entity_summary.go @@ -56,6 +56,11 @@ type LogAnalyticsEntitySummary struct { // The timezone region of the log analytics entity. TimezoneRegion *string `mandatory:"false" json:"timezoneRegion"` + // The date and time the resource was last discovered, in the format defined by RFC3339. + TimeLastDiscovered *common.SDKTime `mandatory:"false" json:"timeLastDiscovered"` + + Metadata *LogAnalyticsMetadataCollection `mandatory:"false" json:"metadata"` + // The Boolean flag to indicate if logs are collected for an entity for log analytics usage. AreLogsCollected *bool `mandatory:"false" json:"areLogsCollected"` diff --git a/loganalytics/log_analytics_lookup.go b/loganalytics/log_analytics_lookup.go index 4371504e42..437d52bdbd 100644 --- a/loganalytics/log_analytics_lookup.go +++ b/loganalytics/log_analytics_lookup.go @@ -39,7 +39,7 @@ type LogAnalyticsLookup struct { // The lookup reference as a string. LookupReferenceString *string `mandatory:"false" json:"lookupReferenceString"` - // The lookup type. Valid values are LOOKUP or DICTIONARY. + // The lookup type. Valid values are Lookup, Dictionary or Module. Type LogAnalyticsLookupTypeEnum `mandatory:"false" json:"type,omitempty"` // The lookup name. @@ -94,16 +94,19 @@ type LogAnalyticsLookupTypeEnum string const ( LogAnalyticsLookupTypeLookup LogAnalyticsLookupTypeEnum = "Lookup" LogAnalyticsLookupTypeDictionary LogAnalyticsLookupTypeEnum = "Dictionary" + LogAnalyticsLookupTypeModule LogAnalyticsLookupTypeEnum = "Module" ) var mappingLogAnalyticsLookupTypeEnum = map[string]LogAnalyticsLookupTypeEnum{ "Lookup": LogAnalyticsLookupTypeLookup, "Dictionary": LogAnalyticsLookupTypeDictionary, + "Module": LogAnalyticsLookupTypeModule, } var mappingLogAnalyticsLookupTypeEnumLowerCase = map[string]LogAnalyticsLookupTypeEnum{ "lookup": LogAnalyticsLookupTypeLookup, "dictionary": LogAnalyticsLookupTypeDictionary, + "module": LogAnalyticsLookupTypeModule, } // GetLogAnalyticsLookupTypeEnumValues Enumerates the set of values for LogAnalyticsLookupTypeEnum @@ -120,6 +123,7 @@ func GetLogAnalyticsLookupTypeEnumStringValues() []string { return []string{ "Lookup", "Dictionary", + "Module", } } diff --git a/loganalytics/log_analytics_metadata.go b/loganalytics/log_analytics_metadata.go new file mode 100644 index 0000000000..c5b26ca51e --- /dev/null +++ b/loganalytics/log_analytics_metadata.go @@ -0,0 +1,45 @@ +// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LogAnalyticsMetadata Entity metadata information. +type LogAnalyticsMetadata struct { + + // The metadata name. + Name *string `mandatory:"false" json:"name"` + + // The metadata value. + Value *string `mandatory:"false" json:"value"` + + // The metadata type. + Type *string `mandatory:"false" json:"type"` +} + +func (m LogAnalyticsMetadata) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LogAnalyticsMetadata) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/loganalytics/log_analytics_metadata_collection.go b/loganalytics/log_analytics_metadata_collection.go new file mode 100644 index 0000000000..e63a4ca19f --- /dev/null +++ b/loganalytics/log_analytics_metadata_collection.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LogAnalyticsMetadataCollection A collection of entity metadata information. +type LogAnalyticsMetadataCollection struct { + + // An array of entity metadata. + Items []LogAnalyticsMetadata `mandatory:"false" json:"items"` +} + +func (m LogAnalyticsMetadataCollection) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LogAnalyticsMetadataCollection) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/loganalytics/log_analytics_metadata_details.go b/loganalytics/log_analytics_metadata_details.go new file mode 100644 index 0000000000..e52654034f --- /dev/null +++ b/loganalytics/log_analytics_metadata_details.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LogAnalyticsMetadataDetails Details of Entity Metadata. +type LogAnalyticsMetadataDetails struct { + + // An array of entity metadata details. + Items []LogAnalyticsMetadata `mandatory:"false" json:"items"` +} + +func (m LogAnalyticsMetadataDetails) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LogAnalyticsMetadataDetails) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/loganalytics/log_analytics_metadata_summary.go b/loganalytics/log_analytics_metadata_summary.go new file mode 100644 index 0000000000..37819e549c --- /dev/null +++ b/loganalytics/log_analytics_metadata_summary.go @@ -0,0 +1,39 @@ +// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// LogAnalyticsMetadataSummary Details of entity metadata information. +type LogAnalyticsMetadataSummary struct { + + // An array of entity metadata. + Items []LogAnalyticsMetadata `mandatory:"false" json:"items"` +} + +func (m LogAnalyticsMetadataSummary) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m LogAnalyticsMetadataSummary) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} diff --git a/loganalytics/log_analytics_object_collection_rule.go b/loganalytics/log_analytics_object_collection_rule.go index 2772dc132e..a579c7b62e 100644 --- a/loganalytics/log_analytics_object_collection_rule.go +++ b/loganalytics/log_analytics_object_collection_rule.go @@ -107,6 +107,12 @@ type LogAnalyticsObjectCollectionRule struct { // For more information on filters, see Event Filters (https://docs.oracle.com/en-us/iaas/Content/Events/Concepts/filterevents.htm). ObjectNameFilters []string `mandatory:"false" json:"objectNameFilters"` + // Type of files/objects in this object collection rule. + LogType LogTypesEnum `mandatory:"false" json:"logType,omitempty"` + + // Flag to allow historic collection if poll period overlaps with existing ACTIVE collection rule + IsForceHistoricCollection *bool `mandatory:"false" json:"isForceHistoricCollection"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"foo-namespace": {"bar-key": "value"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -135,6 +141,9 @@ func (m LogAnalyticsObjectCollectionRule) ValidateEnumValue() (bool, error) { if _, ok := GetMappingLogSetKeyTypesEnum(string(m.LogSetKey)); !ok && m.LogSetKey != "" { errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LogSetKey: %s. Supported values are: %s.", m.LogSetKey, strings.Join(GetLogSetKeyTypesEnumStringValues(), ","))) } + if _, ok := GetMappingLogTypesEnum(string(m.LogType)); !ok && m.LogType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LogType: %s. Supported values are: %s.", m.LogType, strings.Join(GetLogTypesEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } diff --git a/loganalytics/log_analytics_object_collection_rule_summary.go b/loganalytics/log_analytics_object_collection_rule_summary.go index f04f2d855f..38adc1ceae 100644 --- a/loganalytics/log_analytics_object_collection_rule_summary.go +++ b/loganalytics/log_analytics_object_collection_rule_summary.go @@ -60,6 +60,9 @@ type LogAnalyticsObjectCollectionRuleSummary struct { // For more information on filters, see Event Filters (https://docs.oracle.com/en-us/iaas/Content/Events/Concepts/filterevents.htm). ObjectNameFilters []string `mandatory:"false" json:"objectNameFilters"` + // Type of files/objects in this object collection rule. + LogType LogTypesEnum `mandatory:"false" json:"logType,omitempty"` + // Defined tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"foo-namespace": {"bar-key": "value"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` @@ -85,6 +88,9 @@ func (m LogAnalyticsObjectCollectionRuleSummary) ValidateEnumValue() (bool, erro errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LifecycleState: %s. Supported values are: %s.", m.LifecycleState, strings.Join(GetObjectCollectionRuleLifecycleStatesEnumStringValues(), ","))) } + if _, ok := GetMappingLogTypesEnum(string(m.LogType)); !ok && m.LogType != "" { + errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for LogType: %s. Supported values are: %s.", m.LogType, strings.Join(GetLogTypesEnumStringValues(), ","))) + } if len(errMessage) > 0 { return true, fmt.Errorf(strings.Join(errMessage, "\n")) } diff --git a/loganalytics/log_analytics_parser.go b/loganalytics/log_analytics_parser.go index ca01ae70a3..28cb5190b7 100644 --- a/loganalytics/log_analytics_parser.go +++ b/loganalytics/log_analytics_parser.go @@ -117,6 +117,15 @@ type LogAnalyticsParser struct { // An array of categories assigned to this parser. // The isSystem flag denotes if each category assignment is user-created or Oracle-defined. Categories []LogAnalyticsCategory `mandatory:"false" json:"categories"` + + // A flag indicating whether the parser is positionally aware. + IsPositionAware *bool `mandatory:"false" json:"isPositionAware"` + + // A list of sources that depend on the parser, either directly or indirectly. + DependentSources []DependentSource `mandatory:"false" json:"dependentSources"` + + // A list of sub parsers used by this parser. + DependentParsers []DependentParser `mandatory:"false" json:"dependentParsers"` } func (m LogAnalyticsParser) String() string { diff --git a/loganalytics/log_analytics_parser_summary.go b/loganalytics/log_analytics_parser_summary.go index 851e90e891..d8db4d6a9c 100644 --- a/loganalytics/log_analytics_parser_summary.go +++ b/loganalytics/log_analytics_parser_summary.go @@ -113,6 +113,9 @@ type LogAnalyticsParserSummary struct { // A flag indicating whether the XML parser should consider the namespace(s) while processing the log data. IsNamespaceAware *bool `mandatory:"false" json:"isNamespaceAware"` + + // A flag indicating whether the parser is positionally aware. + IsPositionAware *bool `mandatory:"false" json:"isPositionAware"` } func (m LogAnalyticsParserSummary) String() string { diff --git a/loganalytics/log_types.go b/loganalytics/log_types.go new file mode 100644 index 0000000000..6a82b5060d --- /dev/null +++ b/loganalytics/log_types.go @@ -0,0 +1,56 @@ +// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "strings" +) + +// LogTypesEnum Enum with underlying type: string +type LogTypesEnum string + +// Set of constants representing the allowable values for LogTypesEnum +const ( + LogTypesLog LogTypesEnum = "LOG" + LogTypesLogEvents LogTypesEnum = "LOG_EVENTS" +) + +var mappingLogTypesEnum = map[string]LogTypesEnum{ + "LOG": LogTypesLog, + "LOG_EVENTS": LogTypesLogEvents, +} + +var mappingLogTypesEnumLowerCase = map[string]LogTypesEnum{ + "log": LogTypesLog, + "log_events": LogTypesLogEvents, +} + +// GetLogTypesEnumValues Enumerates the set of values for LogTypesEnum +func GetLogTypesEnumValues() []LogTypesEnum { + values := make([]LogTypesEnum, 0) + for _, v := range mappingLogTypesEnum { + values = append(values, v) + } + return values +} + +// GetLogTypesEnumStringValues Enumerates the set of values in String for LogTypesEnum +func GetLogTypesEnumStringValues() []string { + return []string{ + "LOG", + "LOG_EVENTS", + } +} + +// GetMappingLogTypesEnum performs case Insensitive comparison on enum value and return the desired enum +func GetMappingLogTypesEnum(val string) (LogTypesEnum, bool) { + enum, ok := mappingLogTypesEnumLowerCase[strings.ToLower(val)] + return enum, ok +} diff --git a/loganalytics/overlapping_recall_summary.go b/loganalytics/overlapping_recall_summary.go index 56a8720a2b..14514e8f98 100644 --- a/loganalytics/overlapping_recall_summary.go +++ b/loganalytics/overlapping_recall_summary.go @@ -41,6 +41,12 @@ type OverlappingRecallSummary struct { // This is the user who initiated the recall request CreatedBy *string `mandatory:"true" json:"createdBy"` + + // This is the id of the associated recalled data collection + CollectionId *int64 `mandatory:"true" json:"collectionId"` + + // This is the id for the recall request + RecallId *int64 `mandatory:"true" json:"recallId"` } func (m OverlappingRecallSummary) String() string { diff --git a/loganalytics/parse_query_output.go b/loganalytics/parse_query_output.go index 1d1e142338..49395ca714 100644 --- a/loganalytics/parse_query_output.go +++ b/loganalytics/parse_query_output.go @@ -31,6 +31,8 @@ type ParseQueryOutput struct { // Operation response time. ResponseTimeInMs *int64 `mandatory:"false" json:"responseTimeInMs"` + TimeFilter *TimeRange `mandatory:"false" json:"timeFilter"` + // List of querylanguage command descriptors, describing the specfied query string. Commands []AbstractCommandDescriptor `mandatory:"false" json:"commands"` } @@ -56,6 +58,7 @@ func (m *ParseQueryOutput) UnmarshalJSON(data []byte) (e error) { model := struct { Columns []abstractcolumn `json:"columns"` ResponseTimeInMs *int64 `json:"responseTimeInMs"` + TimeFilter *TimeRange `json:"timeFilter"` Commands []abstractcommanddescriptor `json:"commands"` DisplayQueryString *string `json:"displayQueryString"` InternalQueryString *string `json:"internalQueryString"` @@ -80,6 +83,8 @@ func (m *ParseQueryOutput) UnmarshalJSON(data []byte) (e error) { } m.ResponseTimeInMs = model.ResponseTimeInMs + m.TimeFilter = model.TimeFilter + m.Commands = make([]AbstractCommandDescriptor, len(model.Commands)) for i, n := range model.Commands { nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) diff --git a/loganalytics/recall_archived_data_details.go b/loganalytics/recall_archived_data_details.go index 8ad88b0e48..862d2fac49 100644 --- a/loganalytics/recall_archived_data_details.go +++ b/loganalytics/recall_archived_data_details.go @@ -41,6 +41,9 @@ type RecallArchivedDataDetails struct { // This indicates if only new data has to be recalled in this recall request IsRecallNewDataOnly *bool `mandatory:"false" json:"isRecallNewDataOnly"` + + // This indicates if user checked system recommended time range + IsUseRecommendedDataSet *bool `mandatory:"false" json:"isUseRecommendedDataSet"` } func (m RecallArchivedDataDetails) String() string { diff --git a/loganalytics/recalled_data.go b/loganalytics/recalled_data.go index b0e4fcd8a2..6134981e61 100644 --- a/loganalytics/recalled_data.go +++ b/loganalytics/recalled_data.go @@ -51,6 +51,15 @@ type RecalledData struct { // This is the user who initiated the recall request CreatedBy *string `mandatory:"true" json:"createdBy"` + + // This is the id for the recalled data collection + CollectionId *int64 `mandatory:"true" json:"collectionId"` + + // This is the recalled date start time + TimeRecalledDataStarted *common.SDKTime `mandatory:"true" json:"timeRecalledDataStarted"` + + // This is the recalled data end time + TimeRecalledDataEnded *common.SDKTime `mandatory:"true" json:"timeRecalledDataEnded"` } func (m RecalledData) String() string { diff --git a/loganalytics/register_lookup_request_response.go b/loganalytics/register_lookup_request_response.go index da0f9a8a70..9927a1f6ca 100644 --- a/loganalytics/register_lookup_request_response.go +++ b/loganalytics/register_lookup_request_response.go @@ -22,7 +22,7 @@ type RegisterLookupRequest struct { // The Logging Analytics namespace used for the request. NamespaceName *string `mandatory:"true" contributesTo:"path" name:"namespaceName"` - // The lookup type. Valid values are Lookup or Dictionary. + // The lookup type. Valid values are Lookup, Dictionary or Module. Type RegisterLookupTypeEnum `mandatory:"true" contributesTo:"query" name:"type" omitEmpty:"true"` // file containing data for lookup creation @@ -135,16 +135,19 @@ type RegisterLookupTypeEnum string const ( RegisterLookupTypeLookup RegisterLookupTypeEnum = "Lookup" RegisterLookupTypeDictionary RegisterLookupTypeEnum = "Dictionary" + RegisterLookupTypeModule RegisterLookupTypeEnum = "Module" ) var mappingRegisterLookupTypeEnum = map[string]RegisterLookupTypeEnum{ "Lookup": RegisterLookupTypeLookup, "Dictionary": RegisterLookupTypeDictionary, + "Module": RegisterLookupTypeModule, } var mappingRegisterLookupTypeEnumLowerCase = map[string]RegisterLookupTypeEnum{ "lookup": RegisterLookupTypeLookup, "dictionary": RegisterLookupTypeDictionary, + "module": RegisterLookupTypeModule, } // GetRegisterLookupTypeEnumValues Enumerates the set of values for RegisterLookupTypeEnum @@ -161,6 +164,7 @@ func GetRegisterLookupTypeEnumStringValues() []string { return []string{ "Lookup", "Dictionary", + "Module", } } diff --git a/loganalytics/release_recalled_data_details.go b/loganalytics/release_recalled_data_details.go index 6774357422..2693520a3a 100644 --- a/loganalytics/release_recalled_data_details.go +++ b/loganalytics/release_recalled_data_details.go @@ -29,6 +29,10 @@ type ReleaseRecalledDataDetails struct { // This is the type of the recalled data to be released DataType StorageDataTypeEnum `mandatory:"false" json:"dataType,omitempty"` + + // This is the id for the recalled data collection to be released. + // If specified, only this collection will be released + CollectionId *int64 `mandatory:"false" json:"collectionId"` } func (m ReleaseRecalledDataDetails) String() string { diff --git a/loganalytics/rule.go b/loganalytics/rule.go index 82a61b8989..e59ce51623 100644 --- a/loganalytics/rule.go +++ b/loganalytics/rule.go @@ -51,6 +51,9 @@ type Rule struct { // The current state of the logging analytics rule. LifecycleState ConfigLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + // The target service. + TargetService *string `mandatory:"false" json:"targetService"` + // A flag indicating whether or not the ingest time rule or scheduled task is enabled. IsEnabled *bool `mandatory:"false" json:"isEnabled"` diff --git a/loganalytics/rule_summary.go b/loganalytics/rule_summary.go index d1d8d26671..fd8e0d701d 100644 --- a/loganalytics/rule_summary.go +++ b/loganalytics/rule_summary.go @@ -51,6 +51,9 @@ type RuleSummary struct { // The current state of the logging analytics rule. LifecycleState ConfigLifecycleStateEnum `mandatory:"false" json:"lifecycleState,omitempty"` + // The target service. + TargetService *string `mandatory:"false" json:"targetService"` + // A flag indicating whether or not the ingest time rule or scheduled task is enabled. IsEnabled *bool `mandatory:"false" json:"isEnabled"` diff --git a/loganalytics/scheduled_task_summary.go b/loganalytics/scheduled_task_summary.go index 79aee9cb24..be8b2f0293 100644 --- a/loganalytics/scheduled_task_summary.go +++ b/loganalytics/scheduled_task_summary.go @@ -42,6 +42,9 @@ type ScheduledTaskSummary struct { // No trailing spaces allowed. DisplayName *string `mandatory:"true" json:"displayName"` + // Target Service + TargetService *string `mandatory:"false" json:"targetService"` + // Status of the scheduled task. TaskStatus ScheduledTaskSummaryTaskStatusEnum `mandatory:"false" json:"taskStatus,omitempty"` diff --git a/loganalytics/sequence_command_descriptor.go b/loganalytics/sequence_command_descriptor.go new file mode 100644 index 0000000000..bbd594e190 --- /dev/null +++ b/loganalytics/sequence_command_descriptor.go @@ -0,0 +1,150 @@ +// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// LogAnalytics API +// +// The LogAnalytics API for the LogAnalytics service. +// + +package loganalytics + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// SequenceCommandDescriptor Command descriptor for querylanguage SEQUENCE command. +type SequenceCommandDescriptor struct { + + // Command fragment display string from user specified query string formatted by query builder. + DisplayQueryString *string `mandatory:"true" json:"displayQueryString"` + + // Command fragment internal string from user specified query string formatted by query builder. + InternalQueryString *string `mandatory:"true" json:"internalQueryString"` + + // querylanguage command designation for example; reporting vs filtering + Category *string `mandatory:"false" json:"category"` + + // Fields referenced in command fragment from user specified query string. + ReferencedFields []AbstractField `mandatory:"false" json:"referencedFields"` + + // Fields declared in command fragment from user specified query string. + DeclaredFields []AbstractField `mandatory:"false" json:"declaredFields"` + + // Field denoting if this is a hidden command that is not shown in the query string. + IsHidden *bool `mandatory:"false" json:"isHidden"` +} + +// GetDisplayQueryString returns DisplayQueryString +func (m SequenceCommandDescriptor) GetDisplayQueryString() *string { + return m.DisplayQueryString +} + +// GetInternalQueryString returns InternalQueryString +func (m SequenceCommandDescriptor) GetInternalQueryString() *string { + return m.InternalQueryString +} + +// GetCategory returns Category +func (m SequenceCommandDescriptor) GetCategory() *string { + return m.Category +} + +// GetReferencedFields returns ReferencedFields +func (m SequenceCommandDescriptor) GetReferencedFields() []AbstractField { + return m.ReferencedFields +} + +// GetDeclaredFields returns DeclaredFields +func (m SequenceCommandDescriptor) GetDeclaredFields() []AbstractField { + return m.DeclaredFields +} + +// GetIsHidden returns IsHidden +func (m SequenceCommandDescriptor) GetIsHidden() *bool { + return m.IsHidden +} + +func (m SequenceCommandDescriptor) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m SequenceCommandDescriptor) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m SequenceCommandDescriptor) MarshalJSON() (buff []byte, e error) { + type MarshalTypeSequenceCommandDescriptor SequenceCommandDescriptor + s := struct { + DiscriminatorParam string `json:"name"` + MarshalTypeSequenceCommandDescriptor + }{ + "SEQUENCE", + (MarshalTypeSequenceCommandDescriptor)(m), + } + + return json.Marshal(&s) +} + +// UnmarshalJSON unmarshals from json +func (m *SequenceCommandDescriptor) UnmarshalJSON(data []byte) (e error) { + model := struct { + Category *string `json:"category"` + ReferencedFields []abstractfield `json:"referencedFields"` + DeclaredFields []abstractfield `json:"declaredFields"` + IsHidden *bool `json:"isHidden"` + DisplayQueryString *string `json:"displayQueryString"` + InternalQueryString *string `json:"internalQueryString"` + }{} + + e = json.Unmarshal(data, &model) + if e != nil { + return + } + var nn interface{} + m.Category = model.Category + + m.ReferencedFields = make([]AbstractField, len(model.ReferencedFields)) + for i, n := range model.ReferencedFields { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.ReferencedFields[i] = nn.(AbstractField) + } else { + m.ReferencedFields[i] = nil + } + } + m.DeclaredFields = make([]AbstractField, len(model.DeclaredFields)) + for i, n := range model.DeclaredFields { + nn, e = n.UnmarshalPolymorphicJSON(n.JsonData) + if e != nil { + return e + } + if nn != nil { + m.DeclaredFields[i] = nn.(AbstractField) + } else { + m.DeclaredFields[i] = nil + } + } + m.IsHidden = model.IsHidden + + m.DisplayQueryString = model.DisplayQueryString + + m.InternalQueryString = model.InternalQueryString + + return +} diff --git a/loganalytics/storage_work_request.go b/loganalytics/storage_work_request.go index 1665baf66e..6e3c04965f 100644 --- a/loganalytics/storage_work_request.go +++ b/loganalytics/storage_work_request.go @@ -92,6 +92,9 @@ type StorageWorkRequest struct { // This is the flag to indicate if only new data has to be recalled in this work request IsRecallNewDataOnly *bool `mandatory:"false" json:"isRecallNewDataOnly"` + + // This indicates if user checked system recommended time range + IsUseRecommendedDataSet *bool `mandatory:"false" json:"isUseRecommendedDataSet"` } func (m StorageWorkRequest) String() string { diff --git a/loganalytics/storage_work_request_summary.go b/loganalytics/storage_work_request_summary.go index fcbbd4ef8a..14ced69e56 100644 --- a/loganalytics/storage_work_request_summary.go +++ b/loganalytics/storage_work_request_summary.go @@ -92,6 +92,9 @@ type StorageWorkRequestSummary struct { // This is the flag to indicate if only new data has to be recalled in this work request IsRecallNewDataOnly *bool `mandatory:"false" json:"isRecallNewDataOnly"` + + // This indicates if user checked system recommended time range + IsUseRecommendedDataSet *bool `mandatory:"false" json:"isUseRecommendedDataSet"` } func (m StorageWorkRequestSummary) String() string { diff --git a/loganalytics/table_column.go b/loganalytics/table_column.go index d155585ce7..e36eb4125f 100644 --- a/loganalytics/table_column.go +++ b/loganalytics/table_column.go @@ -40,6 +40,9 @@ type TableColumn struct { // Identifies if this column can be used as an expression parameter in any command that accepts querylanguage expressions. IsEvaluable *bool `mandatory:"false" json:"isEvaluable"` + // Identifies if this column should be hidden by default but can be displayed in the UI on demand. + IsHidden *bool `mandatory:"false" json:"isHidden"` + // Same as displayName unless column renamed in which case this will hold the original display name for the column. OriginalDisplayName *string `mandatory:"false" json:"originalDisplayName"` @@ -52,6 +55,9 @@ type TableColumn struct { // Results data of the table. Result []map[string]interface{} `mandatory:"false" json:"result"` + // True if query did not complete processing all data. + ArePartialResults *bool `mandatory:"false" json:"arePartialResults"` + // Subsystem column belongs to. SubSystem SubSystemNameEnum `mandatory:"false" json:"subSystem,omitempty"` @@ -99,6 +105,11 @@ func (m TableColumn) GetIsEvaluable() *bool { return m.IsEvaluable } +// GetIsHidden returns IsHidden +func (m TableColumn) GetIsHidden() *bool { + return m.IsHidden +} + // GetValueType returns ValueType func (m TableColumn) GetValueType() ValueTypeEnum { return m.ValueType @@ -161,11 +172,13 @@ func (m *TableColumn) UnmarshalJSON(data []byte) (e error) { IsCaseSensitive *bool `json:"isCaseSensitive"` IsGroupable *bool `json:"isGroupable"` IsEvaluable *bool `json:"isEvaluable"` + IsHidden *bool `json:"isHidden"` ValueType ValueTypeEnum `json:"valueType"` OriginalDisplayName *string `json:"originalDisplayName"` InternalName *string `json:"internalName"` Columns []abstractcolumn `json:"columns"` Result []map[string]interface{} `json:"result"` + ArePartialResults *bool `json:"arePartialResults"` }{} e = json.Unmarshal(data, &model) @@ -189,6 +202,8 @@ func (m *TableColumn) UnmarshalJSON(data []byte) (e error) { m.IsEvaluable = model.IsEvaluable + m.IsHidden = model.IsHidden + m.ValueType = model.ValueType m.OriginalDisplayName = model.OriginalDisplayName @@ -209,5 +224,7 @@ func (m *TableColumn) UnmarshalJSON(data []byte) (e error) { } m.Result = make([]map[string]interface{}, len(model.Result)) copy(m.Result, model.Result) + m.ArePartialResults = model.ArePartialResults + return } diff --git a/loganalytics/test_parser_payload_details.go b/loganalytics/test_parser_payload_details.go index 79b28f41ca..b124825dd3 100644 --- a/loganalytics/test_parser_payload_details.go +++ b/loganalytics/test_parser_payload_details.go @@ -98,6 +98,9 @@ type TestParserPayloadDetails struct { // A flag indicating whether the XML parser should consider the namespace(s) while processing the log data. IsNamespaceAware *bool `mandatory:"false" json:"isNamespaceAware"` + + // A flag indicating whether the parser is positionally aware. + IsPositionAware *bool `mandatory:"false" json:"isPositionAware"` } func (m TestParserPayloadDetails) String() string { diff --git a/loganalytics/time_cluster_column.go b/loganalytics/time_cluster_column.go index a6503a798a..40d6d99ccc 100644 --- a/loganalytics/time_cluster_column.go +++ b/loganalytics/time_cluster_column.go @@ -40,6 +40,9 @@ type TimeClusterColumn struct { // Identifies if this column can be used as an expression parameter in any command that accepts querylanguage expressions. IsEvaluable *bool `mandatory:"false" json:"isEvaluable"` + // Identifies if this column should be hidden by default but can be displayed in the UI on demand. + IsHidden *bool `mandatory:"false" json:"isHidden"` + // Same as displayName unless column renamed in which case this will hold the original display name for the column. OriginalDisplayName *string `mandatory:"false" json:"originalDisplayName"` @@ -108,6 +111,11 @@ func (m TimeClusterColumn) GetIsEvaluable() *bool { return m.IsEvaluable } +// GetIsHidden returns IsHidden +func (m TimeClusterColumn) GetIsHidden() *bool { + return m.IsHidden +} + // GetValueType returns ValueType func (m TimeClusterColumn) GetValueType() ValueTypeEnum { return m.ValueType @@ -170,6 +178,7 @@ func (m *TimeClusterColumn) UnmarshalJSON(data []byte) (e error) { IsCaseSensitive *bool `json:"isCaseSensitive"` IsGroupable *bool `json:"isGroupable"` IsEvaluable *bool `json:"isEvaluable"` + IsHidden *bool `json:"isHidden"` ValueType ValueTypeEnum `json:"valueType"` OriginalDisplayName *string `json:"originalDisplayName"` InternalName *string `json:"internalName"` @@ -201,6 +210,8 @@ func (m *TimeClusterColumn) UnmarshalJSON(data []byte) (e error) { m.IsEvaluable = model.IsEvaluable + m.IsHidden = model.IsHidden + m.ValueType = model.ValueType m.OriginalDisplayName = model.OriginalDisplayName diff --git a/loganalytics/time_cluster_data_column.go b/loganalytics/time_cluster_data_column.go index 5cba0f01b8..ef66b9e904 100644 --- a/loganalytics/time_cluster_data_column.go +++ b/loganalytics/time_cluster_data_column.go @@ -40,6 +40,9 @@ type TimeClusterDataColumn struct { // Identifies if this column can be used as an expression parameter in any command that accepts querylanguage expressions. IsEvaluable *bool `mandatory:"false" json:"isEvaluable"` + // Identifies if this column should be hidden by default but can be displayed in the UI on demand. + IsHidden *bool `mandatory:"false" json:"isHidden"` + // Same as displayName unless column renamed in which case this will hold the original display name for the column. OriginalDisplayName *string `mandatory:"false" json:"originalDisplayName"` @@ -99,6 +102,11 @@ func (m TimeClusterDataColumn) GetIsEvaluable() *bool { return m.IsEvaluable } +// GetIsHidden returns IsHidden +func (m TimeClusterDataColumn) GetIsHidden() *bool { + return m.IsHidden +} + // GetValueType returns ValueType func (m TimeClusterDataColumn) GetValueType() ValueTypeEnum { return m.ValueType @@ -161,6 +169,7 @@ func (m *TimeClusterDataColumn) UnmarshalJSON(data []byte) (e error) { IsCaseSensitive *bool `json:"isCaseSensitive"` IsGroupable *bool `json:"isGroupable"` IsEvaluable *bool `json:"isEvaluable"` + IsHidden *bool `json:"isHidden"` ValueType ValueTypeEnum `json:"valueType"` OriginalDisplayName *string `json:"originalDisplayName"` InternalName *string `json:"internalName"` @@ -189,6 +198,8 @@ func (m *TimeClusterDataColumn) UnmarshalJSON(data []byte) (e error) { m.IsEvaluable = model.IsEvaluable + m.IsHidden = model.IsHidden + m.ValueType = model.ValueType m.OriginalDisplayName = model.OriginalDisplayName diff --git a/loganalytics/time_column.go b/loganalytics/time_column.go index a587111e91..5decbd8d72 100644 --- a/loganalytics/time_column.go +++ b/loganalytics/time_column.go @@ -40,6 +40,9 @@ type TimeColumn struct { // Identifies if this column can be used as an expression parameter in any command that accepts querylanguage expressions. IsEvaluable *bool `mandatory:"false" json:"isEvaluable"` + // Identifies if this column should be hidden by default but can be displayed in the UI on demand. + IsHidden *bool `mandatory:"false" json:"isHidden"` + // Same as displayName unless column renamed in which case this will hold the original display name for the column. OriginalDisplayName *string `mandatory:"false" json:"originalDisplayName"` @@ -99,6 +102,11 @@ func (m TimeColumn) GetIsEvaluable() *bool { return m.IsEvaluable } +// GetIsHidden returns IsHidden +func (m TimeColumn) GetIsHidden() *bool { + return m.IsHidden +} + // GetValueType returns ValueType func (m TimeColumn) GetValueType() ValueTypeEnum { return m.ValueType diff --git a/loganalytics/time_stats_column.go b/loganalytics/time_stats_column.go index 36456dc8e6..5987bc434f 100644 --- a/loganalytics/time_stats_column.go +++ b/loganalytics/time_stats_column.go @@ -40,6 +40,9 @@ type TimeStatsColumn struct { // Identifies if this column can be used as an expression parameter in any command that accepts querylanguage expressions. IsEvaluable *bool `mandatory:"false" json:"isEvaluable"` + // Identifies if this column should be hidden by default but can be displayed in the UI on demand. + IsHidden *bool `mandatory:"false" json:"isHidden"` + // Same as displayName unless column renamed in which case this will hold the original display name for the column. OriginalDisplayName *string `mandatory:"false" json:"originalDisplayName"` @@ -102,6 +105,11 @@ func (m TimeStatsColumn) GetIsEvaluable() *bool { return m.IsEvaluable } +// GetIsHidden returns IsHidden +func (m TimeStatsColumn) GetIsHidden() *bool { + return m.IsHidden +} + // GetValueType returns ValueType func (m TimeStatsColumn) GetValueType() ValueTypeEnum { return m.ValueType diff --git a/loganalytics/time_stats_data_column.go b/loganalytics/time_stats_data_column.go index e35f66f485..de8d81cd49 100644 --- a/loganalytics/time_stats_data_column.go +++ b/loganalytics/time_stats_data_column.go @@ -40,6 +40,9 @@ type TimeStatsDataColumn struct { // Identifies if this column can be used as an expression parameter in any command that accepts querylanguage expressions. IsEvaluable *bool `mandatory:"false" json:"isEvaluable"` + // Identifies if this column should be hidden by default but can be displayed in the UI on demand. + IsHidden *bool `mandatory:"false" json:"isHidden"` + // Same as displayName unless column renamed in which case this will hold the original display name for the column. OriginalDisplayName *string `mandatory:"false" json:"originalDisplayName"` @@ -108,6 +111,11 @@ func (m TimeStatsDataColumn) GetIsEvaluable() *bool { return m.IsEvaluable } +// GetIsHidden returns IsHidden +func (m TimeStatsDataColumn) GetIsHidden() *bool { + return m.IsHidden +} + // GetValueType returns ValueType func (m TimeStatsDataColumn) GetValueType() ValueTypeEnum { return m.ValueType @@ -170,6 +178,7 @@ func (m *TimeStatsDataColumn) UnmarshalJSON(data []byte) (e error) { IsCaseSensitive *bool `json:"isCaseSensitive"` IsGroupable *bool `json:"isGroupable"` IsEvaluable *bool `json:"isEvaluable"` + IsHidden *bool `json:"isHidden"` ValueType ValueTypeEnum `json:"valueType"` OriginalDisplayName *string `json:"originalDisplayName"` InternalName *string `json:"internalName"` @@ -201,6 +210,8 @@ func (m *TimeStatsDataColumn) UnmarshalJSON(data []byte) (e error) { m.IsEvaluable = model.IsEvaluable + m.IsHidden = model.IsHidden + m.ValueType = model.ValueType m.OriginalDisplayName = model.OriginalDisplayName diff --git a/loganalytics/trend_column.go b/loganalytics/trend_column.go index 7c74a5ee29..6f00ca5a02 100644 --- a/loganalytics/trend_column.go +++ b/loganalytics/trend_column.go @@ -40,6 +40,9 @@ type TrendColumn struct { // Identifies if this column can be used as an expression parameter in any command that accepts querylanguage expressions. IsEvaluable *bool `mandatory:"false" json:"isEvaluable"` + // Identifies if this column should be hidden by default but can be displayed in the UI on demand. + IsHidden *bool `mandatory:"false" json:"isHidden"` + // Same as displayName unless column renamed in which case this will hold the original display name for the column. OriginalDisplayName *string `mandatory:"false" json:"originalDisplayName"` @@ -111,6 +114,11 @@ func (m TrendColumn) GetIsEvaluable() *bool { return m.IsEvaluable } +// GetIsHidden returns IsHidden +func (m TrendColumn) GetIsHidden() *bool { + return m.IsHidden +} + // GetValueType returns ValueType func (m TrendColumn) GetValueType() ValueTypeEnum { return m.ValueType diff --git a/loganalytics/update_log_analytics_entity_details.go b/loganalytics/update_log_analytics_entity_details.go index e7f3fd0d7e..449aa509df 100644 --- a/loganalytics/update_log_analytics_entity_details.go +++ b/loganalytics/update_log_analytics_entity_details.go @@ -42,6 +42,11 @@ type UpdateLogAnalyticsEntityDetails struct { // Defined tags for this resource. Each key is predefined and scoped to a namespace. // Example: `{"foo-namespace": {"bar-key": "value"}}` DefinedTags map[string]map[string]interface{} `mandatory:"false" json:"definedTags"` + + // The date and time the resource was last discovered, in the format defined by RFC3339. + TimeLastDiscovered *common.SDKTime `mandatory:"false" json:"timeLastDiscovered"` + + Metadata *LogAnalyticsMetadataDetails `mandatory:"false" json:"metadata"` } func (m UpdateLogAnalyticsEntityDetails) String() string { diff --git a/loganalytics/upload_discovery_data_request_response.go b/loganalytics/upload_discovery_data_request_response.go index 0afd99d81a..b5be0c0d75 100644 --- a/loganalytics/upload_discovery_data_request_response.go +++ b/loganalytics/upload_discovery_data_request_response.go @@ -34,6 +34,9 @@ type UploadDiscoveryDataRequest struct { // Discovery data type DiscoveryDataType UploadDiscoveryDataDiscoveryDataTypeEnum `mandatory:"false" contributesTo:"query" name:"discoveryDataType" omitEmpty:"true"` + // The log group OCID that gets mapped to the logs in the discovery data. + LogGroupId *string `mandatory:"false" contributesTo:"query" name:"logGroupId"` + // Identifies the type of request payload. PayloadType UploadDiscoveryDataPayloadTypeEnum `mandatory:"false" contributesTo:"query" name:"payloadType" omitEmpty:"true"` diff --git a/loganalytics/upload_log_events_file_request_response.go b/loganalytics/upload_log_events_file_request_response.go index 73bed64294..cc6feb4cce 100644 --- a/loganalytics/upload_log_events_file_request_response.go +++ b/loganalytics/upload_log_events_file_request_response.go @@ -51,6 +51,9 @@ type UploadLogEventsFileRequest struct { // might be rejected. OpcRetryToken *string `mandatory:"false" contributesTo:"header" name:"opc-retry-token"` + // Metadata key and value pairs separated by a semicolon. Example k1:v1;k2:v2;k3:v3 + OpcMetaProperties *string `mandatory:"false" contributesTo:"header" name:"opc-meta-properties"` + // A value of `100-continue` requests preliminary verification of the request method, path, and headers before the request body is sent. // If no error results from such verification, the server will send a 100 (Continue) interim response to indicate readiness for the request body. // The only allowed value for this parameter is "100-Continue" (case-insensitive). diff --git a/loganalytics/upsert_log_analytics_parser_details.go b/loganalytics/upsert_log_analytics_parser_details.go index b8175f22c4..2315003316 100644 --- a/loganalytics/upsert_log_analytics_parser_details.go +++ b/loganalytics/upsert_log_analytics_parser_details.go @@ -97,6 +97,9 @@ type UpsertLogAnalyticsParserDetails struct { // An array of categories to assign to the parser. Specifying the name attribute for each category would suffice. // Oracle-defined category assignments cannot be removed. Categories []LogAnalyticsCategory `mandatory:"false" json:"categories"` + + // A flag indicating whether the parser is positionally aware. + IsPositionAware *bool `mandatory:"false" json:"isPositionAware"` } func (m UpsertLogAnalyticsParserDetails) String() string { diff --git a/vnmonitoring/endpoint.go b/vnmonitoring/endpoint.go index f398d6a681..f2ae892a56 100644 --- a/vnmonitoring/endpoint.go +++ b/vnmonitoring/endpoint.go @@ -63,6 +63,10 @@ func (m *endpoint) UnmarshalPolymorphicJSON(data []byte) (interface{}, error) { mm := NetworkLoadBalancerEndpoint{} err = json.Unmarshal(data, &mm) return mm, err + case "ON_PREM": + mm := OnPremEndpoint{} + err = json.Unmarshal(data, &mm) + return mm, err case "LOAD_BALANCER": mm := LoadBalancerEndpoint{} err = json.Unmarshal(data, &mm) @@ -123,6 +127,7 @@ const ( EndpointTypeNetworkLoadBalancer EndpointTypeEnum = "NETWORK_LOAD_BALANCER" EndpointTypeNetworkLoadBalancerListener EndpointTypeEnum = "NETWORK_LOAD_BALANCER_LISTENER" EndpointTypeVlan EndpointTypeEnum = "VLAN" + EndpointTypeOnPrem EndpointTypeEnum = "ON_PREM" ) var mappingEndpointTypeEnum = map[string]EndpointTypeEnum{ @@ -135,6 +140,7 @@ var mappingEndpointTypeEnum = map[string]EndpointTypeEnum{ "NETWORK_LOAD_BALANCER": EndpointTypeNetworkLoadBalancer, "NETWORK_LOAD_BALANCER_LISTENER": EndpointTypeNetworkLoadBalancerListener, "VLAN": EndpointTypeVlan, + "ON_PREM": EndpointTypeOnPrem, } var mappingEndpointTypeEnumLowerCase = map[string]EndpointTypeEnum{ @@ -147,6 +153,7 @@ var mappingEndpointTypeEnumLowerCase = map[string]EndpointTypeEnum{ "network_load_balancer": EndpointTypeNetworkLoadBalancer, "network_load_balancer_listener": EndpointTypeNetworkLoadBalancerListener, "vlan": EndpointTypeVlan, + "on_prem": EndpointTypeOnPrem, } // GetEndpointTypeEnumValues Enumerates the set of values for EndpointTypeEnum @@ -170,6 +177,7 @@ func GetEndpointTypeEnumStringValues() []string { "NETWORK_LOAD_BALANCER", "NETWORK_LOAD_BALANCER_LISTENER", "VLAN", + "ON_PREM", } } diff --git a/vnmonitoring/on_prem_endpoint.go b/vnmonitoring/on_prem_endpoint.go new file mode 100644 index 0000000000..6f52f0965c --- /dev/null +++ b/vnmonitoring/on_prem_endpoint.go @@ -0,0 +1,55 @@ +// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved. +// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. +// Code generated. DO NOT EDIT. + +// Network Monitoring API +// +// Use the Network Monitoring API to troubleshoot routing and security issues for resources such as virtual cloud networks (VCNs) and compute instances. For more information, see the console +// documentation for the Network Path Analyzer (https://docs.cloud.oracle.com/iaas/Content/Network/Concepts/path_analyzer.htm) tool. +// + +package vnmonitoring + +import ( + "encoding/json" + "fmt" + "github.com/oracle/oci-go-sdk/v65/common" + "strings" +) + +// OnPremEndpoint Defines the details required for an ON_PREM-type `Endpoint`. +type OnPremEndpoint struct { + + // The IPv4 address of the `Endpoint`. + Address *string `mandatory:"true" json:"address"` +} + +func (m OnPremEndpoint) String() string { + return common.PointerString(m) +} + +// ValidateEnumValue returns an error when providing an unsupported enum value +// This function is being called during constructing API request process +// Not recommended for calling this function directly +func (m OnPremEndpoint) ValidateEnumValue() (bool, error) { + errMessage := []string{} + + if len(errMessage) > 0 { + return true, fmt.Errorf(strings.Join(errMessage, "\n")) + } + return false, nil +} + +// MarshalJSON marshals to json representation +func (m OnPremEndpoint) MarshalJSON() (buff []byte, e error) { + type MarshalTypeOnPremEndpoint OnPremEndpoint + s := struct { + DiscriminatorParam string `json:"type"` + MarshalTypeOnPremEndpoint + }{ + "ON_PREM", + (MarshalTypeOnPremEndpoint)(m), + } + + return json.Marshal(&s) +}