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,719 @@
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_publisher_type_mapping
20
+ missing = Sentinel("Missing")
21
+
22
+
23
+ class AttachmentClient(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_publisher"):
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://marketplace-publisher.{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("attachment", config, signer, marketplace_publisher_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_attachment(self, create_attachment_details, offer_id, **kwargs):
120
+ """
121
+ Creates a new Attachment.
122
+
123
+
124
+ :param oci.marketplace_publisher.models.CreateAttachmentDetails create_attachment_details: (required)
125
+ Details for the new Attachment.
126
+
127
+ :param str offer_id: (required)
128
+ unique Offer identifier
129
+
130
+ :param str opc_retry_token: (optional)
131
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
132
+ server error without risk of executing that same action again. Retry tokens expire after 24
133
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
134
+ has been deleted and purged from the system, then a retry of the original creation request
135
+ might be rejected.
136
+
137
+ :param str opc_request_id: (optional)
138
+ The client request ID for tracing.
139
+
140
+ :param obj retry_strategy: (optional)
141
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
142
+
143
+ 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.
144
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
145
+
146
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
147
+
148
+ :param bool allow_control_chars: (optional)
149
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
150
+ By default, the response will not allow control characters in strings
151
+
152
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.marketplace_publisher.models.Attachment`
153
+ :rtype: :class:`~oci.response.Response`
154
+
155
+ :example:
156
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.3/marketplacepublisher/create_attachment.py.html>`__ to see an example of how to use create_attachment API.
157
+ """
158
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
159
+ required_arguments = ['offerId']
160
+ resource_path = "/offers/{offerId}/attachments"
161
+ method = "POST"
162
+ operation_name = "create_attachment"
163
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/publisher/20220901/Attachment/CreateAttachment"
164
+
165
+ # Don't accept unknown kwargs
166
+ expected_kwargs = [
167
+ "allow_control_chars",
168
+ "retry_strategy",
169
+ "opc_retry_token",
170
+ "opc_request_id"
171
+ ]
172
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
173
+ if extra_kwargs:
174
+ raise ValueError(
175
+ f"create_attachment got unknown kwargs: {extra_kwargs!r}")
176
+
177
+ path_params = {
178
+ "offerId": offer_id
179
+ }
180
+
181
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
182
+
183
+ for (k, v) in six.iteritems(path_params):
184
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
185
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
186
+
187
+ header_params = {
188
+ "accept": "application/json",
189
+ "content-type": "application/json",
190
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
191
+ "opc-request-id": kwargs.get("opc_request_id", missing)
192
+ }
193
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
194
+
195
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
196
+ operation_retry_strategy=kwargs.get('retry_strategy'),
197
+ client_retry_strategy=self.retry_strategy
198
+ )
199
+ if retry_strategy is None:
200
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
201
+
202
+ if retry_strategy:
203
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
204
+ self.base_client.add_opc_retry_token_if_needed(header_params)
205
+ self.base_client.add_opc_client_retries_header(header_params)
206
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
207
+ return retry_strategy.make_retrying_call(
208
+ self.base_client.call_api,
209
+ resource_path=resource_path,
210
+ method=method,
211
+ path_params=path_params,
212
+ header_params=header_params,
213
+ body=create_attachment_details,
214
+ response_type="Attachment",
215
+ allow_control_chars=kwargs.get('allow_control_chars'),
216
+ operation_name=operation_name,
217
+ api_reference_link=api_reference_link,
218
+ required_arguments=required_arguments)
219
+ else:
220
+ return self.base_client.call_api(
221
+ resource_path=resource_path,
222
+ method=method,
223
+ path_params=path_params,
224
+ header_params=header_params,
225
+ body=create_attachment_details,
226
+ response_type="Attachment",
227
+ allow_control_chars=kwargs.get('allow_control_chars'),
228
+ operation_name=operation_name,
229
+ api_reference_link=api_reference_link,
230
+ required_arguments=required_arguments)
231
+
232
+ def delete_attachment(self, offer_id, attachment_id, **kwargs):
233
+ """
234
+ Deletes a Attachment resource by identifier
235
+
236
+
237
+ :param str offer_id: (required)
238
+ unique Offer identifier
239
+
240
+ :param str attachment_id: (required)
241
+ unique Offer identifier
242
+
243
+ :param str if_match: (optional)
244
+ For optimistic concurrency control. In the PUT or DELETE call
245
+ for a resource, set the `if-match` parameter to the value of the
246
+ etag from a previous GET or POST response for that resource.
247
+ The resource will be updated or deleted only if the etag you
248
+ provide matches the resource's current etag value.
249
+
250
+ :param str opc_request_id: (optional)
251
+ The client request ID for tracing.
252
+
253
+ :param obj retry_strategy: (optional)
254
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
255
+
256
+ 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.
257
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
258
+
259
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
260
+
261
+ :param bool allow_control_chars: (optional)
262
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
263
+ By default, the response will not allow control characters in strings
264
+
265
+ :return: A :class:`~oci.response.Response` object with data of type None
266
+ :rtype: :class:`~oci.response.Response`
267
+
268
+ :example:
269
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.3/marketplacepublisher/delete_attachment.py.html>`__ to see an example of how to use delete_attachment API.
270
+ """
271
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
272
+ required_arguments = ['offerId', 'attachmentId']
273
+ resource_path = "/offers/{offerId}/attachments/{attachmentId}"
274
+ method = "DELETE"
275
+ operation_name = "delete_attachment"
276
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/publisher/20220901/Attachment/DeleteAttachment"
277
+
278
+ # Don't accept unknown kwargs
279
+ expected_kwargs = [
280
+ "allow_control_chars",
281
+ "retry_strategy",
282
+ "if_match",
283
+ "opc_request_id"
284
+ ]
285
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
286
+ if extra_kwargs:
287
+ raise ValueError(
288
+ f"delete_attachment got unknown kwargs: {extra_kwargs!r}")
289
+
290
+ path_params = {
291
+ "offerId": offer_id,
292
+ "attachmentId": attachment_id
293
+ }
294
+
295
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
296
+
297
+ for (k, v) in six.iteritems(path_params):
298
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
299
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
300
+
301
+ header_params = {
302
+ "accept": "application/json",
303
+ "content-type": "application/json",
304
+ "if-match": kwargs.get("if_match", missing),
305
+ "opc-request-id": kwargs.get("opc_request_id", missing)
306
+ }
307
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
308
+
309
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
310
+ operation_retry_strategy=kwargs.get('retry_strategy'),
311
+ client_retry_strategy=self.retry_strategy
312
+ )
313
+ if retry_strategy is None:
314
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
315
+
316
+ if retry_strategy:
317
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
318
+ self.base_client.add_opc_client_retries_header(header_params)
319
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
320
+ return retry_strategy.make_retrying_call(
321
+ self.base_client.call_api,
322
+ resource_path=resource_path,
323
+ method=method,
324
+ path_params=path_params,
325
+ header_params=header_params,
326
+ allow_control_chars=kwargs.get('allow_control_chars'),
327
+ operation_name=operation_name,
328
+ api_reference_link=api_reference_link,
329
+ required_arguments=required_arguments)
330
+ else:
331
+ return self.base_client.call_api(
332
+ resource_path=resource_path,
333
+ method=method,
334
+ path_params=path_params,
335
+ header_params=header_params,
336
+ allow_control_chars=kwargs.get('allow_control_chars'),
337
+ operation_name=operation_name,
338
+ api_reference_link=api_reference_link,
339
+ required_arguments=required_arguments)
340
+
341
+ def get_attachment(self, offer_id, attachment_id, **kwargs):
342
+ """
343
+ Gets a Attachment by identifier
344
+
345
+
346
+ :param str offer_id: (required)
347
+ unique Offer identifier
348
+
349
+ :param str attachment_id: (required)
350
+ unique Offer identifier
351
+
352
+ :param str opc_request_id: (optional)
353
+ The client request ID for tracing.
354
+
355
+ :param obj retry_strategy: (optional)
356
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
357
+
358
+ 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.
359
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
360
+
361
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
362
+
363
+ :param bool allow_control_chars: (optional)
364
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
365
+ By default, the response will not allow control characters in strings
366
+
367
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.marketplace_publisher.models.Attachment`
368
+ :rtype: :class:`~oci.response.Response`
369
+
370
+ :example:
371
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.3/marketplacepublisher/get_attachment.py.html>`__ to see an example of how to use get_attachment API.
372
+ """
373
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
374
+ required_arguments = ['offerId', 'attachmentId']
375
+ resource_path = "/offers/{offerId}/attachments/{attachmentId}"
376
+ method = "GET"
377
+ operation_name = "get_attachment"
378
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/publisher/20220901/Attachment/GetAttachment"
379
+
380
+ # Don't accept unknown kwargs
381
+ expected_kwargs = [
382
+ "allow_control_chars",
383
+ "retry_strategy",
384
+ "opc_request_id"
385
+ ]
386
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
387
+ if extra_kwargs:
388
+ raise ValueError(
389
+ f"get_attachment got unknown kwargs: {extra_kwargs!r}")
390
+
391
+ path_params = {
392
+ "offerId": offer_id,
393
+ "attachmentId": attachment_id
394
+ }
395
+
396
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
397
+
398
+ for (k, v) in six.iteritems(path_params):
399
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
400
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
401
+
402
+ header_params = {
403
+ "accept": "application/json",
404
+ "content-type": "application/json",
405
+ "opc-request-id": kwargs.get("opc_request_id", missing)
406
+ }
407
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
408
+
409
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
410
+ operation_retry_strategy=kwargs.get('retry_strategy'),
411
+ client_retry_strategy=self.retry_strategy
412
+ )
413
+ if retry_strategy is None:
414
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
415
+
416
+ if retry_strategy:
417
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
418
+ self.base_client.add_opc_client_retries_header(header_params)
419
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
420
+ return retry_strategy.make_retrying_call(
421
+ self.base_client.call_api,
422
+ resource_path=resource_path,
423
+ method=method,
424
+ path_params=path_params,
425
+ header_params=header_params,
426
+ response_type="Attachment",
427
+ allow_control_chars=kwargs.get('allow_control_chars'),
428
+ operation_name=operation_name,
429
+ api_reference_link=api_reference_link,
430
+ required_arguments=required_arguments)
431
+ else:
432
+ return self.base_client.call_api(
433
+ resource_path=resource_path,
434
+ method=method,
435
+ path_params=path_params,
436
+ header_params=header_params,
437
+ response_type="Attachment",
438
+ allow_control_chars=kwargs.get('allow_control_chars'),
439
+ operation_name=operation_name,
440
+ api_reference_link=api_reference_link,
441
+ required_arguments=required_arguments)
442
+
443
+ def get_attachment_content(self, offer_id, attachment_id, **kwargs):
444
+ """
445
+ Gets a Attachment content by identifier
446
+
447
+
448
+ :param str offer_id: (required)
449
+ unique Offer identifier
450
+
451
+ :param str attachment_id: (required)
452
+ unique Offer identifier
453
+
454
+ :param str opc_request_id: (optional)
455
+ The client request ID for tracing.
456
+
457
+ :param obj retry_strategy: (optional)
458
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
459
+
460
+ 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.
461
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
462
+
463
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
464
+
465
+ :param bool allow_control_chars: (optional)
466
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
467
+ By default, the response will not allow control characters in strings
468
+
469
+ :return: A :class:`~oci.response.Response` object with data of type stream
470
+ :rtype: :class:`~oci.response.Response`
471
+
472
+ :example:
473
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.3/marketplacepublisher/get_attachment_content.py.html>`__ to see an example of how to use get_attachment_content API.
474
+ """
475
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
476
+ required_arguments = ['offerId', 'attachmentId']
477
+ resource_path = "/offers/{offerId}/attachments/{attachmentId}/content"
478
+ method = "GET"
479
+ operation_name = "get_attachment_content"
480
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/publisher/20220901/Attachment/GetAttachmentContent"
481
+
482
+ # Don't accept unknown kwargs
483
+ expected_kwargs = [
484
+ "allow_control_chars",
485
+ "retry_strategy",
486
+ "opc_request_id"
487
+ ]
488
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
489
+ if extra_kwargs:
490
+ raise ValueError(
491
+ f"get_attachment_content got unknown kwargs: {extra_kwargs!r}")
492
+
493
+ path_params = {
494
+ "offerId": offer_id,
495
+ "attachmentId": attachment_id
496
+ }
497
+
498
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
499
+
500
+ for (k, v) in six.iteritems(path_params):
501
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
502
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
503
+
504
+ header_params = {
505
+ "accept": "application/json",
506
+ "content-type": "application/json",
507
+ "opc-request-id": kwargs.get("opc_request_id", missing)
508
+ }
509
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
510
+
511
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
512
+ operation_retry_strategy=kwargs.get('retry_strategy'),
513
+ client_retry_strategy=self.retry_strategy
514
+ )
515
+ if retry_strategy is None:
516
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
517
+
518
+ if retry_strategy:
519
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
520
+ self.base_client.add_opc_client_retries_header(header_params)
521
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
522
+ return retry_strategy.make_retrying_call(
523
+ self.base_client.call_api,
524
+ resource_path=resource_path,
525
+ method=method,
526
+ path_params=path_params,
527
+ header_params=header_params,
528
+ response_type="stream",
529
+ allow_control_chars=kwargs.get('allow_control_chars'),
530
+ operation_name=operation_name,
531
+ api_reference_link=api_reference_link,
532
+ required_arguments=required_arguments)
533
+ else:
534
+ return self.base_client.call_api(
535
+ resource_path=resource_path,
536
+ method=method,
537
+ path_params=path_params,
538
+ header_params=header_params,
539
+ response_type="stream",
540
+ allow_control_chars=kwargs.get('allow_control_chars'),
541
+ operation_name=operation_name,
542
+ api_reference_link=api_reference_link,
543
+ required_arguments=required_arguments)
544
+
545
+ def list_attachments(self, offer_id, **kwargs):
546
+ """
547
+ Returns a list of Attachments. Requires either the BuyerCompartmentId or the SellerCompartmentId params. If neither or both are provided, then the API will return a 400.
548
+
549
+
550
+ :param str offer_id: (required)
551
+ unique Offer identifier
552
+
553
+ :param str buyer_compartment_id: (optional)
554
+ The ID of the buyer compartment this offer is associated with.
555
+
556
+ :param str seller_compartment_id: (optional)
557
+ The ID of the seller compartment this offer is associated with.
558
+
559
+ :param str lifecycle_state: (optional)
560
+ A filter to return only resources their lifecycleState matches the given lifecycleState.
561
+
562
+ Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"
563
+
564
+ :param str display_name: (optional)
565
+ A filter to return only resources that match the entire display name given.
566
+
567
+ :param str id: (optional)
568
+ unique Offer identifier
569
+
570
+ :param int limit: (optional)
571
+ The maximum number of items to return.
572
+
573
+ :param str page: (optional)
574
+ 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.
575
+
576
+ :param str sort_order: (optional)
577
+ The sort order to use, either 'ASC' or 'DESC'.
578
+
579
+ Allowed values are: "ASC", "DESC"
580
+
581
+ :param str sort_by: (optional)
582
+ The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
583
+
584
+ Allowed values are: "timeCreated", "displayName"
585
+
586
+ :param str opc_request_id: (optional)
587
+ The client request ID for tracing.
588
+
589
+ :param obj retry_strategy: (optional)
590
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
591
+
592
+ 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.
593
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
594
+
595
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
596
+
597
+ :param bool allow_control_chars: (optional)
598
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
599
+ By default, the response will not allow control characters in strings
600
+
601
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.marketplace_publisher.models.AttachmentCollection`
602
+ :rtype: :class:`~oci.response.Response`
603
+
604
+ :example:
605
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.3/marketplacepublisher/list_attachments.py.html>`__ to see an example of how to use list_attachments API.
606
+ """
607
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
608
+ required_arguments = ['offerId']
609
+ resource_path = "/offers/{offerId}/attachments"
610
+ method = "GET"
611
+ operation_name = "list_attachments"
612
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/publisher/20220901/AttachmentCollection/ListAttachments"
613
+
614
+ # Don't accept unknown kwargs
615
+ expected_kwargs = [
616
+ "allow_control_chars",
617
+ "retry_strategy",
618
+ "buyer_compartment_id",
619
+ "seller_compartment_id",
620
+ "lifecycle_state",
621
+ "display_name",
622
+ "id",
623
+ "limit",
624
+ "page",
625
+ "sort_order",
626
+ "sort_by",
627
+ "opc_request_id"
628
+ ]
629
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
630
+ if extra_kwargs:
631
+ raise ValueError(
632
+ f"list_attachments got unknown kwargs: {extra_kwargs!r}")
633
+
634
+ path_params = {
635
+ "offerId": offer_id
636
+ }
637
+
638
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
639
+
640
+ for (k, v) in six.iteritems(path_params):
641
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
642
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
643
+
644
+ if 'lifecycle_state' in kwargs:
645
+ lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]
646
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
647
+ raise ValueError(
648
+ f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
649
+ )
650
+
651
+ if 'sort_order' in kwargs:
652
+ sort_order_allowed_values = ["ASC", "DESC"]
653
+ if kwargs['sort_order'] not in sort_order_allowed_values:
654
+ raise ValueError(
655
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
656
+ )
657
+
658
+ if 'sort_by' in kwargs:
659
+ sort_by_allowed_values = ["timeCreated", "displayName"]
660
+ if kwargs['sort_by'] not in sort_by_allowed_values:
661
+ raise ValueError(
662
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
663
+ )
664
+
665
+ query_params = {
666
+ "buyerCompartmentId": kwargs.get("buyer_compartment_id", missing),
667
+ "sellerCompartmentId": kwargs.get("seller_compartment_id", missing),
668
+ "lifecycleState": kwargs.get("lifecycle_state", missing),
669
+ "displayName": kwargs.get("display_name", missing),
670
+ "id": kwargs.get("id", missing),
671
+ "limit": kwargs.get("limit", missing),
672
+ "page": kwargs.get("page", missing),
673
+ "sortOrder": kwargs.get("sort_order", missing),
674
+ "sortBy": kwargs.get("sort_by", missing)
675
+ }
676
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
677
+
678
+ header_params = {
679
+ "accept": "application/json",
680
+ "content-type": "application/json",
681
+ "opc-request-id": kwargs.get("opc_request_id", missing)
682
+ }
683
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
684
+
685
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
686
+ operation_retry_strategy=kwargs.get('retry_strategy'),
687
+ client_retry_strategy=self.retry_strategy
688
+ )
689
+ if retry_strategy is None:
690
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
691
+
692
+ if retry_strategy:
693
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
694
+ self.base_client.add_opc_client_retries_header(header_params)
695
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
696
+ return retry_strategy.make_retrying_call(
697
+ self.base_client.call_api,
698
+ resource_path=resource_path,
699
+ method=method,
700
+ path_params=path_params,
701
+ query_params=query_params,
702
+ header_params=header_params,
703
+ response_type="AttachmentCollection",
704
+ allow_control_chars=kwargs.get('allow_control_chars'),
705
+ operation_name=operation_name,
706
+ api_reference_link=api_reference_link,
707
+ required_arguments=required_arguments)
708
+ else:
709
+ return self.base_client.call_api(
710
+ resource_path=resource_path,
711
+ method=method,
712
+ path_params=path_params,
713
+ query_params=query_params,
714
+ header_params=header_params,
715
+ response_type="AttachmentCollection",
716
+ allow_control_chars=kwargs.get('allow_control_chars'),
717
+ operation_name=operation_name,
718
+ api_reference_link=api_reference_link,
719
+ required_arguments=required_arguments)