oci-cli 3.63.3__py3-none-any.whl → 3.64.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (282) hide show
  1. oci_cli/bin/devops.psm1 +5 -1
  2. oci_cli/bin/redis.psm1 +28 -3
  3. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-group/change-compartment.txt +133 -0
  4. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-group/create.txt +180 -0
  5. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-group/delete.txt +131 -0
  6. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-group/get.txt +93 -0
  7. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-group/update.txt +194 -0
  8. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-group-collection/list-stream-groups.txt +129 -0
  9. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-group-collection.txt +14 -0
  10. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-group.txt +22 -0
  11. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-job/change-compartment.txt +142 -0
  12. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-job/create-stream-job-object-storage-output-location.txt +187 -0
  13. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-job/create.txt +184 -0
  14. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-job/delete.txt +141 -0
  15. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-job/get.txt +103 -0
  16. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-job/start.txt +137 -0
  17. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-job/stop.txt +137 -0
  18. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-job/update-stream-job-object-storage-output-location.txt +206 -0
  19. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-job/update.txt +202 -0
  20. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-job-collection/list-stream-jobs.txt +137 -0
  21. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-job-collection.txt +14 -0
  22. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-job.txt +30 -0
  23. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-source/change-compartment.txt +138 -0
  24. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-source/create-stream-source-rtsp-source-details.txt +173 -0
  25. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-source/create.txt +163 -0
  26. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-source/delete.txt +136 -0
  27. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-source/get.txt +98 -0
  28. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-source/update-stream-source-rtsp-source-details.txt +189 -0
  29. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-source/update.txt +177 -0
  30. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-source-collection/list-stream-sources.txt +137 -0
  31. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-source-collection.txt +14 -0
  32. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/stream-source.txt +26 -0
  33. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/vision-private-endpoint/change-compartment.txt +108 -0
  34. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/vision-private-endpoint/create.txt +157 -0
  35. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/vision-private-endpoint/delete.txt +132 -0
  36. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/vision-private-endpoint/get.txt +94 -0
  37. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/vision-private-endpoint/update.txt +167 -0
  38. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/vision-private-endpoint-collection/list-vision-private-endpoints.txt +137 -0
  39. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/vision-private-endpoint-collection.txt +14 -0
  40. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision/vision-private-endpoint.txt +22 -0
  41. oci_cli/help_text_producer/data_files/text/cmdref/ai-vision.txt +76 -0
  42. oci_cli/help_text_producer/data_files/text/cmdref/compute/{compute-gpu-memory-cluster-collection/list-compute-gpu-memory-clusters.txt → compute-gpu-memory-cluster/list.txt} +5 -5
  43. oci_cli/help_text_producer/data_files/text/cmdref/compute/compute-gpu-memory-cluster.txt +2 -0
  44. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/launch-instance-compute-bare-metal-host-placement-constraint-details.txt +0 -5
  45. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/launch-instance-host-group-placement-constraint-details.txt +0 -5
  46. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/launch.txt +0 -5
  47. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/terminate.txt +11 -0
  48. oci_cli/help_text_producer/data_files/text/cmdref/compute.txt +2 -4
  49. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/alert-summary/list-alert-analytics.txt +2 -2
  50. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/alert-summary/list-alerts.txt +2 -2
  51. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/attribute-set/change-compartment.txt +140 -0
  52. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/attribute-set/create.txt +182 -0
  53. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/attribute-set/delete.txt +138 -0
  54. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/attribute-set/get.txt +108 -0
  55. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/attribute-set/list-associated-resources.txt +145 -0
  56. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/attribute-set/list.txt +211 -0
  57. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/attribute-set/update.txt +192 -0
  58. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/attribute-set.txt +28 -0
  59. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/audit-archive-retrieval/list.txt +5 -0
  60. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/audit-event-summary/list-audit-event-analytics.txt +11 -10
  61. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/audit-event-summary/list-audit-events.txt +9 -8
  62. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/audit-policy-analytics/list.txt +5 -0
  63. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/audit-policy-collection/list-audit-policies.txt +5 -0
  64. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/audit-profile/calculate-audit-volume-available.txt +5 -1
  65. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/audit-profile/calculate-audit-volume-collected.txt +5 -1
  66. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/audit-profile/change-compartment.txt +5 -2
  67. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/audit-profile/change-retention.txt +14 -10
  68. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/audit-profile/create.txt +205 -0
  69. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/audit-profile/delete.txt +135 -0
  70. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/audit-profile/discover-audit-trails.txt +5 -1
  71. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/audit-profile/get.txt +5 -1
  72. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/audit-profile/list-available-audit-volumes.txt +5 -1
  73. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/audit-profile/list-collected-audit-volumes.txt +5 -1
  74. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/audit-profile/list-target-overrides.txt +143 -0
  75. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/audit-profile/list.txt +14 -0
  76. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/audit-profile/update.txt +14 -1
  77. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/audit-profile-analytic-collection/list-audit-profile-analytics.txt +10 -1
  78. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/audit-profile.txt +6 -0
  79. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/audit-trail/list.txt +5 -0
  80. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/audit-trail/start.txt +6 -0
  81. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/audit-trail/update.txt +6 -0
  82. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/audit-trail-analytic-collection/list-audit-trail-analytics.txt +187 -0
  83. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/database-security-config/list.txt +5 -0
  84. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/database-table-access-entry-collection/list-database-table-access-entries.txt +1 -1
  85. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/database-view-access-entry-collection/list-database-view-access-entries.txt +1 -1
  86. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/masking-column/list.txt +1 -1
  87. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/masking-policy/list-masking-analytics.txt +28 -1
  88. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/masking-policy-referential-relation-summary/list-masking-policy-referential-relations.txt +1 -1
  89. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/on-prem-connector/list.txt +9 -9
  90. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/peer-target-database/create-peer-target-database-database-cloud-service-details.txt +10 -6
  91. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/peer-target-database/update-peer-target-database-database-cloud-service-details.txt +10 -6
  92. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/report-definition/generate-report.txt +13 -2
  93. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/report-summary/list-reports.txt +9 -0
  94. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-assessment/apply-security-assessment-template.txt +134 -0
  95. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-assessment/compare-to-template-baseline.txt +135 -0
  96. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-assessment/create.txt +33 -2
  97. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-assessment/download-security-assessment-report.txt +2 -2
  98. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-assessment/generate-security-assessment-report.txt +2 -2
  99. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-assessment/get-template-baseline-comparison.txt +112 -0
  100. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-assessment/list-checks.txt +186 -0
  101. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-assessment/list-finding-analytics.txt +35 -1
  102. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-assessment/list-findings.txt +33 -2
  103. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-assessment/list-security-feature-analytics.txt +5 -0
  104. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-assessment/list-security-features.txt +5 -0
  105. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-assessment/list-template-analytics.txt +188 -0
  106. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-assessment/list-template-association-analytics.txt +174 -0
  107. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-assessment/list.txt +21 -3
  108. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-assessment/patch-checks.txt +145 -0
  109. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-assessment/patch-findings.txt +145 -0
  110. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-assessment/remove.txt +129 -0
  111. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-assessment.txt +18 -0
  112. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-policy/change-compartment.txt +3 -2
  113. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-policy/create.txt +159 -0
  114. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-policy/delete.txt +131 -0
  115. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-policy/get.txt +3 -1
  116. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-policy/list.txt +8 -0
  117. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-policy/update.txt +3 -1
  118. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-policy-config/change-compartment.txt +135 -0
  119. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-policy-config/create.txt +189 -0
  120. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-policy-config/delete.txt +133 -0
  121. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-policy-config/get.txt +95 -0
  122. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-policy-config/update.txt +197 -0
  123. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-policy-config-collection/list-security-policy-configs.txt +375 -0
  124. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-policy-config-collection.txt +14 -0
  125. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-policy-config.txt +23 -0
  126. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-policy-deployment/change-compartment.txt +7 -2
  127. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-policy-deployment/create.txt +179 -0
  128. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-policy-deployment/delete.txt +135 -0
  129. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-policy-deployment/deploy.txt +131 -0
  130. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-policy-deployment/get.txt +7 -1
  131. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-policy-deployment/list.txt +10 -1
  132. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-policy-deployment/refresh.txt +132 -0
  133. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-policy-deployment/update.txt +7 -1
  134. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-policy-deployment.txt +8 -0
  135. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-policy-entry-state/get.txt +7 -1
  136. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-policy-entry-state/list.txt +21 -2
  137. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-policy.txt +4 -0
  138. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/sensitive-data-model/list-discovery-analytics.txt +27 -0
  139. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/sensitive-data-model/list-sensitive-column-analytics.txt +5 -0
  140. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/sql-collection/list.txt +5 -0
  141. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/sql-collection-analytics/list.txt +5 -0
  142. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/sql-firewall-allowed-sql/list.txt +1 -1
  143. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/sql-firewall-allowed-sql-analytics/list.txt +1 -1
  144. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/sql-firewall-violation-summary/list-sql-firewall-violation-analytics.txt +2 -2
  145. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/sql-firewall-violation-summary/list-sql-firewall-violations.txt +2 -2
  146. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/target-database-group/change-compartment.txt +138 -0
  147. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/target-database-group/create.txt +175 -0
  148. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/target-database-group/delete.txt +137 -0
  149. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/target-database-group/get-group-members.txt +118 -0
  150. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/target-database-group/get.txt +99 -0
  151. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/target-database-group/update.txt +189 -0
  152. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/target-database-group-summary/list-target-database-groups.txt +365 -0
  153. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/target-database-group-summary.txt +15 -0
  154. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/target-database-group.txt +25 -0
  155. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/unified-audit-policy/bulk-create.txt +164 -0
  156. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/unified-audit-policy/change-compartment.txt +142 -0
  157. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/unified-audit-policy/create.txt +195 -0
  158. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/unified-audit-policy/delete.txt +140 -0
  159. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/unified-audit-policy/get.txt +102 -0
  160. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/unified-audit-policy/update.txt +202 -0
  161. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/unified-audit-policy-collection/list-unified-audit-policies.txt +385 -0
  162. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/unified-audit-policy-collection.txt +14 -0
  163. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/unified-audit-policy-definition/change-compartment.txt +132 -0
  164. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/unified-audit-policy-definition/delete.txt +129 -0
  165. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/unified-audit-policy-definition/get.txt +92 -0
  166. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/unified-audit-policy-definition/update.txt +171 -0
  167. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/unified-audit-policy-definition-collection/list-unified-audit-policy-definitions.txt +205 -0
  168. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/unified-audit-policy-definition-collection.txt +14 -0
  169. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/unified-audit-policy-definition.txt +20 -0
  170. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/unified-audit-policy.txt +25 -0
  171. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/user-assessment/create.txt +13 -2
  172. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/user-assessment/list.txt +14 -0
  173. oci_cli/help_text_producer/data_files/text/cmdref/data-safe.txt +118 -0
  174. oci_cli/help_text_producer/data_files/text/cmdref/data-science/job/change-compartment.txt +1 -7
  175. oci_cli/help_text_producer/data_files/text/cmdref/data-science/job/create-job-artifact.txt +1 -7
  176. oci_cli/help_text_producer/data_files/text/cmdref/data-science/job/create.txt +29 -24
  177. oci_cli/help_text_producer/data_files/text/cmdref/data-science/job/delete.txt +1 -7
  178. oci_cli/help_text_producer/data_files/text/cmdref/data-science/job/get-artifact-content.txt +2 -7
  179. oci_cli/help_text_producer/data_files/text/cmdref/data-science/job/get.txt +1 -7
  180. oci_cli/help_text_producer/data_files/text/cmdref/data-science/job/head-job-artifact.txt +1 -7
  181. oci_cli/help_text_producer/data_files/text/cmdref/data-science/job/update.txt +1 -7
  182. oci_cli/help_text_producer/data_files/text/cmdref/data-science/job-run/cancel.txt +1 -7
  183. oci_cli/help_text_producer/data_files/text/cmdref/data-science/job-run/change-compartment.txt +1 -7
  184. oci_cli/help_text_producer/data_files/text/cmdref/data-science/job-run/create.txt +23 -7
  185. oci_cli/help_text_producer/data_files/text/cmdref/data-science/job-run/delete.txt +1 -7
  186. oci_cli/help_text_producer/data_files/text/cmdref/data-science/job-run/get.txt +1 -7
  187. oci_cli/help_text_producer/data_files/text/cmdref/data-science/job-run/update.txt +1 -7
  188. oci_cli/help_text_producer/data_files/text/cmdref/data-science/pipeline-run/create.txt +11 -0
  189. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request/{work-request-log-entry/list-work-request-logs.txt → work-request-log/list.txt} +5 -5
  190. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request.txt +2 -2
  191. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control.txt +2 -2
  192. oci_cli/help_text_producer/data_files/text/cmdref/devops/protected-branch/create-or-update.txt +1 -1
  193. oci_cli/help_text_producer/data_files/text/cmdref/devops/protected-branch/delete.txt +1 -1
  194. oci_cli/help_text_producer/data_files/text/cmdref/devops/pull-request/reopen-pull-request-comment.txt +119 -0
  195. oci_cli/help_text_producer/data_files/text/cmdref/devops/pull-request/resolve-pull-request-comment.txt +119 -0
  196. oci_cli/help_text_producer/data_files/text/cmdref/devops/pull-request.txt +4 -0
  197. oci_cli/help_text_producer/data_files/text/cmdref/devops.txt +4 -0
  198. oci_cli/help_text_producer/data_files/text/cmdref/goldengate/connection/create-amazon-kinesis-connection.txt +9 -0
  199. oci_cli/help_text_producer/data_files/text/cmdref/goldengate/connection/create-amazon-s3-connection.txt +4 -3
  200. oci_cli/help_text_producer/data_files/text/cmdref/goldengate/connection/create-azure-data-lake-storage-connection.txt +9 -0
  201. oci_cli/help_text_producer/data_files/text/cmdref/goldengate/connection/create-db2-connection.txt +20 -8
  202. oci_cli/help_text_producer/data_files/text/cmdref/goldengate/connection/create-google-pub-sub-connection.txt +8 -9
  203. oci_cli/help_text_producer/data_files/text/cmdref/goldengate/connection/create-jms-connection.txt +1 -1
  204. oci_cli/help_text_producer/data_files/text/cmdref/goldengate/connection/create-object-storage-connection.txt +2 -2
  205. oci_cli/help_text_producer/data_files/text/cmdref/goldengate/connection/create-oracle-nosql-connection.txt +2 -2
  206. oci_cli/help_text_producer/data_files/text/cmdref/goldengate/connection/update-amazon-kinesis-connection.txt +9 -0
  207. oci_cli/help_text_producer/data_files/text/cmdref/goldengate/connection/update-amazon-s3-connection.txt +4 -3
  208. oci_cli/help_text_producer/data_files/text/cmdref/goldengate/connection/update-azure-data-lake-storage-connection.txt +9 -0
  209. oci_cli/help_text_producer/data_files/text/cmdref/goldengate/connection/update-db2-connection.txt +20 -8
  210. oci_cli/help_text_producer/data_files/text/cmdref/goldengate/connection/update-jms-connection.txt +1 -1
  211. oci_cli/help_text_producer/data_files/text/cmdref/goldengate/connection/update-object-storage-connection.txt +2 -2
  212. oci_cli/help_text_producer/data_files/text/cmdref/goldengate/connection/update-oracle-nosql-connection.txt +2 -2
  213. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request/work-request-error/{list-errors.txt → list.txt} +5 -5
  214. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request/work-request-error.txt +1 -1
  215. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request/{work-request-log/list.txt → work-request-log-entry/list-work-request-logs.txt} +5 -5
  216. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request.txt +3 -3
  217. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane.txt +3 -3
  218. oci_cli/help_text_producer/data_files/text/cmdref/lfs/lustre-file-system.txt +1 -1
  219. oci_cli/help_text_producer/data_files/text/cmdref/lfs.txt +1 -2
  220. oci_cli/help_text_producer/data_files/text/cmdref/network/drg-route-distribution/create.txt +2 -2
  221. oci_cli/help_text_producer/data_files/text/cmdref/network/drg-route-distribution.txt +12 -10
  222. oci_cli/help_text_producer/data_files/text/cmdref/network/ip-sec-connection/create.txt +11 -16
  223. oci_cli/help_text_producer/data_files/text/cmdref/redis/oci-cache-config-set/associated-oci-cache-cluster-summary/list-associated-oci-cache-clusters.txt +139 -0
  224. oci_cli/help_text_producer/data_files/text/cmdref/redis/oci-cache-config-set/associated-oci-cache-cluster-summary.txt +14 -0
  225. oci_cli/help_text_producer/data_files/text/cmdref/redis/oci-cache-config-set/oci-cache-config-set/change-compartment.txt +139 -0
  226. oci_cli/help_text_producer/data_files/text/cmdref/redis/oci-cache-config-set/oci-cache-config-set/create.txt +175 -0
  227. oci_cli/help_text_producer/data_files/text/cmdref/redis/oci-cache-config-set/oci-cache-config-set/delete.txt +138 -0
  228. oci_cli/help_text_producer/data_files/text/cmdref/redis/oci-cache-config-set/oci-cache-config-set/get.txt +100 -0
  229. oci_cli/help_text_producer/data_files/text/cmdref/redis/oci-cache-config-set/oci-cache-config-set/update.txt +173 -0
  230. oci_cli/help_text_producer/data_files/text/cmdref/redis/oci-cache-config-set/oci-cache-config-set-summary/list-oci-cache-config-sets.txt +148 -0
  231. oci_cli/help_text_producer/data_files/text/cmdref/redis/oci-cache-config-set/oci-cache-config-set-summary.txt +14 -0
  232. oci_cli/help_text_producer/data_files/text/cmdref/redis/oci-cache-config-set/oci-cache-config-set.txt +23 -0
  233. oci_cli/help_text_producer/data_files/text/cmdref/redis/oci-cache-config-set.txt +33 -0
  234. oci_cli/help_text_producer/data_files/text/cmdref/redis/oci-cache-default-config-set/oci-cache-default-config-set/get.txt +96 -0
  235. oci_cli/help_text_producer/data_files/text/cmdref/redis/oci-cache-default-config-set/oci-cache-default-config-set-summary/list-oci-cache-default-config-sets.txt +156 -0
  236. oci_cli/help_text_producer/data_files/text/cmdref/redis/oci-cache-default-config-set/oci-cache-default-config-set-summary.txt +14 -0
  237. oci_cli/help_text_producer/data_files/text/cmdref/redis/oci-cache-default-config-set/oci-cache-default-config-set.txt +15 -0
  238. oci_cli/help_text_producer/data_files/text/cmdref/redis/oci-cache-default-config-set.txt +21 -0
  239. oci_cli/help_text_producer/data_files/text/cmdref/redis/redis-cluster/redis-cluster/create.txt +4 -0
  240. oci_cli/help_text_producer/data_files/text/cmdref/redis/redis-cluster/redis-cluster/update.txt +4 -0
  241. oci_cli/help_text_producer/data_files/text/cmdref/redis.txt +32 -0
  242. oci_cli/help_text_producer/data_files/text/cmdref/session/authenticate.txt +2 -1
  243. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/create.txt +15 -12
  244. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/get.txt +3 -3
  245. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/list.txt +2 -2
  246. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/put-attachment.txt +153 -0
  247. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/update.txt +20 -14
  248. oci_cli/help_text_producer/data_files/text/cmdref/support/incident-resource-type/list.txt +5 -5
  249. oci_cli/help_text_producer/data_files/text/cmdref/support/incident.txt +3 -1
  250. oci_cli/help_text_producer/data_files/text/cmdref/support/validation-response/validate-user.txt +1 -1
  251. oci_cli/help_text_producer/data_files/text/cmdref/support.txt +2 -0
  252. oci_cli/version.py +1 -1
  253. {oci_cli-3.63.3.dist-info → oci_cli-3.64.0.dist-info}/METADATA +2 -2
  254. {oci_cli-3.63.3.dist-info → oci_cli-3.64.0.dist-info}/RECORD +281 -158
  255. services/ai_vision/src/oci_cli_ai_service_vision/generated/aiservicevision_cli.py +2349 -448
  256. services/cims/src/oci_cli_incident/cims_cli_extended.py +70 -14
  257. services/cims/src/oci_cli_incident/generated/incident_cli.py +76 -15
  258. services/core/src/oci_cli_compute/generated/compute_cli.py +19 -79
  259. services/core/src/oci_cli_virtual_network/generated/virtualnetwork_cli.py +16 -14
  260. services/data_safe/src/oci_cli_data_safe/generated/datasafe_cli.py +3822 -391
  261. services/data_science/src/oci_cli_data_science/datascience_cli_extended.py +47 -6
  262. services/data_science/src/oci_cli_data_science/generated/datascience_cli.py +1351 -139
  263. services/devops/src/oci_cli_devops/generated/devops_cli.py +62 -2
  264. services/golden_gate/src/oci_cli_golden_gate/generated/goldengate_cli.py +67 -25
  265. services/golden_gate/src/oci_cli_golden_gate/golden_gate_cli_extended.py +38 -4
  266. services/redis/src/oci_cli_oci_cache_config_set/__init__.py +4 -0
  267. services/redis/src/oci_cli_oci_cache_config_set/generated/__init__.py +4 -0
  268. services/redis/src/oci_cli_oci_cache_config_set/generated/client_mappings.py +14 -0
  269. services/redis/src/oci_cli_oci_cache_config_set/generated/ocicacheconfigset_cli.py +458 -0
  270. services/redis/src/oci_cli_oci_cache_default_config_set/__init__.py +4 -0
  271. services/redis/src/oci_cli_oci_cache_default_config_set/generated/__init__.py +4 -0
  272. services/redis/src/oci_cli_oci_cache_default_config_set/generated/client_mappings.py +14 -0
  273. services/redis/src/oci_cli_oci_cache_default_config_set/generated/ocicachedefaultconfigset_cli.py +129 -0
  274. services/redis/src/oci_cli_redis_cluster/generated/rediscluster_cli.py +10 -2
  275. oci_cli/help_text_producer/data_files/text/cmdref/compute/compute-gpu-memory-cluster-collection.txt +0 -14
  276. /oci_cli/help_text_producer/data_files/text/cmdref/{governance-rules-control-plane → delegate-access-control}/work-request/work-request-log.txt +0 -0
  277. /oci_cli/help_text_producer/data_files/text/cmdref/{delegate-access-control → governance-rules-control-plane}/work-request/work-request-log-entry.txt +0 -0
  278. {oci_cli-3.63.3.dist-info → oci_cli-3.64.0.dist-info}/LICENSE.txt +0 -0
  279. {oci_cli-3.63.3.dist-info → oci_cli-3.64.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  280. {oci_cli-3.63.3.dist-info → oci_cli-3.64.0.dist-info}/WHEEL +0 -0
  281. {oci_cli-3.63.3.dist-info → oci_cli-3.64.0.dist-info}/entry_points.txt +0 -0
  282. {oci_cli-3.63.3.dist-info → oci_cli-3.64.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,458 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2025, 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
+ # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220315
5
+
6
+ from __future__ import print_function
7
+ import click
8
+ import oci # noqa: F401
9
+ import six # noqa: F401
10
+ import sys # noqa: F401
11
+ from oci_cli import cli_constants # noqa: F401
12
+ from oci_cli import cli_util
13
+ from oci_cli import json_skeleton_utils
14
+ from oci_cli import custom_types # noqa: F401
15
+ from oci_cli.aliasing import CommandGroupWithAlias
16
+ from services.redis.src.oci_cli_redis.generated import redis_service_cli
17
+
18
+
19
+ @click.command(cli_util.override('oci_cache_config_set.oci_cache_config_set_root_group.command_name', 'oci-cache-config-set'), cls=CommandGroupWithAlias, help=cli_util.override('oci_cache_config_set.oci_cache_config_set_root_group.help', """Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache]."""), short_help=cli_util.override('oci_cache_config_set.oci_cache_config_set_root_group.short_help', """OCI Cache API"""))
20
+ @cli_util.help_option_group
21
+ def oci_cache_config_set_root_group():
22
+ pass
23
+
24
+
25
+ @click.command(cli_util.override('oci_cache_config_set.oci_cache_config_set_summary_group.command_name', 'oci-cache-config-set-summary'), cls=CommandGroupWithAlias, help="""Summary of information about the OCI Cache Config Set.""")
26
+ @cli_util.help_option_group
27
+ def oci_cache_config_set_summary_group():
28
+ pass
29
+
30
+
31
+ @click.command(cli_util.override('oci_cache_config_set.oci_cache_config_set_group.command_name', 'oci-cache-config-set'), cls=CommandGroupWithAlias, help="""Configurations for OCI Cache to manage the behavior, performance, and functionality of the underlying cache engine.""")
32
+ @cli_util.help_option_group
33
+ def oci_cache_config_set_group():
34
+ pass
35
+
36
+
37
+ @click.command(cli_util.override('oci_cache_config_set.associated_oci_cache_cluster_summary_group.command_name', 'associated-oci-cache-cluster-summary'), cls=CommandGroupWithAlias, help="""Summary of the Clusters associated with an OCI Cache Config Set.""")
38
+ @cli_util.help_option_group
39
+ def associated_oci_cache_cluster_summary_group():
40
+ pass
41
+
42
+
43
+ redis_service_cli.redis_service_group.add_command(oci_cache_config_set_root_group)
44
+ oci_cache_config_set_root_group.add_command(oci_cache_config_set_summary_group)
45
+ oci_cache_config_set_root_group.add_command(oci_cache_config_set_group)
46
+ oci_cache_config_set_root_group.add_command(associated_oci_cache_cluster_summary_group)
47
+
48
+
49
+ @oci_cache_config_set_group.command(name=cli_util.override('oci_cache_config_set.change_oci_cache_config_set_compartment.command_name', 'change-compartment'), help=u"""Moves an OCI Cache Config Set into a different compartment within the same tenancy. \n[Command Reference](changeOciCacheConfigSetCompartment)""")
50
+ @cli_util.option('--oci-cache-config-set-id', required=True, help=u"""Unique OCI Cache Config Set identifier.""")
51
+ @cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the compartment into which the resource should be moved.""")
52
+ @cli_util.option('--if-match', help=u"""For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.""")
53
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
54
+ @cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the work request to reach the state defined by --wait-for-state. Defaults to 1200 seconds.""")
55
+ @cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the work request has reached the state defined by --wait-for-state. Defaults to 30 seconds.""")
56
+ @json_skeleton_utils.get_cli_json_input_option({})
57
+ @cli_util.help_option
58
+ @click.pass_context
59
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
60
+ @cli_util.wrap_exceptions
61
+ def change_oci_cache_config_set_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oci_cache_config_set_id, compartment_id, if_match):
62
+
63
+ if isinstance(oci_cache_config_set_id, six.string_types) and len(oci_cache_config_set_id.strip()) == 0:
64
+ raise click.UsageError('Parameter --oci-cache-config-set-id cannot be whitespace or empty string')
65
+
66
+ kwargs = {}
67
+ if if_match is not None:
68
+ kwargs['if_match'] = if_match
69
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
70
+
71
+ _details = {}
72
+ _details['compartmentId'] = compartment_id
73
+
74
+ client = cli_util.build_client('redis', 'oci_cache_config_set', ctx)
75
+ result = client.change_oci_cache_config_set_compartment(
76
+ oci_cache_config_set_id=oci_cache_config_set_id,
77
+ change_oci_cache_config_set_compartment_details=_details,
78
+ **kwargs
79
+ )
80
+ if wait_for_state:
81
+
82
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
83
+ try:
84
+ wait_period_kwargs = {}
85
+ if max_wait_seconds is not None:
86
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
87
+ if wait_interval_seconds is not None:
88
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
89
+ if 'opc-work-request-id' not in result.headers:
90
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
91
+ cli_util.render_response(result, ctx)
92
+ return
93
+
94
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
95
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
96
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
97
+ # If we fail, we should show an error, but we should still provide the information to the customer
98
+ click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
99
+ cli_util.render_response(result, ctx)
100
+ sys.exit(2)
101
+ except Exception:
102
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
103
+ cli_util.render_response(result, ctx)
104
+ raise
105
+ else:
106
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
107
+ cli_util.render_response(result, ctx)
108
+
109
+
110
+ @oci_cache_config_set_group.command(name=cli_util.override('oci_cache_config_set.create_oci_cache_config_set.command_name', 'create'), help=u"""Create a new OCI Cache Config Set for the given OCI cache engine version. \n[Command Reference](createOciCacheConfigSet)""")
111
+ @cli_util.option('--display-name', required=True, help=u"""A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.""")
112
+ @cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the compartment that contains the OCI Cache Config Set.""")
113
+ @cli_util.option('--software-version', required=True, help=u"""The OCI Cache engine version that the cluster is running.""")
114
+ @cli_util.option('--configuration-details', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
115
+ @cli_util.option('--description', help=u"""Description for the custom OCI Cache Config Set.""")
116
+ @cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
117
+ @cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
118
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
119
+ @cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the work request to reach the state defined by --wait-for-state. Defaults to 1200 seconds.""")
120
+ @cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the work request has reached the state defined by --wait-for-state. Defaults to 30 seconds.""")
121
+ @json_skeleton_utils.get_cli_json_input_option({'configuration-details': {'module': 'redis', 'class': 'ConfigurationDetails'}, 'freeform-tags': {'module': 'redis', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'redis', 'class': 'dict(str, dict(str, object))'}})
122
+ @cli_util.help_option
123
+ @click.pass_context
124
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'configuration-details': {'module': 'redis', 'class': 'ConfigurationDetails'}, 'freeform-tags': {'module': 'redis', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'redis', 'class': 'dict(str, dict(str, object))'}}, output_type={'module': 'redis', 'class': 'OciCacheConfigSet'})
125
+ @cli_util.wrap_exceptions
126
+ def create_oci_cache_config_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, display_name, compartment_id, software_version, configuration_details, description, freeform_tags, defined_tags):
127
+
128
+ kwargs = {}
129
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
130
+
131
+ _details = {}
132
+ _details['displayName'] = display_name
133
+ _details['compartmentId'] = compartment_id
134
+ _details['softwareVersion'] = software_version
135
+ _details['configurationDetails'] = cli_util.parse_json_parameter("configuration_details", configuration_details)
136
+
137
+ if description is not None:
138
+ _details['description'] = description
139
+
140
+ if freeform_tags is not None:
141
+ _details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
142
+
143
+ if defined_tags is not None:
144
+ _details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
145
+
146
+ client = cli_util.build_client('redis', 'oci_cache_config_set', ctx)
147
+ result = client.create_oci_cache_config_set(
148
+ create_oci_cache_config_set_details=_details,
149
+ **kwargs
150
+ )
151
+ if wait_for_state:
152
+
153
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
154
+ try:
155
+ wait_period_kwargs = {}
156
+ if max_wait_seconds is not None:
157
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
158
+ if wait_interval_seconds is not None:
159
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
160
+ if 'opc-work-request-id' not in result.headers:
161
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
162
+ cli_util.render_response(result, ctx)
163
+ return
164
+
165
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
166
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
167
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
168
+ # If we fail, we should show an error, but we should still provide the information to the customer
169
+ click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
170
+ cli_util.render_response(result, ctx)
171
+ sys.exit(2)
172
+ except Exception:
173
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
174
+ cli_util.render_response(result, ctx)
175
+ raise
176
+ else:
177
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
178
+ cli_util.render_response(result, ctx)
179
+
180
+
181
+ @oci_cache_config_set_group.command(name=cli_util.override('oci_cache_config_set.delete_oci_cache_config_set.command_name', 'delete'), help=u"""Deletes the specified OCI Cache Config Set. \n[Command Reference](deleteOciCacheConfigSet)""")
182
+ @cli_util.option('--oci-cache-config-set-id', required=True, help=u"""Unique OCI Cache Config Set identifier.""")
183
+ @cli_util.option('--if-match', help=u"""For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.""")
184
+ @cli_util.confirm_delete_option
185
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
186
+ @cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the work request to reach the state defined by --wait-for-state. Defaults to 1200 seconds.""")
187
+ @cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the work request has reached the state defined by --wait-for-state. Defaults to 30 seconds.""")
188
+ @json_skeleton_utils.get_cli_json_input_option({})
189
+ @cli_util.help_option
190
+ @click.pass_context
191
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
192
+ @cli_util.wrap_exceptions
193
+ def delete_oci_cache_config_set(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oci_cache_config_set_id, if_match):
194
+
195
+ if isinstance(oci_cache_config_set_id, six.string_types) and len(oci_cache_config_set_id.strip()) == 0:
196
+ raise click.UsageError('Parameter --oci-cache-config-set-id cannot be whitespace or empty string')
197
+
198
+ kwargs = {}
199
+ if if_match is not None:
200
+ kwargs['if_match'] = if_match
201
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
202
+ client = cli_util.build_client('redis', 'oci_cache_config_set', ctx)
203
+ result = client.delete_oci_cache_config_set(
204
+ oci_cache_config_set_id=oci_cache_config_set_id,
205
+ **kwargs
206
+ )
207
+ if wait_for_state:
208
+
209
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
210
+ try:
211
+ wait_period_kwargs = {}
212
+ if max_wait_seconds is not None:
213
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
214
+ if wait_interval_seconds is not None:
215
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
216
+ if 'opc-work-request-id' not in result.headers:
217
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
218
+ cli_util.render_response(result, ctx)
219
+ return
220
+
221
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
222
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
223
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
224
+ # If we fail, we should show an error, but we should still provide the information to the customer
225
+ click.echo('Failed to wait until the work request entered the specified state. Please retrieve the work request to find its current state', file=sys.stderr)
226
+ cli_util.render_response(result, ctx)
227
+ sys.exit(2)
228
+ except Exception:
229
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
230
+ cli_util.render_response(result, ctx)
231
+ raise
232
+ else:
233
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
234
+ cli_util.render_response(result, ctx)
235
+
236
+
237
+ @oci_cache_config_set_group.command(name=cli_util.override('oci_cache_config_set.get_oci_cache_config_set.command_name', 'get'), help=u"""Retrieves the specified OCI Cache Config Set. \n[Command Reference](getOciCacheConfigSet)""")
238
+ @cli_util.option('--oci-cache-config-set-id', required=True, help=u"""Unique OCI Cache Config Set identifier.""")
239
+ @json_skeleton_utils.get_cli_json_input_option({})
240
+ @cli_util.help_option
241
+ @click.pass_context
242
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'redis', 'class': 'OciCacheConfigSet'})
243
+ @cli_util.wrap_exceptions
244
+ def get_oci_cache_config_set(ctx, from_json, oci_cache_config_set_id):
245
+
246
+ if isinstance(oci_cache_config_set_id, six.string_types) and len(oci_cache_config_set_id.strip()) == 0:
247
+ raise click.UsageError('Parameter --oci-cache-config-set-id cannot be whitespace or empty string')
248
+
249
+ kwargs = {}
250
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
251
+ client = cli_util.build_client('redis', 'oci_cache_config_set', ctx)
252
+ result = client.get_oci_cache_config_set(
253
+ oci_cache_config_set_id=oci_cache_config_set_id,
254
+ **kwargs
255
+ )
256
+ cli_util.render_response(result, ctx)
257
+
258
+
259
+ @associated_oci_cache_cluster_summary_group.command(name=cli_util.override('oci_cache_config_set.list_associated_oci_cache_clusters.command_name', 'list-associated-oci-cache-clusters'), help=u"""Gets a list of associated OCI Cache clusters for an OCI Cache Config Set. \n[Command Reference](listAssociatedOciCacheClusters)""")
260
+ @cli_util.option('--oci-cache-config-set-id', required=True, help=u"""Unique OCI Cache Config Set identifier.""")
261
+ @cli_util.option('--limit', type=click.INT, help=u"""The maximum number of items to return.""")
262
+ @cli_util.option('--page', help=u"""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.""")
263
+ @cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either 'ASC' or 'DESC'.""")
264
+ @cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["timeCreated", "displayName"]), help=u"""The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.""")
265
+ @cli_util.option('--all', 'all_pages', is_flag=True, help="""Fetches all pages of results. If you provide this option, then you cannot provide the --limit option.""")
266
+ @cli_util.option('--page-size', type=click.INT, help="""When fetching results, the number of results to fetch per call. Only valid when used with --all or --limit, and ignored otherwise.""")
267
+ @json_skeleton_utils.get_cli_json_input_option({})
268
+ @cli_util.help_option
269
+ @click.pass_context
270
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'redis', 'class': 'AssociatedOciCacheClusterCollection'})
271
+ @cli_util.wrap_exceptions
272
+ def list_associated_oci_cache_clusters(ctx, from_json, all_pages, page_size, oci_cache_config_set_id, limit, page, sort_order, sort_by):
273
+
274
+ if all_pages and limit:
275
+ raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
276
+
277
+ if isinstance(oci_cache_config_set_id, six.string_types) and len(oci_cache_config_set_id.strip()) == 0:
278
+ raise click.UsageError('Parameter --oci-cache-config-set-id cannot be whitespace or empty string')
279
+
280
+ kwargs = {}
281
+ if limit is not None:
282
+ kwargs['limit'] = limit
283
+ if page is not None:
284
+ kwargs['page'] = page
285
+ if sort_order is not None:
286
+ kwargs['sort_order'] = sort_order
287
+ if sort_by is not None:
288
+ kwargs['sort_by'] = sort_by
289
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
290
+ client = cli_util.build_client('redis', 'oci_cache_config_set', ctx)
291
+ if all_pages:
292
+ if page_size:
293
+ kwargs['limit'] = page_size
294
+
295
+ result = cli_util.list_call_get_all_results(
296
+ client.list_associated_oci_cache_clusters,
297
+ oci_cache_config_set_id=oci_cache_config_set_id,
298
+ **kwargs
299
+ )
300
+ elif limit is not None:
301
+ result = cli_util.list_call_get_up_to_limit(
302
+ client.list_associated_oci_cache_clusters,
303
+ limit,
304
+ page_size,
305
+ oci_cache_config_set_id=oci_cache_config_set_id,
306
+ **kwargs
307
+ )
308
+ else:
309
+ result = client.list_associated_oci_cache_clusters(
310
+ oci_cache_config_set_id=oci_cache_config_set_id,
311
+ **kwargs
312
+ )
313
+ cli_util.render_response(result, ctx)
314
+
315
+
316
+ @oci_cache_config_set_summary_group.command(name=cli_util.override('oci_cache_config_set.list_oci_cache_config_sets.command_name', 'list-oci-cache-config-sets'), help=u"""Lists the OCI Cache Config Sets in the specified compartment. \n[Command Reference](listOciCacheConfigSets)""")
317
+ @cli_util.option('--compartment-id', help=u"""The ID of the compartment in which to list resources.""")
318
+ @cli_util.option('--lifecycle-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]), help=u"""A filter to return the OCI Cache Config Set resources, whose lifecycle state matches with the given lifecycle state.""")
319
+ @cli_util.option('--software-version', type=custom_types.CliCaseInsensitiveChoice(["V7_0_5", "REDIS_7_0", "VALKEY_7_2"]), help=u"""A filter to return the OCI Cache Config Set resources, whose software version matches with the given software version.""")
320
+ @cli_util.option('--display-name', help=u"""A filter to return only resources that match the entire display name given.""")
321
+ @cli_util.option('--id', help=u"""Unique OCI Cache Config Set identifier.""")
322
+ @cli_util.option('--limit', type=click.INT, help=u"""The maximum number of items to return.""")
323
+ @cli_util.option('--page', help=u"""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.""")
324
+ @cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either 'ASC' or 'DESC'.""")
325
+ @cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["timeCreated", "displayName"]), help=u"""The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.""")
326
+ @cli_util.option('--all', 'all_pages', is_flag=True, help="""Fetches all pages of results. If you provide this option, then you cannot provide the --limit option.""")
327
+ @cli_util.option('--page-size', type=click.INT, help="""When fetching results, the number of results to fetch per call. Only valid when used with --all or --limit, and ignored otherwise.""")
328
+ @json_skeleton_utils.get_cli_json_input_option({})
329
+ @cli_util.help_option
330
+ @click.pass_context
331
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'redis', 'class': 'OciCacheConfigSetCollection'})
332
+ @cli_util.wrap_exceptions
333
+ def list_oci_cache_config_sets(ctx, from_json, all_pages, page_size, compartment_id, lifecycle_state, software_version, display_name, id, limit, page, sort_order, sort_by):
334
+
335
+ if all_pages and limit:
336
+ raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
337
+
338
+ kwargs = {}
339
+ if compartment_id is not None:
340
+ kwargs['compartment_id'] = compartment_id
341
+ if lifecycle_state is not None:
342
+ kwargs['lifecycle_state'] = lifecycle_state
343
+ if software_version is not None:
344
+ kwargs['software_version'] = software_version
345
+ if display_name is not None:
346
+ kwargs['display_name'] = display_name
347
+ if id is not None:
348
+ kwargs['id'] = id
349
+ if limit is not None:
350
+ kwargs['limit'] = limit
351
+ if page is not None:
352
+ kwargs['page'] = page
353
+ if sort_order is not None:
354
+ kwargs['sort_order'] = sort_order
355
+ if sort_by is not None:
356
+ kwargs['sort_by'] = sort_by
357
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
358
+ client = cli_util.build_client('redis', 'oci_cache_config_set', ctx)
359
+ if all_pages:
360
+ if page_size:
361
+ kwargs['limit'] = page_size
362
+
363
+ result = cli_util.list_call_get_all_results(
364
+ client.list_oci_cache_config_sets,
365
+ **kwargs
366
+ )
367
+ elif limit is not None:
368
+ result = cli_util.list_call_get_up_to_limit(
369
+ client.list_oci_cache_config_sets,
370
+ limit,
371
+ page_size,
372
+ **kwargs
373
+ )
374
+ else:
375
+ result = client.list_oci_cache_config_sets(
376
+ **kwargs
377
+ )
378
+ cli_util.render_response(result, ctx)
379
+
380
+
381
+ @oci_cache_config_set_group.command(name=cli_util.override('oci_cache_config_set.update_oci_cache_config_set.command_name', 'update'), help=u"""Updates the specified OCI Cache Config Set. \n[Command Reference](updateOciCacheConfigSet)""")
382
+ @cli_util.option('--oci-cache-config-set-id', required=True, help=u"""Unique OCI Cache Config Set identifier.""")
383
+ @cli_util.option('--display-name', help=u"""A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.""")
384
+ @cli_util.option('--description', help=u"""Description for the custom OCI Cache Config Set.""")
385
+ @cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
386
+ @cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
387
+ @cli_util.option('--if-match', help=u"""For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.""")
388
+ @cli_util.option('--force', help="""Perform update without prompting for confirmation.""", is_flag=True)
389
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
390
+ @cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the work request to reach the state defined by --wait-for-state. Defaults to 1200 seconds.""")
391
+ @cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the work request has reached the state defined by --wait-for-state. Defaults to 30 seconds.""")
392
+ @json_skeleton_utils.get_cli_json_input_option({'freeform-tags': {'module': 'redis', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'redis', 'class': 'dict(str, dict(str, object))'}})
393
+ @cli_util.help_option
394
+ @click.pass_context
395
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'freeform-tags': {'module': 'redis', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'redis', 'class': 'dict(str, dict(str, object))'}})
396
+ @cli_util.wrap_exceptions
397
+ def update_oci_cache_config_set(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oci_cache_config_set_id, display_name, description, freeform_tags, defined_tags, if_match):
398
+
399
+ if isinstance(oci_cache_config_set_id, six.string_types) and len(oci_cache_config_set_id.strip()) == 0:
400
+ raise click.UsageError('Parameter --oci-cache-config-set-id cannot be whitespace or empty string')
401
+ if not force:
402
+ if freeform_tags or defined_tags:
403
+ if not click.confirm("WARNING: Updates to freeform-tags and defined-tags will replace any existing values. Are you sure you want to continue?"):
404
+ ctx.abort()
405
+
406
+ kwargs = {}
407
+ if if_match is not None:
408
+ kwargs['if_match'] = if_match
409
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
410
+
411
+ _details = {}
412
+
413
+ if display_name is not None:
414
+ _details['displayName'] = display_name
415
+
416
+ if description is not None:
417
+ _details['description'] = description
418
+
419
+ if freeform_tags is not None:
420
+ _details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
421
+
422
+ if defined_tags is not None:
423
+ _details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
424
+
425
+ client = cli_util.build_client('redis', 'oci_cache_config_set', ctx)
426
+ result = client.update_oci_cache_config_set(
427
+ oci_cache_config_set_id=oci_cache_config_set_id,
428
+ update_oci_cache_config_set_details=_details,
429
+ **kwargs
430
+ )
431
+ if wait_for_state:
432
+
433
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
434
+ try:
435
+ wait_period_kwargs = {}
436
+ if max_wait_seconds is not None:
437
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
438
+ if wait_interval_seconds is not None:
439
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
440
+ if 'opc-work-request-id' not in result.headers:
441
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
442
+ cli_util.render_response(result, ctx)
443
+ return
444
+
445
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
446
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
447
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
448
+ # If we fail, we should show an error, but we should still provide the information to the customer
449
+ click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
450
+ cli_util.render_response(result, ctx)
451
+ sys.exit(2)
452
+ except Exception:
453
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
454
+ cli_util.render_response(result, ctx)
455
+ raise
456
+ else:
457
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
458
+ cli_util.render_response(result, ctx)
@@ -0,0 +1,4 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2025, 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
+ # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220315
@@ -0,0 +1,4 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2025, 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
+ # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220315
@@ -0,0 +1,14 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2025, 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
+ # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220315
5
+
6
+ import oci
7
+ from oci_cli.cli_clients import CLIENT_MAP
8
+ from oci_cli.cli_clients import MODULE_TO_TYPE_MAPPINGS
9
+ from oci.redis import OciCacheDefaultConfigSetClient
10
+
11
+ MODULE_TO_TYPE_MAPPINGS["redis"] = oci.redis.models.redis_type_mapping
12
+ if CLIENT_MAP.get("redis") is None:
13
+ CLIENT_MAP["redis"] = {}
14
+ CLIENT_MAP["redis"]["oci_cache_default_config_set"] = OciCacheDefaultConfigSetClient
@@ -0,0 +1,129 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2025, 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
+ # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220315
5
+
6
+ from __future__ import print_function
7
+ import click
8
+ import oci # noqa: F401
9
+ import six # noqa: F401
10
+ import sys # noqa: F401
11
+ from oci_cli import cli_constants # noqa: F401
12
+ from oci_cli import cli_util
13
+ from oci_cli import json_skeleton_utils
14
+ from oci_cli import custom_types # noqa: F401
15
+ from oci_cli.aliasing import CommandGroupWithAlias
16
+ from services.redis.src.oci_cli_redis.generated import redis_service_cli
17
+
18
+
19
+ @click.command(cli_util.override('oci_cache_default_config_set.oci_cache_default_config_set_root_group.command_name', 'oci-cache-default-config-set'), cls=CommandGroupWithAlias, help=cli_util.override('oci_cache_default_config_set.oci_cache_default_config_set_root_group.help', """Use the OCI Cache API to create and manage clusters. A cluster is a memory-based storage solution. For more information, see [OCI Cache]."""), short_help=cli_util.override('oci_cache_default_config_set.oci_cache_default_config_set_root_group.short_help', """OCI Cache API"""))
20
+ @cli_util.help_option_group
21
+ def oci_cache_default_config_set_root_group():
22
+ pass
23
+
24
+
25
+ @click.command(cli_util.override('oci_cache_default_config_set.oci_cache_default_config_set_group.command_name', 'oci-cache-default-config-set'), cls=CommandGroupWithAlias, help="""Default configurations for OCI Cache to manage the behavior, performance, and functionality of the underlying cache engine.""")
26
+ @cli_util.help_option_group
27
+ def oci_cache_default_config_set_group():
28
+ pass
29
+
30
+
31
+ @click.command(cli_util.override('oci_cache_default_config_set.oci_cache_default_config_set_summary_group.command_name', 'oci-cache-default-config-set-summary'), cls=CommandGroupWithAlias, help="""Summary of information about an OCI Cache Default Config Set.""")
32
+ @cli_util.help_option_group
33
+ def oci_cache_default_config_set_summary_group():
34
+ pass
35
+
36
+
37
+ redis_service_cli.redis_service_group.add_command(oci_cache_default_config_set_root_group)
38
+ oci_cache_default_config_set_root_group.add_command(oci_cache_default_config_set_group)
39
+ oci_cache_default_config_set_root_group.add_command(oci_cache_default_config_set_summary_group)
40
+
41
+
42
+ @oci_cache_default_config_set_group.command(name=cli_util.override('oci_cache_default_config_set.get_oci_cache_default_config_set.command_name', 'get'), help=u"""Retrieves the specified OCI Cache Default Config Set. \n[Command Reference](getOciCacheDefaultConfigSet)""")
43
+ @cli_util.option('--compartment-id', required=True, help=u"""The unique identifier for the compartment.""")
44
+ @cli_util.option('--oci-cache-default-config-set-id', required=True, help=u"""Unique OCI Cache Default Config Set identifier.""")
45
+ @json_skeleton_utils.get_cli_json_input_option({})
46
+ @cli_util.help_option
47
+ @click.pass_context
48
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'redis', 'class': 'OciCacheDefaultConfigSet'})
49
+ @cli_util.wrap_exceptions
50
+ def get_oci_cache_default_config_set(ctx, from_json, compartment_id, oci_cache_default_config_set_id):
51
+
52
+ if isinstance(oci_cache_default_config_set_id, six.string_types) and len(oci_cache_default_config_set_id.strip()) == 0:
53
+ raise click.UsageError('Parameter --oci-cache-default-config-set-id cannot be whitespace or empty string')
54
+
55
+ kwargs = {}
56
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
57
+ client = cli_util.build_client('redis', 'oci_cache_default_config_set', ctx)
58
+ result = client.get_oci_cache_default_config_set(
59
+ compartment_id=compartment_id,
60
+ oci_cache_default_config_set_id=oci_cache_default_config_set_id,
61
+ **kwargs
62
+ )
63
+ cli_util.render_response(result, ctx)
64
+
65
+
66
+ @oci_cache_default_config_set_summary_group.command(name=cli_util.override('oci_cache_default_config_set.list_oci_cache_default_config_sets.command_name', 'list-oci-cache-default-config-sets'), help=u"""Lists the OCI Cache Default Config Sets in the specified compartment. \n[Command Reference](listOciCacheDefaultConfigSets)""")
67
+ @cli_util.option('--compartment-id', required=True, help=u"""The unique identifier for the compartment.""")
68
+ @cli_util.option('--id', help=u"""Unique OCI Cache Default Config Set identifier.""")
69
+ @cli_util.option('--lifecycle-state', type=custom_types.CliCaseInsensitiveChoice(["ACTIVE", "INACTIVE"]), help=u"""A filter to return the OCI Cache Default Config Set resources, whose lifecycle state matches with the given lifecycle state.""")
70
+ @cli_util.option('--software-version', type=custom_types.CliCaseInsensitiveChoice(["V7_0_5", "REDIS_7_0", "VALKEY_7_2"]), help=u"""A filter to return the OCI Cache Config Set resources, whose software version matches with the given software version.""")
71
+ @cli_util.option('--display-name', help=u"""A filter to return only resources that match the entire display name given.""")
72
+ @cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["timeCreated", "displayName"]), help=u"""The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.""")
73
+ @cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either 'ASC' or 'DESC'.""")
74
+ @cli_util.option('--limit', type=click.INT, help=u"""The maximum number of items to return.""")
75
+ @cli_util.option('--page', help=u"""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.""")
76
+ @cli_util.option('--all', 'all_pages', is_flag=True, help="""Fetches all pages of results. If you provide this option, then you cannot provide the --limit option.""")
77
+ @cli_util.option('--page-size', type=click.INT, help="""When fetching results, the number of results to fetch per call. Only valid when used with --all or --limit, and ignored otherwise.""")
78
+ @json_skeleton_utils.get_cli_json_input_option({})
79
+ @cli_util.help_option
80
+ @click.pass_context
81
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'redis', 'class': 'OciCacheDefaultConfigSetCollection'})
82
+ @cli_util.wrap_exceptions
83
+ def list_oci_cache_default_config_sets(ctx, from_json, all_pages, page_size, compartment_id, id, lifecycle_state, software_version, display_name, sort_by, sort_order, limit, page):
84
+
85
+ if all_pages and limit:
86
+ raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
87
+
88
+ kwargs = {}
89
+ if id is not None:
90
+ kwargs['id'] = id
91
+ if lifecycle_state is not None:
92
+ kwargs['lifecycle_state'] = lifecycle_state
93
+ if software_version is not None:
94
+ kwargs['software_version'] = software_version
95
+ if display_name is not None:
96
+ kwargs['display_name'] = display_name
97
+ if sort_by is not None:
98
+ kwargs['sort_by'] = sort_by
99
+ if sort_order is not None:
100
+ kwargs['sort_order'] = sort_order
101
+ if limit is not None:
102
+ kwargs['limit'] = limit
103
+ if page is not None:
104
+ kwargs['page'] = page
105
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
106
+ client = cli_util.build_client('redis', 'oci_cache_default_config_set', ctx)
107
+ if all_pages:
108
+ if page_size:
109
+ kwargs['limit'] = page_size
110
+
111
+ result = cli_util.list_call_get_all_results(
112
+ client.list_oci_cache_default_config_sets,
113
+ compartment_id=compartment_id,
114
+ **kwargs
115
+ )
116
+ elif limit is not None:
117
+ result = cli_util.list_call_get_up_to_limit(
118
+ client.list_oci_cache_default_config_sets,
119
+ limit,
120
+ page_size,
121
+ compartment_id=compartment_id,
122
+ **kwargs
123
+ )
124
+ else:
125
+ result = client.list_oci_cache_default_config_sets(
126
+ compartment_id=compartment_id,
127
+ **kwargs
128
+ )
129
+ cli_util.render_response(result, ctx)