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
|
@@ -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::NotificationDataPlaneClient
|
|
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 "NotificationDataPlaneClient endpoint set to '#{@endpoint} from region #{@region}'." if logger
|
|
100
100
|
end
|
|
101
101
|
|
|
@@ -109,8 +109,85 @@ module OCI
|
|
|
109
109
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
110
110
|
|
|
111
111
|
|
|
112
|
+
# Moves a subscription into a different compartment within the same tenancy. For information about moving
|
|
113
|
+
# resources 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] subscription_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription to move.
|
|
119
|
+
#
|
|
120
|
+
# @param [OCI::Ons::Models::ChangeCompartmentDetails] change_subscription_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_subscription_compartment(subscription_id, change_subscription_compartment_details, opts = {})
|
|
139
|
+
logger.debug 'Calling operation NotificationDataPlaneClient#change_subscription_compartment.' if logger
|
|
140
|
+
|
|
141
|
+
raise "Missing the required parameter 'subscription_id' when calling change_subscription_compartment." if subscription_id.nil?
|
|
142
|
+
raise "Missing the required parameter 'change_subscription_compartment_details' when calling change_subscription_compartment." if change_subscription_compartment_details.nil?
|
|
143
|
+
raise "Parameter value for 'subscription_id' must not be blank" if OCI::Internal::Util.blank_string?(subscription_id)
|
|
144
|
+
|
|
145
|
+
path = '/subscriptions/{subscriptionId}/actions/changeCompartment'.sub('{subscriptionId}', subscription_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_subscription_compartment_details)
|
|
163
|
+
|
|
164
|
+
# rubocop:disable Metrics/BlockLength
|
|
165
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'NotificationDataPlaneClient#change_subscription_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 subscription for the specified topic.
|
|
113
188
|
#
|
|
189
|
+
# Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.
|
|
190
|
+
#
|
|
114
191
|
# @param [OCI::Ons::Models::CreateSubscriptionDetails] create_subscription_details The subscription to create.
|
|
115
192
|
# @param [Hash] opts the optional parameters
|
|
116
193
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
@@ -174,6 +251,8 @@ module OCI
|
|
|
174
251
|
|
|
175
252
|
# Deletes the specified subscription.
|
|
176
253
|
#
|
|
254
|
+
# Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.
|
|
255
|
+
#
|
|
177
256
|
# @param [String] subscription_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription to delete.
|
|
178
257
|
#
|
|
179
258
|
# @param [Hash] opts the optional parameters
|
|
@@ -235,7 +314,9 @@ module OCI
|
|
|
235
314
|
|
|
236
315
|
# Gets the confirmation details for the specified subscription.
|
|
237
316
|
#
|
|
238
|
-
#
|
|
317
|
+
# Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.
|
|
318
|
+
#
|
|
319
|
+
# @param [String] id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription to get the confirmation details for.
|
|
239
320
|
#
|
|
240
321
|
# @param [String] token The subscription confirmation token.
|
|
241
322
|
# @param [String] protocol The subscription protocol. Valid values: EMAIL, HTTPS.
|
|
@@ -299,6 +380,8 @@ module OCI
|
|
|
299
380
|
|
|
300
381
|
# Gets the specified subscription's configuration information.
|
|
301
382
|
#
|
|
383
|
+
# Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.
|
|
384
|
+
#
|
|
302
385
|
# @param [String] subscription_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription to retrieve.
|
|
303
386
|
#
|
|
304
387
|
# @param [Hash] opts the optional parameters
|
|
@@ -356,6 +439,8 @@ module OCI
|
|
|
356
439
|
|
|
357
440
|
# Gets the unsubscription details for the specified subscription.
|
|
358
441
|
#
|
|
442
|
+
# Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.
|
|
443
|
+
#
|
|
359
444
|
# @param [String] id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription to unsubscribe from.
|
|
360
445
|
#
|
|
361
446
|
# @param [String] token The subscription confirmation token.
|
|
@@ -420,6 +505,8 @@ module OCI
|
|
|
420
505
|
|
|
421
506
|
# Lists the subscriptions in the specified compartment or topic.
|
|
422
507
|
#
|
|
508
|
+
# Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.
|
|
509
|
+
#
|
|
423
510
|
# @param [String] compartment_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment.
|
|
424
511
|
#
|
|
425
512
|
# @param [Hash] opts the optional parameters
|
|
@@ -427,9 +514,11 @@ module OCI
|
|
|
427
514
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
428
515
|
# @option opts [String] :topic_id Return all subscriptions that are subscribed to the given topic OCID. Either this query parameter or the compartmentId query parameter must be set.
|
|
429
516
|
#
|
|
430
|
-
# @option opts [String] :page For list pagination. The value of the opc-next-page response header from the previous \"List\" call.
|
|
517
|
+
# @option opts [String] :page For list pagination. The value of the opc-next-page response header from the previous \"List\" call.
|
|
518
|
+
# For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
|
431
519
|
#
|
|
432
|
-
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call.
|
|
520
|
+
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call.
|
|
521
|
+
# For important details about how pagination works, see [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
|
433
522
|
# (default to 10)
|
|
434
523
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
|
435
524
|
# particular request, please provide the request ID.
|
|
@@ -484,7 +573,15 @@ module OCI
|
|
|
484
573
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
485
574
|
|
|
486
575
|
|
|
487
|
-
# Publishes a message to the specified topic.
|
|
576
|
+
# Publishes a message to the specified topic. Limits information follows.
|
|
577
|
+
#
|
|
578
|
+
# Message size limit per request: 64KB.
|
|
579
|
+
#
|
|
580
|
+
# Message delivery rate limit per endpoint: 60 messages per minute for HTTPS (PagerDuty) protocol, 10 messages per minute for Email protocol.
|
|
581
|
+
#
|
|
582
|
+
# Transactions Per Minute (TPM) per-tenancy limit for this operation: 60 per topic.
|
|
583
|
+
#
|
|
584
|
+
# For more information about publishing messages, see [Publishing Messages](https://docs.cloud.oracle.com/iaas/Content/Notification/Tasks/publishingmessages.htm).
|
|
488
585
|
#
|
|
489
586
|
# @param [String] topic_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the topic.
|
|
490
587
|
#
|
|
@@ -495,7 +592,7 @@ module OCI
|
|
|
495
592
|
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
|
496
593
|
# particular request, please provide the request ID.
|
|
497
594
|
#
|
|
498
|
-
# @option opts [String] :message_type Type of message body in the request.
|
|
595
|
+
# @option opts [String] :message_type Type of message body in the request.
|
|
499
596
|
# (default to JSON)
|
|
500
597
|
# Allowed values are: JSON, RAW_TEXT
|
|
501
598
|
# @return [Response] A Response object with data of type {OCI::Ons::Models::PublishResult PublishResult}
|
|
@@ -553,6 +650,8 @@ module OCI
|
|
|
553
650
|
|
|
554
651
|
# Resends the confirmation details for the specified subscription.
|
|
555
652
|
#
|
|
653
|
+
# Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.
|
|
654
|
+
#
|
|
556
655
|
# @param [String] id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription to resend the confirmation for.
|
|
557
656
|
#
|
|
558
657
|
# @param [Hash] opts the optional parameters
|
|
@@ -610,6 +709,8 @@ module OCI
|
|
|
610
709
|
|
|
611
710
|
# Updates the specified subscription's configuration.
|
|
612
711
|
#
|
|
712
|
+
# Transactions Per Minute (TPM) per-tenancy limit for this operation: 60.
|
|
713
|
+
#
|
|
613
714
|
# @param [String] subscription_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the subscription to update.
|
|
614
715
|
#
|
|
615
716
|
# @param [OCI::Ons::Models::UpdateSubscriptionDetails] update_subscription_details The configuration details for updating the subscription.
|
data/lib/oci/ons/ons.rb
CHANGED
|
@@ -11,6 +11,7 @@ end
|
|
|
11
11
|
|
|
12
12
|
# Require models
|
|
13
13
|
require 'oci/ons/models/backoff_retry_policy'
|
|
14
|
+
require 'oci/ons/models/change_compartment_details'
|
|
14
15
|
require 'oci/ons/models/confirmation_result'
|
|
15
16
|
require 'oci/ons/models/create_subscription_details'
|
|
16
17
|
require 'oci/ons/models/create_topic_details'
|
data/lib/oci/regions.rb
CHANGED
|
@@ -6,6 +6,7 @@ module OCI
|
|
|
6
6
|
# Module defining available regions and helper methods to get value service endpoints
|
|
7
7
|
module Regions
|
|
8
8
|
REGION_ENUM = [
|
|
9
|
+
REGION_AP_MUMBAI_1 = 'ap-mumbai-1'.freeze,
|
|
9
10
|
REGION_AP_SEOUL_1 = 'ap-seoul-1'.freeze,
|
|
10
11
|
REGION_AP_TOKYO_1 = 'ap-tokyo-1'.freeze,
|
|
11
12
|
REGION_CA_TORONTO_1 = 'ca-toronto-1'.freeze,
|
|
@@ -21,6 +22,7 @@ module OCI
|
|
|
21
22
|
].freeze
|
|
22
23
|
|
|
23
24
|
REGION_SHORT_NAMES_TO_LONG_NAMES = {
|
|
25
|
+
'bom': REGION_AP_MUMBAI_1,
|
|
24
26
|
'icn': REGION_AP_SEOUL_1,
|
|
25
27
|
'nrt': REGION_AP_TOKYO_1,
|
|
26
28
|
'yyz': REGION_CA_TORONTO_1,
|
|
@@ -32,6 +34,7 @@ module OCI
|
|
|
32
34
|
|
|
33
35
|
# --- Start of region realm mapping ---
|
|
34
36
|
REGION_REALM_MAPPING = {
|
|
37
|
+
'ap-mumbai-1': 'oc1'.freeze,
|
|
35
38
|
'ap-seoul-1': 'oc1'.freeze,
|
|
36
39
|
'ap-tokyo-1': 'oc1'.freeze,
|
|
37
40
|
'ca-toronto-1': 'oc1'.freeze,
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
# Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
|
|
2
|
+
|
|
3
|
+
require 'date'
|
|
4
|
+
|
|
5
|
+
# rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
6
|
+
module OCI
|
|
7
|
+
# Detailed representation of a change stream compartment operation.
|
|
8
|
+
class Streaming::Models::ChangeStreamCompartmentDetails
|
|
9
|
+
# **[Required]** The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment
|
|
10
|
+
# into which the resource should be moved.
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
attr_accessor :compartment_id
|
|
14
|
+
|
|
15
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
16
|
+
def self.attribute_map
|
|
17
|
+
{
|
|
18
|
+
# rubocop:disable Style/SymbolLiteral
|
|
19
|
+
'compartment_id': :'compartmentId'
|
|
20
|
+
# rubocop:enable Style/SymbolLiteral
|
|
21
|
+
}
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# Attribute type mapping.
|
|
25
|
+
def self.swagger_types
|
|
26
|
+
{
|
|
27
|
+
# rubocop:disable Style/SymbolLiteral
|
|
28
|
+
'compartment_id': :'String'
|
|
29
|
+
# rubocop:enable Style/SymbolLiteral
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
34
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
# Initializes the object
|
|
38
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
39
|
+
# @option attributes [String] :compartment_id The value to assign to the {#compartment_id} property
|
|
40
|
+
def initialize(attributes = {})
|
|
41
|
+
return unless attributes.is_a?(Hash)
|
|
42
|
+
|
|
43
|
+
# convert string to symbol for hash key
|
|
44
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
45
|
+
|
|
46
|
+
self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']
|
|
47
|
+
|
|
48
|
+
raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')
|
|
49
|
+
|
|
50
|
+
self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']
|
|
51
|
+
end
|
|
52
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
53
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines, Style/SymbolLiteral
|
|
54
|
+
|
|
55
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
# Checks equality by comparing each attribute.
|
|
59
|
+
# @param [Object] other the other object to be compared
|
|
60
|
+
def ==(other)
|
|
61
|
+
return true if equal?(other)
|
|
62
|
+
|
|
63
|
+
self.class == other.class &&
|
|
64
|
+
compartment_id == other.compartment_id
|
|
65
|
+
end
|
|
66
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity, Layout/EmptyLines
|
|
67
|
+
|
|
68
|
+
# @see the `==` method
|
|
69
|
+
# @param [Object] other the other object to be compared
|
|
70
|
+
def eql?(other)
|
|
71
|
+
self == other
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
# Calculates hash code according to all attributes.
|
|
78
|
+
# @return [Fixnum] Hash code
|
|
79
|
+
def hash
|
|
80
|
+
[compartment_id].hash
|
|
81
|
+
end
|
|
82
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
83
|
+
|
|
84
|
+
# rubocop:disable Metrics/AbcSize, Layout/EmptyLines
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
# Builds the object from hash
|
|
88
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
89
|
+
# @return [Object] Returns the model itself
|
|
90
|
+
def build_from_hash(attributes)
|
|
91
|
+
return nil unless attributes.is_a?(Hash)
|
|
92
|
+
|
|
93
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
94
|
+
if type =~ /^Array<(.*)>/i
|
|
95
|
+
# check to ensure the input is an array given that the the attribute
|
|
96
|
+
# is documented as an array but the input is not
|
|
97
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
98
|
+
public_method("#{key}=").call(
|
|
99
|
+
attributes[self.class.attribute_map[key]]
|
|
100
|
+
.map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
|
|
101
|
+
)
|
|
102
|
+
end
|
|
103
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
104
|
+
public_method("#{key}=").call(
|
|
105
|
+
OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
|
|
106
|
+
)
|
|
107
|
+
end
|
|
108
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
self
|
|
112
|
+
end
|
|
113
|
+
# rubocop:enable Metrics/AbcSize, Layout/EmptyLines
|
|
114
|
+
|
|
115
|
+
# Returns the string representation of the object
|
|
116
|
+
# @return [String] String presentation of the object
|
|
117
|
+
def to_s
|
|
118
|
+
to_hash.to_s
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Returns the object in the form of hash
|
|
122
|
+
# @return [Hash] Returns the object in the form of hash
|
|
123
|
+
def to_hash
|
|
124
|
+
hash = {}
|
|
125
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
126
|
+
value = public_method(attr).call
|
|
127
|
+
next if value.nil? && !instance_variable_defined?("@#{attr}")
|
|
128
|
+
|
|
129
|
+
hash[param] = _to_hash(value)
|
|
130
|
+
end
|
|
131
|
+
hash
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
private
|
|
135
|
+
|
|
136
|
+
# Outputs non-array value in the form of hash
|
|
137
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
138
|
+
# @param [Object] value Any valid value
|
|
139
|
+
# @return [Hash] Returns the value in the form of hash
|
|
140
|
+
def _to_hash(value)
|
|
141
|
+
if value.is_a?(Array)
|
|
142
|
+
value.compact.map { |v| _to_hash(v) }
|
|
143
|
+
elsif value.is_a?(Hash)
|
|
144
|
+
{}.tap do |hash|
|
|
145
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
146
|
+
end
|
|
147
|
+
elsif value.respond_to? :to_hash
|
|
148
|
+
value.to_hash
|
|
149
|
+
else
|
|
150
|
+
value
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
# rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength
|
|
@@ -108,6 +108,64 @@ module OCI
|
|
|
108
108
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
109
109
|
|
|
110
110
|
|
|
111
|
+
# Moves a resource into a different compartment. When provided, If-Match is checked against ETag values of the resource.
|
|
112
|
+
# @param [String] stream_id The OCID of the stream to change compatment for.
|
|
113
|
+
# @param [OCI::Streaming::Models::ChangeStreamCompartmentDetails] change_stream_compartment_details The stream will be moved into the compartment specified within this entity.
|
|
114
|
+
# @param [Hash] opts the optional parameters
|
|
115
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
|
116
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
|
117
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
|
118
|
+
# @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
|
119
|
+
# particular request, please provide the request ID.
|
|
120
|
+
#
|
|
121
|
+
# @return [Response] A Response object with data of type nil
|
|
122
|
+
def change_stream_compartment(stream_id, change_stream_compartment_details, opts = {})
|
|
123
|
+
logger.debug 'Calling operation StreamAdminClient#change_stream_compartment.' if logger
|
|
124
|
+
|
|
125
|
+
raise "Missing the required parameter 'stream_id' when calling change_stream_compartment." if stream_id.nil?
|
|
126
|
+
raise "Missing the required parameter 'change_stream_compartment_details' when calling change_stream_compartment." if change_stream_compartment_details.nil?
|
|
127
|
+
raise "Parameter value for 'stream_id' must not be blank" if OCI::Internal::Util.blank_string?(stream_id)
|
|
128
|
+
|
|
129
|
+
path = '/streams/{streamId}/actions/changeCompartment'.sub('{streamId}', stream_id.to_s)
|
|
130
|
+
operation_signing_strategy = :standard
|
|
131
|
+
|
|
132
|
+
# rubocop:disable Style/NegatedIf
|
|
133
|
+
# Query Params
|
|
134
|
+
query_params = {}
|
|
135
|
+
|
|
136
|
+
# Header Params
|
|
137
|
+
header_params = {}
|
|
138
|
+
header_params[:accept] = 'application/json'
|
|
139
|
+
header_params[:'content-type'] = 'application/json'
|
|
140
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
|
141
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
|
142
|
+
# rubocop:enable Style/NegatedIf
|
|
143
|
+
|
|
144
|
+
post_body = @api_client.object_to_http_body(change_stream_compartment_details)
|
|
145
|
+
|
|
146
|
+
# rubocop:disable Metrics/BlockLength
|
|
147
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StreamAdminClient#change_stream_compartment') do
|
|
148
|
+
@api_client.call_api(
|
|
149
|
+
:POST,
|
|
150
|
+
path,
|
|
151
|
+
endpoint,
|
|
152
|
+
header_params: header_params,
|
|
153
|
+
query_params: query_params,
|
|
154
|
+
operation_signing_strategy: operation_signing_strategy,
|
|
155
|
+
body: post_body
|
|
156
|
+
)
|
|
157
|
+
end
|
|
158
|
+
# rubocop:enable Metrics/BlockLength
|
|
159
|
+
end
|
|
160
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
161
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
162
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
|
163
|
+
|
|
164
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
|
165
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
|
166
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
|
167
|
+
|
|
168
|
+
|
|
111
169
|
# Starts the provisioning of a new stream.
|
|
112
170
|
# To track the progress of the provisioning, you can periodically call {#get_stream get_stream}.
|
|
113
171
|
# In the response, the `lifecycleState` parameter of the {Stream} object tells you its current state.
|