oci 2.126.2__py3-none-any.whl → 2.126.3__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.
Files changed (323) hide show
  1. oci/__init__.py +2 -2
  2. oci/access_governance_cp/access_governance_cp_client.py +8 -8
  3. oci/adm/application_dependency_management_client.py +36 -36
  4. oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
  5. oci/ai_document/ai_service_document_client.py +22 -22
  6. oci/ai_language/ai_service_language_client.py +44 -44
  7. oci/ai_speech/ai_service_speech_client.py +10 -10
  8. oci/ai_vision/ai_service_vision_client.py +25 -25
  9. oci/analytics/analytics_client.py +23 -23
  10. oci/announcements_service/announcement_client.py +4 -4
  11. oci/announcements_service/announcement_subscription_client.py +9 -9
  12. oci/announcements_service/announcements_preferences_client.py +4 -4
  13. oci/apigateway/api_gateway_client.py +21 -21
  14. oci/apigateway/deployment_client.py +6 -6
  15. oci/apigateway/gateway_client.py +6 -6
  16. oci/apigateway/subscribers_client.py +6 -6
  17. oci/apigateway/usage_plans_client.py +6 -6
  18. oci/apigateway/work_requests_client.py +5 -5
  19. oci/apm_config/config_client.py +8 -8
  20. oci/apm_control_plane/apm_domain_client.py +14 -14
  21. oci/apm_synthetics/apm_synthetic_client.py +28 -28
  22. oci/apm_traces/attributes_client.py +8 -8
  23. oci/apm_traces/query_client.py +2 -2
  24. oci/apm_traces/trace_client.py +4 -4
  25. oci/appmgmt_control/appmgmt_control_client.py +8 -8
  26. oci/artifacts/artifacts_client.py +32 -32
  27. oci/audit/audit_client.py +3 -3
  28. oci/autoscaling/auto_scaling_client.py +11 -11
  29. oci/bastion/bastion_client.py +15 -15
  30. oci/bds/bds_client.py +51 -51
  31. oci/blockchain/blockchain_platform_client.py +27 -27
  32. oci/budget/budget_client.py +10 -10
  33. oci/capacity_management/capacity_management_client.py +19 -19
  34. oci/certificates/certificates_client.py +5 -5
  35. oci/certificates_management/certificates_management_client.py +32 -32
  36. oci/cims/incident_client.py +8 -8
  37. oci/cims/user_client.py +1 -1
  38. oci/cloud_bridge/common_client.py +5 -5
  39. oci/cloud_bridge/discovery_client.py +14 -14
  40. oci/cloud_bridge/inventory_client.py +16 -16
  41. oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
  42. oci/cloud_guard/cloud_guard_client.py +155 -155
  43. oci/cloud_migrations/migration_client.py +43 -43
  44. oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
  45. oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
  46. oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
  47. oci/compute_instance_agent/plugin_client.py +2 -2
  48. oci/compute_instance_agent/pluginconfig_client.py +1 -1
  49. oci/container_engine/container_engine_client.py +44 -44
  50. oci/container_instances/container_instance_client.py +18 -18
  51. oci/core/blockstorage_client.py +60 -60
  52. oci/core/compute_client.py +99 -99
  53. oci/core/compute_management_client.py +32 -32
  54. oci/core/virtual_network_client.py +247 -247
  55. oci/dashboard_service/dashboard_client.py +6 -6
  56. oci/dashboard_service/dashboard_group_client.py +6 -6
  57. oci/data_catalog/data_catalog_client.py +149 -149
  58. oci/data_flow/data_flow_client.py +42 -42
  59. oci/data_integration/data_integration_client.py +163 -163
  60. oci/data_labeling_service/data_labeling_management_client.py +17 -17
  61. oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
  62. oci/data_safe/data_safe_client.py +278 -278
  63. oci/data_science/data_science_client.py +91 -91
  64. oci/database/database_client.py +333 -333
  65. oci/database/models/create_vm_cluster_details.py +33 -2
  66. oci/database/models/exadata_infrastructure.py +31 -0
  67. oci/database/models/exadata_infrastructure_summary.py +31 -0
  68. oci/database/models/update_vm_cluster_details.py +33 -2
  69. oci/database/models/vm_cluster.py +33 -2
  70. oci/database/models/vm_cluster_summary.py +33 -2
  71. oci/database_management/db_management_client.py +206 -206
  72. oci/database_management/diagnosability_client.py +4 -4
  73. oci/database_management/managed_my_sql_databases_client.py +7 -7
  74. oci/database_management/perfhub_client.py +1 -1
  75. oci/database_management/sql_tuning_client.py +17 -17
  76. oci/database_migration/database_migration_client.py +41 -41
  77. oci/database_tools/database_tools_client.py +23 -23
  78. oci/desktops/desktop_service_client.py +21 -21
  79. oci/devops/devops_client.py +89 -89
  80. oci/disaster_recovery/disaster_recovery_client.py +29 -29
  81. oci/dns/dns_client.py +52 -52
  82. oci/dts/appliance_export_job_client.py +6 -6
  83. oci/dts/shipping_vendors_client.py +1 -1
  84. oci/dts/transfer_appliance_client.py +8 -8
  85. oci/dts/transfer_appliance_entitlement_client.py +3 -3
  86. oci/dts/transfer_device_client.py +5 -5
  87. oci/dts/transfer_job_client.py +6 -6
  88. oci/dts/transfer_package_client.py +7 -7
  89. oci/em_warehouse/em_data_lake_client.py +13 -13
  90. oci/em_warehouse/em_warehouse_client.py +13 -13
  91. oci/email/email_client.py +608 -28
  92. oci/email/email_client_composite_operations.py +132 -0
  93. oci/email/models/__init__.py +10 -0
  94. oci/email/models/create_email_domain_details.py +31 -0
  95. oci/email/models/create_email_return_path_details.py +239 -0
  96. oci/email/models/email_domain.py +82 -0
  97. oci/email/models/email_return_path.py +577 -0
  98. oci/email/models/email_return_path_collection.py +72 -0
  99. oci/email/models/email_return_path_summary.py +444 -0
  100. oci/email/models/sender.py +15 -3
  101. oci/email/models/update_email_domain_details.py +31 -0
  102. oci/email/models/update_email_return_path_details.py +156 -0
  103. oci/email/models/work_request.py +15 -3
  104. oci/email/models/work_request_summary.py +15 -3
  105. oci/email_data_plane/email_dp_client.py +1 -1
  106. oci/events/events_client.py +6 -6
  107. oci/file_storage/file_storage_client.py +50 -50
  108. oci/fleet_software_update/fleet_software_update_client.py +44 -44
  109. oci/functions/functions_invoke_client.py +1 -1
  110. oci/functions/functions_management_client.py +16 -16
  111. oci/fusion_apps/data_masking_activity_client.py +3 -3
  112. oci/fusion_apps/fusion_applications_client.py +39 -39
  113. oci/fusion_apps/fusion_environment_client.py +15 -15
  114. oci/fusion_apps/fusion_environment_family_client.py +8 -8
  115. oci/fusion_apps/refresh_activity_client.py +4 -4
  116. oci/fusion_apps/scheduled_activity_client.py +2 -2
  117. oci/fusion_apps/service_attachment_client.py +2 -2
  118. oci/generative_ai/generative_ai_client.py +22 -22
  119. oci/generative_ai_inference/generative_ai_inference_client.py +4 -4
  120. oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
  121. oci/globally_distributed_database/sharded_database_service_client.py +29 -29
  122. oci/golden_gate/golden_gate_client.py +61 -61
  123. oci/governance_rules_control_plane/governance_rule_client.py +15 -15
  124. oci/governance_rules_control_plane/work_request_client.py +5 -5
  125. oci/healthchecks/health_checks_client.py +17 -17
  126. oci/identity/identity_client.py +145 -145
  127. oci/identity_data_plane/dataplane_client.py +2 -2
  128. oci/identity_domains/identity_domains_client.py +300 -300
  129. oci/integration/integration_instance_client.py +15 -15
  130. oci/jms/java_management_service_client.py +66 -66
  131. oci/jms_java_downloads/java_download_client.py +25 -25
  132. oci/key_management/ekm_client.py +5 -5
  133. oci/key_management/kms_crypto_client.py +6 -6
  134. oci/key_management/kms_hsm_cluster_client.py +12 -12
  135. oci/key_management/kms_management_client.py +21 -21
  136. oci/key_management/kms_vault_client.py +14 -14
  137. oci/license_manager/license_manager_client.py +18 -18
  138. oci/limits/limits_client.py +4 -4
  139. oci/limits/quotas_client.py +7 -7
  140. oci/load_balancer/load_balancer_client.py +61 -61
  141. oci/load_balancer/models/ssl_configuration.py +41 -0
  142. oci/load_balancer/models/ssl_configuration_details.py +41 -0
  143. oci/lockbox/lockbox_client.py +24 -24
  144. oci/log_analytics/log_analytics_client.py +193 -193
  145. oci/logging/logging_management_client.py +30 -30
  146. oci/loggingingestion/logging_client.py +1 -1
  147. oci/loggingsearch/log_search_client.py +1 -1
  148. oci/management_agent/management_agent_client.py +28 -28
  149. oci/management_dashboard/dashx_apis_client.py +14 -14
  150. oci/marketplace/account_client.py +2 -2
  151. oci/marketplace/marketplace_client.py +30 -30
  152. oci/marketplace_private_offer/__init__.py +16 -0
  153. oci/marketplace_private_offer/attachment_client.py +719 -0
  154. oci/marketplace_private_offer/attachment_client_composite_operations.py +71 -0
  155. oci/marketplace_private_offer/models/__init__.py +48 -0
  156. oci/marketplace_private_offer/models/attachment.py +446 -0
  157. oci/marketplace_private_offer/models/attachment_collection.py +72 -0
  158. oci/marketplace_private_offer/models/attachment_summary.py +293 -0
  159. oci/marketplace_private_offer/models/buyer_information.py +161 -0
  160. oci/marketplace_private_offer/models/contact.py +134 -0
  161. oci/marketplace_private_offer/models/create_attachment_details.py +134 -0
  162. oci/marketplace_private_offer/models/create_offer_details.py +498 -0
  163. oci/marketplace_private_offer/models/custom_field.py +103 -0
  164. oci/marketplace_private_offer/models/offer.py +787 -0
  165. oci/marketplace_private_offer/models/offer_collection.py +72 -0
  166. oci/marketplace_private_offer/models/offer_internal_detail.py +103 -0
  167. oci/marketplace_private_offer/models/offer_summary.py +591 -0
  168. oci/marketplace_private_offer/models/pricing.py +146 -0
  169. oci/marketplace_private_offer/models/publisher_summary.py +710 -0
  170. oci/marketplace_private_offer/models/resource_bundle.py +205 -0
  171. oci/marketplace_private_offer/models/seller_information.py +99 -0
  172. oci/marketplace_private_offer/models/update_offer_details.py +467 -0
  173. oci/marketplace_private_offer/models/upload_data.py +134 -0
  174. oci/marketplace_private_offer/offer_client.py +789 -0
  175. oci/marketplace_private_offer/offer_client_composite_operations.py +172 -0
  176. oci/marketplace_publisher/__init__.py +5 -1
  177. oci/marketplace_publisher/attachment_client.py +719 -0
  178. oci/marketplace_publisher/attachment_client_composite_operations.py +121 -0
  179. oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
  180. oci/marketplace_publisher/models/__init__.py +32 -0
  181. oci/marketplace_publisher/models/attachment.py +446 -0
  182. oci/marketplace_publisher/models/attachment_collection.py +72 -0
  183. oci/marketplace_publisher/models/attachment_summary.py +293 -0
  184. oci/marketplace_publisher/models/buyer_information.py +161 -0
  185. oci/marketplace_publisher/models/contact.py +134 -0
  186. oci/marketplace_publisher/models/create_attachment_details.py +134 -0
  187. oci/marketplace_publisher/models/create_offer_details.py +498 -0
  188. oci/marketplace_publisher/models/custom_field.py +103 -0
  189. oci/marketplace_publisher/models/offer.py +787 -0
  190. oci/marketplace_publisher/models/offer_collection.py +72 -0
  191. oci/marketplace_publisher/models/offer_internal_detail.py +103 -0
  192. oci/marketplace_publisher/models/offer_summary.py +591 -0
  193. oci/marketplace_publisher/models/pricing.py +146 -0
  194. oci/marketplace_publisher/models/resource_bundle.py +205 -0
  195. oci/marketplace_publisher/models/seller_information.py +99 -0
  196. oci/marketplace_publisher/models/update_offer_details.py +467 -0
  197. oci/marketplace_publisher/models/work_request.py +23 -3
  198. oci/marketplace_publisher/models/work_request_summary.py +23 -3
  199. oci/marketplace_publisher/offer_client.py +789 -0
  200. oci/marketplace_publisher/offer_client_composite_operations.py +160 -0
  201. oci/media_services/media_services_client.py +60 -60
  202. oci/media_services/media_stream_client.py +2 -2
  203. oci/monitoring/monitoring_client.py +18 -18
  204. oci/mysql/channels_client.py +7 -7
  205. oci/mysql/db_backups_client.py +6 -6
  206. oci/mysql/db_system_client.py +17 -17
  207. oci/mysql/mysqlaas_client.py +7 -7
  208. oci/mysql/replicas_client.py +5 -5
  209. oci/mysql/work_requests_client.py +4 -4
  210. oci/network_firewall/network_firewall_client.py +80 -80
  211. oci/network_load_balancer/models/create_listener_details.py +33 -2
  212. oci/network_load_balancer/models/listener.py +33 -2
  213. oci/network_load_balancer/models/listener_details.py +33 -2
  214. oci/network_load_balancer/models/listener_summary.py +33 -2
  215. oci/network_load_balancer/models/update_listener_details.py +33 -2
  216. oci/network_load_balancer/network_load_balancer_client.py +34 -34
  217. oci/nosql/nosql_client.py +24 -24
  218. oci/object_storage/object_storage_client.py +50 -50
  219. oci/oce/oce_instance_client.py +10 -10
  220. oci/oci_control_center/occ_metrics_client.py +3 -3
  221. oci/ocvp/cluster_client.py +5 -5
  222. oci/ocvp/esxi_host_client.py +8 -8
  223. oci/ocvp/sddc_client.py +14 -14
  224. oci/ocvp/work_request_client.py +4 -4
  225. oci/oda/management_client.py +59 -59
  226. oci/oda/oda_client.py +17 -17
  227. oci/oda/odapackage_client.py +7 -7
  228. oci/onesubscription/billing_schedule_client.py +1 -1
  229. oci/onesubscription/commitment_client.py +2 -2
  230. oci/onesubscription/computed_usage_client.py +3 -3
  231. oci/onesubscription/invoice_summary_client.py +2 -2
  232. oci/onesubscription/organization_subscription_client.py +1 -1
  233. oci/onesubscription/ratecard_client.py +1 -1
  234. oci/onesubscription/subscribed_service_client.py +2 -2
  235. oci/onesubscription/subscription_client.py +1 -1
  236. oci/ons/notification_control_plane_client.py +6 -6
  237. oci/ons/notification_data_plane_client.py +10 -10
  238. oci/opa/opa_instance_client.py +13 -13
  239. oci/opensearch/opensearch_cluster_backup_client.py +4 -4
  240. oci/opensearch/opensearch_cluster_client.py +14 -14
  241. oci/operator_access_control/access_requests_client.py +10 -10
  242. oci/operator_access_control/operator_actions_client.py +2 -2
  243. oci/operator_access_control/operator_control_assignment_client.py +8 -8
  244. oci/operator_access_control/operator_control_client.py +6 -6
  245. oci/opsi/operations_insights_client.py +175 -175
  246. oci/optimizer/optimizer_client.py +26 -26
  247. oci/os_management/event_client.py +8 -8
  248. oci/os_management/os_management_client.py +69 -69
  249. oci/os_management_hub/event_client.py +8 -8
  250. oci/os_management_hub/lifecycle_environment_client.py +12 -12
  251. oci/os_management_hub/managed_instance_client.py +31 -31
  252. oci/os_management_hub/managed_instance_group_client.py +25 -25
  253. oci/os_management_hub/management_station_client.py +10 -10
  254. oci/os_management_hub/onboarding_client.py +6 -6
  255. oci/os_management_hub/reporting_managed_instance_client.py +3 -3
  256. oci/os_management_hub/scheduled_job_client.py +7 -7
  257. oci/os_management_hub/software_source_client.py +27 -27
  258. oci/os_management_hub/work_request_client.py +4 -4
  259. oci/osp_gateway/address_rule_service_client.py +1 -1
  260. oci/osp_gateway/address_service_client.py +2 -2
  261. oci/osp_gateway/invoice_service_client.py +5 -5
  262. oci/osp_gateway/subscription_service_client.py +5 -5
  263. oci/osub_billing_schedule/billing_schedule_client.py +1 -1
  264. oci/osub_organization_subscription/organization_subscription_client.py +1 -1
  265. oci/osub_subscription/commitment_client.py +2 -2
  266. oci/osub_subscription/ratecard_client.py +1 -1
  267. oci/osub_subscription/subscription_client.py +1 -1
  268. oci/osub_usage/computed_usage_client.py +3 -3
  269. oci/psql/postgresql_client.py +33 -33
  270. oci/queue/queue_admin_client.py +11 -11
  271. oci/queue/queue_client.py +8 -8
  272. oci/recovery/database_recovery_client.py +25 -25
  273. oci/redis/redis_cluster_client.py +11 -11
  274. oci/resource_manager/resource_manager_client.py +52 -52
  275. oci/resource_search/resource_search_client.py +3 -3
  276. oci/rover/rover_bundle_client.py +8 -8
  277. oci/rover/rover_cluster_client.py +8 -8
  278. oci/rover/rover_entitlement_client.py +6 -6
  279. oci/rover/rover_node_client.py +15 -15
  280. oci/rover/shape_client.py +1 -1
  281. oci/rover/work_requests_client.py +5 -5
  282. oci/sch/connector_plugins_client.py +2 -2
  283. oci/sch/service_connector_client.py +12 -12
  284. oci/secrets/secrets_client.py +3 -3
  285. oci/service_catalog/service_catalog_client.py +26 -26
  286. oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
  287. oci/service_mesh/service_mesh_client.py +48 -48
  288. oci/stack_monitoring/stack_monitoring_client.py +64 -64
  289. oci/streaming/stream_admin_client.py +18 -18
  290. oci/streaming/stream_client.py +8 -8
  291. oci/tenant_manager_control_plane/domain_client.py +5 -5
  292. oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
  293. oci/tenant_manager_control_plane/governance_client.py +2 -2
  294. oci/tenant_manager_control_plane/link_client.py +3 -3
  295. oci/tenant_manager_control_plane/orders_client.py +2 -2
  296. oci/tenant_manager_control_plane/organization_client.py +10 -10
  297. oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
  298. oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
  299. oci/tenant_manager_control_plane/subscription_client.py +11 -11
  300. oci/tenant_manager_control_plane/work_request_client.py +4 -4
  301. oci/threat_intelligence/threatintel_client.py +5 -5
  302. oci/usage/resources_client.py +2 -2
  303. oci/usage/rewards_client.py +6 -6
  304. oci/usage/usagelimits_client.py +1 -1
  305. oci/usage_api/usageapi_client.py +33 -33
  306. oci/vault/vaults_client.py +13 -13
  307. oci/vbs_inst/vbs_instance_client.py +10 -10
  308. oci/version.py +1 -1
  309. oci/visual_builder/vb_instance_client.py +13 -13
  310. oci/vn_monitoring/vn_monitoring_client.py +12 -12
  311. oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
  312. oci/waa/waa_client.py +13 -13
  313. oci/waa/work_request_client.py +4 -4
  314. oci/waas/redirect_client.py +6 -6
  315. oci/waas/waas_client.py +66 -66
  316. oci/waf/waf_client.py +24 -24
  317. oci/work_requests/work_request_client.py +4 -4
  318. {oci-2.126.2.dist-info → oci-2.126.3.dist-info}/METADATA +1 -1
  319. {oci-2.126.2.dist-info → oci-2.126.3.dist-info}/RECORD +323 -274
  320. {oci-2.126.2.dist-info → oci-2.126.3.dist-info}/LICENSE.txt +0 -0
  321. {oci-2.126.2.dist-info → oci-2.126.3.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  322. {oci-2.126.2.dist-info → oci-2.126.3.dist-info}/WHEEL +0 -0
  323. {oci-2.126.2.dist-info → oci-2.126.3.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,789 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
3
+ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
+
5
+ # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220901
6
+
7
+ from __future__ import absolute_import
8
+
9
+ from oci._vendor import requests # noqa: F401
10
+ from oci._vendor import six
11
+
12
+ from oci import retry, circuit_breaker # noqa: F401
13
+ from oci.base_client import BaseClient
14
+ from oci.config import get_config_value_or_default, validate_config
15
+ from oci.signer import Signer
16
+ from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME
17
+ from oci.exceptions import InvalidAlloyConfig
18
+ from oci.alloy import OCI_SDK_ENABLED_SERVICES_SET
19
+ from .models import marketplace_private_offer_type_mapping
20
+ missing = Sentinel("Missing")
21
+
22
+
23
+ class OfferClient(object):
24
+ """
25
+ Use the Marketplace Publisher API to manage the publishing of applications in Oracle Cloud Infrastructure Marketplace.
26
+ """
27
+
28
+ def __init__(self, config, **kwargs):
29
+ """
30
+ Creates a new service client
31
+
32
+ :param dict config:
33
+ Configuration keys and values as per `SDK and Tool Configuration <https://docs.cloud.oracle.com/Content/API/Concepts/sdkconfig.htm>`__.
34
+ The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config
35
+ the dict using :py:meth:`~oci.config.validate_config`
36
+
37
+ :param str service_endpoint: (optional)
38
+ The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is
39
+ not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit
40
+ need to specify a service endpoint.
41
+
42
+ :param timeout: (optional)
43
+ The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided
44
+ as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If
45
+ a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout.
46
+ :type timeout: float or tuple(float, float)
47
+
48
+ :param signer: (optional)
49
+ The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values
50
+ provided in the config parameter.
51
+
52
+ One use case for this parameter is for `Instance Principals authentication <https://docs.cloud.oracle.com/Content/Identity/Tasks/callingservicesfrominstances.htm>`__
53
+ by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument
54
+ :type signer: :py:class:`~oci.signer.AbstractBaseSigner`
55
+
56
+ :param obj retry_strategy: (optional)
57
+ A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default.
58
+ Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation.
59
+ Any value provided at the operation level will override whatever is specified at the client level.
60
+
61
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
62
+ is also available. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
63
+
64
+ :param obj circuit_breaker_strategy: (optional)
65
+ A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level).
66
+ This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided.
67
+ The specifics of circuit breaker strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/circuit_breakers.html>`__.
68
+
69
+ :param function circuit_breaker_callback: (optional)
70
+ Callback function to receive any exceptions triggerred by the circuit breaker.
71
+
72
+ :param bool client_level_realm_specific_endpoint_template_enabled: (optional)
73
+ A boolean flag to indicate whether or not this client should be created with realm specific endpoint template enabled or disable. By default, this will be set as None.
74
+
75
+ :param allow_control_chars: (optional)
76
+ allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not
77
+ allow control characters to be in the response object.
78
+ """
79
+ if not OCI_SDK_ENABLED_SERVICES_SET.is_service_enabled("marketplace_private_offer"):
80
+ raise InvalidAlloyConfig("The Alloy configuration has disabled this service, this behavior is controlled by OCI_SDK_ENABLED_SERVICES_SET variable. Please check if your local alloy-config file configured the service you're targeting or contact the cloud provider on the availability of this service")
81
+
82
+ validate_config(config, signer=kwargs.get('signer'))
83
+ if 'signer' in kwargs:
84
+ signer = kwargs['signer']
85
+
86
+ elif AUTHENTICATION_TYPE_FIELD_NAME in config:
87
+ signer = get_signer_from_authentication_type(config)
88
+
89
+ else:
90
+ signer = Signer(
91
+ tenancy=config["tenancy"],
92
+ user=config["user"],
93
+ fingerprint=config["fingerprint"],
94
+ private_key_file_location=config.get("key_file"),
95
+ pass_phrase=get_config_value_or_default(config, "pass_phrase"),
96
+ private_key_content=config.get("key_content")
97
+ )
98
+
99
+ base_client_init_kwargs = {
100
+ 'regional_client': True,
101
+ 'service_endpoint': kwargs.get('service_endpoint'),
102
+ 'base_path': '/20220901',
103
+ 'service_endpoint_template': 'https://private-offer.{region}.oci.{secondLevelDomain}',
104
+ 'service_endpoint_template_per_realm': { }, # noqa: E201 E202
105
+ 'skip_deserialization': kwargs.get('skip_deserialization', False),
106
+ 'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY),
107
+ 'client_level_realm_specific_endpoint_template_enabled': kwargs.get('client_level_realm_specific_endpoint_template_enabled')
108
+ }
109
+ if 'timeout' in kwargs:
110
+ base_client_init_kwargs['timeout'] = kwargs.get('timeout')
111
+ if base_client_init_kwargs.get('circuit_breaker_strategy') is None:
112
+ base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY
113
+ if 'allow_control_chars' in kwargs:
114
+ base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars')
115
+ self.base_client = BaseClient("offer", config, signer, marketplace_private_offer_type_mapping, **base_client_init_kwargs)
116
+ self.retry_strategy = kwargs.get('retry_strategy')
117
+ self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
118
+
119
+ def create_offer(self, create_offer_details, **kwargs):
120
+ """
121
+ Creates a new Offer.
122
+
123
+
124
+ :param oci.marketplace_private_offer.models.CreateOfferDetails create_offer_details: (required)
125
+ Details for the new Offer.
126
+
127
+ :param str opc_retry_token: (optional)
128
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
129
+ server error without risk of executing that same action again. Retry tokens expire after 24
130
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
131
+ has been deleted and purged from the system, then a retry of the original creation request
132
+ might be rejected.
133
+
134
+ :param str opc_request_id: (optional)
135
+ The client request ID for tracing.
136
+
137
+ :param obj retry_strategy: (optional)
138
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
139
+
140
+ 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.
141
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
142
+
143
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
144
+
145
+ :param bool allow_control_chars: (optional)
146
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
147
+ By default, the response will not allow control characters in strings
148
+
149
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.marketplace_private_offer.models.Offer`
150
+ :rtype: :class:`~oci.response.Response`
151
+
152
+ :example:
153
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.3/marketplaceprivateoffer/create_offer.py.html>`__ to see an example of how to use create_offer API.
154
+ """
155
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
156
+ required_arguments = []
157
+ resource_path = "/offers"
158
+ method = "POST"
159
+ operation_name = "create_offer"
160
+ api_reference_link = ""
161
+
162
+ # Don't accept unknown kwargs
163
+ expected_kwargs = [
164
+ "allow_control_chars",
165
+ "retry_strategy",
166
+ "opc_retry_token",
167
+ "opc_request_id"
168
+ ]
169
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
170
+ if extra_kwargs:
171
+ raise ValueError(
172
+ f"create_offer got unknown kwargs: {extra_kwargs!r}")
173
+
174
+ header_params = {
175
+ "accept": "application/json",
176
+ "content-type": "application/json",
177
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
178
+ "opc-request-id": kwargs.get("opc_request_id", missing)
179
+ }
180
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
181
+
182
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
183
+ operation_retry_strategy=kwargs.get('retry_strategy'),
184
+ client_retry_strategy=self.retry_strategy
185
+ )
186
+ if retry_strategy is None:
187
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
188
+
189
+ if retry_strategy:
190
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
191
+ self.base_client.add_opc_retry_token_if_needed(header_params)
192
+ self.base_client.add_opc_client_retries_header(header_params)
193
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
194
+ return retry_strategy.make_retrying_call(
195
+ self.base_client.call_api,
196
+ resource_path=resource_path,
197
+ method=method,
198
+ header_params=header_params,
199
+ body=create_offer_details,
200
+ response_type="Offer",
201
+ allow_control_chars=kwargs.get('allow_control_chars'),
202
+ operation_name=operation_name,
203
+ api_reference_link=api_reference_link,
204
+ required_arguments=required_arguments)
205
+ else:
206
+ return self.base_client.call_api(
207
+ resource_path=resource_path,
208
+ method=method,
209
+ header_params=header_params,
210
+ body=create_offer_details,
211
+ response_type="Offer",
212
+ allow_control_chars=kwargs.get('allow_control_chars'),
213
+ operation_name=operation_name,
214
+ api_reference_link=api_reference_link,
215
+ required_arguments=required_arguments)
216
+
217
+ def delete_offer(self, offer_id, **kwargs):
218
+ """
219
+ Deletes an Offer resource by identifier
220
+
221
+
222
+ :param str offer_id: (required)
223
+ unique Offer identifier
224
+
225
+ :param str if_match: (optional)
226
+ For optimistic concurrency control. In the PUT or DELETE call
227
+ for a resource, set the `if-match` parameter to the value of the
228
+ etag from a previous GET or POST response for that resource.
229
+ The resource will be updated or deleted only if the etag you
230
+ provide matches the resource's current etag value.
231
+
232
+ :param str opc_request_id: (optional)
233
+ The client request ID for tracing.
234
+
235
+ :param obj retry_strategy: (optional)
236
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
237
+
238
+ 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.
239
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
240
+
241
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
242
+
243
+ :param bool allow_control_chars: (optional)
244
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
245
+ By default, the response will not allow control characters in strings
246
+
247
+ :return: A :class:`~oci.response.Response` object with data of type None
248
+ :rtype: :class:`~oci.response.Response`
249
+
250
+ :example:
251
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.3/marketplaceprivateoffer/delete_offer.py.html>`__ to see an example of how to use delete_offer API.
252
+ """
253
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
254
+ required_arguments = ['offerId']
255
+ resource_path = "/offers/{offerId}"
256
+ method = "DELETE"
257
+ operation_name = "delete_offer"
258
+ api_reference_link = ""
259
+
260
+ # Don't accept unknown kwargs
261
+ expected_kwargs = [
262
+ "allow_control_chars",
263
+ "retry_strategy",
264
+ "if_match",
265
+ "opc_request_id"
266
+ ]
267
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
268
+ if extra_kwargs:
269
+ raise ValueError(
270
+ f"delete_offer got unknown kwargs: {extra_kwargs!r}")
271
+
272
+ path_params = {
273
+ "offerId": offer_id
274
+ }
275
+
276
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
277
+
278
+ for (k, v) in six.iteritems(path_params):
279
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
280
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
281
+
282
+ header_params = {
283
+ "accept": "application/json",
284
+ "content-type": "application/json",
285
+ "if-match": kwargs.get("if_match", missing),
286
+ "opc-request-id": kwargs.get("opc_request_id", missing)
287
+ }
288
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
289
+
290
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
291
+ operation_retry_strategy=kwargs.get('retry_strategy'),
292
+ client_retry_strategy=self.retry_strategy
293
+ )
294
+ if retry_strategy is None:
295
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
296
+
297
+ if retry_strategy:
298
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
299
+ self.base_client.add_opc_client_retries_header(header_params)
300
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
301
+ return retry_strategy.make_retrying_call(
302
+ self.base_client.call_api,
303
+ resource_path=resource_path,
304
+ method=method,
305
+ path_params=path_params,
306
+ header_params=header_params,
307
+ allow_control_chars=kwargs.get('allow_control_chars'),
308
+ operation_name=operation_name,
309
+ api_reference_link=api_reference_link,
310
+ required_arguments=required_arguments)
311
+ else:
312
+ return self.base_client.call_api(
313
+ resource_path=resource_path,
314
+ method=method,
315
+ path_params=path_params,
316
+ header_params=header_params,
317
+ allow_control_chars=kwargs.get('allow_control_chars'),
318
+ operation_name=operation_name,
319
+ api_reference_link=api_reference_link,
320
+ required_arguments=required_arguments)
321
+
322
+ def get_offer(self, offer_id, **kwargs):
323
+ """
324
+ Gets an Offer by identifier
325
+
326
+
327
+ :param str offer_id: (required)
328
+ unique Offer identifier
329
+
330
+ :param str opc_request_id: (optional)
331
+ The client request ID for tracing.
332
+
333
+ :param obj retry_strategy: (optional)
334
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
335
+
336
+ 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.
337
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
338
+
339
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
340
+
341
+ :param bool allow_control_chars: (optional)
342
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
343
+ By default, the response will not allow control characters in strings
344
+
345
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.marketplace_private_offer.models.Offer`
346
+ :rtype: :class:`~oci.response.Response`
347
+
348
+ :example:
349
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.3/marketplaceprivateoffer/get_offer.py.html>`__ to see an example of how to use get_offer API.
350
+ """
351
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
352
+ required_arguments = ['offerId']
353
+ resource_path = "/offers/{offerId}"
354
+ method = "GET"
355
+ operation_name = "get_offer"
356
+ api_reference_link = ""
357
+
358
+ # Don't accept unknown kwargs
359
+ expected_kwargs = [
360
+ "allow_control_chars",
361
+ "retry_strategy",
362
+ "opc_request_id"
363
+ ]
364
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
365
+ if extra_kwargs:
366
+ raise ValueError(
367
+ f"get_offer got unknown kwargs: {extra_kwargs!r}")
368
+
369
+ path_params = {
370
+ "offerId": offer_id
371
+ }
372
+
373
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
374
+
375
+ for (k, v) in six.iteritems(path_params):
376
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
377
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
378
+
379
+ header_params = {
380
+ "accept": "application/json",
381
+ "content-type": "application/json",
382
+ "opc-request-id": kwargs.get("opc_request_id", missing)
383
+ }
384
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
385
+
386
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
387
+ operation_retry_strategy=kwargs.get('retry_strategy'),
388
+ client_retry_strategy=self.retry_strategy
389
+ )
390
+ if retry_strategy is None:
391
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
392
+
393
+ if retry_strategy:
394
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
395
+ self.base_client.add_opc_client_retries_header(header_params)
396
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
397
+ return retry_strategy.make_retrying_call(
398
+ self.base_client.call_api,
399
+ resource_path=resource_path,
400
+ method=method,
401
+ path_params=path_params,
402
+ header_params=header_params,
403
+ response_type="Offer",
404
+ allow_control_chars=kwargs.get('allow_control_chars'),
405
+ operation_name=operation_name,
406
+ api_reference_link=api_reference_link,
407
+ required_arguments=required_arguments)
408
+ else:
409
+ return self.base_client.call_api(
410
+ resource_path=resource_path,
411
+ method=method,
412
+ path_params=path_params,
413
+ header_params=header_params,
414
+ response_type="Offer",
415
+ allow_control_chars=kwargs.get('allow_control_chars'),
416
+ operation_name=operation_name,
417
+ api_reference_link=api_reference_link,
418
+ required_arguments=required_arguments)
419
+
420
+ def get_offer_internal_detail(self, offer_id, **kwargs):
421
+ """
422
+ Gets an Offer internal details by identifier
423
+
424
+
425
+ :param str offer_id: (required)
426
+ unique Offer identifier
427
+
428
+ :param str opc_request_id: (optional)
429
+ The client request ID for tracing.
430
+
431
+ :param obj retry_strategy: (optional)
432
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
433
+
434
+ 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.
435
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
436
+
437
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
438
+
439
+ :param bool allow_control_chars: (optional)
440
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
441
+ By default, the response will not allow control characters in strings
442
+
443
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.marketplace_private_offer.models.OfferInternalDetail`
444
+ :rtype: :class:`~oci.response.Response`
445
+
446
+ :example:
447
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.3/marketplaceprivateoffer/get_offer_internal_detail.py.html>`__ to see an example of how to use get_offer_internal_detail API.
448
+ """
449
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
450
+ required_arguments = ['offerId']
451
+ resource_path = "/offers/{offerId}/internalDetails"
452
+ method = "GET"
453
+ operation_name = "get_offer_internal_detail"
454
+ api_reference_link = ""
455
+
456
+ # Don't accept unknown kwargs
457
+ expected_kwargs = [
458
+ "allow_control_chars",
459
+ "retry_strategy",
460
+ "opc_request_id"
461
+ ]
462
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
463
+ if extra_kwargs:
464
+ raise ValueError(
465
+ f"get_offer_internal_detail got unknown kwargs: {extra_kwargs!r}")
466
+
467
+ path_params = {
468
+ "offerId": offer_id
469
+ }
470
+
471
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
472
+
473
+ for (k, v) in six.iteritems(path_params):
474
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
475
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
476
+
477
+ header_params = {
478
+ "accept": "application/json",
479
+ "content-type": "application/json",
480
+ "opc-request-id": kwargs.get("opc_request_id", missing)
481
+ }
482
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
483
+
484
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
485
+ operation_retry_strategy=kwargs.get('retry_strategy'),
486
+ client_retry_strategy=self.retry_strategy
487
+ )
488
+ if retry_strategy is None:
489
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
490
+
491
+ if retry_strategy:
492
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
493
+ self.base_client.add_opc_client_retries_header(header_params)
494
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
495
+ return retry_strategy.make_retrying_call(
496
+ self.base_client.call_api,
497
+ resource_path=resource_path,
498
+ method=method,
499
+ path_params=path_params,
500
+ header_params=header_params,
501
+ response_type="OfferInternalDetail",
502
+ allow_control_chars=kwargs.get('allow_control_chars'),
503
+ operation_name=operation_name,
504
+ api_reference_link=api_reference_link,
505
+ required_arguments=required_arguments)
506
+ else:
507
+ return self.base_client.call_api(
508
+ resource_path=resource_path,
509
+ method=method,
510
+ path_params=path_params,
511
+ header_params=header_params,
512
+ response_type="OfferInternalDetail",
513
+ allow_control_chars=kwargs.get('allow_control_chars'),
514
+ operation_name=operation_name,
515
+ api_reference_link=api_reference_link,
516
+ required_arguments=required_arguments)
517
+
518
+ def list_offers(self, **kwargs):
519
+ """
520
+ Returns a list of Offers. Requires either the BuyerCompartmentId or the SellerCompartmentId params. If neither or both are provided, then the API will return a 400.
521
+
522
+
523
+ :param str buyer_compartment_id: (optional)
524
+ The ID of the buyer compartment this offer is associated with.
525
+
526
+ :param str seller_compartment_id: (optional)
527
+ The ID of the seller compartment this offer is associated with.
528
+
529
+ :param str lifecycle_state: (optional)
530
+ A filter to return only resources their lifecycleState matches the given lifecycleState.
531
+
532
+ Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"
533
+
534
+ :param str display_name: (optional)
535
+ A filter to return only resources that match the entire display name given.
536
+
537
+ :param str id: (optional)
538
+ unique Offer identifier
539
+
540
+ :param int limit: (optional)
541
+ The maximum number of items to return.
542
+
543
+ :param str page: (optional)
544
+ A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
545
+
546
+ :param str sort_order: (optional)
547
+ The sort order to use, either 'ASC' or 'DESC'.
548
+
549
+ Allowed values are: "ASC", "DESC"
550
+
551
+ :param str sort_by: (optional)
552
+ The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
553
+
554
+ Allowed values are: "timeCreated", "displayName"
555
+
556
+ :param str opc_request_id: (optional)
557
+ The client request ID for tracing.
558
+
559
+ :param obj retry_strategy: (optional)
560
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
561
+
562
+ 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.
563
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
564
+
565
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
566
+
567
+ :param bool allow_control_chars: (optional)
568
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
569
+ By default, the response will not allow control characters in strings
570
+
571
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.marketplace_private_offer.models.OfferCollection`
572
+ :rtype: :class:`~oci.response.Response`
573
+
574
+ :example:
575
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.3/marketplaceprivateoffer/list_offers.py.html>`__ to see an example of how to use list_offers API.
576
+ """
577
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
578
+ required_arguments = []
579
+ resource_path = "/offers"
580
+ method = "GET"
581
+ operation_name = "list_offers"
582
+ api_reference_link = ""
583
+
584
+ # Don't accept unknown kwargs
585
+ expected_kwargs = [
586
+ "allow_control_chars",
587
+ "retry_strategy",
588
+ "buyer_compartment_id",
589
+ "seller_compartment_id",
590
+ "lifecycle_state",
591
+ "display_name",
592
+ "id",
593
+ "limit",
594
+ "page",
595
+ "sort_order",
596
+ "sort_by",
597
+ "opc_request_id"
598
+ ]
599
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
600
+ if extra_kwargs:
601
+ raise ValueError(
602
+ f"list_offers got unknown kwargs: {extra_kwargs!r}")
603
+
604
+ if 'lifecycle_state' in kwargs:
605
+ lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]
606
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
607
+ raise ValueError(
608
+ f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
609
+ )
610
+
611
+ if 'sort_order' in kwargs:
612
+ sort_order_allowed_values = ["ASC", "DESC"]
613
+ if kwargs['sort_order'] not in sort_order_allowed_values:
614
+ raise ValueError(
615
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
616
+ )
617
+
618
+ if 'sort_by' in kwargs:
619
+ sort_by_allowed_values = ["timeCreated", "displayName"]
620
+ if kwargs['sort_by'] not in sort_by_allowed_values:
621
+ raise ValueError(
622
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
623
+ )
624
+
625
+ query_params = {
626
+ "buyerCompartmentId": kwargs.get("buyer_compartment_id", missing),
627
+ "sellerCompartmentId": kwargs.get("seller_compartment_id", missing),
628
+ "lifecycleState": kwargs.get("lifecycle_state", missing),
629
+ "displayName": kwargs.get("display_name", missing),
630
+ "id": kwargs.get("id", missing),
631
+ "limit": kwargs.get("limit", missing),
632
+ "page": kwargs.get("page", missing),
633
+ "sortOrder": kwargs.get("sort_order", missing),
634
+ "sortBy": kwargs.get("sort_by", missing)
635
+ }
636
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
637
+
638
+ header_params = {
639
+ "accept": "application/json",
640
+ "content-type": "application/json",
641
+ "opc-request-id": kwargs.get("opc_request_id", missing)
642
+ }
643
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
644
+
645
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
646
+ operation_retry_strategy=kwargs.get('retry_strategy'),
647
+ client_retry_strategy=self.retry_strategy
648
+ )
649
+ if retry_strategy is None:
650
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
651
+
652
+ if retry_strategy:
653
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
654
+ self.base_client.add_opc_client_retries_header(header_params)
655
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
656
+ return retry_strategy.make_retrying_call(
657
+ self.base_client.call_api,
658
+ resource_path=resource_path,
659
+ method=method,
660
+ query_params=query_params,
661
+ header_params=header_params,
662
+ response_type="OfferCollection",
663
+ allow_control_chars=kwargs.get('allow_control_chars'),
664
+ operation_name=operation_name,
665
+ api_reference_link=api_reference_link,
666
+ required_arguments=required_arguments)
667
+ else:
668
+ return self.base_client.call_api(
669
+ resource_path=resource_path,
670
+ method=method,
671
+ query_params=query_params,
672
+ header_params=header_params,
673
+ response_type="OfferCollection",
674
+ allow_control_chars=kwargs.get('allow_control_chars'),
675
+ operation_name=operation_name,
676
+ api_reference_link=api_reference_link,
677
+ required_arguments=required_arguments)
678
+
679
+ def update_offer(self, offer_id, update_offer_details, **kwargs):
680
+ """
681
+ Updates the Offer
682
+
683
+
684
+ :param str offer_id: (required)
685
+ unique Offer identifier
686
+
687
+ :param oci.marketplace_private_offer.models.UpdateOfferDetails update_offer_details: (required)
688
+ The information to be updated.
689
+
690
+ :param str if_match: (optional)
691
+ For optimistic concurrency control. In the PUT or DELETE call
692
+ for a resource, set the `if-match` parameter to the value of the
693
+ etag from a previous GET or POST response for that resource.
694
+ The resource will be updated or deleted only if the etag you
695
+ provide matches the resource's current etag value.
696
+
697
+ :param str opc_request_id: (optional)
698
+ The client request ID for tracing.
699
+
700
+ :param obj retry_strategy: (optional)
701
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
702
+
703
+ 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.
704
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
705
+
706
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
707
+
708
+ :param bool allow_control_chars: (optional)
709
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
710
+ By default, the response will not allow control characters in strings
711
+
712
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.marketplace_private_offer.models.Offer`
713
+ :rtype: :class:`~oci.response.Response`
714
+
715
+ :example:
716
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.3/marketplaceprivateoffer/update_offer.py.html>`__ to see an example of how to use update_offer API.
717
+ """
718
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
719
+ required_arguments = ['offerId']
720
+ resource_path = "/offers/{offerId}"
721
+ method = "PUT"
722
+ operation_name = "update_offer"
723
+ api_reference_link = ""
724
+
725
+ # Don't accept unknown kwargs
726
+ expected_kwargs = [
727
+ "allow_control_chars",
728
+ "retry_strategy",
729
+ "if_match",
730
+ "opc_request_id"
731
+ ]
732
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
733
+ if extra_kwargs:
734
+ raise ValueError(
735
+ f"update_offer got unknown kwargs: {extra_kwargs!r}")
736
+
737
+ path_params = {
738
+ "offerId": offer_id
739
+ }
740
+
741
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
742
+
743
+ for (k, v) in six.iteritems(path_params):
744
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
745
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
746
+
747
+ header_params = {
748
+ "accept": "application/json",
749
+ "content-type": "application/json",
750
+ "if-match": kwargs.get("if_match", missing),
751
+ "opc-request-id": kwargs.get("opc_request_id", missing)
752
+ }
753
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
754
+
755
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
756
+ operation_retry_strategy=kwargs.get('retry_strategy'),
757
+ client_retry_strategy=self.retry_strategy
758
+ )
759
+ if retry_strategy is None:
760
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
761
+
762
+ if retry_strategy:
763
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
764
+ self.base_client.add_opc_client_retries_header(header_params)
765
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
766
+ return retry_strategy.make_retrying_call(
767
+ self.base_client.call_api,
768
+ resource_path=resource_path,
769
+ method=method,
770
+ path_params=path_params,
771
+ header_params=header_params,
772
+ body=update_offer_details,
773
+ response_type="Offer",
774
+ allow_control_chars=kwargs.get('allow_control_chars'),
775
+ operation_name=operation_name,
776
+ api_reference_link=api_reference_link,
777
+ required_arguments=required_arguments)
778
+ else:
779
+ return self.base_client.call_api(
780
+ resource_path=resource_path,
781
+ method=method,
782
+ path_params=path_params,
783
+ header_params=header_params,
784
+ body=update_offer_details,
785
+ response_type="Offer",
786
+ allow_control_chars=kwargs.get('allow_control_chars'),
787
+ operation_name=operation_name,
788
+ api_reference_link=api_reference_link,
789
+ required_arguments=required_arguments)