oci 2.5.10 → 2.5.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -1
- data/lib/oci.rb +3 -0
- data/lib/oci/budget/budget.rb +1 -0
- data/lib/oci/budget/budget_client.rb +21 -1
- data/lib/oci/budget/models/budget.rb +52 -2
- data/lib/oci/budget/models/budget_summary.rb +52 -2
- data/lib/oci/budget/models/create_budget_details.rb +55 -2
- data/lib/oci/budget/models/target_type.rb +10 -0
- data/lib/oci/core/blockstorage_client.rb +18 -6
- data/lib/oci/core/compute_client.rb +75 -0
- data/lib/oci/core/compute_management_client.rb +4 -1
- data/lib/oci/core/core.rb +12 -0
- data/lib/oci/core/models/add_security_rule_details.rb +2 -2
- data/lib/oci/core/models/boot_volume_backup.rb +19 -1
- data/lib/oci/core/models/change_boot_volume_backup_compartment_details.rb +2 -2
- data/lib/oci/core/models/change_boot_volume_compartment_details.rb +2 -2
- data/lib/oci/core/models/change_cpe_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_cross_connect_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_cross_connect_group_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_instance_compartment_details.rb +154 -0
- data/lib/oci/core/models/change_ip_sec_connection_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_remote_peering_connection_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_virtual_circuit_compartment_details.rb +155 -0
- data/lib/oci/core/models/change_volume_backup_compartment_details.rb +2 -2
- data/lib/oci/core/models/change_volume_compartment_details.rb +2 -2
- data/lib/oci/core/models/change_volume_group_backup_compartment_details.rb +2 -2
- data/lib/oci/core/models/change_volume_group_compartment_details.rb +2 -2
- data/lib/oci/core/models/copy_volume_backup_details.rb +27 -4
- data/lib/oci/core/models/create_cross_connect_details.rb +37 -1
- data/lib/oci/core/models/create_cross_connect_group_details.rb +40 -4
- data/lib/oci/core/models/create_instance_configuration_base.rb +250 -0
- data/lib/oci/core/models/create_instance_configuration_details.rb +15 -57
- data/lib/oci/core/models/create_instance_configuration_from_instance_details.rb +179 -0
- data/lib/oci/core/models/create_ipv6_details.rb +249 -0
- data/lib/oci/core/models/create_remote_peering_connection_details.rb +40 -4
- data/lib/oci/core/models/create_service_gateway_details.rb +23 -1
- data/lib/oci/core/models/create_subnet_details.rb +24 -1
- data/lib/oci/core/models/create_vcn_details.rb +56 -4
- data/lib/oci/core/models/create_virtual_circuit_details.rb +38 -2
- data/lib/oci/core/models/cross_connect.rb +37 -1
- data/lib/oci/core/models/cross_connect_group.rb +37 -1
- data/lib/oci/core/models/cross_connect_mapping.rb +50 -1
- data/lib/oci/core/models/egress_security_rule.rb +10 -7
- data/lib/oci/core/models/ingress_security_rule.rb +10 -7
- data/lib/oci/core/models/instance.rb +1 -0
- data/lib/oci/core/models/ipv6.rb +375 -0
- data/lib/oci/core/models/private_ip.rb +1 -0
- data/lib/oci/core/models/remote_peering_connection.rb +37 -1
- data/lib/oci/core/models/route_rule.rb +4 -1
- data/lib/oci/core/models/security_rule.rb +2 -2
- data/lib/oci/core/models/service_gateway.rb +18 -1
- data/lib/oci/core/models/subnet.rb +56 -1
- data/lib/oci/core/models/update_cross_connect_details.rb +37 -1
- data/lib/oci/core/models/update_cross_connect_group_details.rb +40 -4
- data/lib/oci/core/models/update_ipv6_details.rb +229 -0
- data/lib/oci/core/models/update_remote_peering_connection_details.rb +40 -4
- data/lib/oci/core/models/update_security_rule_details.rb +2 -2
- data/lib/oci/core/models/update_service_gateway_details.rb +18 -1
- data/lib/oci/core/models/update_virtual_circuit_details.rb +37 -1
- data/lib/oci/core/models/vcn.rb +42 -1
- data/lib/oci/core/models/virtual_circuit.rb +37 -1
- data/lib/oci/core/models/volume_backup.rb +19 -1
- data/lib/oci/core/virtual_network_client.rb +744 -10
- data/lib/oci/core/virtual_network_client_composite_operations.rb +119 -0
- data/lib/oci/database/database.rb +3 -0
- data/lib/oci/database/database_client.rb +320 -36
- data/lib/oci/database/models/autonomous_data_warehouse.rb +1 -0
- data/lib/oci/database/models/autonomous_data_warehouse_console_token_details.rb +164 -0
- data/lib/oci/database/models/autonomous_data_warehouse_summary.rb +1 -0
- data/lib/oci/database/models/autonomous_database.rb +5 -3
- data/lib/oci/database/models/autonomous_database_connection_urls.rb +1 -1
- data/lib/oci/database/models/autonomous_database_console_token_details.rb +163 -0
- data/lib/oci/database/models/autonomous_database_summary.rb +5 -3
- data/lib/oci/database/models/autonomous_db_preview_version_summary.rb +1 -3
- data/lib/oci/database/models/change_compartment_details.rb +155 -0
- data/lib/oci/database/models/create_autonomous_database_base.rb +5 -4
- data/lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb +2 -5
- data/lib/oci/database/models/create_database_details.rb +1 -1
- data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +2 -1
- data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +2 -1
- data/lib/oci/database/models/db_system.rb +2 -5
- data/lib/oci/database/models/db_system_summary.rb +2 -5
- data/lib/oci/database/models/launch_db_system_base.rb +3 -5
- data/lib/oci/database/models/maintenance_window.rb +2 -1
- data/lib/oci/database/models/update_autonomous_database_details.rb +5 -3
- data/lib/oci/database/models/update_db_system_details.rb +2 -5
- data/lib/oci/dns/dns.rb +2 -0
- data/lib/oci/dns/dns_client.rb +138 -1
- data/lib/oci/dns/models/change_steering_policy_compartment_details.rb +155 -0
- data/lib/oci/dns/models/change_zone_compartment_details.rb +155 -0
- data/lib/oci/events/events.rb +34 -0
- data/lib/oci/events/events_client.rb +537 -0
- data/lib/oci/events/events_client_composite_operations.rb +145 -0
- data/lib/oci/events/models/action.rb +275 -0
- data/lib/oci/events/models/action_details.rb +222 -0
- data/lib/oci/events/models/action_details_list.rb +150 -0
- data/lib/oci/events/models/action_list.rb +151 -0
- data/lib/oci/events/models/change_rule_compartment_details.rb +156 -0
- data/lib/oci/events/models/create_faa_s_action_details.rb +170 -0
- data/lib/oci/events/models/create_notification_service_action_details.rb +170 -0
- data/lib/oci/events/models/create_rule_details.rb +284 -0
- data/lib/oci/events/models/create_streaming_service_action_details.rb +170 -0
- data/lib/oci/events/models/faa_s_action.rb +178 -0
- data/lib/oci/events/models/notification_service_action.rb +179 -0
- data/lib/oci/events/models/rule.rb +372 -0
- data/lib/oci/events/models/rule_summary.rb +321 -0
- data/lib/oci/events/models/streaming_service_action.rb +178 -0
- data/lib/oci/events/models/update_rule_details.rb +266 -0
- data/lib/oci/events/util.rb +2 -0
- data/lib/oci/functions/functions.rb +29 -0
- data/lib/oci/functions/functions_invoke_client.rb +237 -0
- data/lib/oci/functions/functions_invoke_client_composite_operations.rb +24 -0
- data/lib/oci/functions/functions_management_client.rb +851 -0
- data/lib/oci/functions/functions_management_client_composite_operations.rb +266 -0
- data/lib/oci/functions/models/application.rb +322 -0
- data/lib/oci/functions/models/application_summary.rb +281 -0
- data/lib/oci/functions/models/change_application_compartment_details.rb +156 -0
- data/lib/oci/functions/models/create_application_details.rb +236 -0
- data/lib/oci/functions/models/create_function_details.rb +280 -0
- data/lib/oci/functions/models/function.rb +397 -0
- data/lib/oci/functions/models/function_summary.rb +381 -0
- data/lib/oci/functions/models/update_application_details.rb +191 -0
- data/lib/oci/functions/models/update_function_details.rb +250 -0
- data/lib/oci/functions/util.rb +2 -0
- data/lib/oci/healthchecks/health_checks_client.rb +147 -1
- data/lib/oci/healthchecks/healthchecks.rb +2 -0
- data/lib/oci/healthchecks/models/change_http_monitor_compartment_details.rb +155 -0
- data/lib/oci/healthchecks/models/change_ping_monitor_compartment_details.rb +155 -0
- data/lib/oci/healthchecks/models/create_http_monitor_details.rb +2 -1
- data/lib/oci/healthchecks/models/create_on_demand_http_probe_details.rb +2 -1
- data/lib/oci/healthchecks/models/create_on_demand_ping_probe_details.rb +2 -1
- data/lib/oci/healthchecks/models/create_ping_monitor_details.rb +2 -1
- data/lib/oci/healthchecks/models/http_monitor.rb +2 -0
- data/lib/oci/healthchecks/models/http_probe.rb +2 -0
- data/lib/oci/healthchecks/models/ping_monitor.rb +2 -0
- data/lib/oci/healthchecks/models/ping_probe.rb +2 -0
- data/lib/oci/healthchecks/models/update_http_monitor_details.rb +2 -0
- data/lib/oci/healthchecks/models/update_ping_monitor_details.rb +2 -0
- data/lib/oci/identity/identity.rb +1 -0
- data/lib/oci/identity/identity_client.rb +70 -0
- data/lib/oci/identity/identity_client_composite_operations.rb +50 -0
- data/lib/oci/identity/models/move_compartment_details.rb +155 -0
- data/lib/oci/key_management/key_management.rb +2 -0
- data/lib/oci/key_management/kms_management_client.rb +73 -0
- data/lib/oci/key_management/kms_vault_client.rb +73 -0
- data/lib/oci/key_management/models/change_key_compartment_details.rb +153 -0
- data/lib/oci/key_management/models/change_vault_compartment_details.rb +153 -0
- data/lib/oci/key_management/models/key.rb +1 -0
- data/lib/oci/key_management/models/key_summary.rb +1 -0
- data/lib/oci/key_management/models/vault.rb +1 -0
- data/lib/oci/key_management/models/vault_summary.rb +1 -0
- data/lib/oci/limits/limits.rb +23 -0
- data/lib/oci/limits/models/create_quota_details.rb +220 -0
- data/lib/oci/limits/models/quota.rb +287 -0
- data/lib/oci/limits/models/quota_summary.rb +273 -0
- data/lib/oci/limits/models/update_quota_details.rb +194 -0
- data/lib/oci/limits/quotas_client.rb +439 -0
- data/lib/oci/limits/quotas_client_composite_operations.rb +143 -0
- data/lib/oci/limits/util.rb +2 -0
- data/lib/oci/load_balancer/load_balancer.rb +9 -0
- data/lib/oci/load_balancer/load_balancer_client.rb +139 -0
- data/lib/oci/load_balancer/load_balancer_client_composite_operations.rb +50 -0
- data/lib/oci/load_balancer/models/allow_rule.rb +181 -0
- data/lib/oci/load_balancer/models/backend_set.rb +21 -4
- data/lib/oci/load_balancer/models/backend_set_details.rb +21 -4
- data/lib/oci/load_balancer/models/change_load_balancer_compartment_details.rb +156 -0
- data/lib/oci/load_balancer/models/control_access_using_http_methods_rule.rb +205 -0
- data/lib/oci/load_balancer/models/create_backend_set_details.rb +21 -4
- data/lib/oci/load_balancer/models/create_load_balancer_details.rb +37 -1
- data/lib/oci/load_balancer/models/lb_cookie_session_persistence_configuration_details.rb +334 -0
- data/lib/oci/load_balancer/models/listener_rule_summary.rb +166 -0
- data/lib/oci/load_balancer/models/rule.rb +4 -0
- data/lib/oci/load_balancer/models/rule_condition.rb +192 -0
- data/lib/oci/load_balancer/models/session_persistence_configuration_details.rb +6 -0
- data/lib/oci/load_balancer/models/source_ip_address_condition.rb +167 -0
- data/lib/oci/load_balancer/models/source_vcn_id_condition.rb +169 -0
- data/lib/oci/load_balancer/models/source_vcn_ip_address_condition.rb +171 -0
- data/lib/oci/load_balancer/models/update_backend_set_details.rb +21 -4
- data/lib/oci/monitoring/models/alarm.rb +4 -3
- data/lib/oci/monitoring/models/alarm_summary.rb +4 -3
- data/lib/oci/monitoring/models/change_alarm_compartment_details.rb +155 -0
- data/lib/oci/monitoring/models/create_alarm_details.rb +4 -3
- data/lib/oci/monitoring/models/datapoint.rb +1 -1
- data/lib/oci/monitoring/models/list_metrics_details.rb +4 -4
- data/lib/oci/monitoring/models/metric_data.rb +14 -0
- data/lib/oci/monitoring/models/metric_data_details.rb +6 -4
- data/lib/oci/monitoring/models/summarize_metrics_data_details.rb +3 -0
- data/lib/oci/monitoring/models/update_alarm_details.rb +4 -3
- data/lib/oci/monitoring/monitoring.rb +1 -0
- data/lib/oci/monitoring/monitoring_client.rb +140 -5
- data/lib/oci/ons/models/backoff_retry_policy.rb +2 -2
- data/lib/oci/ons/models/change_compartment_details.rb +156 -0
- data/lib/oci/ons/models/confirmation_result.rb +5 -6
- data/lib/oci/ons/models/create_topic_details.rb +1 -1
- data/lib/oci/ons/models/notification_topic.rb +2 -2
- data/lib/oci/ons/models/notification_topic_summary.rb +2 -2
- data/lib/oci/ons/models/subscription.rb +47 -4
- data/lib/oci/ons/models/subscription_summary.rb +19 -3
- data/lib/oci/ons/notification_control_plane_client.rb +95 -8
- data/lib/oci/ons/notification_data_plane_client.rb +109 -8
- data/lib/oci/ons/ons.rb +1 -0
- data/lib/oci/regions.rb +3 -0
- data/lib/oci/streaming/models/change_stream_compartment_details.rb +155 -0
- data/lib/oci/streaming/stream_admin_client.rb +58 -0
- data/lib/oci/streaming/streaming.rb +1 -0
- data/lib/oci/version.rb +1 -1
- data/lib/oci/waas/models/access_rule_criteria.rb +14 -2
- data/lib/oci/waas/models/change_certificate_compartment_details.rb +154 -0
- data/lib/oci/waas/models/change_waas_policy_compartment_details.rb +154 -0
- data/lib/oci/waas/models/create_certificate_details.rb +2 -2
- data/lib/oci/waas/models/protection_rule_exclusion.rb +16 -1
- data/lib/oci/waas/models/protection_settings.rb +9 -5
- data/lib/oci/waas/models/waas_policy.rb +1 -1
- data/lib/oci/waas/models/waf_config_details.rb +8 -8
- data/lib/oci/waas/models/waf_log.rb +40 -19
- data/lib/oci/waas/waas.rb +2 -0
- data/lib/oci/waas/waas_client.rb +155 -27
- data/lib/oci/work_requests/models/work_request.rb +14 -8
- data/lib/oci/work_requests/models/work_request_error.rb +3 -3
- data/lib/oci/work_requests/models/work_request_log_entry.rb +2 -2
- data/lib/oci/work_requests/models/work_request_resource.rb +9 -7
- data/lib/oci/work_requests/models/work_request_summary.rb +12 -6
- data/lib/oci/work_requests/work_request_client.rb +33 -16
- metadata +81 -2
|
@@ -4,7 +4,7 @@ require 'date'
|
|
|
4
4
|
|
|
5
5
|
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
6
6
|
module OCI
|
|
7
|
-
# The confirmation
|
|
7
|
+
# The confirmation details for the specified subscription.
|
|
8
8
|
#
|
|
9
9
|
class Ons::Models::ConfirmationResult
|
|
10
10
|
# **[Required]** The name of the subscribed topic.
|
|
@@ -12,27 +12,26 @@ module OCI
|
|
|
12
12
|
# @return [String]
|
|
13
13
|
attr_accessor :topic_name
|
|
14
14
|
|
|
15
|
-
# **[Required]** The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic
|
|
15
|
+
# **[Required]** The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic associated with the specified subscription.
|
|
16
16
|
#
|
|
17
17
|
# @return [String]
|
|
18
18
|
attr_accessor :topic_id
|
|
19
19
|
|
|
20
20
|
# **[Required]** The endpoint of the subscription. Valid values depend on the protocol.
|
|
21
21
|
# For EMAIL, only an email address is valid. For HTTPS, only a PagerDuty URL is valid. A URL cannot exceed 512 characters.
|
|
22
|
-
# Avoid entering confidential information.
|
|
23
22
|
#
|
|
24
23
|
# @return [String]
|
|
25
24
|
attr_accessor :endpoint
|
|
26
25
|
|
|
27
|
-
# **[Required]** The URL
|
|
26
|
+
# **[Required]** The URL for unsubscribing from the topic.
|
|
28
27
|
# @return [String]
|
|
29
28
|
attr_accessor :unsubscribe_url
|
|
30
29
|
|
|
31
|
-
# **[Required]**
|
|
30
|
+
# **[Required]** A human-readable string indicating the status of the subscription confirmation.
|
|
32
31
|
# @return [String]
|
|
33
32
|
attr_accessor :message
|
|
34
33
|
|
|
35
|
-
# The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription.
|
|
34
|
+
# The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription specified in the request.
|
|
36
35
|
# @return [String]
|
|
37
36
|
attr_accessor :subscription_id
|
|
38
37
|
|
|
@@ -7,7 +7,7 @@ module OCI
|
|
|
7
7
|
# The configuration details for creating the topic.
|
|
8
8
|
#
|
|
9
9
|
class Ons::Models::CreateTopicDetails
|
|
10
|
-
# **[Required]** The name of the topic being created. Avoid entering confidential information.
|
|
10
|
+
# **[Required]** The name of the topic being created. The topic name must be unique across the tenancy. Avoid entering confidential information.
|
|
11
11
|
# @return [String]
|
|
12
12
|
attr_accessor :name
|
|
13
13
|
|
|
@@ -15,7 +15,7 @@ module OCI
|
|
|
15
15
|
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
|
16
16
|
].freeze
|
|
17
17
|
|
|
18
|
-
# **[Required]** The name of the topic.
|
|
18
|
+
# **[Required]** The name of the topic.
|
|
19
19
|
# @return [String]
|
|
20
20
|
attr_accessor :name
|
|
21
21
|
|
|
@@ -34,7 +34,7 @@ module OCI
|
|
|
34
34
|
# @return [String]
|
|
35
35
|
attr_reader :lifecycle_state
|
|
36
36
|
|
|
37
|
-
# The description of the topic.
|
|
37
|
+
# The description of the topic.
|
|
38
38
|
# @return [String]
|
|
39
39
|
attr_accessor :description
|
|
40
40
|
|
|
@@ -15,7 +15,7 @@ module OCI
|
|
|
15
15
|
LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
|
|
16
16
|
].freeze
|
|
17
17
|
|
|
18
|
-
# **[Required]** The name of the topic.
|
|
18
|
+
# **[Required]** The name of the topic.
|
|
19
19
|
#
|
|
20
20
|
# @return [String]
|
|
21
21
|
attr_accessor :name
|
|
@@ -35,7 +35,7 @@ module OCI
|
|
|
35
35
|
# @return [String]
|
|
36
36
|
attr_reader :lifecycle_state
|
|
37
37
|
|
|
38
|
-
# The description of the topic.
|
|
38
|
+
# The description of the topic.
|
|
39
39
|
# @return [String]
|
|
40
40
|
attr_accessor :description
|
|
41
41
|
|
|
@@ -20,22 +20,35 @@ module OCI
|
|
|
20
20
|
# @return [String]
|
|
21
21
|
attr_accessor :id
|
|
22
22
|
|
|
23
|
-
# **[Required]** The
|
|
23
|
+
# **[Required]** The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the associated topic.
|
|
24
24
|
#
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :topic_id
|
|
27
|
+
|
|
25
28
|
# @return [String]
|
|
26
29
|
attr_accessor :protocol
|
|
27
30
|
|
|
28
31
|
# **[Required]** The endpoint of the subscription. Valid values depend on the protocol.
|
|
29
32
|
# For EMAIL, only an email address is valid. For HTTPS, only a PagerDuty URL is valid. A URL cannot exceed 512 characters.
|
|
30
|
-
# Avoid entering confidential information.
|
|
31
33
|
#
|
|
32
34
|
# @return [String]
|
|
33
35
|
attr_accessor :endpoint
|
|
34
36
|
|
|
35
|
-
# **[Required]** The lifecycle state of the subscription.
|
|
37
|
+
# **[Required]** The lifecycle state of the subscription. The status of a new subscription is PENDING; when confirmed, the subscription status changes to ACTIVE.
|
|
38
|
+
#
|
|
36
39
|
# @return [String]
|
|
37
40
|
attr_reader :lifecycle_state
|
|
38
41
|
|
|
42
|
+
# **[Required]** The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for the subscription.
|
|
43
|
+
#
|
|
44
|
+
# @return [String]
|
|
45
|
+
attr_accessor :compartment_id
|
|
46
|
+
|
|
47
|
+
# The time when this suscription was created.
|
|
48
|
+
#
|
|
49
|
+
# @return [Integer]
|
|
50
|
+
attr_accessor :created_time
|
|
51
|
+
|
|
39
52
|
# The delivery policy of the subscription. Stored as a JSON string.
|
|
40
53
|
# @return [String]
|
|
41
54
|
attr_accessor :deliver_policy
|
|
@@ -64,9 +77,12 @@ module OCI
|
|
|
64
77
|
{
|
|
65
78
|
# rubocop:disable Style/SymbolLiteral
|
|
66
79
|
'id': :'id',
|
|
80
|
+
'topic_id': :'topicId',
|
|
67
81
|
'protocol': :'protocol',
|
|
68
82
|
'endpoint': :'endpoint',
|
|
69
83
|
'lifecycle_state': :'lifecycleState',
|
|
84
|
+
'compartment_id': :'compartmentId',
|
|
85
|
+
'created_time': :'createdTime',
|
|
70
86
|
'deliver_policy': :'deliverPolicy',
|
|
71
87
|
'etag': :'etag',
|
|
72
88
|
'freeform_tags': :'freeformTags',
|
|
@@ -80,9 +96,12 @@ module OCI
|
|
|
80
96
|
{
|
|
81
97
|
# rubocop:disable Style/SymbolLiteral
|
|
82
98
|
'id': :'String',
|
|
99
|
+
'topic_id': :'String',
|
|
83
100
|
'protocol': :'String',
|
|
84
101
|
'endpoint': :'String',
|
|
85
102
|
'lifecycle_state': :'String',
|
|
103
|
+
'compartment_id': :'String',
|
|
104
|
+
'created_time': :'Integer',
|
|
86
105
|
'deliver_policy': :'String',
|
|
87
106
|
'etag': :'String',
|
|
88
107
|
'freeform_tags': :'Hash<String, String>',
|
|
@@ -98,9 +117,12 @@ module OCI
|
|
|
98
117
|
# Initializes the object
|
|
99
118
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
100
119
|
# @option attributes [String] :id The value to assign to the {#id} property
|
|
120
|
+
# @option attributes [String] :topic_id The value to assign to the {#topic_id} property
|
|
101
121
|
# @option attributes [String] :protocol The value to assign to the {#protocol} property
|
|
102
122
|
# @option attributes [String] :endpoint The value to assign to the {#endpoint} property
|
|
103
123
|
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
|
124
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
|
125
|
+
# @option attributes [Integer] :created_time The value to assign to the {#created_time} property
|
|
104
126
|
# @option attributes [String] :deliver_policy The value to assign to the {#deliver_policy} property
|
|
105
127
|
# @option attributes [String] :etag The value to assign to the {#etag} property
|
|
106
128
|
# @option attributes [Hash<String, String>] :freeform_tags The value to assign to the {#freeform_tags} property
|
|
@@ -113,6 +135,12 @@ module OCI
|
|
|
113
135
|
|
|
114
136
|
self.id = attributes[:'id'] if attributes[:'id']
|
|
115
137
|
|
|
138
|
+
self.topic_id = attributes[:'topicId'] if attributes[:'topicId']
|
|
139
|
+
|
|
140
|
+
raise 'You cannot provide both :topicId and :topic_id' if attributes.key?(:'topicId') && attributes.key?(:'topic_id')
|
|
141
|
+
|
|
142
|
+
self.topic_id = attributes[:'topic_id'] if attributes[:'topic_id']
|
|
143
|
+
|
|
116
144
|
self.protocol = attributes[:'protocol'] if attributes[:'protocol']
|
|
117
145
|
|
|
118
146
|
self.endpoint = attributes[:'endpoint'] if attributes[:'endpoint']
|
|
@@ -125,6 +153,18 @@ module OCI
|
|
|
125
153
|
self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
|
|
126
154
|
self.lifecycle_state = "PENDING" if lifecycle_state.nil? && !attributes.key?(:'lifecycleState') && !attributes.key?(:'lifecycle_state') # rubocop:disable Style/StringLiterals
|
|
127
155
|
|
|
156
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
|
157
|
+
|
|
158
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
|
159
|
+
|
|
160
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
|
161
|
+
|
|
162
|
+
self.created_time = attributes[:'createdTime'] if attributes[:'createdTime']
|
|
163
|
+
|
|
164
|
+
raise 'You cannot provide both :createdTime and :created_time' if attributes.key?(:'createdTime') && attributes.key?(:'created_time')
|
|
165
|
+
|
|
166
|
+
self.created_time = attributes[:'created_time'] if attributes[:'created_time']
|
|
167
|
+
|
|
128
168
|
self.deliver_policy = attributes[:'deliverPolicy'] if attributes[:'deliverPolicy']
|
|
129
169
|
|
|
130
170
|
raise 'You cannot provide both :deliverPolicy and :deliver_policy' if attributes.key?(:'deliverPolicy') && attributes.key?(:'deliver_policy')
|
|
@@ -171,9 +211,12 @@ module OCI
|
|
|
171
211
|
|
|
172
212
|
self.class == other.class &&
|
|
173
213
|
id == other.id &&
|
|
214
|
+
topic_id == other.topic_id &&
|
|
174
215
|
protocol == other.protocol &&
|
|
175
216
|
endpoint == other.endpoint &&
|
|
176
217
|
lifecycle_state == other.lifecycle_state &&
|
|
218
|
+
compartment_id == other.compartment_id &&
|
|
219
|
+
created_time == other.created_time &&
|
|
177
220
|
deliver_policy == other.deliver_policy &&
|
|
178
221
|
etag == other.etag &&
|
|
179
222
|
freeform_tags == other.freeform_tags &&
|
|
@@ -193,7 +236,7 @@ module OCI
|
|
|
193
236
|
# Calculates hash code according to all attributes.
|
|
194
237
|
# @return [Fixnum] Hash code
|
|
195
238
|
def hash
|
|
196
|
-
[id, protocol, endpoint, lifecycle_state, deliver_policy, etag, freeform_tags, defined_tags].hash
|
|
239
|
+
[id, topic_id, protocol, endpoint, lifecycle_state, compartment_id, created_time, deliver_policy, etag, freeform_tags, defined_tags].hash
|
|
197
240
|
end
|
|
198
241
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
199
242
|
|
|
@@ -32,16 +32,20 @@ module OCI
|
|
|
32
32
|
|
|
33
33
|
# **[Required]** The endpoint of the subscription. Valid values depend on the protocol.
|
|
34
34
|
# For EMAIL, only an email address is valid. For HTTPS, only a PagerDuty URL is valid. A URL cannot exceed 512 characters.
|
|
35
|
-
# Avoid entering confidential information.
|
|
36
35
|
#
|
|
37
36
|
# @return [String]
|
|
38
37
|
attr_accessor :endpoint
|
|
39
38
|
|
|
40
|
-
# **[Required]** The lifecycle state of the subscription.
|
|
39
|
+
# **[Required]** The lifecycle state of the subscription. The status of a new subscription is PENDING; when confirmed, the subscription status changes to ACTIVE.
|
|
41
40
|
#
|
|
42
41
|
# @return [String]
|
|
43
42
|
attr_reader :lifecycle_state
|
|
44
43
|
|
|
44
|
+
# **[Required]** The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment for the subscription.
|
|
45
|
+
#
|
|
46
|
+
# @return [String]
|
|
47
|
+
attr_accessor :compartment_id
|
|
48
|
+
|
|
45
49
|
# The time when this suscription was created.
|
|
46
50
|
# @return [Integer]
|
|
47
51
|
attr_accessor :created_time
|
|
@@ -77,6 +81,7 @@ module OCI
|
|
|
77
81
|
'protocol': :'protocol',
|
|
78
82
|
'endpoint': :'endpoint',
|
|
79
83
|
'lifecycle_state': :'lifecycleState',
|
|
84
|
+
'compartment_id': :'compartmentId',
|
|
80
85
|
'created_time': :'createdTime',
|
|
81
86
|
'delivery_policy': :'deliveryPolicy',
|
|
82
87
|
'etag': :'etag',
|
|
@@ -95,6 +100,7 @@ module OCI
|
|
|
95
100
|
'protocol': :'String',
|
|
96
101
|
'endpoint': :'String',
|
|
97
102
|
'lifecycle_state': :'String',
|
|
103
|
+
'compartment_id': :'String',
|
|
98
104
|
'created_time': :'Integer',
|
|
99
105
|
'delivery_policy': :'OCI::Ons::Models::DeliveryPolicy',
|
|
100
106
|
'etag': :'String',
|
|
@@ -115,6 +121,7 @@ module OCI
|
|
|
115
121
|
# @option attributes [String] :protocol The value to assign to the {#protocol} property
|
|
116
122
|
# @option attributes [String] :endpoint The value to assign to the {#endpoint} property
|
|
117
123
|
# @option attributes [String] :lifecycle_state The value to assign to the {#lifecycle_state} property
|
|
124
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
|
118
125
|
# @option attributes [Integer] :created_time The value to assign to the {#created_time} property
|
|
119
126
|
# @option attributes [OCI::Ons::Models::DeliveryPolicy] :delivery_policy The value to assign to the {#delivery_policy} property
|
|
120
127
|
# @option attributes [String] :etag The value to assign to the {#etag} property
|
|
@@ -139,10 +146,18 @@ module OCI
|
|
|
139
146
|
self.endpoint = attributes[:'endpoint'] if attributes[:'endpoint']
|
|
140
147
|
|
|
141
148
|
self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']
|
|
149
|
+
self.lifecycle_state = "PENDING" if lifecycle_state.nil? && !attributes.key?(:'lifecycleState') # rubocop:disable Style/StringLiterals
|
|
142
150
|
|
|
143
151
|
raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')
|
|
144
152
|
|
|
145
153
|
self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']
|
|
154
|
+
self.lifecycle_state = "PENDING" if lifecycle_state.nil? && !attributes.key?(:'lifecycleState') && !attributes.key?(:'lifecycle_state') # rubocop:disable Style/StringLiterals
|
|
155
|
+
|
|
156
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
|
157
|
+
|
|
158
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
|
159
|
+
|
|
160
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
|
146
161
|
|
|
147
162
|
self.created_time = attributes[:'createdTime'] if attributes[:'createdTime']
|
|
148
163
|
|
|
@@ -200,6 +215,7 @@ module OCI
|
|
|
200
215
|
protocol == other.protocol &&
|
|
201
216
|
endpoint == other.endpoint &&
|
|
202
217
|
lifecycle_state == other.lifecycle_state &&
|
|
218
|
+
compartment_id == other.compartment_id &&
|
|
203
219
|
created_time == other.created_time &&
|
|
204
220
|
delivery_policy == other.delivery_policy &&
|
|
205
221
|
etag == other.etag &&
|
|
@@ -220,7 +236,7 @@ module OCI
|
|
|
220
236
|
# Calculates hash code according to all attributes.
|
|
221
237
|
# @return [Fixnum] Hash code
|
|
222
238
|
def hash
|
|
223
|
-
[id, topic_id, protocol, endpoint, lifecycle_state, created_time, delivery_policy, etag, freeform_tags, defined_tags].hash
|
|
239
|
+
[id, topic_id, protocol, endpoint, lifecycle_state, compartment_id, created_time, delivery_policy, etag, freeform_tags, defined_tags].hash
|
|
224
240
|
end
|
|
225
241
|
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
226
242
|
|
|
@@ -5,8 +5,8 @@ require 'logger'
|
|
|
5
5
|
|
|
6
6
|
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
7
7
|
module OCI
|
|
8
|
-
# Use the
|
|
9
|
-
# For information about managing topics, subscriptions, and messages, see [
|
|
8
|
+
# Use the Notifications API to broadcast messages to distributed components by topic, using a publish-subscribe pattern.
|
|
9
|
+
# For information about managing topics, subscriptions, and messages, see [Notifications Overview](/iaas/Content/Notification/Concepts/notificationoverview.htm).
|
|
10
10
|
class Ons::NotificationControlPlaneClient
|
|
11
11
|
# Client used to make HTTP requests.
|
|
12
12
|
# @return [OCI::ApiClient]
|
|
@@ -95,7 +95,7 @@ module OCI
|
|
|
95
95
|
|
|
96
96
|
raise 'A region must be specified.' unless @region
|
|
97
97
|
|
|
98
|
-
@endpoint = OCI::Regions.
|
|
98
|
+
@endpoint = OCI::Regions.get_service_endpoint_for_template(@region, 'https://notification.{region}.oraclecloud.com') + '/20181201'
|
|
99
99
|
logger.info "NotificationControlPlaneClient endpoint set to '#{@endpoint} from region #{@region}'." if logger
|
|
100
100
|
end
|
|
101
101
|
|
|
@@ -109,6 +109,81 @@ module OCI
|
|
|
109
109
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
110
110
|
|
|
111
111
|
|
|
112
|
+
# Moves a topic into a different compartment within the same tenancy. For information about moving resources
|
|
113
|
+
# between compartments, see
|
|
114
|
+
# [Moving Resources to a Different Compartment](https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes).
|
|
115
|
+
#
|
|
116
|
+
# Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.
|
|
117
|
+
#
|
|
118
|
+
# @param [String] topic_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic to move.
|
|
119
|
+
#
|
|
120
|
+
# @param [OCI::Ons::Models::ChangeCompartmentDetails] change_topic_compartment_details The configuration details for the move operation.
|
|
121
|
+
# @param [Hash] opts the optional parameters
|
|
122
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
123
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
124
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
|
125
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
|
126
|
+
# hours, but can be invalidated before that due to conflicting operations (for example, if a resource
|
|
127
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
|
128
|
+
# may be rejected).
|
|
129
|
+
#
|
|
130
|
+
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
|
131
|
+
# particular request, please provide the request ID.
|
|
132
|
+
#
|
|
133
|
+
# @option opts [String] :if_match Used for optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
|
134
|
+
# parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
|
135
|
+
# will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
|
136
|
+
#
|
|
137
|
+
# @return [Response] A Response object with data of type nil
|
|
138
|
+
def change_topic_compartment(topic_id, change_topic_compartment_details, opts = {})
|
|
139
|
+
logger.debug 'Calling operation NotificationControlPlaneClient#change_topic_compartment.' if logger
|
|
140
|
+
|
|
141
|
+
raise "Missing the required parameter 'topic_id' when calling change_topic_compartment." if topic_id.nil?
|
|
142
|
+
raise "Missing the required parameter 'change_topic_compartment_details' when calling change_topic_compartment." if change_topic_compartment_details.nil?
|
|
143
|
+
raise "Parameter value for 'topic_id' must not be blank" if OCI::Internal::Util.blank_string?(topic_id)
|
|
144
|
+
|
|
145
|
+
path = '/topics/{topicId}/actions/changeCompartment'.sub('{topicId}', topic_id.to_s)
|
|
146
|
+
operation_signing_strategy = :standard
|
|
147
|
+
|
|
148
|
+
# rubocop:disable Style/NegatedIf
|
|
149
|
+
# Query Params
|
|
150
|
+
query_params = {}
|
|
151
|
+
|
|
152
|
+
# Header Params
|
|
153
|
+
header_params = {}
|
|
154
|
+
header_params[:accept] = 'application/json'
|
|
155
|
+
header_params[:'content-type'] = 'application/json'
|
|
156
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
|
157
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
158
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
|
159
|
+
# rubocop:enable Style/NegatedIf
|
|
160
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
|
161
|
+
|
|
162
|
+
post_body = @api_client.object_to_http_body(change_topic_compartment_details)
|
|
163
|
+
|
|
164
|
+
# rubocop:disable Metrics/BlockLength
|
|
165
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'NotificationControlPlaneClient#change_topic_compartment') do
|
|
166
|
+
@api_client.call_api(
|
|
167
|
+
:POST,
|
|
168
|
+
path,
|
|
169
|
+
endpoint,
|
|
170
|
+
header_params: header_params,
|
|
171
|
+
query_params: query_params,
|
|
172
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
173
|
+
body: post_body
|
|
174
|
+
)
|
|
175
|
+
end
|
|
176
|
+
# rubocop:enable Metrics/BlockLength
|
|
177
|
+
end
|
|
178
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
179
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
180
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
181
|
+
|
|
182
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
183
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
184
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
185
|
+
|
|
186
|
+
|
|
112
187
|
# Creates a topic in the specified compartment. For general information about topics, see
|
|
113
188
|
# [Managing Topics and Subscriptions](https://docs.cloud.oracle.com/iaas/Content/Notification/Tasks/managingtopicsandsubscriptions.htm).
|
|
114
189
|
#
|
|
@@ -120,7 +195,9 @@ module OCI
|
|
|
120
195
|
# All Oracle Cloud Infrastructure resources, including topics, get an Oracle-assigned, unique ID called an
|
|
121
196
|
# Oracle Cloud Identifier (OCID). When you create a resource, you can find its OCID in the response. You can also
|
|
122
197
|
# retrieve a resource's OCID by using a List API operation on that resource type, or by viewing the resource in the
|
|
123
|
-
# Console.
|
|
198
|
+
# Console. For more information, see [Resource Identifiers](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
|
199
|
+
#
|
|
200
|
+
# Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.
|
|
124
201
|
#
|
|
125
202
|
# @param [OCI::Ons::Models::CreateTopicDetails] create_topic_details The topic to create.
|
|
126
203
|
# @param [Hash] opts the optional parameters
|
|
@@ -185,6 +262,8 @@ module OCI
|
|
|
185
262
|
|
|
186
263
|
# Deletes the specified topic.
|
|
187
264
|
#
|
|
265
|
+
# Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.
|
|
266
|
+
#
|
|
188
267
|
# @param [String] topic_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic to delete.
|
|
189
268
|
#
|
|
190
269
|
# @param [Hash] opts the optional parameters
|
|
@@ -248,6 +327,8 @@ module OCI
|
|
|
248
327
|
#
|
|
249
328
|
# @param [String] topic_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic to retrieve.
|
|
250
329
|
#
|
|
330
|
+
# Transactions Per Minute (TPM) per-tenancy limit for this operation: 120.
|
|
331
|
+
#
|
|
251
332
|
# @param [Hash] opts the optional parameters
|
|
252
333
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
253
334
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
@@ -303,6 +384,8 @@ module OCI
|
|
|
303
384
|
|
|
304
385
|
# Lists topics in the specified compartment.
|
|
305
386
|
#
|
|
387
|
+
# Transactions Per Minute (TPM) per-tenancy limit for this operation: 120.
|
|
388
|
+
#
|
|
306
389
|
# @param [String] compartment_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
|
|
307
390
|
#
|
|
308
391
|
# @param [Hash] opts the optional parameters
|
|
@@ -312,14 +395,16 @@ module OCI
|
|
|
312
395
|
#
|
|
313
396
|
# @option opts [String] :name A filter to only return resources that match the given name exactly.
|
|
314
397
|
#
|
|
315
|
-
# @option opts [String] :page For list pagination. The value of the opc-next-page response header from the previous \"List\" call.
|
|
398
|
+
# @option opts [String] :page For list pagination. The value of the opc-next-page response header from the previous \"List\" call.
|
|
399
|
+
# For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
|
316
400
|
#
|
|
317
|
-
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call.
|
|
401
|
+
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call.
|
|
402
|
+
# For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
|
318
403
|
# (default to 10)
|
|
319
|
-
# @option opts [String] :sort_by The field to sort by. Only one field can be selected for sorting.
|
|
404
|
+
# @option opts [String] :sort_by The field to sort by. Only one field can be selected for sorting.
|
|
320
405
|
# (default to TIMECREATED)
|
|
321
406
|
# Allowed values are: TIMECREATED, LIFECYCLESTATE
|
|
322
|
-
# @option opts [String] :sort_order The sort order to use (ascending or descending).
|
|
407
|
+
# @option opts [String] :sort_order The sort order to use (ascending or descending).
|
|
323
408
|
# (default to ASC)
|
|
324
409
|
# Allowed values are: ASC, DESC
|
|
325
410
|
# @option opts [String] :lifecycle_state Filter returned list by specified lifecycle state. This parameter is case-insensitive.
|
|
@@ -395,6 +480,8 @@ module OCI
|
|
|
395
480
|
|
|
396
481
|
# Updates the specified topic's configuration.
|
|
397
482
|
#
|
|
483
|
+
# Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.
|
|
484
|
+
#
|
|
398
485
|
# @param [String] topic_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic to update.
|
|
399
486
|
#
|
|
400
487
|
# @param [Hash] opts the optional parameters
|