oci 2.111.0__py3-none-any.whl → 2.112.0__py3-none-any.whl
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.
- oci/access_governance_cp/access_governance_cp_client.py +8 -8
- oci/adm/application_dependency_management_client.py +18 -18
- oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
- oci/ai_document/ai_service_document_client.py +22 -22
- oci/ai_language/ai_service_language_client.py +36 -36
- oci/ai_speech/ai_service_speech_client.py +9 -9
- oci/ai_vision/ai_service_vision_client.py +25 -25
- oci/analytics/analytics_client.py +23 -23
- oci/announcements_service/announcement_client.py +4 -4
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/apigateway/api_gateway_client.py +21 -21
- oci/apigateway/deployment_client.py +6 -6
- oci/apigateway/gateway_client.py +6 -6
- oci/apigateway/subscribers_client.py +6 -6
- oci/apigateway/usage_plans_client.py +6 -6
- oci/apigateway/work_requests_client.py +5 -5
- oci/apm_config/config_client.py +8 -8
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +18 -18
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/application_migration/application_migration_client.py +19 -19
- oci/appmgmt_control/appmgmt_control_client.py +8 -8
- oci/artifacts/artifacts_client.py +32 -32
- oci/audit/audit_client.py +3 -3
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +47 -47
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/__init__.py +1 -3
- oci/cims/incident_client.py +356 -93
- oci/cims/models/__init__.py +6 -0
- oci/cims/models/account_item.py +85 -0
- oci/cims/models/activity_item.py +112 -14
- oci/cims/models/category.py +5 -5
- oci/cims/models/contact.py +32 -1
- oci/cims/models/contextual_data.py +9 -9
- oci/cims/models/create_account_item_details.py +78 -0
- oci/cims/models/create_category_details.py +2 -4
- oci/cims/models/create_incident.py +13 -9
- oci/cims/models/create_issue_type_details.py +0 -2
- oci/cims/models/create_item_details.py +9 -7
- oci/cims/models/create_limit_item_details.py +3 -3
- oci/cims/models/create_resource_details.py +2 -289
- oci/cims/models/create_sub_category_details.py +3 -5
- oci/cims/models/create_tech_support_item_details.py +1 -3
- oci/cims/models/create_ticket_details.py +11 -13
- oci/cims/models/create_user_details.py +65 -36
- oci/cims/models/incident.py +10 -6
- oci/cims/models/incident_resource_type.py +66 -4
- oci/cims/models/incident_summary.py +9 -5
- oci/cims/models/incident_type.py +1 -1
- oci/cims/models/issue_type.py +33 -2
- oci/cims/models/item.py +8 -4
- oci/cims/models/limit_item.py +7 -7
- oci/cims/models/resource.py +2 -285
- oci/cims/models/service_categories.py +134 -0
- oci/cims/models/service_category.py +1 -1
- oci/cims/models/sub_category.py +5 -5
- oci/cims/models/tenancy_information.py +3 -3
- oci/cims/models/ticket.py +7 -3
- oci/cims/models/update_activity_item_details.py +8 -6
- oci/cims/models/update_incident.py +62 -2
- oci/cims/models/update_item_details.py +3 -5
- oci/cims/models/update_resource_details.py +0 -2
- oci/cims/models/update_ticket_details.py +0 -2
- oci/cims/models/user.py +79 -19
- oci/cims/user_client.py +1 -1
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +14 -14
- oci/cloud_bridge/inventory_client.py +16 -16
- oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
- oci/cloud_guard/cloud_guard_client.py +133 -133
- oci/cloud_migrations/migration_client.py +43 -43
- oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
- oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
- oci/compute_instance_agent/plugin_client.py +2 -2
- oci/compute_instance_agent/pluginconfig_client.py +1 -1
- oci/container_engine/container_engine_client.py +44 -44
- oci/container_instances/container_instance_client.py +129 -24
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +90 -90
- oci/core/compute_management_client.py +32 -32
- oci/core/virtual_network_client.py +242 -242
- oci/dashboard_service/dashboard_client.py +6 -6
- oci/dashboard_service/dashboard_group_client.py +6 -6
- oci/data_catalog/data_catalog_client.py +424 -154
- oci/data_catalog/models/__init__.py +22 -0
- oci/data_catalog/models/asynchronous_export_glossary_details.py +68 -0
- oci/data_catalog/models/asynchronous_export_glossary_result.py +196 -0
- oci/data_catalog/models/asynchronous_export_request_details.py +68 -0
- oci/data_catalog/models/asynchronous_export_result.py +196 -0
- oci/data_catalog/models/attribute.py +33 -0
- oci/data_catalog/models/attribute_summary.py +33 -0
- oci/data_catalog/models/create_job_definition_details.py +42 -3
- oci/data_catalog/models/create_job_details.py +2 -0
- oci/data_catalog/models/create_job_execution_details.py +11 -3
- oci/data_catalog/models/data_asset.py +33 -0
- oci/data_catalog/models/data_asset_summary.py +35 -2
- oci/data_catalog/models/entity.py +33 -0
- oci/data_catalog/models/entity_lineage.py +222 -0
- oci/data_catalog/models/entity_summary.py +33 -0
- oci/data_catalog/models/faceted_search_date_filter_request.py +2 -2
- oci/data_catalog/models/faceted_search_string_filter_request.py +8 -2
- oci/data_catalog/models/fetch_entity_lineage_details.py +190 -0
- oci/data_catalog/models/folder.py +33 -0
- oci/data_catalog/models/folder_summary.py +35 -2
- oci/data_catalog/models/job.py +44 -3
- oci/data_catalog/models/job_definition.py +42 -3
- oci/data_catalog/models/job_definition_summary.py +44 -5
- oci/data_catalog/models/job_execution.py +11 -3
- oci/data_catalog/models/job_execution_summary.py +11 -3
- oci/data_catalog/models/job_summary.py +44 -3
- oci/data_catalog/models/lineage_object.py +400 -0
- oci/data_catalog/models/lineage_relationship.py +134 -0
- oci/data_catalog/models/object_lineage.py +223 -0
- oci/data_catalog/models/object_lineage_request_details.py +190 -0
- oci/data_catalog/models/object_storage_object_reference.py +134 -0
- oci/data_catalog/models/update_job_definition_details.py +31 -0
- oci/data_catalog/models/update_job_details.py +2 -0
- oci/data_flow/data_flow_client.py +42 -42
- oci/data_integration/data_integration_client.py +163 -163
- oci/data_labeling_service/data_labeling_management_client.py +17 -17
- oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
- oci/data_safe/data_safe_client.py +214 -214
- oci/data_science/data_science_client.py +85 -85
- oci/database/database_client.py +311 -311
- oci/database_management/db_management_client.py +182 -182
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/sql_tuning_client.py +10 -10
- oci/database_migration/database_migration_client.py +41 -41
- oci/database_tools/database_tools_client.py +19 -19
- oci/devops/devops_client.py +89 -89
- oci/disaster_recovery/disaster_recovery_client.py +29 -29
- oci/dns/dns_client.py +52 -52
- oci/dts/appliance_export_job_client.py +6 -6
- oci/dts/shipping_vendors_client.py +1 -1
- oci/dts/transfer_appliance_client.py +8 -8
- oci/dts/transfer_appliance_entitlement_client.py +3 -3
- oci/dts/transfer_device_client.py +5 -5
- oci/dts/transfer_job_client.py +6 -6
- oci/dts/transfer_package_client.py +7 -7
- oci/em_warehouse/em_data_lake_client.py +13 -13
- oci/em_warehouse/em_warehouse_client.py +13 -13
- oci/email/email_client.py +25 -25
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +50 -50
- oci/fleet_software_update/fleet_software_update_client.py +44 -44
- oci/functions/functions_invoke_client.py +1 -1
- oci/functions/functions_management_client.py +16 -16
- oci/fusion_apps/data_masking_activity_client.py +3 -3
- oci/fusion_apps/fusion_applications_client.py +39 -39
- oci/fusion_apps/fusion_environment_client.py +15 -15
- oci/fusion_apps/fusion_environment_family_client.py +8 -8
- oci/fusion_apps/refresh_activity_client.py +4 -4
- oci/fusion_apps/scheduled_activity_client.py +2 -2
- oci/fusion_apps/service_attachment_client.py +2 -2
- oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
- oci/golden_gate/golden_gate_client.py +57 -57
- oci/governance_rules_control_plane/governance_rule_client.py +15 -15
- oci/governance_rules_control_plane/work_request_client.py +5 -5
- oci/healthchecks/health_checks_client.py +17 -17
- oci/identity/identity_client.py +145 -145
- oci/identity_data_plane/dataplane_client.py +2 -2
- oci/identity_domains/identity_domains_client.py +190 -190
- oci/integration/integration_instance_client.py +15 -15
- oci/jms/java_management_service_client.py +56 -56
- oci/key_management/kms_crypto_client.py +6 -6
- oci/key_management/kms_management_client.py +21 -21
- oci/key_management/kms_vault_client.py +14 -14
- oci/license_manager/license_manager_client.py +18 -18
- oci/limits/limits_client.py +4 -4
- oci/limits/quotas_client.py +7 -7
- oci/load_balancer/load_balancer_client.py +61 -61
- oci/lockbox/lockbox_client.py +22 -22
- oci/log_analytics/log_analytics_client.py +192 -192
- oci/logging/logging_management_client.py +30 -30
- oci/loggingingestion/logging_client.py +1 -1
- oci/loggingsearch/log_search_client.py +1 -1
- oci/management_agent/management_agent_client.py +23 -23
- oci/management_dashboard/dashx_apis_client.py +14 -14
- oci/marketplace/account_client.py +2 -2
- oci/marketplace/marketplace_client.py +25 -25
- oci/media_services/media_services_client.py +48 -48
- oci/media_services/media_stream_client.py +2 -2
- oci/monitoring/monitoring_client.py +13 -13
- oci/mysql/channels_client.py +7 -7
- oci/mysql/db_backups_client.py +6 -6
- oci/mysql/db_system_client.py +17 -17
- oci/mysql/mysqlaas_client.py +7 -7
- oci/mysql/replicas_client.py +5 -5
- oci/mysql/work_requests_client.py +4 -4
- oci/network_firewall/network_firewall_client.py +17 -17
- oci/network_load_balancer/network_load_balancer_client.py +34 -34
- oci/nosql/nosql_client.py +22 -22
- oci/object_storage/object_storage_client.py +50 -50
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/esxi_host_client.py +6 -6
- oci/ocvp/sddc_client.py +13 -13
- oci/ocvp/work_request_client.py +4 -4
- oci/oda/management_client.py +56 -56
- oci/oda/oda_client.py +17 -17
- oci/oda/odapackage_client.py +7 -7
- oci/onesubscription/billing_schedule_client.py +1 -1
- oci/onesubscription/commitment_client.py +2 -2
- oci/onesubscription/computed_usage_client.py +3 -3
- oci/onesubscription/invoice_summary_client.py +2 -2
- oci/onesubscription/organization_subscription_client.py +1 -1
- oci/onesubscription/ratecard_client.py +1 -1
- oci/onesubscription/subscribed_service_client.py +2 -2
- oci/onesubscription/subscription_client.py +1 -1
- oci/ons/notification_control_plane_client.py +6 -6
- oci/ons/notification_data_plane_client.py +10 -10
- oci/opa/opa_instance_client.py +11 -11
- oci/opensearch/opensearch_cluster_backup_client.py +4 -4
- oci/opensearch/opensearch_cluster_client.py +14 -14
- oci/operator_access_control/access_requests_client.py +9 -9
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +6 -6
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/operations_insights_client.py +159 -159
- oci/optimizer/optimizer_client.py +26 -26
- oci/os_management/event_client.py +8 -8
- oci/os_management/os_management_client.py +69 -69
- oci/os_management_hub/lifecycle_environment_client.py +11 -11
- oci/os_management_hub/managed_instance_client.py +22 -22
- oci/os_management_hub/managed_instance_group_client.py +22 -22
- oci/os_management_hub/management_station_client.py +8 -8
- oci/os_management_hub/onboarding_client.py +5 -5
- oci/os_management_hub/reporting_managed_instance_client.py +3 -3
- oci/os_management_hub/scheduled_job_client.py +6 -6
- oci/os_management_hub/software_source_client.py +22 -22
- oci/os_management_hub/work_request_client.py +4 -4
- oci/osp_gateway/address_rule_service_client.py +1 -1
- oci/osp_gateway/address_service_client.py +2 -2
- oci/osp_gateway/invoice_service_client.py +5 -5
- oci/osp_gateway/subscription_service_client.py +5 -5
- oci/osub_billing_schedule/billing_schedule_client.py +1 -1
- oci/osub_organization_subscription/organization_subscription_client.py +1 -1
- oci/osub_subscription/commitment_client.py +2 -2
- oci/osub_subscription/ratecard_client.py +1 -1
- oci/osub_subscription/subscription_client.py +1 -1
- oci/osub_usage/computed_usage_client.py +3 -3
- oci/queue/models/__init__.py +4 -0
- oci/queue/models/channel_collection.py +72 -0
- oci/queue/models/create_queue_details.py +50 -11
- oci/queue/models/delete_messages_details_entry.py +2 -2
- oci/queue/models/get_message.py +55 -12
- oci/queue/models/message_metadata.py +103 -0
- oci/queue/models/purge_queue_details.py +43 -8
- oci/queue/models/put_message.py +44 -5
- oci/queue/models/put_messages.py +3 -3
- oci/queue/models/put_messages_details_entry.py +29 -2
- oci/queue/models/queue.py +76 -21
- oci/queue/models/queue_stats.py +34 -3
- oci/queue/models/queue_summary.py +37 -17
- oci/queue/models/stats.py +2 -2
- oci/queue/models/update_messages_details.py +1 -1
- oci/queue/models/update_messages_details_entry.py +2 -2
- oci/queue/models/update_messages_result.py +2 -2
- oci/queue/models/update_messages_result_entry.py +12 -4
- oci/queue/models/update_queue_details.py +47 -8
- oci/queue/models/updated_message.py +12 -4
- oci/queue/models/work_request.py +6 -2
- oci/queue/models/work_request_error.py +6 -2
- oci/queue/models/work_request_log_entry.py +6 -2
- oci/queue/models/work_request_summary.py +8 -4
- oci/queue/queue_admin_client.py +67 -46
- oci/queue/queue_admin_client_composite_operations.py +4 -4
- oci/queue/queue_client.py +209 -36
- oci/recovery/database_recovery_client.py +23 -23
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_search/resource_search_client.py +3 -3
- oci/rover/rover_bundle_client.py +8 -8
- oci/rover/rover_cluster_client.py +8 -8
- oci/rover/rover_entitlement_client.py +6 -6
- oci/rover/rover_node_client.py +15 -15
- oci/rover/shape_client.py +1 -1
- oci/rover/work_requests_client.py +5 -5
- oci/sch/service_connector_client.py +12 -12
- oci/secrets/secrets_client.py +3 -3
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/stack_monitoring_client.py +22 -22
- oci/streaming/stream_admin_client.py +18 -18
- oci/streaming/stream_client.py +8 -8
- oci/tenant_manager_control_plane/domain_client.py +5 -5
- oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
- oci/tenant_manager_control_plane/governance_client.py +2 -2
- oci/tenant_manager_control_plane/link_client.py +3 -3
- oci/tenant_manager_control_plane/orders_client.py +2 -2
- oci/tenant_manager_control_plane/organization_client.py +10 -10
- oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/subscription_client.py +11 -11
- oci/tenant_manager_control_plane/work_request_client.py +4 -4
- oci/threat_intelligence/threatintel_client.py +5 -5
- oci/usage/resources_client.py +2 -2
- oci/usage/rewards_client.py +6 -6
- oci/usage/usagelimits_client.py +1 -1
- oci/usage_api/usageapi_client.py +19 -19
- oci/vault/vaults_client.py +11 -11
- oci/vbs_inst/vbs_instance_client.py +10 -10
- oci/version.py +1 -1
- oci/visual_builder/vb_instance_client.py +13 -13
- oci/vn_monitoring/vn_monitoring_client.py +12 -12
- oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
- oci/waa/waa_client.py +13 -13
- oci/waa/work_request_client.py +4 -4
- oci/waas/redirect_client.py +6 -6
- oci/waas/waas_client.py +66 -66
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- {oci-2.111.0.dist-info → oci-2.112.0.dist-info}/METADATA +1 -1
- {oci-2.111.0.dist-info → oci-2.112.0.dist-info}/RECORD +325 -309
- {oci-2.111.0.dist-info → oci-2.112.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.111.0.dist-info → oci-2.112.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.111.0.dist-info → oci-2.112.0.dist-info}/WHEEL +0 -0
- {oci-2.111.0.dist-info → oci-2.112.0.dist-info}/top_level.txt +0 -0
oci/queue/queue_client.py
CHANGED
@@ -20,7 +20,7 @@ missing = Sentinel("Missing")
|
|
20
20
|
|
21
21
|
class QueueClient(object):
|
22
22
|
"""
|
23
|
-
|
23
|
+
Use the Queue API to produce and consume messages, create queues, and manage related items. For more information, see [Queue](/iaas/Content/queue/overview.htm).
|
24
24
|
"""
|
25
25
|
|
26
26
|
def __init__(self, config, **kwargs):
|
@@ -113,17 +113,21 @@ class QueueClient(object):
|
|
113
113
|
|
114
114
|
def delete_message(self, queue_id, message_receipt, **kwargs):
|
115
115
|
"""
|
116
|
-
Deletes
|
116
|
+
Deletes the message represented by the receipt from the queue.
|
117
|
+
You must use the `messages endpoint`__ to delete messages.
|
118
|
+
The messages endpoint may be different for different queues. Use :func:`get_queue` to find the queue's `messagesEndpoint`.
|
119
|
+
|
120
|
+
__ https://docs.cloud.oracle.com/iaas/Content/queue/messages.htm#messages__messages-endpoint
|
117
121
|
|
118
122
|
|
119
123
|
:param str queue_id: (required)
|
120
|
-
unique
|
124
|
+
The unique queue identifier.
|
121
125
|
|
122
126
|
:param str message_receipt: (required)
|
123
127
|
The receipt of the message retrieved from a GetMessages call.
|
124
128
|
|
125
129
|
:param str opc_request_id: (optional)
|
126
|
-
|
130
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
127
131
|
|
128
132
|
:param obj retry_strategy: (optional)
|
129
133
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
@@ -141,7 +145,7 @@ class QueueClient(object):
|
|
141
145
|
:rtype: :class:`~oci.response.Response`
|
142
146
|
|
143
147
|
:example:
|
144
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
148
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.112.0/queue/delete_message.py.html>`__ to see an example of how to use delete_message API.
|
145
149
|
"""
|
146
150
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
147
151
|
required_arguments = ['queueId', 'messageReceipt']
|
@@ -214,16 +218,20 @@ class QueueClient(object):
|
|
214
218
|
def delete_messages(self, queue_id, delete_messages_details, **kwargs):
|
215
219
|
"""
|
216
220
|
Deletes multiple messages from the queue.
|
221
|
+
You must use the `messages endpoint`__ to delete messages.
|
222
|
+
The messages endpoint may be different for different queues. Use :func:`get_queue` to find the queue's `messagesEndpoint`.
|
223
|
+
|
224
|
+
__ https://docs.cloud.oracle.com/iaas/Content/queue/messages.htm#messages__messages-endpoint
|
217
225
|
|
218
226
|
|
219
227
|
:param str queue_id: (required)
|
220
|
-
unique
|
228
|
+
The unique queue identifier.
|
221
229
|
|
222
230
|
:param oci.queue.models.DeleteMessagesDetails delete_messages_details: (required)
|
223
231
|
Details for the messages to delete.
|
224
232
|
|
225
233
|
:param str opc_request_id: (optional)
|
226
|
-
|
234
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
227
235
|
|
228
236
|
:param obj retry_strategy: (optional)
|
229
237
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
@@ -241,7 +249,7 @@ class QueueClient(object):
|
|
241
249
|
:rtype: :class:`~oci.response.Response`
|
242
250
|
|
243
251
|
:example:
|
244
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
252
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.112.0/queue/delete_messages.py.html>`__ to see an example of how to use delete_messages API.
|
245
253
|
"""
|
246
254
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
247
255
|
required_arguments = ['queueId']
|
@@ -316,30 +324,40 @@ class QueueClient(object):
|
|
316
324
|
|
317
325
|
def get_messages(self, queue_id, **kwargs):
|
318
326
|
"""
|
319
|
-
Consumes
|
327
|
+
Consumes messages from the queue.
|
328
|
+
You must use the `messages endpoint`__ to consume messages.
|
329
|
+
The messages endpoint may be different for different queues. Use :func:`get_queue` to find the queue's `messagesEndpoint`.
|
330
|
+
GetMessages accepts optional channelFilter query parameter that can filter source channels of the messages.
|
331
|
+
When channelFilter is present, service will return available messages from the channel which ID exactly matched the filter.
|
332
|
+
When filter is not specified, messages will be returned from a random non-empty channel within a queue.
|
333
|
+
|
334
|
+
__ https://docs.cloud.oracle.com/iaas/Content/queue/messages.htm#messages__messages-endpoint
|
320
335
|
|
321
336
|
|
322
337
|
:param str queue_id: (required)
|
323
|
-
unique
|
338
|
+
The unique queue identifier.
|
324
339
|
|
325
340
|
:param int visibility_in_seconds: (optional)
|
326
|
-
If the visibilityInSeconds parameter is set, messages will be hidden for visibilityInSeconds seconds and won't be consumable by other consumers during that time.
|
327
|
-
If it isn't set it defaults to the value set at the queue level.
|
328
|
-
|
329
|
-
|
341
|
+
If the `visibilityInSeconds` parameter is set, messages will be hidden for `visibilityInSeconds` seconds and won't be consumable by other consumers during that time.
|
342
|
+
If it isn't set it defaults to the value set at the queue level.
|
343
|
+
|
344
|
+
Using a `visibilityInSeconds` value of 0 effectively acts as a peek functionality.
|
345
|
+
Messages retrieved that way aren't meant to be deleted because they will most likely be delivered to another consumer as their visibility won't change, but will still increase the delivery count by one.
|
330
346
|
|
331
347
|
:param int timeout_in_seconds: (optional)
|
332
|
-
If the timeoutInSeconds parameter isn't set or set to a value greater than
|
333
|
-
|
348
|
+
If the `timeoutInSeconds parameter` isn't set or it is set to a value greater than 0, the request is using the long-polling mode and will only return when a message is available for consumption (it does not wait for limit messages but still only returns at-most limit messages) or after `timeoutInSeconds` seconds (in which case it will return an empty response), whichever comes first.
|
349
|
+
|
350
|
+
If the parameter is set to 0, the request is using the short-polling mode and immediately returns whether messages have been retrieved or not.
|
334
351
|
In same rare-cases a long-polling request could be interrupted (returned with empty response) before the end of the timeout.
|
335
|
-
The minimum is 0 (long polling disabled), the maximum is 30 seconds and default is 30 seconds.
|
336
352
|
|
337
353
|
:param int limit: (optional)
|
338
354
|
The limit parameter controls how many messages is returned at-most.
|
339
|
-
The default is 1, the minimum is 1 and the maximum is 32.
|
340
355
|
|
341
356
|
:param str opc_request_id: (optional)
|
342
|
-
|
357
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
358
|
+
|
359
|
+
:param str channel_filter: (optional)
|
360
|
+
Optional parameter to filter the channels.
|
343
361
|
|
344
362
|
:param obj retry_strategy: (optional)
|
345
363
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
@@ -357,7 +375,7 @@ class QueueClient(object):
|
|
357
375
|
:rtype: :class:`~oci.response.Response`
|
358
376
|
|
359
377
|
:example:
|
360
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
378
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.112.0/queue/get_messages.py.html>`__ to see an example of how to use get_messages API.
|
361
379
|
"""
|
362
380
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
363
381
|
required_arguments = ['queueId']
|
@@ -373,7 +391,8 @@ class QueueClient(object):
|
|
373
391
|
"visibility_in_seconds",
|
374
392
|
"timeout_in_seconds",
|
375
393
|
"limit",
|
376
|
-
"opc_request_id"
|
394
|
+
"opc_request_id",
|
395
|
+
"channel_filter"
|
377
396
|
]
|
378
397
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
379
398
|
if extra_kwargs:
|
@@ -393,7 +412,8 @@ class QueueClient(object):
|
|
393
412
|
query_params = {
|
394
413
|
"visibilityInSeconds": kwargs.get("visibility_in_seconds", missing),
|
395
414
|
"timeoutInSeconds": kwargs.get("timeout_in_seconds", missing),
|
396
|
-
"limit": kwargs.get("limit", missing)
|
415
|
+
"limit": kwargs.get("limit", missing),
|
416
|
+
"channelFilter": kwargs.get("channel_filter", missing)
|
397
417
|
}
|
398
418
|
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
399
419
|
|
@@ -441,13 +461,20 @@ class QueueClient(object):
|
|
441
461
|
def get_stats(self, queue_id, **kwargs):
|
442
462
|
"""
|
443
463
|
Gets the statistics for the queue and its dead letter queue.
|
464
|
+
You must use the `messages endpoint`__ to get a queue's statistics.
|
465
|
+
The messages endpoint may be different for different queues. Use :func:`get_queue` to find the queue's `messagesEndpoint`.
|
466
|
+
|
467
|
+
__ https://docs.cloud.oracle.com/iaas/Content/queue/messages.htm#messages__messages-endpoint
|
444
468
|
|
445
469
|
|
446
470
|
:param str queue_id: (required)
|
447
|
-
unique
|
471
|
+
The unique queue identifier.
|
448
472
|
|
449
473
|
:param str opc_request_id: (optional)
|
450
|
-
|
474
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
475
|
+
|
476
|
+
:param str channel_id: (optional)
|
477
|
+
Id to specify channel.
|
451
478
|
|
452
479
|
:param obj retry_strategy: (optional)
|
453
480
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
@@ -465,7 +492,7 @@ class QueueClient(object):
|
|
465
492
|
:rtype: :class:`~oci.response.Response`
|
466
493
|
|
467
494
|
:example:
|
468
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
495
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.112.0/queue/get_stats.py.html>`__ to see an example of how to use get_stats API.
|
469
496
|
"""
|
470
497
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
471
498
|
required_arguments = ['queueId']
|
@@ -478,7 +505,8 @@ class QueueClient(object):
|
|
478
505
|
expected_kwargs = [
|
479
506
|
"allow_control_chars",
|
480
507
|
"retry_strategy",
|
481
|
-
"opc_request_id"
|
508
|
+
"opc_request_id",
|
509
|
+
"channel_id"
|
482
510
|
]
|
483
511
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
484
512
|
if extra_kwargs:
|
@@ -495,6 +523,11 @@ class QueueClient(object):
|
|
495
523
|
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
496
524
|
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
|
497
525
|
|
526
|
+
query_params = {
|
527
|
+
"channelId": kwargs.get("channel_id", missing)
|
528
|
+
}
|
529
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
530
|
+
|
498
531
|
header_params = {
|
499
532
|
"accept": "application/json",
|
500
533
|
"content-type": "application/json",
|
@@ -518,6 +551,7 @@ class QueueClient(object):
|
|
518
551
|
resource_path=resource_path,
|
519
552
|
method=method,
|
520
553
|
path_params=path_params,
|
554
|
+
query_params=query_params,
|
521
555
|
header_params=header_params,
|
522
556
|
response_type="QueueStats",
|
523
557
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
@@ -529,6 +563,7 @@ class QueueClient(object):
|
|
529
563
|
resource_path=resource_path,
|
530
564
|
method=method,
|
531
565
|
path_params=path_params,
|
566
|
+
query_params=query_params,
|
532
567
|
header_params=header_params,
|
533
568
|
response_type="QueueStats",
|
534
569
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
@@ -536,19 +571,149 @@ class QueueClient(object):
|
|
536
571
|
api_reference_link=api_reference_link,
|
537
572
|
required_arguments=required_arguments)
|
538
573
|
|
574
|
+
def list_channels(self, queue_id, **kwargs):
|
575
|
+
"""
|
576
|
+
Gets the list of IDs of non-empty channels.
|
577
|
+
It will return an approximate list of IDs of non-empty channels. That information is based on the queue level statistics.
|
578
|
+
API supports optional channelFilter parameter which will filter the returned results according to the specified filter.
|
579
|
+
List of channel IDs is approximate, because statistics is refreshed once per-second, and that list represents a snapshot of the past information. API is paginated.
|
580
|
+
|
581
|
+
|
582
|
+
:param str queue_id: (required)
|
583
|
+
The unique queue identifier.
|
584
|
+
|
585
|
+
:param str opc_request_id: (optional)
|
586
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
587
|
+
|
588
|
+
:param int limit: (optional)
|
589
|
+
For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. For important details about how pagination works, see `List Pagination`__.
|
590
|
+
|
591
|
+
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
592
|
+
|
593
|
+
:param str page: (optional)
|
594
|
+
For list pagination. The value of the opc-next-page response header from the previous \"List\" call. For important details about how pagination works, see `List Pagination`__.
|
595
|
+
|
596
|
+
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
597
|
+
|
598
|
+
:param str channel_filter: (optional)
|
599
|
+
Optional parameter to filter the channels.
|
600
|
+
|
601
|
+
:param obj retry_strategy: (optional)
|
602
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
603
|
+
|
604
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
605
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
606
|
+
|
607
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
608
|
+
|
609
|
+
:param bool allow_control_chars: (optional)
|
610
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
611
|
+
By default, the response will not allow control characters in strings
|
612
|
+
|
613
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.queue.models.ChannelCollection`
|
614
|
+
:rtype: :class:`~oci.response.Response`
|
615
|
+
|
616
|
+
:example:
|
617
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.112.0/queue/list_channels.py.html>`__ to see an example of how to use list_channels API.
|
618
|
+
"""
|
619
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
620
|
+
required_arguments = ['queueId']
|
621
|
+
resource_path = "/queues/{queueId}/channels"
|
622
|
+
method = "GET"
|
623
|
+
operation_name = "list_channels"
|
624
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/queue/20210201/ChannelCollection/ListChannels"
|
625
|
+
|
626
|
+
# Don't accept unknown kwargs
|
627
|
+
expected_kwargs = [
|
628
|
+
"allow_control_chars",
|
629
|
+
"retry_strategy",
|
630
|
+
"opc_request_id",
|
631
|
+
"limit",
|
632
|
+
"page",
|
633
|
+
"channel_filter"
|
634
|
+
]
|
635
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
636
|
+
if extra_kwargs:
|
637
|
+
raise ValueError(
|
638
|
+
"list_channels got unknown kwargs: {!r}".format(extra_kwargs))
|
639
|
+
|
640
|
+
path_params = {
|
641
|
+
"queueId": queue_id
|
642
|
+
}
|
643
|
+
|
644
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
645
|
+
|
646
|
+
for (k, v) in six.iteritems(path_params):
|
647
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
648
|
+
raise ValueError('Parameter {} cannot be None, whitespace or empty string'.format(k))
|
649
|
+
|
650
|
+
query_params = {
|
651
|
+
"limit": kwargs.get("limit", missing),
|
652
|
+
"page": kwargs.get("page", missing),
|
653
|
+
"channelFilter": kwargs.get("channel_filter", missing)
|
654
|
+
}
|
655
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
656
|
+
|
657
|
+
header_params = {
|
658
|
+
"accept": "application/json",
|
659
|
+
"content-type": "application/json",
|
660
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
661
|
+
}
|
662
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
663
|
+
|
664
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
665
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
666
|
+
client_retry_strategy=self.retry_strategy
|
667
|
+
)
|
668
|
+
if retry_strategy is None:
|
669
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
670
|
+
|
671
|
+
if retry_strategy:
|
672
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
673
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
674
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
675
|
+
return retry_strategy.make_retrying_call(
|
676
|
+
self.base_client.call_api,
|
677
|
+
resource_path=resource_path,
|
678
|
+
method=method,
|
679
|
+
path_params=path_params,
|
680
|
+
query_params=query_params,
|
681
|
+
header_params=header_params,
|
682
|
+
response_type="ChannelCollection",
|
683
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
684
|
+
operation_name=operation_name,
|
685
|
+
api_reference_link=api_reference_link,
|
686
|
+
required_arguments=required_arguments)
|
687
|
+
else:
|
688
|
+
return self.base_client.call_api(
|
689
|
+
resource_path=resource_path,
|
690
|
+
method=method,
|
691
|
+
path_params=path_params,
|
692
|
+
query_params=query_params,
|
693
|
+
header_params=header_params,
|
694
|
+
response_type="ChannelCollection",
|
695
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
696
|
+
operation_name=operation_name,
|
697
|
+
api_reference_link=api_reference_link,
|
698
|
+
required_arguments=required_arguments)
|
699
|
+
|
539
700
|
def put_messages(self, queue_id, put_messages_details, **kwargs):
|
540
701
|
"""
|
541
|
-
Puts messages
|
702
|
+
Puts messages into the queue.
|
703
|
+
You must use the `messages endpoint`__ to produce messages.
|
704
|
+
The messages endpoint may be different for different queues. Use :func:`get_queue` to find the queue's `messagesEndpoint`.
|
705
|
+
|
706
|
+
__ https://docs.cloud.oracle.com/iaas/Content/queue/messages.htm#messages__messages-endpoint
|
542
707
|
|
543
708
|
|
544
709
|
:param str queue_id: (required)
|
545
|
-
unique
|
710
|
+
The unique queue identifier.
|
546
711
|
|
547
712
|
:param oci.queue.models.PutMessagesDetails put_messages_details: (required)
|
548
713
|
Details for the messages to publish.
|
549
714
|
|
550
715
|
:param str opc_request_id: (optional)
|
551
|
-
|
716
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
552
717
|
|
553
718
|
:param obj retry_strategy: (optional)
|
554
719
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
@@ -566,7 +731,7 @@ class QueueClient(object):
|
|
566
731
|
:rtype: :class:`~oci.response.Response`
|
567
732
|
|
568
733
|
:example:
|
569
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
734
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.112.0/queue/put_messages.py.html>`__ to see an example of how to use put_messages API.
|
570
735
|
"""
|
571
736
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
572
737
|
required_arguments = ['queueId']
|
@@ -640,10 +805,14 @@ class QueueClient(object):
|
|
640
805
|
def update_message(self, queue_id, message_receipt, update_message_details, **kwargs):
|
641
806
|
"""
|
642
807
|
Updates the visibility of the message represented by the receipt.
|
808
|
+
You must use the `messages endpoint`__ to update messages.
|
809
|
+
The messages endpoint may be different for different queues. Use :func:`get_queue` to find the queue's `messagesEndpoint`.
|
810
|
+
|
811
|
+
__ https://docs.cloud.oracle.com/iaas/Content/queue/messages.htm#messages__messages-endpoint
|
643
812
|
|
644
813
|
|
645
814
|
:param str queue_id: (required)
|
646
|
-
unique
|
815
|
+
The unique queue identifier.
|
647
816
|
|
648
817
|
:param str message_receipt: (required)
|
649
818
|
The receipt of the message retrieved from a GetMessages call.
|
@@ -652,7 +821,7 @@ class QueueClient(object):
|
|
652
821
|
Details for the message to update.
|
653
822
|
|
654
823
|
:param str opc_request_id: (optional)
|
655
|
-
|
824
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
656
825
|
|
657
826
|
:param obj retry_strategy: (optional)
|
658
827
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
@@ -670,7 +839,7 @@ class QueueClient(object):
|
|
670
839
|
:rtype: :class:`~oci.response.Response`
|
671
840
|
|
672
841
|
:example:
|
673
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
842
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.112.0/queue/update_message.py.html>`__ to see an example of how to use update_message API.
|
674
843
|
"""
|
675
844
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
676
845
|
required_arguments = ['queueId', 'messageReceipt']
|
@@ -747,16 +916,20 @@ class QueueClient(object):
|
|
747
916
|
def update_messages(self, queue_id, update_messages_details, **kwargs):
|
748
917
|
"""
|
749
918
|
Updates multiple messages in the queue.
|
919
|
+
You must use the `messages endpoint`__ to update messages.
|
920
|
+
The messages endpoint may be different for different queues. Use :func:`get_queue` to find the queue's `messagesEndpoint`.
|
921
|
+
|
922
|
+
__ https://docs.cloud.oracle.com/iaas/Content/queue/messages.htm#messages__messages-endpoint
|
750
923
|
|
751
924
|
|
752
925
|
:param str queue_id: (required)
|
753
|
-
unique
|
926
|
+
The unique queue identifier.
|
754
927
|
|
755
928
|
:param oci.queue.models.UpdateMessagesDetails update_messages_details: (required)
|
756
929
|
Details for the messages to update.
|
757
930
|
|
758
931
|
:param str opc_request_id: (optional)
|
759
|
-
|
932
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
760
933
|
|
761
934
|
:param obj retry_strategy: (optional)
|
762
935
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
@@ -774,7 +947,7 @@ class QueueClient(object):
|
|
774
947
|
:rtype: :class:`~oci.response.Response`
|
775
948
|
|
776
949
|
:example:
|
777
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
950
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.112.0/queue/update_messages.py.html>`__ to see an example of how to use update_messages API.
|
778
951
|
"""
|
779
952
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
780
953
|
required_arguments = ['queueId']
|