oci 2.115.0__py3-none-any.whl → 2.116.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oci/__init__.py +2 -2
- oci/access_governance_cp/access_governance_cp_client.py +8 -8
- oci/adm/application_dependency_management_client.py +36 -36
- oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
- oci/ai_document/ai_service_document_client.py +22 -22
- oci/ai_language/ai_service_language_client.py +36 -36
- oci/ai_speech/ai_service_speech_client.py +9 -9
- oci/ai_speech/models/__init__.py +4 -0
- oci/ai_speech/models/create_transcription_job_details.py +4 -4
- oci/ai_speech/models/diarization.py +103 -0
- oci/ai_speech/models/transcription_job.py +6 -6
- oci/ai_speech/models/transcription_job_summary.py +6 -6
- oci/ai_speech/models/transcription_model_details.py +29 -2
- oci/ai_speech/models/transcription_settings.py +68 -0
- oci/ai_speech/models/update_transcription_job_details.py +4 -4
- oci/ai_vision/ai_service_vision_client.py +25 -25
- oci/analytics/analytics_client.py +23 -23
- oci/announcements_service/announcement_client.py +4 -4
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/apigateway/api_gateway_client.py +21 -21
- oci/apigateway/deployment_client.py +6 -6
- oci/apigateway/gateway_client.py +6 -6
- oci/apigateway/subscribers_client.py +6 -6
- oci/apigateway/usage_plans_client.py +6 -6
- oci/apigateway/work_requests_client.py +5 -5
- oci/apm_config/config_client.py +8 -8
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +18 -18
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/application_migration/application_migration_client.py +19 -19
- oci/appmgmt_control/appmgmt_control_client.py +8 -8
- oci/artifacts/artifacts_client.py +32 -32
- oci/audit/audit_client.py +3 -3
- oci/auth/signers/ephemeral_resource_principals_v21_signer.py +3 -17
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +521 -47
- oci/bds/bds_client_composite_operations.py +123 -0
- oci/bds/models/__init__.py +14 -0
- oci/bds/models/certificate_service_info_details.py +72 -0
- oci/bds/models/certificate_service_info_summary.py +206 -0
- oci/bds/models/disable_certificate_details.py +103 -0
- oci/bds/models/enable_certificate_details.py +196 -0
- oci/bds/models/host_cert_details.py +134 -0
- oci/bds/models/host_specific_certificate_details.py +150 -0
- oci/bds/models/renew_certificate_details.py +196 -0
- oci/bds/models/work_request.py +7 -3
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +8 -8
- oci/cims/user_client.py +1 -1
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +14 -14
- oci/cloud_bridge/inventory_client.py +16 -16
- oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
- oci/cloud_guard/cloud_guard_client.py +133 -133
- oci/cloud_migrations/migration_client.py +43 -43
- oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
- oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
- oci/compute_instance_agent/plugin_client.py +2 -2
- oci/compute_instance_agent/pluginconfig_client.py +1 -1
- oci/container_engine/container_engine_client.py +44 -44
- oci/container_instances/container_instance_client.py +18 -18
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +1480 -210
- oci/core/compute_client_composite_operations.py +195 -0
- oci/core/compute_management_client.py +32 -32
- oci/core/models/__init__.py +42 -0
- oci/core/models/capacity_source.py +101 -0
- oci/core/models/change_compute_capacity_topology_compartment_details.py +78 -0
- oci/core/models/compute_bare_metal_host.py +458 -0
- oci/core/models/compute_bare_metal_host_collection.py +72 -0
- oci/core/models/compute_bare_metal_host_summary.py +422 -0
- oci/core/models/compute_capacity_topology.py +425 -0
- oci/core/models/compute_capacity_topology_collection.py +72 -0
- oci/core/models/compute_capacity_topology_summary.py +370 -0
- oci/core/models/compute_hpc_island.py +267 -0
- oci/core/models/compute_hpc_island_collection.py +72 -0
- oci/core/models/compute_hpc_island_summary.py +251 -0
- oci/core/models/compute_network_block.py +302 -0
- oci/core/models/compute_network_block_collection.py +72 -0
- oci/core/models/compute_network_block_summary.py +286 -0
- oci/core/models/create_capacity_source_details.py +89 -0
- oci/core/models/create_compute_capacity_topology_details.py +253 -0
- oci/core/models/create_dedicated_capacity_source_details.py +85 -0
- oci/core/models/dedicated_capacity_source.py +86 -0
- oci/core/models/update_capacity_source_details.py +89 -0
- oci/core/models/update_compute_capacity_topology_details.py +183 -0
- oci/core/models/update_dedicated_capacity_source_details.py +50 -0
- oci/core/virtual_network_client.py +242 -242
- oci/dashboard_service/dashboard_client.py +6 -6
- oci/dashboard_service/dashboard_group_client.py +6 -6
- oci/data_catalog/data_catalog_client.py +141 -141
- oci/data_flow/data_flow_client.py +42 -42
- oci/data_integration/data_integration_client.py +163 -163
- oci/data_labeling_service/data_labeling_management_client.py +17 -17
- oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
- oci/data_safe/data_safe_client.py +252 -252
- oci/data_science/data_science_client.py +91 -91
- oci/database/database_client.py +645 -319
- oci/database/database_client_composite_operations.py +176 -0
- oci/database/models/__init__.py +8 -0
- oci/database/models/autonomous_container_database.py +7 -3
- oci/database/models/autonomous_container_database_summary.py +7 -3
- oci/database/models/configure_saas_admin_user_details.py +284 -0
- oci/database/models/create_autonomous_container_database_dataguard_association_details.py +321 -0
- oci/database/models/database_connection_string_profile.py +33 -2
- oci/database/models/generate_autonomous_database_wallet_details.py +33 -2
- oci/database/models/saas_admin_user_configuration.py +284 -0
- oci/database/models/saas_admin_user_status.py +154 -0
- oci/database_management/db_management_client.py +182 -182
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +6 -6
- oci/database_management/perfhub_client.py +1 -1
- oci/database_management/sql_tuning_client.py +17 -17
- oci/database_migration/database_migration_client.py +41 -41
- oci/database_tools/database_tools_client.py +23 -23
- oci/devops/devops_client.py +89 -89
- oci/disaster_recovery/disaster_recovery_client.py +29 -29
- oci/dns/dns_client.py +52 -52
- oci/dts/appliance_export_job_client.py +6 -6
- oci/dts/shipping_vendors_client.py +1 -1
- oci/dts/transfer_appliance_client.py +8 -8
- oci/dts/transfer_appliance_entitlement_client.py +3 -3
- oci/dts/transfer_device_client.py +5 -5
- oci/dts/transfer_job_client.py +6 -6
- oci/dts/transfer_package_client.py +7 -7
- oci/em_warehouse/em_data_lake_client.py +13 -13
- oci/em_warehouse/em_warehouse_client.py +13 -13
- oci/email/email_client.py +25 -25
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +50 -50
- oci/fleet_software_update/fleet_software_update_client.py +44 -44
- oci/functions/functions_invoke_client.py +1 -1
- oci/functions/functions_management_client.py +16 -16
- oci/fusion_apps/data_masking_activity_client.py +3 -3
- oci/fusion_apps/fusion_applications_client.py +39 -39
- oci/fusion_apps/fusion_environment_client.py +15 -15
- oci/fusion_apps/fusion_environment_family_client.py +8 -8
- oci/fusion_apps/refresh_activity_client.py +4 -4
- oci/fusion_apps/scheduled_activity_client.py +2 -2
- oci/fusion_apps/service_attachment_client.py +2 -2
- oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
- oci/golden_gate/golden_gate_client.py +57 -57
- oci/governance_rules_control_plane/governance_rule_client.py +15 -15
- oci/governance_rules_control_plane/work_request_client.py +5 -5
- oci/healthchecks/health_checks_client.py +17 -17
- oci/identity/identity_client.py +145 -145
- oci/identity_data_plane/dataplane_client.py +2 -2
- oci/identity_domains/identity_domains_client.py +20355 -6173
- oci/identity_domains/models/__init__.py +216 -0
- oci/identity_domains/models/app_extension_radius_app_app.py +55 -0
- oci/identity_domains/models/approval_workflow.py +832 -0
- oci/identity_domains/models/approval_workflow_approval_workflow_steps.py +294 -0
- oci/identity_domains/models/approval_workflow_assignment.py +771 -0
- oci/identity_domains/models/approval_workflow_assignment_approval_workflow.py +318 -0
- oci/identity_domains/models/approval_workflow_assignment_assigned_to.py +318 -0
- oci/identity_domains/models/approval_workflow_assignments.py +196 -0
- oci/identity_domains/models/approval_workflow_max_duration.py +185 -0
- oci/identity_domains/models/approval_workflow_step.py +929 -0
- oci/identity_domains/models/approval_workflow_step_approvers.py +294 -0
- oci/identity_domains/models/approval_workflow_steps.py +196 -0
- oci/identity_domains/models/approval_workflows.py +196 -0
- oci/identity_domains/models/authentication_factors_remover.py +51 -2
- oci/identity_domains/models/branding_setting.py +1556 -0
- oci/identity_domains/models/branding_settings.py +196 -0
- oci/identity_domains/models/branding_settings_company_names.py +131 -0
- oci/identity_domains/models/branding_settings_default_company_names.py +143 -0
- oci/identity_domains/models/branding_settings_default_images.py +188 -0
- oci/identity_domains/models/branding_settings_default_login_texts.py +143 -0
- oci/identity_domains/models/branding_settings_images.py +176 -0
- oci/identity_domains/models/branding_settings_login_texts.py +131 -0
- oci/identity_domains/models/cloud_gate.py +1239 -0
- oci/identity_domains/models/cloud_gate_ext_mappings.py +610 -0
- oci/identity_domains/models/cloud_gate_ext_servers.py +296 -0
- oci/identity_domains/models/cloud_gate_ext_upstream_server_groups.py +316 -0
- oci/identity_domains/models/cloud_gate_ext_upstream_servers.py +426 -0
- oci/identity_domains/models/cloud_gate_mapping.py +1068 -0
- oci/identity_domains/models/cloud_gate_mapping_cloud_gate.py +153 -0
- oci/identity_domains/models/cloud_gate_mapping_gateway_app.py +204 -0
- oci/identity_domains/models/cloud_gate_mapping_search_request.py +364 -0
- oci/identity_domains/models/cloud_gate_mapping_server.py +153 -0
- oci/identity_domains/models/cloud_gate_mapping_upstream_server_group.py +217 -0
- oci/identity_domains/models/cloud_gate_mappings.py +196 -0
- oci/identity_domains/models/cloud_gate_oauth_client.py +208 -0
- oci/identity_domains/models/cloud_gate_search_request.py +364 -0
- oci/identity_domains/models/cloud_gate_server.py +1042 -0
- oci/identity_domains/models/cloud_gate_server_cloud_gate.py +153 -0
- oci/identity_domains/models/cloud_gate_server_search_request.py +364 -0
- oci/identity_domains/models/cloud_gate_servers.py +196 -0
- oci/identity_domains/models/cloud_gates.py +196 -0
- oci/identity_domains/models/condition.py +1063 -0
- oci/identity_domains/models/condition_search_request.py +364 -0
- oci/identity_domains/models/conditions.py +196 -0
- oci/identity_domains/models/defined_tags.py +2 -0
- oci/identity_domains/models/extension_social_identity_provider.py +55 -0
- oci/identity_domains/models/freeform_tags.py +2 -0
- oci/identity_domains/models/identity_provider_relay_idp_param_mappings.py +159 -0
- oci/identity_domains/models/me_password_changer.py +2 -2
- oci/identity_domains/models/my_authentication_factors_remover.py +51 -2
- oci/identity_domains/models/my_completed_approval.py +1146 -0
- oci/identity_domains/models/my_completed_approvals.py +196 -0
- oci/identity_domains/models/my_pending_approval.py +1146 -0
- oci/identity_domains/models/my_pending_approvals.py +196 -0
- oci/identity_domains/models/my_request.py +217 -2
- oci/identity_domains/models/my_request_approval_details.py +398 -0
- oci/identity_domains/models/my_request_requesting.py +53 -0
- oci/identity_domains/models/network_perimeter.py +852 -0
- oci/identity_domains/models/network_perimeter_ip_addresses.py +228 -0
- oci/identity_domains/models/network_perimeter_search_request.py +364 -0
- oci/identity_domains/models/network_perimeters.py +196 -0
- oci/identity_domains/models/notification_setting.py +1038 -0
- oci/identity_domains/models/notification_settings.py +196 -0
- oci/identity_domains/models/notification_settings_event_settings.py +143 -0
- oci/identity_domains/models/notification_settings_from_email_address.py +278 -0
- oci/identity_domains/models/notification_settings_search_request.py +171 -0
- oci/identity_domains/models/o_auth_client_certificate.py +1187 -0
- oci/identity_domains/models/o_auth_client_certificate_search_request.py +364 -0
- oci/identity_domains/models/o_auth_client_certificates.py +196 -0
- oci/identity_domains/models/o_auth_partner_certificate.py +1187 -0
- oci/identity_domains/models/o_auth_partner_certificate_search_request.py +364 -0
- oci/identity_domains/models/o_auth_partner_certificates.py +196 -0
- oci/identity_domains/models/policies.py +196 -0
- oci/identity_domains/models/policy.py +979 -0
- oci/identity_domains/models/policy_policy_type.py +150 -0
- oci/identity_domains/models/policy_rules.py +247 -0
- oci/identity_domains/models/policy_search_request.py +364 -0
- oci/identity_domains/models/rule.py +1110 -0
- oci/identity_domains/models/rule_condition_group.py +270 -0
- oci/identity_domains/models/rule_policy_type.py +150 -0
- oci/identity_domains/models/rule_return.py +188 -0
- oci/identity_domains/models/rule_search_request.py +364 -0
- oci/identity_domains/models/rules.py +196 -0
- oci/identity_domains/models/schema.py +537 -0
- oci/identity_domains/models/schema_attributes.py +4165 -0
- oci/identity_domains/models/schema_idcs_complex_attribute_name_mappings.py +188 -0
- oci/identity_domains/models/schema_idcs_csv_attribute_name_mappings.py +433 -0
- oci/identity_domains/models/schema_localized_canonical_values.py +188 -0
- oci/identity_domains/models/schema_localized_display_name.py +147 -0
- oci/identity_domains/models/schema_referenced_resource_type_unique_attribute_name_mappings.py +139 -0
- oci/identity_domains/models/schema_resolve_value_using_resource_type.py +139 -0
- oci/identity_domains/models/schema_search_request.py +329 -0
- oci/identity_domains/models/schema_sub_attributes.py +3209 -0
- oci/identity_domains/models/schemas.py +196 -0
- oci/identity_domains/models/self_registration_profile.py +1636 -0
- oci/identity_domains/models/self_registration_profile_after_submit_text.py +194 -0
- oci/identity_domains/models/self_registration_profile_consent_text.py +194 -0
- oci/identity_domains/models/self_registration_profile_default_groups.py +190 -0
- oci/identity_domains/models/self_registration_profile_display_name.py +194 -0
- oci/identity_domains/models/self_registration_profile_email_template.py +202 -0
- oci/identity_domains/models/self_registration_profile_footer_text.py +194 -0
- oci/identity_domains/models/self_registration_profile_header_text.py +194 -0
- oci/identity_domains/models/self_registration_profile_search_request.py +364 -0
- oci/identity_domains/models/self_registration_profile_user_attributes.py +286 -0
- oci/identity_domains/models/self_registration_profiles.py +196 -0
- oci/identity_domains/models/setting.py +3110 -0
- oci/identity_domains/models/settings.py +196 -0
- oci/identity_domains/models/settings_certificate_validation.py +566 -0
- oci/identity_domains/models/settings_cloud_gate_cors_settings.py +318 -0
- oci/identity_domains/models/settings_company_names.py +135 -0
- oci/identity_domains/models/settings_default_company_names.py +143 -0
- oci/identity_domains/models/settings_default_images.py +188 -0
- oci/identity_domains/models/settings_default_login_texts.py +145 -0
- oci/identity_domains/models/settings_images.py +176 -0
- oci/identity_domains/models/settings_login_texts.py +137 -0
- oci/identity_domains/models/settings_purge_configs.py +139 -0
- oci/identity_domains/models/settings_search_request.py +171 -0
- oci/identity_domains/models/settings_tenant_custom_claims.py +438 -0
- oci/identity_domains/models/user_ext_risk_scores.py +4 -0
- oci/integration/integration_instance_client.py +15 -15
- oci/jms/java_management_service_client.py +1352 -164
- oci/jms/java_management_service_client_composite_operations.py +226 -0
- oci/jms/models/__init__.py +32 -0
- oci/jms/models/agent.py +240 -0
- oci/jms/models/announcement_summary.py +1 -1
- oci/jms/models/application_work_item_details.py +2 -2
- oci/jms/models/basic_work_item_details.py +2 -2
- oci/jms/models/blocklist.py +31 -3
- oci/jms/models/blocklist_entry.py +31 -3
- oci/jms/models/create_blocklist_details.py +31 -3
- oci/jms/models/create_drs_file_details.py +134 -0
- oci/jms/models/disable_drs_details.py +69 -0
- oci/jms/models/drs_file.py +272 -0
- oci/jms/models/drs_file_collection.py +72 -0
- oci/jms/models/drs_file_summary.py +272 -0
- oci/jms/models/drs_target.py +72 -0
- oci/jms/models/enable_drs_details.py +69 -0
- oci/jms/models/export_setting.py +485 -0
- oci/jms/models/export_status.py +201 -0
- oci/jms/models/fleet.py +31 -0
- oci/jms/models/fleet_agent_configuration.py +27 -0
- oci/jms/models/fleet_summary.py +31 -0
- oci/jms/models/java_artifact.py +262 -2
- oci/jms/models/java_family.py +103 -2
- oci/jms/models/java_family_summary.py +70 -2
- oci/jms/models/java_migration_analysis_result.py +31 -0
- oci/jms/models/java_migration_analysis_result_summary.py +31 -0
- oci/jms/models/java_release.py +66 -2
- oci/jms/models/java_release_summary.py +66 -2
- oci/jms/models/lcm_work_item_details.py +86 -0
- oci/jms/models/manage_drs_details.py +73 -0
- oci/jms/models/managed_instance_usage.py +82 -0
- oci/jms/models/patch_detail.py +103 -0
- oci/jms/models/performance_tuning_analysis.py +2 -2
- oci/jms/models/plugin.py +103 -0
- oci/jms/models/request_crypto_analyses_details.py +2 -2
- oci/jms/models/update_drs_file_details.py +134 -0
- oci/jms/models/update_export_setting_details.py +349 -0
- oci/jms/models/update_fleet_agent_configuration_details.py +29 -2
- oci/jms/models/work_item_details.py +34 -6
- oci/jms/models/work_request.py +31 -3
- oci/jms_java_downloads/__init__.py +14 -0
- oci/jms_java_downloads/java_download_client.py +3088 -0
- oci/jms_java_downloads/java_download_client_composite_operations.py +384 -0
- oci/jms_java_downloads/models/__init__.py +80 -0
- oci/jms_java_downloads/models/create_java_download_report_details.py +289 -0
- oci/jms_java_downloads/models/create_java_download_token_details.py +336 -0
- oci/jms_java_downloads/models/create_java_license_acceptance_record_details.py +174 -0
- oci/jms_java_downloads/models/download_url.py +119 -0
- oci/jms_java_downloads/models/generate_artifact_download_url_details.py +72 -0
- oci/jms_java_downloads/models/java_download_count_aggregation.py +289 -0
- oci/jms_java_downloads/models/java_download_count_aggregation_collection.py +123 -0
- oci/jms_java_downloads/models/java_download_record.py +351 -0
- oci/jms_java_downloads/models/java_download_record_collection.py +72 -0
- oci/jms_java_downloads/models/java_download_record_summary.py +351 -0
- oci/jms_java_downloads/models/java_download_report.py +533 -0
- oci/jms_java_downloads/models/java_download_report_collection.py +72 -0
- oci/jms_java_downloads/models/java_download_report_summary.py +532 -0
- oci/jms_java_downloads/models/java_download_token.py +710 -0
- oci/jms_java_downloads/models/java_download_token_collection.py +72 -0
- oci/jms_java_downloads/models/java_download_token_summary.py +710 -0
- oci/jms_java_downloads/models/java_license.py +154 -0
- oci/jms_java_downloads/models/java_license_acceptance_record.py +513 -0
- oci/jms_java_downloads/models/java_license_acceptance_record_collection.py +72 -0
- oci/jms_java_downloads/models/java_license_acceptance_record_summary.py +513 -0
- oci/jms_java_downloads/models/java_license_collection.py +72 -0
- oci/jms_java_downloads/models/java_license_summary.py +154 -0
- oci/jms_java_downloads/models/principal.py +138 -0
- oci/jms_java_downloads/models/request_summarized_java_download_counts_details.py +415 -0
- oci/jms_java_downloads/models/update_java_download_token_details.py +270 -0
- oci/jms_java_downloads/models/update_java_license_acceptance_record_details.py +88 -0
- oci/jms_java_downloads/models/work_request.py +412 -0
- oci/jms_java_downloads/models/work_request_error.py +136 -0
- oci/jms_java_downloads/models/work_request_error_collection.py +72 -0
- oci/jms_java_downloads/models/work_request_log_entry.py +103 -0
- oci/jms_java_downloads/models/work_request_log_entry_collection.py +72 -0
- oci/jms_java_downloads/models/work_request_resource.py +203 -0
- oci/jms_java_downloads/models/work_request_summary.py +412 -0
- oci/jms_java_downloads/models/work_request_summary_collection.py +72 -0
- oci/key_management/ekm_client.py +5 -5
- oci/key_management/kms_crypto_client.py +6 -6
- oci/key_management/kms_management_client.py +21 -21
- oci/key_management/kms_vault_client.py +14 -14
- oci/license_manager/license_manager_client.py +18 -18
- oci/limits/limits_client.py +4 -4
- oci/limits/quotas_client.py +7 -7
- oci/load_balancer/load_balancer_client.py +61 -61
- oci/lockbox/lockbox_client.py +23 -23
- oci/log_analytics/log_analytics_client.py +192 -192
- oci/logging/logging_management_client.py +30 -30
- oci/loggingingestion/logging_client.py +1 -1
- oci/loggingsearch/log_search_client.py +1 -1
- oci/management_agent/management_agent_client.py +23 -23
- oci/management_dashboard/dashx_apis_client.py +14 -14
- oci/marketplace/account_client.py +2 -2
- oci/marketplace/marketplace_client.py +30 -30
- oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
- oci/media_services/media_services_client.py +48 -48
- oci/media_services/media_stream_client.py +2 -2
- oci/monitoring/monitoring_client.py +13 -13
- oci/mysql/channels_client.py +7 -7
- oci/mysql/db_backups_client.py +6 -6
- oci/mysql/db_system_client.py +17 -17
- oci/mysql/mysqlaas_client.py +7 -7
- oci/mysql/replicas_client.py +5 -5
- oci/mysql/work_requests_client.py +4 -4
- oci/network_firewall/network_firewall_client.py +80 -80
- oci/network_load_balancer/network_load_balancer_client.py +34 -34
- oci/nosql/nosql_client.py +24 -24
- oci/object_storage/object_storage_client.py +50 -50
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/esxi_host_client.py +6 -6
- oci/ocvp/sddc_client.py +13 -13
- oci/ocvp/work_request_client.py +4 -4
- oci/oda/management_client.py +56 -56
- oci/oda/oda_client.py +17 -17
- oci/oda/odapackage_client.py +7 -7
- oci/onesubscription/billing_schedule_client.py +1 -1
- oci/onesubscription/commitment_client.py +2 -2
- oci/onesubscription/computed_usage_client.py +3 -3
- oci/onesubscription/invoice_summary_client.py +2 -2
- oci/onesubscription/organization_subscription_client.py +1 -1
- oci/onesubscription/ratecard_client.py +1 -1
- oci/onesubscription/subscribed_service_client.py +2 -2
- oci/onesubscription/subscription_client.py +1 -1
- oci/ons/notification_control_plane_client.py +6 -6
- oci/ons/notification_data_plane_client.py +10 -10
- oci/opa/opa_instance_client.py +11 -11
- oci/opensearch/opensearch_cluster_backup_client.py +4 -4
- oci/opensearch/opensearch_cluster_client.py +14 -14
- oci/operator_access_control/access_requests_client.py +9 -9
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +6 -6
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/operations_insights_client.py +159 -159
- oci/optimizer/optimizer_client.py +26 -26
- oci/os_management/event_client.py +8 -8
- oci/os_management/os_management_client.py +69 -69
- oci/os_management_hub/lifecycle_environment_client.py +11 -11
- oci/os_management_hub/managed_instance_client.py +22 -22
- oci/os_management_hub/managed_instance_group_client.py +22 -22
- oci/os_management_hub/management_station_client.py +8 -8
- oci/os_management_hub/onboarding_client.py +5 -5
- oci/os_management_hub/reporting_managed_instance_client.py +3 -3
- oci/os_management_hub/scheduled_job_client.py +6 -6
- oci/os_management_hub/software_source_client.py +22 -22
- oci/os_management_hub/work_request_client.py +4 -4
- oci/osp_gateway/address_rule_service_client.py +1 -1
- oci/osp_gateway/address_service_client.py +2 -2
- oci/osp_gateway/invoice_service_client.py +5 -5
- oci/osp_gateway/subscription_service_client.py +5 -5
- oci/osub_billing_schedule/billing_schedule_client.py +1 -1
- oci/osub_organization_subscription/organization_subscription_client.py +1 -1
- oci/osub_subscription/commitment_client.py +2 -2
- oci/osub_subscription/ratecard_client.py +1 -1
- oci/osub_subscription/subscription_client.py +1 -1
- oci/osub_usage/computed_usage_client.py +3 -3
- oci/psql/__init__.py +14 -0
- oci/psql/models/__init__.py +166 -0
- oci/psql/models/backup.py +645 -0
- oci/psql/models/backup_collection.py +72 -0
- oci/psql/models/backup_policy.py +156 -0
- oci/psql/models/backup_source_details.py +113 -0
- oci/psql/models/backup_summary.py +481 -0
- oci/psql/models/change_backup_compartment_details.py +74 -0
- oci/psql/models/change_configuration_compartment_details.py +74 -0
- oci/psql/models/change_db_system_compartment_details.py +78 -0
- oci/psql/models/config_overrides.py +103 -0
- oci/psql/models/config_params.py +289 -0
- oci/psql/models/configuration.py +532 -0
- oci/psql/models/configuration_collection.py +72 -0
- oci/psql/models/configuration_details.py +72 -0
- oci/psql/models/configuration_summary.py +450 -0
- oci/psql/models/connection_details.py +134 -0
- oci/psql/models/create_backup_details.py +262 -0
- oci/psql/models/create_configuration_details.py +384 -0
- oci/psql/models/create_db_instance_details.py +136 -0
- oci/psql/models/create_db_system_details.py +585 -0
- oci/psql/models/credentials.py +100 -0
- oci/psql/models/daily_backup_policy.py +89 -0
- oci/psql/models/db_configuration_override_collection.py +72 -0
- oci/psql/models/db_instance.py +325 -0
- oci/psql/models/db_instance_endpoint.py +99 -0
- oci/psql/models/db_system.py +827 -0
- oci/psql/models/db_system_collection.py +72 -0
- oci/psql/models/db_system_details.py +103 -0
- oci/psql/models/db_system_summary.py +574 -0
- oci/psql/models/default_config_params.py +258 -0
- oci/psql/models/default_configuration.py +406 -0
- oci/psql/models/default_configuration_collection.py +72 -0
- oci/psql/models/default_configuration_details.py +72 -0
- oci/psql/models/default_configuration_summary.py +320 -0
- oci/psql/models/endpoint.py +134 -0
- oci/psql/models/failover_db_system_details.py +107 -0
- oci/psql/models/management_policy.py +99 -0
- oci/psql/models/management_policy_details.py +99 -0
- oci/psql/models/monthly_backup_policy.py +122 -0
- oci/psql/models/network_details.py +136 -0
- oci/psql/models/none_backup_policy.py +58 -0
- oci/psql/models/none_source_details.py +51 -0
- oci/psql/models/oci_optimized_storage_details.py +95 -0
- oci/psql/models/password_details.py +110 -0
- oci/psql/models/patch_db_system_details.py +74 -0
- oci/psql/models/patch_insert_instruction.py +171 -0
- oci/psql/models/patch_instruction.py +184 -0
- oci/psql/models/patch_merge_instruction.py +97 -0
- oci/psql/models/patch_move_instruction.py +147 -0
- oci/psql/models/patch_prohibit_instruction.py +100 -0
- oci/psql/models/patch_remove_instruction.py +59 -0
- oci/psql/models/patch_replace_instruction.py +92 -0
- oci/psql/models/patch_require_instruction.py +99 -0
- oci/psql/models/plain_text_password_details.py +82 -0
- oci/psql/models/primary_db_instance_details.py +72 -0
- oci/psql/models/reset_master_user_password_details.py +69 -0
- oci/psql/models/restart_db_instance_in_db_system_details.py +119 -0
- oci/psql/models/restore_db_system_details.py +105 -0
- oci/psql/models/shape_collection.py +72 -0
- oci/psql/models/shape_summary.py +165 -0
- oci/psql/models/source_details.py +109 -0
- oci/psql/models/storage_details.py +161 -0
- oci/psql/models/update_backup_details.py +200 -0
- oci/psql/models/update_configuration_details.py +103 -0
- oci/psql/models/update_db_config_params.py +121 -0
- oci/psql/models/update_db_system_db_instance_details.py +103 -0
- oci/psql/models/update_db_system_details.py +250 -0
- oci/psql/models/update_storage_details_params.py +74 -0
- oci/psql/models/vault_secret_password_details.py +113 -0
- oci/psql/models/weekly_backup_policy.py +157 -0
- oci/psql/models/work_request.py +412 -0
- oci/psql/models/work_request_error.py +136 -0
- oci/psql/models/work_request_error_collection.py +72 -0
- oci/psql/models/work_request_log_entry.py +103 -0
- oci/psql/models/work_request_log_entry_collection.py +72 -0
- oci/psql/models/work_request_resource.py +228 -0
- oci/psql/models/work_request_summary.py +412 -0
- oci/psql/models/work_request_summary_collection.py +72 -0
- oci/psql/postgresql_client.py +3980 -0
- oci/psql/postgresql_client_composite_operations.py +807 -0
- oci/queue/queue_admin_client.py +11 -11
- oci/queue/queue_client.py +8 -8
- oci/recovery/database_recovery_client.py +23 -23
- oci/redis/redis_cluster_client.py +11 -11
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_search/resource_search_client.py +3 -3
- oci/rover/rover_bundle_client.py +8 -8
- oci/rover/rover_cluster_client.py +8 -8
- oci/rover/rover_entitlement_client.py +6 -6
- oci/rover/rover_node_client.py +15 -15
- oci/rover/shape_client.py +1 -1
- oci/rover/work_requests_client.py +5 -5
- oci/sch/service_connector_client.py +12 -12
- oci/secrets/secrets_client.py +3 -3
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/stack_monitoring_client.py +58 -58
- oci/streaming/stream_admin_client.py +18 -18
- oci/streaming/stream_client.py +8 -8
- oci/tenant_manager_control_plane/domain_client.py +5 -5
- oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
- oci/tenant_manager_control_plane/governance_client.py +2 -2
- oci/tenant_manager_control_plane/link_client.py +3 -3
- oci/tenant_manager_control_plane/orders_client.py +2 -2
- oci/tenant_manager_control_plane/organization_client.py +10 -10
- oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/subscription_client.py +11 -11
- oci/tenant_manager_control_plane/work_request_client.py +4 -4
- oci/threat_intelligence/threatintel_client.py +5 -5
- oci/usage/resources_client.py +2 -2
- oci/usage/rewards_client.py +6 -6
- oci/usage/usagelimits_client.py +1 -1
- oci/usage_api/usageapi_client.py +19 -19
- oci/vault/vaults_client.py +11 -11
- oci/vbs_inst/vbs_instance_client.py +10 -10
- oci/version.py +1 -1
- oci/visual_builder/vb_instance_client.py +13 -13
- oci/vn_monitoring/vn_monitoring_client.py +12 -12
- oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
- oci/waa/waa_client.py +13 -13
- oci/waa/work_request_client.py +4 -4
- oci/waas/redirect_client.py +6 -6
- oci/waas/waas_client.py +66 -66
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- {oci-2.115.0.dist-info → oci-2.116.0.dist-info}/METADATA +1 -1
- {oci-2.115.0.dist-info → oci-2.116.0.dist-info}/RECORD +566 -289
- {oci-2.115.0.dist-info → oci-2.116.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.115.0.dist-info → oci-2.116.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.115.0.dist-info → oci-2.116.0.dist-info}/WHEEL +0 -0
- {oci-2.115.0.dist-info → oci-2.116.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,3088 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2023, 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: 20230601
|
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 jms_java_downloads_type_mapping
|
20
|
+
missing = Sentinel("Missing")
|
21
|
+
|
22
|
+
|
23
|
+
class JavaDownloadClient(object):
|
24
|
+
"""
|
25
|
+
The APIs for the download engine of the Java Management Service.
|
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("jms_java_downloads"):
|
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': '/',
|
103
|
+
'service_endpoint_template': 'https://javamanagementservice-download.{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("java_download", config, signer, jms_java_downloads_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 cancel_work_request(self, work_request_id, **kwargs):
|
120
|
+
"""
|
121
|
+
Cancels the work request with the given ID.
|
122
|
+
|
123
|
+
|
124
|
+
:param str work_request_id: (required)
|
125
|
+
The ID of the asynchronous request.
|
126
|
+
|
127
|
+
:param str if_match: (optional)
|
128
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
129
|
+
for a resource, set the `if-match` parameter to the value of the
|
130
|
+
ETag from a previous GET or POST response for that resource.
|
131
|
+
The resource will be updated or deleted only if the ETag you
|
132
|
+
provide matches the resource's current ETag value.
|
133
|
+
|
134
|
+
:param str opc_request_id: (optional)
|
135
|
+
The client request ID for tracing.
|
136
|
+
|
137
|
+
:param obj retry_strategy: (optional)
|
138
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
139
|
+
|
140
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
141
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
142
|
+
|
143
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
144
|
+
|
145
|
+
:param bool allow_control_chars: (optional)
|
146
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
147
|
+
By default, the response will not allow control characters in strings
|
148
|
+
|
149
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
150
|
+
:rtype: :class:`~oci.response.Response`
|
151
|
+
|
152
|
+
:example:
|
153
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/jmsjavadownloads/cancel_work_request.py.html>`__ to see an example of how to use cancel_work_request API.
|
154
|
+
"""
|
155
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
156
|
+
required_arguments = ['workRequestId']
|
157
|
+
resource_path = "/20230601/workRequests/{workRequestId}"
|
158
|
+
method = "DELETE"
|
159
|
+
operation_name = "cancel_work_request"
|
160
|
+
api_reference_link = ""
|
161
|
+
|
162
|
+
# Don't accept unknown kwargs
|
163
|
+
expected_kwargs = [
|
164
|
+
"allow_control_chars",
|
165
|
+
"retry_strategy",
|
166
|
+
"if_match",
|
167
|
+
"opc_request_id"
|
168
|
+
]
|
169
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
170
|
+
if extra_kwargs:
|
171
|
+
raise ValueError(
|
172
|
+
f"cancel_work_request got unknown kwargs: {extra_kwargs!r}")
|
173
|
+
|
174
|
+
path_params = {
|
175
|
+
"workRequestId": work_request_id
|
176
|
+
}
|
177
|
+
|
178
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
179
|
+
|
180
|
+
for (k, v) in six.iteritems(path_params):
|
181
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
182
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
183
|
+
|
184
|
+
header_params = {
|
185
|
+
"accept": "application/json",
|
186
|
+
"content-type": "application/json",
|
187
|
+
"if-match": kwargs.get("if_match", missing),
|
188
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
189
|
+
}
|
190
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
191
|
+
|
192
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
193
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
194
|
+
client_retry_strategy=self.retry_strategy
|
195
|
+
)
|
196
|
+
if retry_strategy is None:
|
197
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
198
|
+
|
199
|
+
if retry_strategy:
|
200
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
201
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
202
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
203
|
+
return retry_strategy.make_retrying_call(
|
204
|
+
self.base_client.call_api,
|
205
|
+
resource_path=resource_path,
|
206
|
+
method=method,
|
207
|
+
path_params=path_params,
|
208
|
+
header_params=header_params,
|
209
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
210
|
+
operation_name=operation_name,
|
211
|
+
api_reference_link=api_reference_link,
|
212
|
+
required_arguments=required_arguments)
|
213
|
+
else:
|
214
|
+
return self.base_client.call_api(
|
215
|
+
resource_path=resource_path,
|
216
|
+
method=method,
|
217
|
+
path_params=path_params,
|
218
|
+
header_params=header_params,
|
219
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
220
|
+
operation_name=operation_name,
|
221
|
+
api_reference_link=api_reference_link,
|
222
|
+
required_arguments=required_arguments)
|
223
|
+
|
224
|
+
def create_java_download_report(self, create_java_download_report_details, **kwargs):
|
225
|
+
"""
|
226
|
+
Create a new report in the specified format containing the download details
|
227
|
+
for the tenancy.
|
228
|
+
|
229
|
+
|
230
|
+
:param oci.jms_java_downloads.models.CreateJavaDownloadReportDetails create_java_download_report_details: (required)
|
231
|
+
Details for the new report.
|
232
|
+
|
233
|
+
:param str opc_retry_token: (optional)
|
234
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
235
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
236
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
237
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
238
|
+
might be rejected.
|
239
|
+
|
240
|
+
:param str opc_request_id: (optional)
|
241
|
+
The client request ID for tracing.
|
242
|
+
|
243
|
+
:param obj retry_strategy: (optional)
|
244
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
245
|
+
|
246
|
+
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.
|
247
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
248
|
+
|
249
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
250
|
+
|
251
|
+
:param bool allow_control_chars: (optional)
|
252
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
253
|
+
By default, the response will not allow control characters in strings
|
254
|
+
|
255
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
256
|
+
:rtype: :class:`~oci.response.Response`
|
257
|
+
|
258
|
+
:example:
|
259
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/jmsjavadownloads/create_java_download_report.py.html>`__ to see an example of how to use create_java_download_report API.
|
260
|
+
"""
|
261
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
262
|
+
required_arguments = []
|
263
|
+
resource_path = "/20230601/javaDownloadReports"
|
264
|
+
method = "POST"
|
265
|
+
operation_name = "create_java_download_report"
|
266
|
+
api_reference_link = ""
|
267
|
+
|
268
|
+
# Don't accept unknown kwargs
|
269
|
+
expected_kwargs = [
|
270
|
+
"allow_control_chars",
|
271
|
+
"retry_strategy",
|
272
|
+
"opc_retry_token",
|
273
|
+
"opc_request_id"
|
274
|
+
]
|
275
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
276
|
+
if extra_kwargs:
|
277
|
+
raise ValueError(
|
278
|
+
f"create_java_download_report got unknown kwargs: {extra_kwargs!r}")
|
279
|
+
|
280
|
+
header_params = {
|
281
|
+
"accept": "application/json",
|
282
|
+
"content-type": "application/json",
|
283
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
284
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
285
|
+
}
|
286
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
287
|
+
|
288
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
289
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
290
|
+
client_retry_strategy=self.retry_strategy
|
291
|
+
)
|
292
|
+
if retry_strategy is None:
|
293
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
294
|
+
|
295
|
+
if retry_strategy:
|
296
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
297
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
298
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
299
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
300
|
+
return retry_strategy.make_retrying_call(
|
301
|
+
self.base_client.call_api,
|
302
|
+
resource_path=resource_path,
|
303
|
+
method=method,
|
304
|
+
header_params=header_params,
|
305
|
+
body=create_java_download_report_details,
|
306
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
307
|
+
operation_name=operation_name,
|
308
|
+
api_reference_link=api_reference_link,
|
309
|
+
required_arguments=required_arguments)
|
310
|
+
else:
|
311
|
+
return self.base_client.call_api(
|
312
|
+
resource_path=resource_path,
|
313
|
+
method=method,
|
314
|
+
header_params=header_params,
|
315
|
+
body=create_java_download_report_details,
|
316
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
317
|
+
operation_name=operation_name,
|
318
|
+
api_reference_link=api_reference_link,
|
319
|
+
required_arguments=required_arguments)
|
320
|
+
|
321
|
+
def create_java_download_token(self, create_java_download_token_details, **kwargs):
|
322
|
+
"""
|
323
|
+
Creates a new JavaDownloadToken in the tenancy with specified attributes.
|
324
|
+
|
325
|
+
|
326
|
+
:param oci.jms_java_downloads.models.CreateJavaDownloadTokenDetails create_java_download_token_details: (required)
|
327
|
+
Details for the new JavaDownloadToken.
|
328
|
+
|
329
|
+
:param str opc_retry_token: (optional)
|
330
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
331
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
332
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
333
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
334
|
+
might be rejected.
|
335
|
+
|
336
|
+
:param str opc_request_id: (optional)
|
337
|
+
The client request ID for tracing.
|
338
|
+
|
339
|
+
:param obj retry_strategy: (optional)
|
340
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
341
|
+
|
342
|
+
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.
|
343
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
344
|
+
|
345
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
346
|
+
|
347
|
+
:param bool allow_control_chars: (optional)
|
348
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
349
|
+
By default, the response will not allow control characters in strings
|
350
|
+
|
351
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms_java_downloads.models.JavaDownloadToken`
|
352
|
+
:rtype: :class:`~oci.response.Response`
|
353
|
+
|
354
|
+
:example:
|
355
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/jmsjavadownloads/create_java_download_token.py.html>`__ to see an example of how to use create_java_download_token API.
|
356
|
+
"""
|
357
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
358
|
+
required_arguments = []
|
359
|
+
resource_path = "/20230601/javaDownloadTokens"
|
360
|
+
method = "POST"
|
361
|
+
operation_name = "create_java_download_token"
|
362
|
+
api_reference_link = ""
|
363
|
+
|
364
|
+
# Don't accept unknown kwargs
|
365
|
+
expected_kwargs = [
|
366
|
+
"allow_control_chars",
|
367
|
+
"retry_strategy",
|
368
|
+
"opc_retry_token",
|
369
|
+
"opc_request_id"
|
370
|
+
]
|
371
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
372
|
+
if extra_kwargs:
|
373
|
+
raise ValueError(
|
374
|
+
f"create_java_download_token got unknown kwargs: {extra_kwargs!r}")
|
375
|
+
|
376
|
+
header_params = {
|
377
|
+
"accept": "application/json",
|
378
|
+
"content-type": "application/json",
|
379
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
380
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
381
|
+
}
|
382
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
383
|
+
|
384
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
385
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
386
|
+
client_retry_strategy=self.retry_strategy
|
387
|
+
)
|
388
|
+
if retry_strategy is None:
|
389
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
390
|
+
|
391
|
+
if retry_strategy:
|
392
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
393
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
394
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
395
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
396
|
+
return retry_strategy.make_retrying_call(
|
397
|
+
self.base_client.call_api,
|
398
|
+
resource_path=resource_path,
|
399
|
+
method=method,
|
400
|
+
header_params=header_params,
|
401
|
+
body=create_java_download_token_details,
|
402
|
+
response_type="JavaDownloadToken",
|
403
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
404
|
+
operation_name=operation_name,
|
405
|
+
api_reference_link=api_reference_link,
|
406
|
+
required_arguments=required_arguments)
|
407
|
+
else:
|
408
|
+
return self.base_client.call_api(
|
409
|
+
resource_path=resource_path,
|
410
|
+
method=method,
|
411
|
+
header_params=header_params,
|
412
|
+
body=create_java_download_token_details,
|
413
|
+
response_type="JavaDownloadToken",
|
414
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
415
|
+
operation_name=operation_name,
|
416
|
+
api_reference_link=api_reference_link,
|
417
|
+
required_arguments=required_arguments)
|
418
|
+
|
419
|
+
def create_java_license_acceptance_record(self, create_java_license_acceptance_record_details, **kwargs):
|
420
|
+
"""
|
421
|
+
Creates a Java license acceptance record for the specified license type in a tenancy.
|
422
|
+
|
423
|
+
|
424
|
+
:param oci.jms_java_downloads.models.CreateJavaLicenseAcceptanceRecordDetails create_java_license_acceptance_record_details: (required)
|
425
|
+
Details for the new JavaLicenseAcceptanceRecord.
|
426
|
+
|
427
|
+
:param str opc_retry_token: (optional)
|
428
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
429
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
430
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
431
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
432
|
+
might be rejected.
|
433
|
+
|
434
|
+
:param str opc_request_id: (optional)
|
435
|
+
The client request ID for tracing.
|
436
|
+
|
437
|
+
:param obj retry_strategy: (optional)
|
438
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
439
|
+
|
440
|
+
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.
|
441
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
442
|
+
|
443
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
444
|
+
|
445
|
+
:param bool allow_control_chars: (optional)
|
446
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
447
|
+
By default, the response will not allow control characters in strings
|
448
|
+
|
449
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms_java_downloads.models.JavaLicenseAcceptanceRecord`
|
450
|
+
:rtype: :class:`~oci.response.Response`
|
451
|
+
|
452
|
+
:example:
|
453
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/jmsjavadownloads/create_java_license_acceptance_record.py.html>`__ to see an example of how to use create_java_license_acceptance_record API.
|
454
|
+
"""
|
455
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
456
|
+
required_arguments = []
|
457
|
+
resource_path = "/20230601/javaLicenseAcceptanceRecords"
|
458
|
+
method = "POST"
|
459
|
+
operation_name = "create_java_license_acceptance_record"
|
460
|
+
api_reference_link = ""
|
461
|
+
|
462
|
+
# Don't accept unknown kwargs
|
463
|
+
expected_kwargs = [
|
464
|
+
"allow_control_chars",
|
465
|
+
"retry_strategy",
|
466
|
+
"opc_retry_token",
|
467
|
+
"opc_request_id"
|
468
|
+
]
|
469
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
470
|
+
if extra_kwargs:
|
471
|
+
raise ValueError(
|
472
|
+
f"create_java_license_acceptance_record got unknown kwargs: {extra_kwargs!r}")
|
473
|
+
|
474
|
+
header_params = {
|
475
|
+
"accept": "application/json",
|
476
|
+
"content-type": "application/json",
|
477
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
478
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
479
|
+
}
|
480
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
481
|
+
|
482
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
483
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
484
|
+
client_retry_strategy=self.retry_strategy
|
485
|
+
)
|
486
|
+
if retry_strategy is None:
|
487
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
488
|
+
|
489
|
+
if retry_strategy:
|
490
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
491
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
492
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
493
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
494
|
+
return retry_strategy.make_retrying_call(
|
495
|
+
self.base_client.call_api,
|
496
|
+
resource_path=resource_path,
|
497
|
+
method=method,
|
498
|
+
header_params=header_params,
|
499
|
+
body=create_java_license_acceptance_record_details,
|
500
|
+
response_type="JavaLicenseAcceptanceRecord",
|
501
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
502
|
+
operation_name=operation_name,
|
503
|
+
api_reference_link=api_reference_link,
|
504
|
+
required_arguments=required_arguments)
|
505
|
+
else:
|
506
|
+
return self.base_client.call_api(
|
507
|
+
resource_path=resource_path,
|
508
|
+
method=method,
|
509
|
+
header_params=header_params,
|
510
|
+
body=create_java_license_acceptance_record_details,
|
511
|
+
response_type="JavaLicenseAcceptanceRecord",
|
512
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
513
|
+
operation_name=operation_name,
|
514
|
+
api_reference_link=api_reference_link,
|
515
|
+
required_arguments=required_arguments)
|
516
|
+
|
517
|
+
def delete_java_download_report(self, java_download_report_id, **kwargs):
|
518
|
+
"""
|
519
|
+
Deletes a JavaDownloadReport resource by identifier.
|
520
|
+
|
521
|
+
|
522
|
+
:param str java_download_report_id: (required)
|
523
|
+
Unique Java download report identifier.
|
524
|
+
|
525
|
+
:param str if_match: (optional)
|
526
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
527
|
+
for a resource, set the `if-match` parameter to the value of the
|
528
|
+
ETag from a previous GET or POST response for that resource.
|
529
|
+
The resource will be updated or deleted only if the ETag you
|
530
|
+
provide matches the resource's current ETag value.
|
531
|
+
|
532
|
+
:param str opc_request_id: (optional)
|
533
|
+
The client request ID for tracing.
|
534
|
+
|
535
|
+
:param obj retry_strategy: (optional)
|
536
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
537
|
+
|
538
|
+
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.
|
539
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
540
|
+
|
541
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
542
|
+
|
543
|
+
:param bool allow_control_chars: (optional)
|
544
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
545
|
+
By default, the response will not allow control characters in strings
|
546
|
+
|
547
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
548
|
+
:rtype: :class:`~oci.response.Response`
|
549
|
+
|
550
|
+
:example:
|
551
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/jmsjavadownloads/delete_java_download_report.py.html>`__ to see an example of how to use delete_java_download_report API.
|
552
|
+
"""
|
553
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
554
|
+
required_arguments = ['javaDownloadReportId']
|
555
|
+
resource_path = "/20230601/javaDownloadReports/{javaDownloadReportId}"
|
556
|
+
method = "DELETE"
|
557
|
+
operation_name = "delete_java_download_report"
|
558
|
+
api_reference_link = ""
|
559
|
+
|
560
|
+
# Don't accept unknown kwargs
|
561
|
+
expected_kwargs = [
|
562
|
+
"allow_control_chars",
|
563
|
+
"retry_strategy",
|
564
|
+
"if_match",
|
565
|
+
"opc_request_id"
|
566
|
+
]
|
567
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
568
|
+
if extra_kwargs:
|
569
|
+
raise ValueError(
|
570
|
+
f"delete_java_download_report got unknown kwargs: {extra_kwargs!r}")
|
571
|
+
|
572
|
+
path_params = {
|
573
|
+
"javaDownloadReportId": java_download_report_id
|
574
|
+
}
|
575
|
+
|
576
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
577
|
+
|
578
|
+
for (k, v) in six.iteritems(path_params):
|
579
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
580
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
581
|
+
|
582
|
+
header_params = {
|
583
|
+
"accept": "application/json",
|
584
|
+
"content-type": "application/json",
|
585
|
+
"if-match": kwargs.get("if_match", missing),
|
586
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
587
|
+
}
|
588
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
589
|
+
|
590
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
591
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
592
|
+
client_retry_strategy=self.retry_strategy
|
593
|
+
)
|
594
|
+
if retry_strategy is None:
|
595
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
596
|
+
|
597
|
+
if retry_strategy:
|
598
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
599
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
600
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
601
|
+
return retry_strategy.make_retrying_call(
|
602
|
+
self.base_client.call_api,
|
603
|
+
resource_path=resource_path,
|
604
|
+
method=method,
|
605
|
+
path_params=path_params,
|
606
|
+
header_params=header_params,
|
607
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
608
|
+
operation_name=operation_name,
|
609
|
+
api_reference_link=api_reference_link,
|
610
|
+
required_arguments=required_arguments)
|
611
|
+
else:
|
612
|
+
return self.base_client.call_api(
|
613
|
+
resource_path=resource_path,
|
614
|
+
method=method,
|
615
|
+
path_params=path_params,
|
616
|
+
header_params=header_params,
|
617
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
618
|
+
operation_name=operation_name,
|
619
|
+
api_reference_link=api_reference_link,
|
620
|
+
required_arguments=required_arguments)
|
621
|
+
|
622
|
+
def delete_java_download_token(self, java_download_token_id, **kwargs):
|
623
|
+
"""
|
624
|
+
Deletes a JavaDownloadToken resource by identifier.
|
625
|
+
|
626
|
+
|
627
|
+
:param str java_download_token_id: (required)
|
628
|
+
Unique JavaDownloadToken identifier.
|
629
|
+
|
630
|
+
:param str if_match: (optional)
|
631
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
632
|
+
for a resource, set the `if-match` parameter to the value of the
|
633
|
+
ETag from a previous GET or POST response for that resource.
|
634
|
+
The resource will be updated or deleted only if the ETag you
|
635
|
+
provide matches the resource's current ETag value.
|
636
|
+
|
637
|
+
:param str opc_request_id: (optional)
|
638
|
+
The client request ID for tracing.
|
639
|
+
|
640
|
+
:param obj retry_strategy: (optional)
|
641
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
642
|
+
|
643
|
+
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.
|
644
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
645
|
+
|
646
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
647
|
+
|
648
|
+
:param bool allow_control_chars: (optional)
|
649
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
650
|
+
By default, the response will not allow control characters in strings
|
651
|
+
|
652
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
653
|
+
:rtype: :class:`~oci.response.Response`
|
654
|
+
|
655
|
+
:example:
|
656
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/jmsjavadownloads/delete_java_download_token.py.html>`__ to see an example of how to use delete_java_download_token API.
|
657
|
+
"""
|
658
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
659
|
+
required_arguments = ['javaDownloadTokenId']
|
660
|
+
resource_path = "/20230601/javaDownloadTokens/{javaDownloadTokenId}"
|
661
|
+
method = "DELETE"
|
662
|
+
operation_name = "delete_java_download_token"
|
663
|
+
api_reference_link = ""
|
664
|
+
|
665
|
+
# Don't accept unknown kwargs
|
666
|
+
expected_kwargs = [
|
667
|
+
"allow_control_chars",
|
668
|
+
"retry_strategy",
|
669
|
+
"if_match",
|
670
|
+
"opc_request_id"
|
671
|
+
]
|
672
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
673
|
+
if extra_kwargs:
|
674
|
+
raise ValueError(
|
675
|
+
f"delete_java_download_token got unknown kwargs: {extra_kwargs!r}")
|
676
|
+
|
677
|
+
path_params = {
|
678
|
+
"javaDownloadTokenId": java_download_token_id
|
679
|
+
}
|
680
|
+
|
681
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
682
|
+
|
683
|
+
for (k, v) in six.iteritems(path_params):
|
684
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
685
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
686
|
+
|
687
|
+
header_params = {
|
688
|
+
"accept": "application/json",
|
689
|
+
"content-type": "application/json",
|
690
|
+
"if-match": kwargs.get("if_match", missing),
|
691
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
692
|
+
}
|
693
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
694
|
+
|
695
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
696
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
697
|
+
client_retry_strategy=self.retry_strategy
|
698
|
+
)
|
699
|
+
if retry_strategy is None:
|
700
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
701
|
+
|
702
|
+
if retry_strategy:
|
703
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
704
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
705
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
706
|
+
return retry_strategy.make_retrying_call(
|
707
|
+
self.base_client.call_api,
|
708
|
+
resource_path=resource_path,
|
709
|
+
method=method,
|
710
|
+
path_params=path_params,
|
711
|
+
header_params=header_params,
|
712
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
713
|
+
operation_name=operation_name,
|
714
|
+
api_reference_link=api_reference_link,
|
715
|
+
required_arguments=required_arguments)
|
716
|
+
else:
|
717
|
+
return self.base_client.call_api(
|
718
|
+
resource_path=resource_path,
|
719
|
+
method=method,
|
720
|
+
path_params=path_params,
|
721
|
+
header_params=header_params,
|
722
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
723
|
+
operation_name=operation_name,
|
724
|
+
api_reference_link=api_reference_link,
|
725
|
+
required_arguments=required_arguments)
|
726
|
+
|
727
|
+
def delete_java_license_acceptance_record(self, java_license_acceptance_record_id, **kwargs):
|
728
|
+
"""
|
729
|
+
Deletes a Java license acceptance record with the specified identifier.
|
730
|
+
|
731
|
+
|
732
|
+
:param str java_license_acceptance_record_id: (required)
|
733
|
+
Unique Java license acceptance record identifier.
|
734
|
+
|
735
|
+
:param str if_match: (optional)
|
736
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
737
|
+
for a resource, set the `if-match` parameter to the value of the
|
738
|
+
ETag from a previous GET or POST response for that resource.
|
739
|
+
The resource will be updated or deleted only if the ETag you
|
740
|
+
provide matches the resource's current ETag value.
|
741
|
+
|
742
|
+
:param str opc_request_id: (optional)
|
743
|
+
The client request ID for tracing.
|
744
|
+
|
745
|
+
:param obj retry_strategy: (optional)
|
746
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
747
|
+
|
748
|
+
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.
|
749
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
750
|
+
|
751
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
752
|
+
|
753
|
+
:param bool allow_control_chars: (optional)
|
754
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
755
|
+
By default, the response will not allow control characters in strings
|
756
|
+
|
757
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
758
|
+
:rtype: :class:`~oci.response.Response`
|
759
|
+
|
760
|
+
:example:
|
761
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/jmsjavadownloads/delete_java_license_acceptance_record.py.html>`__ to see an example of how to use delete_java_license_acceptance_record API.
|
762
|
+
"""
|
763
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
764
|
+
required_arguments = ['javaLicenseAcceptanceRecordId']
|
765
|
+
resource_path = "/20230601/javaLicenseAcceptanceRecords/{javaLicenseAcceptanceRecordId}"
|
766
|
+
method = "DELETE"
|
767
|
+
operation_name = "delete_java_license_acceptance_record"
|
768
|
+
api_reference_link = ""
|
769
|
+
|
770
|
+
# Don't accept unknown kwargs
|
771
|
+
expected_kwargs = [
|
772
|
+
"allow_control_chars",
|
773
|
+
"retry_strategy",
|
774
|
+
"if_match",
|
775
|
+
"opc_request_id"
|
776
|
+
]
|
777
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
778
|
+
if extra_kwargs:
|
779
|
+
raise ValueError(
|
780
|
+
f"delete_java_license_acceptance_record got unknown kwargs: {extra_kwargs!r}")
|
781
|
+
|
782
|
+
path_params = {
|
783
|
+
"javaLicenseAcceptanceRecordId": java_license_acceptance_record_id
|
784
|
+
}
|
785
|
+
|
786
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
787
|
+
|
788
|
+
for (k, v) in six.iteritems(path_params):
|
789
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
790
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
791
|
+
|
792
|
+
header_params = {
|
793
|
+
"accept": "application/json",
|
794
|
+
"content-type": "application/json",
|
795
|
+
"if-match": kwargs.get("if_match", missing),
|
796
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
797
|
+
}
|
798
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
799
|
+
|
800
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
801
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
802
|
+
client_retry_strategy=self.retry_strategy
|
803
|
+
)
|
804
|
+
if retry_strategy is None:
|
805
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
806
|
+
|
807
|
+
if retry_strategy:
|
808
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
809
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
810
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
811
|
+
return retry_strategy.make_retrying_call(
|
812
|
+
self.base_client.call_api,
|
813
|
+
resource_path=resource_path,
|
814
|
+
method=method,
|
815
|
+
path_params=path_params,
|
816
|
+
header_params=header_params,
|
817
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
818
|
+
operation_name=operation_name,
|
819
|
+
api_reference_link=api_reference_link,
|
820
|
+
required_arguments=required_arguments)
|
821
|
+
else:
|
822
|
+
return self.base_client.call_api(
|
823
|
+
resource_path=resource_path,
|
824
|
+
method=method,
|
825
|
+
path_params=path_params,
|
826
|
+
header_params=header_params,
|
827
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
828
|
+
operation_name=operation_name,
|
829
|
+
api_reference_link=api_reference_link,
|
830
|
+
required_arguments=required_arguments)
|
831
|
+
|
832
|
+
def generate_artifact_download_url(self, generate_artifact_download_url_details, **kwargs):
|
833
|
+
"""
|
834
|
+
Generates a short-lived download URL and returns it in the response payload.
|
835
|
+
The returned URL can then be used for downloading the specific Java runtime artifact.
|
836
|
+
|
837
|
+
Use the :func:`get_java_release` API
|
838
|
+
to get information about available artifacts for a specific release. Each such artifact is uniquely identified by an `artifactId`.
|
839
|
+
Refer :func:`java_artifact` for more details.
|
840
|
+
|
841
|
+
|
842
|
+
:param oci.jms_java_downloads.models.GenerateArtifactDownloadUrlDetails generate_artifact_download_url_details: (required)
|
843
|
+
Details for generating download URL for a Java artifact.
|
844
|
+
|
845
|
+
:param str opc_request_id: (optional)
|
846
|
+
The client request ID for tracing.
|
847
|
+
|
848
|
+
:param obj retry_strategy: (optional)
|
849
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
850
|
+
|
851
|
+
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.
|
852
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
853
|
+
|
854
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
855
|
+
|
856
|
+
:param bool allow_control_chars: (optional)
|
857
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
858
|
+
By default, the response will not allow control characters in strings
|
859
|
+
|
860
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms_java_downloads.models.DownloadUrl`
|
861
|
+
:rtype: :class:`~oci.response.Response`
|
862
|
+
|
863
|
+
:example:
|
864
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/jmsjavadownloads/generate_artifact_download_url.py.html>`__ to see an example of how to use generate_artifact_download_url API.
|
865
|
+
"""
|
866
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
867
|
+
required_arguments = []
|
868
|
+
resource_path = "/20230601/actions/generateArtifactDownloadUrl"
|
869
|
+
method = "POST"
|
870
|
+
operation_name = "generate_artifact_download_url"
|
871
|
+
api_reference_link = ""
|
872
|
+
|
873
|
+
# Don't accept unknown kwargs
|
874
|
+
expected_kwargs = [
|
875
|
+
"allow_control_chars",
|
876
|
+
"retry_strategy",
|
877
|
+
"opc_request_id"
|
878
|
+
]
|
879
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
880
|
+
if extra_kwargs:
|
881
|
+
raise ValueError(
|
882
|
+
f"generate_artifact_download_url got unknown kwargs: {extra_kwargs!r}")
|
883
|
+
|
884
|
+
header_params = {
|
885
|
+
"accept": "application/json",
|
886
|
+
"content-type": "application/json",
|
887
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
888
|
+
}
|
889
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
890
|
+
|
891
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
892
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
893
|
+
client_retry_strategy=self.retry_strategy
|
894
|
+
)
|
895
|
+
if retry_strategy is None:
|
896
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
897
|
+
|
898
|
+
if retry_strategy:
|
899
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
900
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
901
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
902
|
+
return retry_strategy.make_retrying_call(
|
903
|
+
self.base_client.call_api,
|
904
|
+
resource_path=resource_path,
|
905
|
+
method=method,
|
906
|
+
header_params=header_params,
|
907
|
+
body=generate_artifact_download_url_details,
|
908
|
+
response_type="DownloadUrl",
|
909
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
910
|
+
operation_name=operation_name,
|
911
|
+
api_reference_link=api_reference_link,
|
912
|
+
required_arguments=required_arguments)
|
913
|
+
else:
|
914
|
+
return self.base_client.call_api(
|
915
|
+
resource_path=resource_path,
|
916
|
+
method=method,
|
917
|
+
header_params=header_params,
|
918
|
+
body=generate_artifact_download_url_details,
|
919
|
+
response_type="DownloadUrl",
|
920
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
921
|
+
operation_name=operation_name,
|
922
|
+
api_reference_link=api_reference_link,
|
923
|
+
required_arguments=required_arguments)
|
924
|
+
|
925
|
+
def get_java_download_report(self, java_download_report_id, **kwargs):
|
926
|
+
"""
|
927
|
+
Gets a JavaDownloadReport by the specified identifier.
|
928
|
+
|
929
|
+
|
930
|
+
:param str java_download_report_id: (required)
|
931
|
+
Unique Java download report identifier.
|
932
|
+
|
933
|
+
:param str opc_request_id: (optional)
|
934
|
+
The client request ID for tracing.
|
935
|
+
|
936
|
+
:param obj retry_strategy: (optional)
|
937
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
938
|
+
|
939
|
+
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.
|
940
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
941
|
+
|
942
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
943
|
+
|
944
|
+
:param bool allow_control_chars: (optional)
|
945
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
946
|
+
By default, the response will not allow control characters in strings
|
947
|
+
|
948
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms_java_downloads.models.JavaDownloadReport`
|
949
|
+
:rtype: :class:`~oci.response.Response`
|
950
|
+
|
951
|
+
:example:
|
952
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/jmsjavadownloads/get_java_download_report.py.html>`__ to see an example of how to use get_java_download_report API.
|
953
|
+
"""
|
954
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
955
|
+
required_arguments = ['javaDownloadReportId']
|
956
|
+
resource_path = "/20230601/javaDownloadReports/{javaDownloadReportId}"
|
957
|
+
method = "GET"
|
958
|
+
operation_name = "get_java_download_report"
|
959
|
+
api_reference_link = ""
|
960
|
+
|
961
|
+
# Don't accept unknown kwargs
|
962
|
+
expected_kwargs = [
|
963
|
+
"allow_control_chars",
|
964
|
+
"retry_strategy",
|
965
|
+
"opc_request_id"
|
966
|
+
]
|
967
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
968
|
+
if extra_kwargs:
|
969
|
+
raise ValueError(
|
970
|
+
f"get_java_download_report got unknown kwargs: {extra_kwargs!r}")
|
971
|
+
|
972
|
+
path_params = {
|
973
|
+
"javaDownloadReportId": java_download_report_id
|
974
|
+
}
|
975
|
+
|
976
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
977
|
+
|
978
|
+
for (k, v) in six.iteritems(path_params):
|
979
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
980
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
981
|
+
|
982
|
+
header_params = {
|
983
|
+
"accept": "application/json",
|
984
|
+
"content-type": "application/json",
|
985
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
986
|
+
}
|
987
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
988
|
+
|
989
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
990
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
991
|
+
client_retry_strategy=self.retry_strategy
|
992
|
+
)
|
993
|
+
if retry_strategy is None:
|
994
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
995
|
+
|
996
|
+
if retry_strategy:
|
997
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
998
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
999
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1000
|
+
return retry_strategy.make_retrying_call(
|
1001
|
+
self.base_client.call_api,
|
1002
|
+
resource_path=resource_path,
|
1003
|
+
method=method,
|
1004
|
+
path_params=path_params,
|
1005
|
+
header_params=header_params,
|
1006
|
+
response_type="JavaDownloadReport",
|
1007
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1008
|
+
operation_name=operation_name,
|
1009
|
+
api_reference_link=api_reference_link,
|
1010
|
+
required_arguments=required_arguments)
|
1011
|
+
else:
|
1012
|
+
return self.base_client.call_api(
|
1013
|
+
resource_path=resource_path,
|
1014
|
+
method=method,
|
1015
|
+
path_params=path_params,
|
1016
|
+
header_params=header_params,
|
1017
|
+
response_type="JavaDownloadReport",
|
1018
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1019
|
+
operation_name=operation_name,
|
1020
|
+
api_reference_link=api_reference_link,
|
1021
|
+
required_arguments=required_arguments)
|
1022
|
+
|
1023
|
+
def get_java_download_report_content(self, java_download_report_id, **kwargs):
|
1024
|
+
"""
|
1025
|
+
Retrieve a Java download report with the specified identifier.
|
1026
|
+
|
1027
|
+
|
1028
|
+
:param str java_download_report_id: (required)
|
1029
|
+
Unique Java download report identifier.
|
1030
|
+
|
1031
|
+
:param str opc_request_id: (optional)
|
1032
|
+
The client request ID for tracing.
|
1033
|
+
|
1034
|
+
:param obj retry_strategy: (optional)
|
1035
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1036
|
+
|
1037
|
+
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.
|
1038
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1039
|
+
|
1040
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1041
|
+
|
1042
|
+
:param bool allow_control_chars: (optional)
|
1043
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1044
|
+
By default, the response will not allow control characters in strings
|
1045
|
+
|
1046
|
+
:return: A :class:`~oci.response.Response` object with data of type stream
|
1047
|
+
:rtype: :class:`~oci.response.Response`
|
1048
|
+
|
1049
|
+
:example:
|
1050
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/jmsjavadownloads/get_java_download_report_content.py.html>`__ to see an example of how to use get_java_download_report_content API.
|
1051
|
+
"""
|
1052
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1053
|
+
required_arguments = ['javaDownloadReportId']
|
1054
|
+
resource_path = "/20230601/javaDownloadReports/{javaDownloadReportId}/content"
|
1055
|
+
method = "GET"
|
1056
|
+
operation_name = "get_java_download_report_content"
|
1057
|
+
api_reference_link = ""
|
1058
|
+
|
1059
|
+
# Don't accept unknown kwargs
|
1060
|
+
expected_kwargs = [
|
1061
|
+
"allow_control_chars",
|
1062
|
+
"retry_strategy",
|
1063
|
+
"opc_request_id"
|
1064
|
+
]
|
1065
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1066
|
+
if extra_kwargs:
|
1067
|
+
raise ValueError(
|
1068
|
+
f"get_java_download_report_content got unknown kwargs: {extra_kwargs!r}")
|
1069
|
+
|
1070
|
+
path_params = {
|
1071
|
+
"javaDownloadReportId": java_download_report_id
|
1072
|
+
}
|
1073
|
+
|
1074
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1075
|
+
|
1076
|
+
for (k, v) in six.iteritems(path_params):
|
1077
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1078
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1079
|
+
|
1080
|
+
header_params = {
|
1081
|
+
"accept": "text/csv",
|
1082
|
+
"content-type": "application/json",
|
1083
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1084
|
+
}
|
1085
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1086
|
+
|
1087
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1088
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1089
|
+
client_retry_strategy=self.retry_strategy
|
1090
|
+
)
|
1091
|
+
if retry_strategy is None:
|
1092
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1093
|
+
|
1094
|
+
if retry_strategy:
|
1095
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1096
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1097
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1098
|
+
return retry_strategy.make_retrying_call(
|
1099
|
+
self.base_client.call_api,
|
1100
|
+
resource_path=resource_path,
|
1101
|
+
method=method,
|
1102
|
+
path_params=path_params,
|
1103
|
+
header_params=header_params,
|
1104
|
+
response_type="stream",
|
1105
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1106
|
+
operation_name=operation_name,
|
1107
|
+
api_reference_link=api_reference_link,
|
1108
|
+
required_arguments=required_arguments)
|
1109
|
+
else:
|
1110
|
+
return self.base_client.call_api(
|
1111
|
+
resource_path=resource_path,
|
1112
|
+
method=method,
|
1113
|
+
path_params=path_params,
|
1114
|
+
header_params=header_params,
|
1115
|
+
response_type="stream",
|
1116
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1117
|
+
operation_name=operation_name,
|
1118
|
+
api_reference_link=api_reference_link,
|
1119
|
+
required_arguments=required_arguments)
|
1120
|
+
|
1121
|
+
def get_java_download_token(self, java_download_token_id, **kwargs):
|
1122
|
+
"""
|
1123
|
+
Gets a JavaDownloadToken by identifier
|
1124
|
+
|
1125
|
+
|
1126
|
+
:param str java_download_token_id: (required)
|
1127
|
+
Unique JavaDownloadToken identifier.
|
1128
|
+
|
1129
|
+
:param str opc_request_id: (optional)
|
1130
|
+
The client request ID for tracing.
|
1131
|
+
|
1132
|
+
:param obj retry_strategy: (optional)
|
1133
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1134
|
+
|
1135
|
+
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.
|
1136
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1137
|
+
|
1138
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1139
|
+
|
1140
|
+
:param bool allow_control_chars: (optional)
|
1141
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1142
|
+
By default, the response will not allow control characters in strings
|
1143
|
+
|
1144
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms_java_downloads.models.JavaDownloadToken`
|
1145
|
+
:rtype: :class:`~oci.response.Response`
|
1146
|
+
|
1147
|
+
:example:
|
1148
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/jmsjavadownloads/get_java_download_token.py.html>`__ to see an example of how to use get_java_download_token API.
|
1149
|
+
"""
|
1150
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1151
|
+
required_arguments = ['javaDownloadTokenId']
|
1152
|
+
resource_path = "/20230601/javaDownloadTokens/{javaDownloadTokenId}"
|
1153
|
+
method = "GET"
|
1154
|
+
operation_name = "get_java_download_token"
|
1155
|
+
api_reference_link = ""
|
1156
|
+
|
1157
|
+
# Don't accept unknown kwargs
|
1158
|
+
expected_kwargs = [
|
1159
|
+
"allow_control_chars",
|
1160
|
+
"retry_strategy",
|
1161
|
+
"opc_request_id"
|
1162
|
+
]
|
1163
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1164
|
+
if extra_kwargs:
|
1165
|
+
raise ValueError(
|
1166
|
+
f"get_java_download_token got unknown kwargs: {extra_kwargs!r}")
|
1167
|
+
|
1168
|
+
path_params = {
|
1169
|
+
"javaDownloadTokenId": java_download_token_id
|
1170
|
+
}
|
1171
|
+
|
1172
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1173
|
+
|
1174
|
+
for (k, v) in six.iteritems(path_params):
|
1175
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1176
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1177
|
+
|
1178
|
+
header_params = {
|
1179
|
+
"accept": "application/json",
|
1180
|
+
"content-type": "application/json",
|
1181
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1182
|
+
}
|
1183
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1184
|
+
|
1185
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1186
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1187
|
+
client_retry_strategy=self.retry_strategy
|
1188
|
+
)
|
1189
|
+
if retry_strategy is None:
|
1190
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1191
|
+
|
1192
|
+
if retry_strategy:
|
1193
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1194
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1195
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1196
|
+
return retry_strategy.make_retrying_call(
|
1197
|
+
self.base_client.call_api,
|
1198
|
+
resource_path=resource_path,
|
1199
|
+
method=method,
|
1200
|
+
path_params=path_params,
|
1201
|
+
header_params=header_params,
|
1202
|
+
response_type="JavaDownloadToken",
|
1203
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1204
|
+
operation_name=operation_name,
|
1205
|
+
api_reference_link=api_reference_link,
|
1206
|
+
required_arguments=required_arguments)
|
1207
|
+
else:
|
1208
|
+
return self.base_client.call_api(
|
1209
|
+
resource_path=resource_path,
|
1210
|
+
method=method,
|
1211
|
+
path_params=path_params,
|
1212
|
+
header_params=header_params,
|
1213
|
+
response_type="JavaDownloadToken",
|
1214
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1215
|
+
operation_name=operation_name,
|
1216
|
+
api_reference_link=api_reference_link,
|
1217
|
+
required_arguments=required_arguments)
|
1218
|
+
|
1219
|
+
def get_java_license(self, license_type, **kwargs):
|
1220
|
+
"""
|
1221
|
+
Return details of the specified Java license type.
|
1222
|
+
|
1223
|
+
|
1224
|
+
:param str license_type: (required)
|
1225
|
+
Unique Java license type.
|
1226
|
+
|
1227
|
+
Allowed values are: "OTN", "NFTC", "RESTRICTED"
|
1228
|
+
|
1229
|
+
:param str opc_request_id: (optional)
|
1230
|
+
The client request ID for tracing.
|
1231
|
+
|
1232
|
+
:param obj retry_strategy: (optional)
|
1233
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1234
|
+
|
1235
|
+
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.
|
1236
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1237
|
+
|
1238
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1239
|
+
|
1240
|
+
:param bool allow_control_chars: (optional)
|
1241
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1242
|
+
By default, the response will not allow control characters in strings
|
1243
|
+
|
1244
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms_java_downloads.models.JavaLicense`
|
1245
|
+
:rtype: :class:`~oci.response.Response`
|
1246
|
+
|
1247
|
+
:example:
|
1248
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/jmsjavadownloads/get_java_license.py.html>`__ to see an example of how to use get_java_license API.
|
1249
|
+
"""
|
1250
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1251
|
+
required_arguments = ['licenseType']
|
1252
|
+
resource_path = "/20230601/javaLicenses/{licenseType}"
|
1253
|
+
method = "GET"
|
1254
|
+
operation_name = "get_java_license"
|
1255
|
+
api_reference_link = ""
|
1256
|
+
|
1257
|
+
# Don't accept unknown kwargs
|
1258
|
+
expected_kwargs = [
|
1259
|
+
"allow_control_chars",
|
1260
|
+
"retry_strategy",
|
1261
|
+
"opc_request_id"
|
1262
|
+
]
|
1263
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1264
|
+
if extra_kwargs:
|
1265
|
+
raise ValueError(
|
1266
|
+
f"get_java_license got unknown kwargs: {extra_kwargs!r}")
|
1267
|
+
|
1268
|
+
path_params = {
|
1269
|
+
"licenseType": license_type
|
1270
|
+
}
|
1271
|
+
|
1272
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1273
|
+
|
1274
|
+
for (k, v) in six.iteritems(path_params):
|
1275
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1276
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1277
|
+
|
1278
|
+
header_params = {
|
1279
|
+
"accept": "application/json",
|
1280
|
+
"content-type": "application/json",
|
1281
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1282
|
+
}
|
1283
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1284
|
+
|
1285
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1286
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1287
|
+
client_retry_strategy=self.retry_strategy
|
1288
|
+
)
|
1289
|
+
if retry_strategy is None:
|
1290
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1291
|
+
|
1292
|
+
if retry_strategy:
|
1293
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1294
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1295
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1296
|
+
return retry_strategy.make_retrying_call(
|
1297
|
+
self.base_client.call_api,
|
1298
|
+
resource_path=resource_path,
|
1299
|
+
method=method,
|
1300
|
+
path_params=path_params,
|
1301
|
+
header_params=header_params,
|
1302
|
+
response_type="JavaLicense",
|
1303
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1304
|
+
operation_name=operation_name,
|
1305
|
+
api_reference_link=api_reference_link,
|
1306
|
+
required_arguments=required_arguments)
|
1307
|
+
else:
|
1308
|
+
return self.base_client.call_api(
|
1309
|
+
resource_path=resource_path,
|
1310
|
+
method=method,
|
1311
|
+
path_params=path_params,
|
1312
|
+
header_params=header_params,
|
1313
|
+
response_type="JavaLicense",
|
1314
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1315
|
+
operation_name=operation_name,
|
1316
|
+
api_reference_link=api_reference_link,
|
1317
|
+
required_arguments=required_arguments)
|
1318
|
+
|
1319
|
+
def get_java_license_acceptance_record(self, java_license_acceptance_record_id, **kwargs):
|
1320
|
+
"""
|
1321
|
+
Returns a specific Java license acceptance record in a tenancy.
|
1322
|
+
|
1323
|
+
|
1324
|
+
:param str java_license_acceptance_record_id: (required)
|
1325
|
+
Unique Java license acceptance record identifier.
|
1326
|
+
|
1327
|
+
:param str opc_request_id: (optional)
|
1328
|
+
The client request ID for tracing.
|
1329
|
+
|
1330
|
+
:param obj retry_strategy: (optional)
|
1331
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1332
|
+
|
1333
|
+
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.
|
1334
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1335
|
+
|
1336
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1337
|
+
|
1338
|
+
:param bool allow_control_chars: (optional)
|
1339
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1340
|
+
By default, the response will not allow control characters in strings
|
1341
|
+
|
1342
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms_java_downloads.models.JavaLicenseAcceptanceRecord`
|
1343
|
+
:rtype: :class:`~oci.response.Response`
|
1344
|
+
|
1345
|
+
:example:
|
1346
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/jmsjavadownloads/get_java_license_acceptance_record.py.html>`__ to see an example of how to use get_java_license_acceptance_record API.
|
1347
|
+
"""
|
1348
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1349
|
+
required_arguments = ['javaLicenseAcceptanceRecordId']
|
1350
|
+
resource_path = "/20230601/javaLicenseAcceptanceRecords/{javaLicenseAcceptanceRecordId}"
|
1351
|
+
method = "GET"
|
1352
|
+
operation_name = "get_java_license_acceptance_record"
|
1353
|
+
api_reference_link = ""
|
1354
|
+
|
1355
|
+
# Don't accept unknown kwargs
|
1356
|
+
expected_kwargs = [
|
1357
|
+
"allow_control_chars",
|
1358
|
+
"retry_strategy",
|
1359
|
+
"opc_request_id"
|
1360
|
+
]
|
1361
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1362
|
+
if extra_kwargs:
|
1363
|
+
raise ValueError(
|
1364
|
+
f"get_java_license_acceptance_record got unknown kwargs: {extra_kwargs!r}")
|
1365
|
+
|
1366
|
+
path_params = {
|
1367
|
+
"javaLicenseAcceptanceRecordId": java_license_acceptance_record_id
|
1368
|
+
}
|
1369
|
+
|
1370
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1371
|
+
|
1372
|
+
for (k, v) in six.iteritems(path_params):
|
1373
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1374
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1375
|
+
|
1376
|
+
header_params = {
|
1377
|
+
"accept": "application/json",
|
1378
|
+
"content-type": "application/json",
|
1379
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1380
|
+
}
|
1381
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1382
|
+
|
1383
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1384
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1385
|
+
client_retry_strategy=self.retry_strategy
|
1386
|
+
)
|
1387
|
+
if retry_strategy is None:
|
1388
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1389
|
+
|
1390
|
+
if retry_strategy:
|
1391
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1392
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1393
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1394
|
+
return retry_strategy.make_retrying_call(
|
1395
|
+
self.base_client.call_api,
|
1396
|
+
resource_path=resource_path,
|
1397
|
+
method=method,
|
1398
|
+
path_params=path_params,
|
1399
|
+
header_params=header_params,
|
1400
|
+
response_type="JavaLicenseAcceptanceRecord",
|
1401
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1402
|
+
operation_name=operation_name,
|
1403
|
+
api_reference_link=api_reference_link,
|
1404
|
+
required_arguments=required_arguments)
|
1405
|
+
else:
|
1406
|
+
return self.base_client.call_api(
|
1407
|
+
resource_path=resource_path,
|
1408
|
+
method=method,
|
1409
|
+
path_params=path_params,
|
1410
|
+
header_params=header_params,
|
1411
|
+
response_type="JavaLicenseAcceptanceRecord",
|
1412
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1413
|
+
operation_name=operation_name,
|
1414
|
+
api_reference_link=api_reference_link,
|
1415
|
+
required_arguments=required_arguments)
|
1416
|
+
|
1417
|
+
def get_work_request(self, work_request_id, **kwargs):
|
1418
|
+
"""
|
1419
|
+
Gets details of the work request with the given ID.
|
1420
|
+
|
1421
|
+
|
1422
|
+
:param str work_request_id: (required)
|
1423
|
+
The ID of the asynchronous request.
|
1424
|
+
|
1425
|
+
:param str opc_request_id: (optional)
|
1426
|
+
The client request ID for tracing.
|
1427
|
+
|
1428
|
+
:param obj retry_strategy: (optional)
|
1429
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1430
|
+
|
1431
|
+
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.
|
1432
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1433
|
+
|
1434
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1435
|
+
|
1436
|
+
:param bool allow_control_chars: (optional)
|
1437
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1438
|
+
By default, the response will not allow control characters in strings
|
1439
|
+
|
1440
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms_java_downloads.models.WorkRequest`
|
1441
|
+
:rtype: :class:`~oci.response.Response`
|
1442
|
+
|
1443
|
+
:example:
|
1444
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/jmsjavadownloads/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
|
1445
|
+
"""
|
1446
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1447
|
+
required_arguments = ['workRequestId']
|
1448
|
+
resource_path = "/20230601/workRequests/{workRequestId}"
|
1449
|
+
method = "GET"
|
1450
|
+
operation_name = "get_work_request"
|
1451
|
+
api_reference_link = ""
|
1452
|
+
|
1453
|
+
# Don't accept unknown kwargs
|
1454
|
+
expected_kwargs = [
|
1455
|
+
"allow_control_chars",
|
1456
|
+
"retry_strategy",
|
1457
|
+
"opc_request_id"
|
1458
|
+
]
|
1459
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1460
|
+
if extra_kwargs:
|
1461
|
+
raise ValueError(
|
1462
|
+
f"get_work_request got unknown kwargs: {extra_kwargs!r}")
|
1463
|
+
|
1464
|
+
path_params = {
|
1465
|
+
"workRequestId": work_request_id
|
1466
|
+
}
|
1467
|
+
|
1468
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1469
|
+
|
1470
|
+
for (k, v) in six.iteritems(path_params):
|
1471
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1472
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1473
|
+
|
1474
|
+
header_params = {
|
1475
|
+
"accept": "application/json",
|
1476
|
+
"content-type": "application/json",
|
1477
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1478
|
+
}
|
1479
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1480
|
+
|
1481
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1482
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1483
|
+
client_retry_strategy=self.retry_strategy
|
1484
|
+
)
|
1485
|
+
if retry_strategy is None:
|
1486
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1487
|
+
|
1488
|
+
if retry_strategy:
|
1489
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1490
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1491
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1492
|
+
return retry_strategy.make_retrying_call(
|
1493
|
+
self.base_client.call_api,
|
1494
|
+
resource_path=resource_path,
|
1495
|
+
method=method,
|
1496
|
+
path_params=path_params,
|
1497
|
+
header_params=header_params,
|
1498
|
+
response_type="WorkRequest",
|
1499
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1500
|
+
operation_name=operation_name,
|
1501
|
+
api_reference_link=api_reference_link,
|
1502
|
+
required_arguments=required_arguments)
|
1503
|
+
else:
|
1504
|
+
return self.base_client.call_api(
|
1505
|
+
resource_path=resource_path,
|
1506
|
+
method=method,
|
1507
|
+
path_params=path_params,
|
1508
|
+
header_params=header_params,
|
1509
|
+
response_type="WorkRequest",
|
1510
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1511
|
+
operation_name=operation_name,
|
1512
|
+
api_reference_link=api_reference_link,
|
1513
|
+
required_arguments=required_arguments)
|
1514
|
+
|
1515
|
+
def list_java_download_records(self, compartment_id, **kwargs):
|
1516
|
+
"""
|
1517
|
+
Returns a list of Java download records in a tenancy based on specified parameters.
|
1518
|
+
See :func:`list_java_releases`
|
1519
|
+
for possible values of `javaFamilyVersion` and `javaReleaseVersion` parameters.
|
1520
|
+
|
1521
|
+
|
1522
|
+
:param str compartment_id: (required)
|
1523
|
+
The `OCID`__ of the tenancy.
|
1524
|
+
|
1525
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
1526
|
+
|
1527
|
+
:param str family_version: (optional)
|
1528
|
+
Unique Java family version identifier.
|
1529
|
+
|
1530
|
+
:param str release_version: (optional)
|
1531
|
+
Unique Java release version identifier.
|
1532
|
+
|
1533
|
+
:param str os_family: (optional)
|
1534
|
+
Target Operating System family of the artifact.
|
1535
|
+
|
1536
|
+
:param str architecture: (optional)
|
1537
|
+
Target Operating System architecture of the artifact.
|
1538
|
+
|
1539
|
+
:param str package_type_detail: (optional)
|
1540
|
+
Packaging type detail of the artifact.
|
1541
|
+
|
1542
|
+
:param datetime time_start: (optional)
|
1543
|
+
The start of the time period for which reports are searched (formatted according to `RFC3339`__).
|
1544
|
+
|
1545
|
+
__ https://datatracker.ietf.org/doc/html/rfc3339
|
1546
|
+
|
1547
|
+
:param datetime time_end: (optional)
|
1548
|
+
The end of the time period for which reports are searched (formatted according to `RFC3339`__).
|
1549
|
+
|
1550
|
+
__ https://datatracker.ietf.org/doc/html/rfc3339
|
1551
|
+
|
1552
|
+
:param int limit: (optional)
|
1553
|
+
The maximum number of items to return.
|
1554
|
+
|
1555
|
+
:param str page: (optional)
|
1556
|
+
The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
|
1557
|
+
|
1558
|
+
:param str sort_order: (optional)
|
1559
|
+
The sort order, either 'asc' or 'desc'.
|
1560
|
+
|
1561
|
+
Allowed values are: "ASC", "DESC"
|
1562
|
+
|
1563
|
+
:param str sort_by: (optional)
|
1564
|
+
If no value is specified _timeDownloaded_ is default.
|
1565
|
+
|
1566
|
+
Allowed values are: "timeDownloaded", "downloadSourceId", "downloadType"
|
1567
|
+
|
1568
|
+
:param str opc_request_id: (optional)
|
1569
|
+
The client request ID for tracing.
|
1570
|
+
|
1571
|
+
:param obj retry_strategy: (optional)
|
1572
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1573
|
+
|
1574
|
+
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.
|
1575
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1576
|
+
|
1577
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1578
|
+
|
1579
|
+
:param bool allow_control_chars: (optional)
|
1580
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1581
|
+
By default, the response will not allow control characters in strings
|
1582
|
+
|
1583
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms_java_downloads.models.JavaDownloadRecordCollection`
|
1584
|
+
:rtype: :class:`~oci.response.Response`
|
1585
|
+
|
1586
|
+
:example:
|
1587
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/jmsjavadownloads/list_java_download_records.py.html>`__ to see an example of how to use list_java_download_records API.
|
1588
|
+
"""
|
1589
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1590
|
+
required_arguments = ['compartmentId']
|
1591
|
+
resource_path = "/20230601/javaDownloadRecords"
|
1592
|
+
method = "GET"
|
1593
|
+
operation_name = "list_java_download_records"
|
1594
|
+
api_reference_link = ""
|
1595
|
+
|
1596
|
+
# Don't accept unknown kwargs
|
1597
|
+
expected_kwargs = [
|
1598
|
+
"allow_control_chars",
|
1599
|
+
"retry_strategy",
|
1600
|
+
"family_version",
|
1601
|
+
"release_version",
|
1602
|
+
"os_family",
|
1603
|
+
"architecture",
|
1604
|
+
"package_type_detail",
|
1605
|
+
"time_start",
|
1606
|
+
"time_end",
|
1607
|
+
"limit",
|
1608
|
+
"page",
|
1609
|
+
"sort_order",
|
1610
|
+
"sort_by",
|
1611
|
+
"opc_request_id"
|
1612
|
+
]
|
1613
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1614
|
+
if extra_kwargs:
|
1615
|
+
raise ValueError(
|
1616
|
+
f"list_java_download_records got unknown kwargs: {extra_kwargs!r}")
|
1617
|
+
|
1618
|
+
if 'sort_order' in kwargs:
|
1619
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
1620
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
1621
|
+
raise ValueError(
|
1622
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
1623
|
+
)
|
1624
|
+
|
1625
|
+
if 'sort_by' in kwargs:
|
1626
|
+
sort_by_allowed_values = ["timeDownloaded", "downloadSourceId", "downloadType"]
|
1627
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1628
|
+
raise ValueError(
|
1629
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1630
|
+
)
|
1631
|
+
|
1632
|
+
query_params = {
|
1633
|
+
"compartmentId": compartment_id,
|
1634
|
+
"familyVersion": kwargs.get("family_version", missing),
|
1635
|
+
"releaseVersion": kwargs.get("release_version", missing),
|
1636
|
+
"osFamily": kwargs.get("os_family", missing),
|
1637
|
+
"architecture": kwargs.get("architecture", missing),
|
1638
|
+
"packageTypeDetail": kwargs.get("package_type_detail", missing),
|
1639
|
+
"timeStart": kwargs.get("time_start", missing),
|
1640
|
+
"timeEnd": kwargs.get("time_end", missing),
|
1641
|
+
"limit": kwargs.get("limit", missing),
|
1642
|
+
"page": kwargs.get("page", missing),
|
1643
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
1644
|
+
"sortBy": kwargs.get("sort_by", missing)
|
1645
|
+
}
|
1646
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
1647
|
+
|
1648
|
+
header_params = {
|
1649
|
+
"accept": "application/json",
|
1650
|
+
"content-type": "application/json",
|
1651
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1652
|
+
}
|
1653
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1654
|
+
|
1655
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1656
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1657
|
+
client_retry_strategy=self.retry_strategy
|
1658
|
+
)
|
1659
|
+
if retry_strategy is None:
|
1660
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1661
|
+
|
1662
|
+
if retry_strategy:
|
1663
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1664
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1665
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1666
|
+
return retry_strategy.make_retrying_call(
|
1667
|
+
self.base_client.call_api,
|
1668
|
+
resource_path=resource_path,
|
1669
|
+
method=method,
|
1670
|
+
query_params=query_params,
|
1671
|
+
header_params=header_params,
|
1672
|
+
response_type="JavaDownloadRecordCollection",
|
1673
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1674
|
+
operation_name=operation_name,
|
1675
|
+
api_reference_link=api_reference_link,
|
1676
|
+
required_arguments=required_arguments)
|
1677
|
+
else:
|
1678
|
+
return self.base_client.call_api(
|
1679
|
+
resource_path=resource_path,
|
1680
|
+
method=method,
|
1681
|
+
query_params=query_params,
|
1682
|
+
header_params=header_params,
|
1683
|
+
response_type="JavaDownloadRecordCollection",
|
1684
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1685
|
+
operation_name=operation_name,
|
1686
|
+
api_reference_link=api_reference_link,
|
1687
|
+
required_arguments=required_arguments)
|
1688
|
+
|
1689
|
+
def list_java_download_reports(self, compartment_id, **kwargs):
|
1690
|
+
"""
|
1691
|
+
Returns a list of JavaDownloadReports.
|
1692
|
+
|
1693
|
+
|
1694
|
+
:param str compartment_id: (required)
|
1695
|
+
The `OCID`__ of the tenancy.
|
1696
|
+
|
1697
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
1698
|
+
|
1699
|
+
:param str lifecycle_state: (optional)
|
1700
|
+
A filter to return only resources their lifecycleState matches the given lifecycleState.
|
1701
|
+
|
1702
|
+
Allowed values are: "ACTIVE", "CREATING", "DELETED", "DELETING", "FAILED", "NEEDS_ATTENTION", "UPDATING"
|
1703
|
+
|
1704
|
+
:param str display_name: (optional)
|
1705
|
+
A filter to return only resources that match the display name.
|
1706
|
+
|
1707
|
+
:param str java_download_report_id: (optional)
|
1708
|
+
Unique Java download report identifier.
|
1709
|
+
|
1710
|
+
:param int limit: (optional)
|
1711
|
+
The maximum number of items to return.
|
1712
|
+
|
1713
|
+
:param str page: (optional)
|
1714
|
+
The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
|
1715
|
+
|
1716
|
+
:param str sort_order: (optional)
|
1717
|
+
The sort order, either 'asc' or 'desc'.
|
1718
|
+
|
1719
|
+
Allowed values are: "ASC", "DESC"
|
1720
|
+
|
1721
|
+
:param str sort_by: (optional)
|
1722
|
+
The field to sort by. If no value is specified, _timeCreated_ is the default.
|
1723
|
+
|
1724
|
+
Allowed values are: "timeCreated", "displayName"
|
1725
|
+
|
1726
|
+
:param str opc_request_id: (optional)
|
1727
|
+
The client request ID for tracing.
|
1728
|
+
|
1729
|
+
:param obj retry_strategy: (optional)
|
1730
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1731
|
+
|
1732
|
+
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.
|
1733
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1734
|
+
|
1735
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1736
|
+
|
1737
|
+
:param bool allow_control_chars: (optional)
|
1738
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1739
|
+
By default, the response will not allow control characters in strings
|
1740
|
+
|
1741
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms_java_downloads.models.JavaDownloadReportCollection`
|
1742
|
+
:rtype: :class:`~oci.response.Response`
|
1743
|
+
|
1744
|
+
:example:
|
1745
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/jmsjavadownloads/list_java_download_reports.py.html>`__ to see an example of how to use list_java_download_reports API.
|
1746
|
+
"""
|
1747
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1748
|
+
required_arguments = ['compartmentId']
|
1749
|
+
resource_path = "/20230601/javaDownloadReports"
|
1750
|
+
method = "GET"
|
1751
|
+
operation_name = "list_java_download_reports"
|
1752
|
+
api_reference_link = ""
|
1753
|
+
|
1754
|
+
# Don't accept unknown kwargs
|
1755
|
+
expected_kwargs = [
|
1756
|
+
"allow_control_chars",
|
1757
|
+
"retry_strategy",
|
1758
|
+
"lifecycle_state",
|
1759
|
+
"display_name",
|
1760
|
+
"java_download_report_id",
|
1761
|
+
"limit",
|
1762
|
+
"page",
|
1763
|
+
"sort_order",
|
1764
|
+
"sort_by",
|
1765
|
+
"opc_request_id"
|
1766
|
+
]
|
1767
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1768
|
+
if extra_kwargs:
|
1769
|
+
raise ValueError(
|
1770
|
+
f"list_java_download_reports got unknown kwargs: {extra_kwargs!r}")
|
1771
|
+
|
1772
|
+
if 'lifecycle_state' in kwargs:
|
1773
|
+
lifecycle_state_allowed_values = ["ACTIVE", "CREATING", "DELETED", "DELETING", "FAILED", "NEEDS_ATTENTION", "UPDATING"]
|
1774
|
+
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
1775
|
+
raise ValueError(
|
1776
|
+
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
1777
|
+
)
|
1778
|
+
|
1779
|
+
if 'sort_order' in kwargs:
|
1780
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
1781
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
1782
|
+
raise ValueError(
|
1783
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
1784
|
+
)
|
1785
|
+
|
1786
|
+
if 'sort_by' in kwargs:
|
1787
|
+
sort_by_allowed_values = ["timeCreated", "displayName"]
|
1788
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1789
|
+
raise ValueError(
|
1790
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1791
|
+
)
|
1792
|
+
|
1793
|
+
query_params = {
|
1794
|
+
"compartmentId": compartment_id,
|
1795
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
1796
|
+
"displayName": kwargs.get("display_name", missing),
|
1797
|
+
"javaDownloadReportId": kwargs.get("java_download_report_id", missing),
|
1798
|
+
"limit": kwargs.get("limit", missing),
|
1799
|
+
"page": kwargs.get("page", missing),
|
1800
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
1801
|
+
"sortBy": kwargs.get("sort_by", missing)
|
1802
|
+
}
|
1803
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
1804
|
+
|
1805
|
+
header_params = {
|
1806
|
+
"accept": "application/json",
|
1807
|
+
"content-type": "application/json",
|
1808
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1809
|
+
}
|
1810
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1811
|
+
|
1812
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1813
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1814
|
+
client_retry_strategy=self.retry_strategy
|
1815
|
+
)
|
1816
|
+
if retry_strategy is None:
|
1817
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1818
|
+
|
1819
|
+
if retry_strategy:
|
1820
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1821
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1822
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1823
|
+
return retry_strategy.make_retrying_call(
|
1824
|
+
self.base_client.call_api,
|
1825
|
+
resource_path=resource_path,
|
1826
|
+
method=method,
|
1827
|
+
query_params=query_params,
|
1828
|
+
header_params=header_params,
|
1829
|
+
response_type="JavaDownloadReportCollection",
|
1830
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1831
|
+
operation_name=operation_name,
|
1832
|
+
api_reference_link=api_reference_link,
|
1833
|
+
required_arguments=required_arguments)
|
1834
|
+
else:
|
1835
|
+
return self.base_client.call_api(
|
1836
|
+
resource_path=resource_path,
|
1837
|
+
method=method,
|
1838
|
+
query_params=query_params,
|
1839
|
+
header_params=header_params,
|
1840
|
+
response_type="JavaDownloadReportCollection",
|
1841
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1842
|
+
operation_name=operation_name,
|
1843
|
+
api_reference_link=api_reference_link,
|
1844
|
+
required_arguments=required_arguments)
|
1845
|
+
|
1846
|
+
def list_java_download_tokens(self, compartment_id, **kwargs):
|
1847
|
+
"""
|
1848
|
+
Returns a list of JavaDownloadTokens.
|
1849
|
+
|
1850
|
+
|
1851
|
+
:param str compartment_id: (required)
|
1852
|
+
The `OCID`__ of the tenancy.
|
1853
|
+
|
1854
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
1855
|
+
|
1856
|
+
:param str lifecycle_state: (optional)
|
1857
|
+
A filter to return only resources their lifecycleState matches the given lifecycleState.
|
1858
|
+
|
1859
|
+
Allowed values are: "ACTIVE", "CREATING", "DELETED", "DELETING", "FAILED", "NEEDS_ATTENTION", "UPDATING"
|
1860
|
+
|
1861
|
+
:param str display_name: (optional)
|
1862
|
+
A filter to return only resources that match the entire display name given.
|
1863
|
+
|
1864
|
+
:param str id: (optional)
|
1865
|
+
Unique JavaDownloadToken identifier.
|
1866
|
+
|
1867
|
+
:param str value: (optional)
|
1868
|
+
Unique JavaDownloadToken value.
|
1869
|
+
|
1870
|
+
:param str family_version: (optional)
|
1871
|
+
Unique Java family version identifier.
|
1872
|
+
|
1873
|
+
:param str search_by_user: (optional)
|
1874
|
+
A filter to return only resources that match the user principal detail.
|
1875
|
+
The search string can be any of the property values from the :func:`principal` object.
|
1876
|
+
This object is used as response datatype for the `createdBy` and `lastUpdatedBy` fields in applicable resource.
|
1877
|
+
|
1878
|
+
:param int limit: (optional)
|
1879
|
+
The maximum number of items to return.
|
1880
|
+
|
1881
|
+
:param str page: (optional)
|
1882
|
+
The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
|
1883
|
+
|
1884
|
+
:param str sort_order: (optional)
|
1885
|
+
The sort order, either 'asc' or 'desc'.
|
1886
|
+
|
1887
|
+
Allowed values are: "ASC", "DESC"
|
1888
|
+
|
1889
|
+
:param str sort_by: (optional)
|
1890
|
+
The field to sort by. If no value is specified, _timeCreated_ is the default.
|
1891
|
+
|
1892
|
+
Allowed values are: "timeCreated", "timeExpires", "state", "displayName", "javaVersion"
|
1893
|
+
|
1894
|
+
:param str opc_request_id: (optional)
|
1895
|
+
The client request ID for tracing.
|
1896
|
+
|
1897
|
+
:param obj retry_strategy: (optional)
|
1898
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1899
|
+
|
1900
|
+
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.
|
1901
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1902
|
+
|
1903
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1904
|
+
|
1905
|
+
:param bool allow_control_chars: (optional)
|
1906
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1907
|
+
By default, the response will not allow control characters in strings
|
1908
|
+
|
1909
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms_java_downloads.models.JavaDownloadTokenCollection`
|
1910
|
+
:rtype: :class:`~oci.response.Response`
|
1911
|
+
|
1912
|
+
:example:
|
1913
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/jmsjavadownloads/list_java_download_tokens.py.html>`__ to see an example of how to use list_java_download_tokens API.
|
1914
|
+
"""
|
1915
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1916
|
+
required_arguments = ['compartmentId']
|
1917
|
+
resource_path = "/20230601/javaDownloadTokens"
|
1918
|
+
method = "GET"
|
1919
|
+
operation_name = "list_java_download_tokens"
|
1920
|
+
api_reference_link = ""
|
1921
|
+
|
1922
|
+
# Don't accept unknown kwargs
|
1923
|
+
expected_kwargs = [
|
1924
|
+
"allow_control_chars",
|
1925
|
+
"retry_strategy",
|
1926
|
+
"lifecycle_state",
|
1927
|
+
"display_name",
|
1928
|
+
"id",
|
1929
|
+
"value",
|
1930
|
+
"family_version",
|
1931
|
+
"search_by_user",
|
1932
|
+
"limit",
|
1933
|
+
"page",
|
1934
|
+
"sort_order",
|
1935
|
+
"sort_by",
|
1936
|
+
"opc_request_id"
|
1937
|
+
]
|
1938
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1939
|
+
if extra_kwargs:
|
1940
|
+
raise ValueError(
|
1941
|
+
f"list_java_download_tokens got unknown kwargs: {extra_kwargs!r}")
|
1942
|
+
|
1943
|
+
if 'lifecycle_state' in kwargs:
|
1944
|
+
lifecycle_state_allowed_values = ["ACTIVE", "CREATING", "DELETED", "DELETING", "FAILED", "NEEDS_ATTENTION", "UPDATING"]
|
1945
|
+
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
1946
|
+
raise ValueError(
|
1947
|
+
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
1948
|
+
)
|
1949
|
+
|
1950
|
+
if 'sort_order' in kwargs:
|
1951
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
1952
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
1953
|
+
raise ValueError(
|
1954
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
1955
|
+
)
|
1956
|
+
|
1957
|
+
if 'sort_by' in kwargs:
|
1958
|
+
sort_by_allowed_values = ["timeCreated", "timeExpires", "state", "displayName", "javaVersion"]
|
1959
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1960
|
+
raise ValueError(
|
1961
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1962
|
+
)
|
1963
|
+
|
1964
|
+
query_params = {
|
1965
|
+
"compartmentId": compartment_id,
|
1966
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
1967
|
+
"displayName": kwargs.get("display_name", missing),
|
1968
|
+
"id": kwargs.get("id", missing),
|
1969
|
+
"value": kwargs.get("value", missing),
|
1970
|
+
"familyVersion": kwargs.get("family_version", missing),
|
1971
|
+
"searchByUser": kwargs.get("search_by_user", missing),
|
1972
|
+
"limit": kwargs.get("limit", missing),
|
1973
|
+
"page": kwargs.get("page", missing),
|
1974
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
1975
|
+
"sortBy": kwargs.get("sort_by", missing)
|
1976
|
+
}
|
1977
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
1978
|
+
|
1979
|
+
header_params = {
|
1980
|
+
"accept": "application/json",
|
1981
|
+
"content-type": "application/json",
|
1982
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1983
|
+
}
|
1984
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1985
|
+
|
1986
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1987
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1988
|
+
client_retry_strategy=self.retry_strategy
|
1989
|
+
)
|
1990
|
+
if retry_strategy is None:
|
1991
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1992
|
+
|
1993
|
+
if retry_strategy:
|
1994
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1995
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1996
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1997
|
+
return retry_strategy.make_retrying_call(
|
1998
|
+
self.base_client.call_api,
|
1999
|
+
resource_path=resource_path,
|
2000
|
+
method=method,
|
2001
|
+
query_params=query_params,
|
2002
|
+
header_params=header_params,
|
2003
|
+
response_type="JavaDownloadTokenCollection",
|
2004
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2005
|
+
operation_name=operation_name,
|
2006
|
+
api_reference_link=api_reference_link,
|
2007
|
+
required_arguments=required_arguments)
|
2008
|
+
else:
|
2009
|
+
return self.base_client.call_api(
|
2010
|
+
resource_path=resource_path,
|
2011
|
+
method=method,
|
2012
|
+
query_params=query_params,
|
2013
|
+
header_params=header_params,
|
2014
|
+
response_type="JavaDownloadTokenCollection",
|
2015
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2016
|
+
operation_name=operation_name,
|
2017
|
+
api_reference_link=api_reference_link,
|
2018
|
+
required_arguments=required_arguments)
|
2019
|
+
|
2020
|
+
def list_java_license_acceptance_records(self, compartment_id, **kwargs):
|
2021
|
+
"""
|
2022
|
+
Returns a list of all the Java license acceptance records in a tenancy.
|
2023
|
+
|
2024
|
+
|
2025
|
+
:param str compartment_id: (required)
|
2026
|
+
The `OCID`__ of the tenancy.
|
2027
|
+
|
2028
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
2029
|
+
|
2030
|
+
:param str search_by_user: (optional)
|
2031
|
+
A filter to return only resources that match the user principal detail.
|
2032
|
+
The search string can be any of the property values from the :func:`principal` object.
|
2033
|
+
This object is used as response datatype for the `createdBy` and `lastUpdatedBy` fields in applicable resource.
|
2034
|
+
|
2035
|
+
:param str id: (optional)
|
2036
|
+
Unique Java license acceptance record identifier.
|
2037
|
+
|
2038
|
+
:param str license_type: (optional)
|
2039
|
+
Unique Java license type.
|
2040
|
+
|
2041
|
+
Allowed values are: "OTN", "NFTC", "RESTRICTED"
|
2042
|
+
|
2043
|
+
:param str status: (optional)
|
2044
|
+
The status of license acceptance.
|
2045
|
+
|
2046
|
+
Allowed values are: "ACCEPTED", "REVOKED"
|
2047
|
+
|
2048
|
+
:param int limit: (optional)
|
2049
|
+
The maximum number of items to return.
|
2050
|
+
|
2051
|
+
:param str page: (optional)
|
2052
|
+
The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
|
2053
|
+
|
2054
|
+
:param str sort_order: (optional)
|
2055
|
+
The sort order, either 'asc' or 'desc'.
|
2056
|
+
|
2057
|
+
Allowed values are: "ASC", "DESC"
|
2058
|
+
|
2059
|
+
:param str sort_by: (optional)
|
2060
|
+
The field to sort by. If no value is specified, _timeAccepted_ is the default.
|
2061
|
+
|
2062
|
+
Allowed values are: "timeAccepted", "timeLastUpdated", "licenseAcceptanceStatus"
|
2063
|
+
|
2064
|
+
:param str opc_request_id: (optional)
|
2065
|
+
The client request ID for tracing.
|
2066
|
+
|
2067
|
+
:param obj retry_strategy: (optional)
|
2068
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2069
|
+
|
2070
|
+
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.
|
2071
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2072
|
+
|
2073
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2074
|
+
|
2075
|
+
:param bool allow_control_chars: (optional)
|
2076
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2077
|
+
By default, the response will not allow control characters in strings
|
2078
|
+
|
2079
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms_java_downloads.models.JavaLicenseAcceptanceRecordCollection`
|
2080
|
+
:rtype: :class:`~oci.response.Response`
|
2081
|
+
|
2082
|
+
:example:
|
2083
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/jmsjavadownloads/list_java_license_acceptance_records.py.html>`__ to see an example of how to use list_java_license_acceptance_records API.
|
2084
|
+
"""
|
2085
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2086
|
+
required_arguments = ['compartmentId']
|
2087
|
+
resource_path = "/20230601/javaLicenseAcceptanceRecords"
|
2088
|
+
method = "GET"
|
2089
|
+
operation_name = "list_java_license_acceptance_records"
|
2090
|
+
api_reference_link = ""
|
2091
|
+
|
2092
|
+
# Don't accept unknown kwargs
|
2093
|
+
expected_kwargs = [
|
2094
|
+
"allow_control_chars",
|
2095
|
+
"retry_strategy",
|
2096
|
+
"search_by_user",
|
2097
|
+
"id",
|
2098
|
+
"license_type",
|
2099
|
+
"status",
|
2100
|
+
"limit",
|
2101
|
+
"page",
|
2102
|
+
"sort_order",
|
2103
|
+
"sort_by",
|
2104
|
+
"opc_request_id"
|
2105
|
+
]
|
2106
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2107
|
+
if extra_kwargs:
|
2108
|
+
raise ValueError(
|
2109
|
+
f"list_java_license_acceptance_records got unknown kwargs: {extra_kwargs!r}")
|
2110
|
+
|
2111
|
+
if 'license_type' in kwargs:
|
2112
|
+
license_type_allowed_values = ["OTN", "NFTC", "RESTRICTED"]
|
2113
|
+
if kwargs['license_type'] not in license_type_allowed_values:
|
2114
|
+
raise ValueError(
|
2115
|
+
f"Invalid value for `license_type`, must be one of { license_type_allowed_values }"
|
2116
|
+
)
|
2117
|
+
|
2118
|
+
if 'status' in kwargs:
|
2119
|
+
status_allowed_values = ["ACCEPTED", "REVOKED"]
|
2120
|
+
if kwargs['status'] not in status_allowed_values:
|
2121
|
+
raise ValueError(
|
2122
|
+
f"Invalid value for `status`, must be one of { status_allowed_values }"
|
2123
|
+
)
|
2124
|
+
|
2125
|
+
if 'sort_order' in kwargs:
|
2126
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
2127
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
2128
|
+
raise ValueError(
|
2129
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
2130
|
+
)
|
2131
|
+
|
2132
|
+
if 'sort_by' in kwargs:
|
2133
|
+
sort_by_allowed_values = ["timeAccepted", "timeLastUpdated", "licenseAcceptanceStatus"]
|
2134
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
2135
|
+
raise ValueError(
|
2136
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
2137
|
+
)
|
2138
|
+
|
2139
|
+
query_params = {
|
2140
|
+
"compartmentId": compartment_id,
|
2141
|
+
"searchByUser": kwargs.get("search_by_user", missing),
|
2142
|
+
"id": kwargs.get("id", missing),
|
2143
|
+
"licenseType": kwargs.get("license_type", missing),
|
2144
|
+
"status": kwargs.get("status", missing),
|
2145
|
+
"limit": kwargs.get("limit", missing),
|
2146
|
+
"page": kwargs.get("page", missing),
|
2147
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
2148
|
+
"sortBy": kwargs.get("sort_by", missing)
|
2149
|
+
}
|
2150
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
2151
|
+
|
2152
|
+
header_params = {
|
2153
|
+
"accept": "application/json",
|
2154
|
+
"content-type": "application/json",
|
2155
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2156
|
+
}
|
2157
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2158
|
+
|
2159
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2160
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2161
|
+
client_retry_strategy=self.retry_strategy
|
2162
|
+
)
|
2163
|
+
if retry_strategy is None:
|
2164
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
2165
|
+
|
2166
|
+
if retry_strategy:
|
2167
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2168
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
2169
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2170
|
+
return retry_strategy.make_retrying_call(
|
2171
|
+
self.base_client.call_api,
|
2172
|
+
resource_path=resource_path,
|
2173
|
+
method=method,
|
2174
|
+
query_params=query_params,
|
2175
|
+
header_params=header_params,
|
2176
|
+
response_type="JavaLicenseAcceptanceRecordCollection",
|
2177
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2178
|
+
operation_name=operation_name,
|
2179
|
+
api_reference_link=api_reference_link,
|
2180
|
+
required_arguments=required_arguments)
|
2181
|
+
else:
|
2182
|
+
return self.base_client.call_api(
|
2183
|
+
resource_path=resource_path,
|
2184
|
+
method=method,
|
2185
|
+
query_params=query_params,
|
2186
|
+
header_params=header_params,
|
2187
|
+
response_type="JavaLicenseAcceptanceRecordCollection",
|
2188
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2189
|
+
operation_name=operation_name,
|
2190
|
+
api_reference_link=api_reference_link,
|
2191
|
+
required_arguments=required_arguments)
|
2192
|
+
|
2193
|
+
def list_java_licenses(self, **kwargs):
|
2194
|
+
"""
|
2195
|
+
Return a list with details of all Java licenses.
|
2196
|
+
|
2197
|
+
|
2198
|
+
:param str license_type: (optional)
|
2199
|
+
Unique Java license type.
|
2200
|
+
|
2201
|
+
Allowed values are: "OTN", "NFTC", "RESTRICTED"
|
2202
|
+
|
2203
|
+
:param str display_name: (optional)
|
2204
|
+
A filter to return only resources that match the display name.
|
2205
|
+
|
2206
|
+
:param int limit: (optional)
|
2207
|
+
The maximum number of items to return.
|
2208
|
+
|
2209
|
+
:param str page: (optional)
|
2210
|
+
The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
|
2211
|
+
|
2212
|
+
:param str sort_order: (optional)
|
2213
|
+
The sort order, either 'asc' or 'desc'.
|
2214
|
+
|
2215
|
+
Allowed values are: "ASC", "DESC"
|
2216
|
+
|
2217
|
+
:param str sort_by: (optional)
|
2218
|
+
The field to sort by. If no value is specified, _licenseType_ is the default.
|
2219
|
+
|
2220
|
+
Allowed values are: "licenseType", "displayName"
|
2221
|
+
|
2222
|
+
:param str opc_request_id: (optional)
|
2223
|
+
The client request ID for tracing.
|
2224
|
+
|
2225
|
+
:param obj retry_strategy: (optional)
|
2226
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2227
|
+
|
2228
|
+
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.
|
2229
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2230
|
+
|
2231
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2232
|
+
|
2233
|
+
:param bool allow_control_chars: (optional)
|
2234
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2235
|
+
By default, the response will not allow control characters in strings
|
2236
|
+
|
2237
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms_java_downloads.models.JavaLicenseCollection`
|
2238
|
+
:rtype: :class:`~oci.response.Response`
|
2239
|
+
|
2240
|
+
:example:
|
2241
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/jmsjavadownloads/list_java_licenses.py.html>`__ to see an example of how to use list_java_licenses API.
|
2242
|
+
"""
|
2243
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2244
|
+
required_arguments = []
|
2245
|
+
resource_path = "/20230601/javaLicenses"
|
2246
|
+
method = "GET"
|
2247
|
+
operation_name = "list_java_licenses"
|
2248
|
+
api_reference_link = ""
|
2249
|
+
|
2250
|
+
# Don't accept unknown kwargs
|
2251
|
+
expected_kwargs = [
|
2252
|
+
"allow_control_chars",
|
2253
|
+
"retry_strategy",
|
2254
|
+
"license_type",
|
2255
|
+
"display_name",
|
2256
|
+
"limit",
|
2257
|
+
"page",
|
2258
|
+
"sort_order",
|
2259
|
+
"sort_by",
|
2260
|
+
"opc_request_id"
|
2261
|
+
]
|
2262
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2263
|
+
if extra_kwargs:
|
2264
|
+
raise ValueError(
|
2265
|
+
f"list_java_licenses got unknown kwargs: {extra_kwargs!r}")
|
2266
|
+
|
2267
|
+
if 'license_type' in kwargs:
|
2268
|
+
license_type_allowed_values = ["OTN", "NFTC", "RESTRICTED"]
|
2269
|
+
if kwargs['license_type'] not in license_type_allowed_values:
|
2270
|
+
raise ValueError(
|
2271
|
+
f"Invalid value for `license_type`, must be one of { license_type_allowed_values }"
|
2272
|
+
)
|
2273
|
+
|
2274
|
+
if 'sort_order' in kwargs:
|
2275
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
2276
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
2277
|
+
raise ValueError(
|
2278
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
2279
|
+
)
|
2280
|
+
|
2281
|
+
if 'sort_by' in kwargs:
|
2282
|
+
sort_by_allowed_values = ["licenseType", "displayName"]
|
2283
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
2284
|
+
raise ValueError(
|
2285
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
2286
|
+
)
|
2287
|
+
|
2288
|
+
query_params = {
|
2289
|
+
"licenseType": kwargs.get("license_type", missing),
|
2290
|
+
"displayName": kwargs.get("display_name", missing),
|
2291
|
+
"limit": kwargs.get("limit", missing),
|
2292
|
+
"page": kwargs.get("page", missing),
|
2293
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
2294
|
+
"sortBy": kwargs.get("sort_by", missing)
|
2295
|
+
}
|
2296
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
2297
|
+
|
2298
|
+
header_params = {
|
2299
|
+
"accept": "application/json",
|
2300
|
+
"content-type": "application/json",
|
2301
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2302
|
+
}
|
2303
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2304
|
+
|
2305
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2306
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2307
|
+
client_retry_strategy=self.retry_strategy
|
2308
|
+
)
|
2309
|
+
if retry_strategy is None:
|
2310
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
2311
|
+
|
2312
|
+
if retry_strategy:
|
2313
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2314
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
2315
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2316
|
+
return retry_strategy.make_retrying_call(
|
2317
|
+
self.base_client.call_api,
|
2318
|
+
resource_path=resource_path,
|
2319
|
+
method=method,
|
2320
|
+
query_params=query_params,
|
2321
|
+
header_params=header_params,
|
2322
|
+
response_type="JavaLicenseCollection",
|
2323
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2324
|
+
operation_name=operation_name,
|
2325
|
+
api_reference_link=api_reference_link,
|
2326
|
+
required_arguments=required_arguments)
|
2327
|
+
else:
|
2328
|
+
return self.base_client.call_api(
|
2329
|
+
resource_path=resource_path,
|
2330
|
+
method=method,
|
2331
|
+
query_params=query_params,
|
2332
|
+
header_params=header_params,
|
2333
|
+
response_type="JavaLicenseCollection",
|
2334
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2335
|
+
operation_name=operation_name,
|
2336
|
+
api_reference_link=api_reference_link,
|
2337
|
+
required_arguments=required_arguments)
|
2338
|
+
|
2339
|
+
def list_work_request_errors(self, work_request_id, **kwargs):
|
2340
|
+
"""
|
2341
|
+
Returns a (paginated) list of errors for the work request with the given ID.
|
2342
|
+
|
2343
|
+
|
2344
|
+
:param str work_request_id: (required)
|
2345
|
+
The ID of the asynchronous request.
|
2346
|
+
|
2347
|
+
:param str opc_request_id: (optional)
|
2348
|
+
The client request ID for tracing.
|
2349
|
+
|
2350
|
+
:param str page: (optional)
|
2351
|
+
The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
|
2352
|
+
|
2353
|
+
:param int limit: (optional)
|
2354
|
+
The maximum number of items to return.
|
2355
|
+
|
2356
|
+
:param str sort_by: (optional)
|
2357
|
+
The field to sort by. Only one sort order may be provided. Default order for timestamp is descending.
|
2358
|
+
|
2359
|
+
Allowed values are: "timestamp"
|
2360
|
+
|
2361
|
+
:param str sort_order: (optional)
|
2362
|
+
The sort order, either 'asc' or 'desc'.
|
2363
|
+
|
2364
|
+
Allowed values are: "ASC", "DESC"
|
2365
|
+
|
2366
|
+
:param obj retry_strategy: (optional)
|
2367
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2368
|
+
|
2369
|
+
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.
|
2370
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2371
|
+
|
2372
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2373
|
+
|
2374
|
+
:param bool allow_control_chars: (optional)
|
2375
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2376
|
+
By default, the response will not allow control characters in strings
|
2377
|
+
|
2378
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms_java_downloads.models.WorkRequestErrorCollection`
|
2379
|
+
:rtype: :class:`~oci.response.Response`
|
2380
|
+
|
2381
|
+
:example:
|
2382
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/jmsjavadownloads/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
|
2383
|
+
"""
|
2384
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2385
|
+
required_arguments = ['workRequestId']
|
2386
|
+
resource_path = "/20230601/workRequests/{workRequestId}/errors"
|
2387
|
+
method = "GET"
|
2388
|
+
operation_name = "list_work_request_errors"
|
2389
|
+
api_reference_link = ""
|
2390
|
+
|
2391
|
+
# Don't accept unknown kwargs
|
2392
|
+
expected_kwargs = [
|
2393
|
+
"allow_control_chars",
|
2394
|
+
"retry_strategy",
|
2395
|
+
"opc_request_id",
|
2396
|
+
"page",
|
2397
|
+
"limit",
|
2398
|
+
"sort_by",
|
2399
|
+
"sort_order"
|
2400
|
+
]
|
2401
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2402
|
+
if extra_kwargs:
|
2403
|
+
raise ValueError(
|
2404
|
+
f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}")
|
2405
|
+
|
2406
|
+
path_params = {
|
2407
|
+
"workRequestId": work_request_id
|
2408
|
+
}
|
2409
|
+
|
2410
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
2411
|
+
|
2412
|
+
for (k, v) in six.iteritems(path_params):
|
2413
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
2414
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
2415
|
+
|
2416
|
+
if 'sort_by' in kwargs:
|
2417
|
+
sort_by_allowed_values = ["timestamp"]
|
2418
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
2419
|
+
raise ValueError(
|
2420
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
2421
|
+
)
|
2422
|
+
|
2423
|
+
if 'sort_order' in kwargs:
|
2424
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
2425
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
2426
|
+
raise ValueError(
|
2427
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
2428
|
+
)
|
2429
|
+
|
2430
|
+
query_params = {
|
2431
|
+
"page": kwargs.get("page", missing),
|
2432
|
+
"limit": kwargs.get("limit", missing),
|
2433
|
+
"sortBy": kwargs.get("sort_by", missing),
|
2434
|
+
"sortOrder": kwargs.get("sort_order", missing)
|
2435
|
+
}
|
2436
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
2437
|
+
|
2438
|
+
header_params = {
|
2439
|
+
"accept": "application/json",
|
2440
|
+
"content-type": "application/json",
|
2441
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2442
|
+
}
|
2443
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2444
|
+
|
2445
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2446
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2447
|
+
client_retry_strategy=self.retry_strategy
|
2448
|
+
)
|
2449
|
+
if retry_strategy is None:
|
2450
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
2451
|
+
|
2452
|
+
if retry_strategy:
|
2453
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2454
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
2455
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2456
|
+
return retry_strategy.make_retrying_call(
|
2457
|
+
self.base_client.call_api,
|
2458
|
+
resource_path=resource_path,
|
2459
|
+
method=method,
|
2460
|
+
path_params=path_params,
|
2461
|
+
query_params=query_params,
|
2462
|
+
header_params=header_params,
|
2463
|
+
response_type="WorkRequestErrorCollection",
|
2464
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2465
|
+
operation_name=operation_name,
|
2466
|
+
api_reference_link=api_reference_link,
|
2467
|
+
required_arguments=required_arguments)
|
2468
|
+
else:
|
2469
|
+
return self.base_client.call_api(
|
2470
|
+
resource_path=resource_path,
|
2471
|
+
method=method,
|
2472
|
+
path_params=path_params,
|
2473
|
+
query_params=query_params,
|
2474
|
+
header_params=header_params,
|
2475
|
+
response_type="WorkRequestErrorCollection",
|
2476
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2477
|
+
operation_name=operation_name,
|
2478
|
+
api_reference_link=api_reference_link,
|
2479
|
+
required_arguments=required_arguments)
|
2480
|
+
|
2481
|
+
def list_work_request_logs(self, work_request_id, **kwargs):
|
2482
|
+
"""
|
2483
|
+
Returns a (paginated) list of logs for the work request with the given ID.
|
2484
|
+
|
2485
|
+
|
2486
|
+
:param str work_request_id: (required)
|
2487
|
+
The ID of the asynchronous request.
|
2488
|
+
|
2489
|
+
:param str opc_request_id: (optional)
|
2490
|
+
The client request ID for tracing.
|
2491
|
+
|
2492
|
+
:param str page: (optional)
|
2493
|
+
The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
|
2494
|
+
|
2495
|
+
:param int limit: (optional)
|
2496
|
+
The maximum number of items to return.
|
2497
|
+
|
2498
|
+
:param str sort_by: (optional)
|
2499
|
+
The field to sort by. Only one sort order may be provided. Default order for timestamp is descending.
|
2500
|
+
|
2501
|
+
Allowed values are: "timestamp"
|
2502
|
+
|
2503
|
+
:param str sort_order: (optional)
|
2504
|
+
The sort order, either 'asc' or 'desc'.
|
2505
|
+
|
2506
|
+
Allowed values are: "ASC", "DESC"
|
2507
|
+
|
2508
|
+
:param obj retry_strategy: (optional)
|
2509
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2510
|
+
|
2511
|
+
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.
|
2512
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2513
|
+
|
2514
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2515
|
+
|
2516
|
+
:param bool allow_control_chars: (optional)
|
2517
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2518
|
+
By default, the response will not allow control characters in strings
|
2519
|
+
|
2520
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms_java_downloads.models.WorkRequestLogEntryCollection`
|
2521
|
+
:rtype: :class:`~oci.response.Response`
|
2522
|
+
|
2523
|
+
:example:
|
2524
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/jmsjavadownloads/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
|
2525
|
+
"""
|
2526
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2527
|
+
required_arguments = ['workRequestId']
|
2528
|
+
resource_path = "/20230601/workRequests/{workRequestId}/logs"
|
2529
|
+
method = "GET"
|
2530
|
+
operation_name = "list_work_request_logs"
|
2531
|
+
api_reference_link = ""
|
2532
|
+
|
2533
|
+
# Don't accept unknown kwargs
|
2534
|
+
expected_kwargs = [
|
2535
|
+
"allow_control_chars",
|
2536
|
+
"retry_strategy",
|
2537
|
+
"opc_request_id",
|
2538
|
+
"page",
|
2539
|
+
"limit",
|
2540
|
+
"sort_by",
|
2541
|
+
"sort_order"
|
2542
|
+
]
|
2543
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2544
|
+
if extra_kwargs:
|
2545
|
+
raise ValueError(
|
2546
|
+
f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}")
|
2547
|
+
|
2548
|
+
path_params = {
|
2549
|
+
"workRequestId": work_request_id
|
2550
|
+
}
|
2551
|
+
|
2552
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
2553
|
+
|
2554
|
+
for (k, v) in six.iteritems(path_params):
|
2555
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
2556
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
2557
|
+
|
2558
|
+
if 'sort_by' in kwargs:
|
2559
|
+
sort_by_allowed_values = ["timestamp"]
|
2560
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
2561
|
+
raise ValueError(
|
2562
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
2563
|
+
)
|
2564
|
+
|
2565
|
+
if 'sort_order' in kwargs:
|
2566
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
2567
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
2568
|
+
raise ValueError(
|
2569
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
2570
|
+
)
|
2571
|
+
|
2572
|
+
query_params = {
|
2573
|
+
"page": kwargs.get("page", missing),
|
2574
|
+
"limit": kwargs.get("limit", missing),
|
2575
|
+
"sortBy": kwargs.get("sort_by", missing),
|
2576
|
+
"sortOrder": kwargs.get("sort_order", missing)
|
2577
|
+
}
|
2578
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
2579
|
+
|
2580
|
+
header_params = {
|
2581
|
+
"accept": "application/json",
|
2582
|
+
"content-type": "application/json",
|
2583
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2584
|
+
}
|
2585
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2586
|
+
|
2587
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2588
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2589
|
+
client_retry_strategy=self.retry_strategy
|
2590
|
+
)
|
2591
|
+
if retry_strategy is None:
|
2592
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
2593
|
+
|
2594
|
+
if retry_strategy:
|
2595
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2596
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
2597
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2598
|
+
return retry_strategy.make_retrying_call(
|
2599
|
+
self.base_client.call_api,
|
2600
|
+
resource_path=resource_path,
|
2601
|
+
method=method,
|
2602
|
+
path_params=path_params,
|
2603
|
+
query_params=query_params,
|
2604
|
+
header_params=header_params,
|
2605
|
+
response_type="WorkRequestLogEntryCollection",
|
2606
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2607
|
+
operation_name=operation_name,
|
2608
|
+
api_reference_link=api_reference_link,
|
2609
|
+
required_arguments=required_arguments)
|
2610
|
+
else:
|
2611
|
+
return self.base_client.call_api(
|
2612
|
+
resource_path=resource_path,
|
2613
|
+
method=method,
|
2614
|
+
path_params=path_params,
|
2615
|
+
query_params=query_params,
|
2616
|
+
header_params=header_params,
|
2617
|
+
response_type="WorkRequestLogEntryCollection",
|
2618
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2619
|
+
operation_name=operation_name,
|
2620
|
+
api_reference_link=api_reference_link,
|
2621
|
+
required_arguments=required_arguments)
|
2622
|
+
|
2623
|
+
def list_work_requests(self, compartment_id, **kwargs):
|
2624
|
+
"""
|
2625
|
+
Lists the work requests in a tenancy.
|
2626
|
+
|
2627
|
+
|
2628
|
+
:param str compartment_id: (required)
|
2629
|
+
The `OCID`__ of the tenancy.
|
2630
|
+
|
2631
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
2632
|
+
|
2633
|
+
:param str id: (optional)
|
2634
|
+
The ID of an asynchronous work request.
|
2635
|
+
|
2636
|
+
:param str status: (optional)
|
2637
|
+
A filter to return only resources their lifecycleState matches the given OperationStatus.
|
2638
|
+
|
2639
|
+
Allowed values are: "ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"
|
2640
|
+
|
2641
|
+
:param str resource_id: (optional)
|
2642
|
+
The ID of the resource affected by the work request.
|
2643
|
+
|
2644
|
+
:param str opc_request_id: (optional)
|
2645
|
+
The client request ID for tracing.
|
2646
|
+
|
2647
|
+
:param str page: (optional)
|
2648
|
+
The page token representing the page at which to start retrieving results. The token is usually retrieved from a previous list call.
|
2649
|
+
|
2650
|
+
:param int limit: (optional)
|
2651
|
+
The maximum number of items to return.
|
2652
|
+
|
2653
|
+
:param str sort_order: (optional)
|
2654
|
+
The sort order, either 'asc' or 'desc'.
|
2655
|
+
|
2656
|
+
Allowed values are: "ASC", "DESC"
|
2657
|
+
|
2658
|
+
:param str sort_by: (optional)
|
2659
|
+
The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending.
|
2660
|
+
|
2661
|
+
Allowed values are: "timeAccepted"
|
2662
|
+
|
2663
|
+
:param obj retry_strategy: (optional)
|
2664
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2665
|
+
|
2666
|
+
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.
|
2667
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2668
|
+
|
2669
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2670
|
+
|
2671
|
+
:param bool allow_control_chars: (optional)
|
2672
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2673
|
+
By default, the response will not allow control characters in strings
|
2674
|
+
|
2675
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms_java_downloads.models.WorkRequestSummaryCollection`
|
2676
|
+
:rtype: :class:`~oci.response.Response`
|
2677
|
+
|
2678
|
+
:example:
|
2679
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/jmsjavadownloads/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
|
2680
|
+
"""
|
2681
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2682
|
+
required_arguments = ['compartmentId']
|
2683
|
+
resource_path = "/20230601/workRequests"
|
2684
|
+
method = "GET"
|
2685
|
+
operation_name = "list_work_requests"
|
2686
|
+
api_reference_link = ""
|
2687
|
+
|
2688
|
+
# Don't accept unknown kwargs
|
2689
|
+
expected_kwargs = [
|
2690
|
+
"allow_control_chars",
|
2691
|
+
"retry_strategy",
|
2692
|
+
"id",
|
2693
|
+
"status",
|
2694
|
+
"resource_id",
|
2695
|
+
"opc_request_id",
|
2696
|
+
"page",
|
2697
|
+
"limit",
|
2698
|
+
"sort_order",
|
2699
|
+
"sort_by"
|
2700
|
+
]
|
2701
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2702
|
+
if extra_kwargs:
|
2703
|
+
raise ValueError(
|
2704
|
+
f"list_work_requests got unknown kwargs: {extra_kwargs!r}")
|
2705
|
+
|
2706
|
+
if 'status' in kwargs:
|
2707
|
+
status_allowed_values = ["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]
|
2708
|
+
if kwargs['status'] not in status_allowed_values:
|
2709
|
+
raise ValueError(
|
2710
|
+
f"Invalid value for `status`, must be one of { status_allowed_values }"
|
2711
|
+
)
|
2712
|
+
|
2713
|
+
if 'sort_order' in kwargs:
|
2714
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
2715
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
2716
|
+
raise ValueError(
|
2717
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
2718
|
+
)
|
2719
|
+
|
2720
|
+
if 'sort_by' in kwargs:
|
2721
|
+
sort_by_allowed_values = ["timeAccepted"]
|
2722
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
2723
|
+
raise ValueError(
|
2724
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
2725
|
+
)
|
2726
|
+
|
2727
|
+
query_params = {
|
2728
|
+
"compartmentId": compartment_id,
|
2729
|
+
"id": kwargs.get("id", missing),
|
2730
|
+
"status": kwargs.get("status", missing),
|
2731
|
+
"resourceId": kwargs.get("resource_id", missing),
|
2732
|
+
"page": kwargs.get("page", missing),
|
2733
|
+
"limit": kwargs.get("limit", missing),
|
2734
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
2735
|
+
"sortBy": kwargs.get("sort_by", missing)
|
2736
|
+
}
|
2737
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
2738
|
+
|
2739
|
+
header_params = {
|
2740
|
+
"accept": "application/json",
|
2741
|
+
"content-type": "application/json",
|
2742
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2743
|
+
}
|
2744
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2745
|
+
|
2746
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2747
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2748
|
+
client_retry_strategy=self.retry_strategy
|
2749
|
+
)
|
2750
|
+
if retry_strategy is None:
|
2751
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
2752
|
+
|
2753
|
+
if retry_strategy:
|
2754
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2755
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
2756
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2757
|
+
return retry_strategy.make_retrying_call(
|
2758
|
+
self.base_client.call_api,
|
2759
|
+
resource_path=resource_path,
|
2760
|
+
method=method,
|
2761
|
+
query_params=query_params,
|
2762
|
+
header_params=header_params,
|
2763
|
+
response_type="WorkRequestSummaryCollection",
|
2764
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2765
|
+
operation_name=operation_name,
|
2766
|
+
api_reference_link=api_reference_link,
|
2767
|
+
required_arguments=required_arguments)
|
2768
|
+
else:
|
2769
|
+
return self.base_client.call_api(
|
2770
|
+
resource_path=resource_path,
|
2771
|
+
method=method,
|
2772
|
+
query_params=query_params,
|
2773
|
+
header_params=header_params,
|
2774
|
+
response_type="WorkRequestSummaryCollection",
|
2775
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2776
|
+
operation_name=operation_name,
|
2777
|
+
api_reference_link=api_reference_link,
|
2778
|
+
required_arguments=required_arguments)
|
2779
|
+
|
2780
|
+
def request_summarized_java_download_counts(self, request_summarized_java_download_counts_details, **kwargs):
|
2781
|
+
"""
|
2782
|
+
Returns list of download counts grouped by the specified property.
|
2783
|
+
|
2784
|
+
|
2785
|
+
:param oci.jms_java_downloads.models.RequestSummarizedJavaDownloadCountsDetails request_summarized_java_download_counts_details: (required)
|
2786
|
+
Details for retreiving the summary of download counts.
|
2787
|
+
|
2788
|
+
:param str opc_request_id: (optional)
|
2789
|
+
The client request ID for tracing.
|
2790
|
+
|
2791
|
+
:param obj retry_strategy: (optional)
|
2792
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2793
|
+
|
2794
|
+
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.
|
2795
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2796
|
+
|
2797
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2798
|
+
|
2799
|
+
:param bool allow_control_chars: (optional)
|
2800
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2801
|
+
By default, the response will not allow control characters in strings
|
2802
|
+
|
2803
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms_java_downloads.models.JavaDownloadCountAggregationCollection`
|
2804
|
+
:rtype: :class:`~oci.response.Response`
|
2805
|
+
|
2806
|
+
:example:
|
2807
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/jmsjavadownloads/request_summarized_java_download_counts.py.html>`__ to see an example of how to use request_summarized_java_download_counts API.
|
2808
|
+
"""
|
2809
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2810
|
+
required_arguments = []
|
2811
|
+
resource_path = "/20230601/actions/requestSummarizedJavaDownloadCounts"
|
2812
|
+
method = "POST"
|
2813
|
+
operation_name = "request_summarized_java_download_counts"
|
2814
|
+
api_reference_link = ""
|
2815
|
+
|
2816
|
+
# Don't accept unknown kwargs
|
2817
|
+
expected_kwargs = [
|
2818
|
+
"allow_control_chars",
|
2819
|
+
"retry_strategy",
|
2820
|
+
"opc_request_id"
|
2821
|
+
]
|
2822
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2823
|
+
if extra_kwargs:
|
2824
|
+
raise ValueError(
|
2825
|
+
f"request_summarized_java_download_counts got unknown kwargs: {extra_kwargs!r}")
|
2826
|
+
|
2827
|
+
header_params = {
|
2828
|
+
"accept": "application/json",
|
2829
|
+
"content-type": "application/json",
|
2830
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2831
|
+
}
|
2832
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2833
|
+
|
2834
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2835
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2836
|
+
client_retry_strategy=self.retry_strategy
|
2837
|
+
)
|
2838
|
+
if retry_strategy is None:
|
2839
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
2840
|
+
|
2841
|
+
if retry_strategy:
|
2842
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2843
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
2844
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2845
|
+
return retry_strategy.make_retrying_call(
|
2846
|
+
self.base_client.call_api,
|
2847
|
+
resource_path=resource_path,
|
2848
|
+
method=method,
|
2849
|
+
header_params=header_params,
|
2850
|
+
body=request_summarized_java_download_counts_details,
|
2851
|
+
response_type="JavaDownloadCountAggregationCollection",
|
2852
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2853
|
+
operation_name=operation_name,
|
2854
|
+
api_reference_link=api_reference_link,
|
2855
|
+
required_arguments=required_arguments)
|
2856
|
+
else:
|
2857
|
+
return self.base_client.call_api(
|
2858
|
+
resource_path=resource_path,
|
2859
|
+
method=method,
|
2860
|
+
header_params=header_params,
|
2861
|
+
body=request_summarized_java_download_counts_details,
|
2862
|
+
response_type="JavaDownloadCountAggregationCollection",
|
2863
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2864
|
+
operation_name=operation_name,
|
2865
|
+
api_reference_link=api_reference_link,
|
2866
|
+
required_arguments=required_arguments)
|
2867
|
+
|
2868
|
+
def update_java_download_token(self, java_download_token_id, update_java_download_token_details, **kwargs):
|
2869
|
+
"""
|
2870
|
+
Updates the JavaDownloadToken specified by the identifier.
|
2871
|
+
|
2872
|
+
|
2873
|
+
:param str java_download_token_id: (required)
|
2874
|
+
Unique JavaDownloadToken identifier.
|
2875
|
+
|
2876
|
+
:param oci.jms_java_downloads.models.UpdateJavaDownloadTokenDetails update_java_download_token_details: (required)
|
2877
|
+
The attributes to be updated.
|
2878
|
+
|
2879
|
+
:param str if_match: (optional)
|
2880
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
2881
|
+
for a resource, set the `if-match` parameter to the value of the
|
2882
|
+
ETag from a previous GET or POST response for that resource.
|
2883
|
+
The resource will be updated or deleted only if the ETag you
|
2884
|
+
provide matches the resource's current ETag value.
|
2885
|
+
|
2886
|
+
:param str opc_request_id: (optional)
|
2887
|
+
The client request ID for tracing.
|
2888
|
+
|
2889
|
+
:param obj retry_strategy: (optional)
|
2890
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2891
|
+
|
2892
|
+
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.
|
2893
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2894
|
+
|
2895
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2896
|
+
|
2897
|
+
:param bool allow_control_chars: (optional)
|
2898
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2899
|
+
By default, the response will not allow control characters in strings
|
2900
|
+
|
2901
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
2902
|
+
:rtype: :class:`~oci.response.Response`
|
2903
|
+
|
2904
|
+
:example:
|
2905
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/jmsjavadownloads/update_java_download_token.py.html>`__ to see an example of how to use update_java_download_token API.
|
2906
|
+
"""
|
2907
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2908
|
+
required_arguments = ['javaDownloadTokenId']
|
2909
|
+
resource_path = "/20230601/javaDownloadTokens/{javaDownloadTokenId}"
|
2910
|
+
method = "PUT"
|
2911
|
+
operation_name = "update_java_download_token"
|
2912
|
+
api_reference_link = ""
|
2913
|
+
|
2914
|
+
# Don't accept unknown kwargs
|
2915
|
+
expected_kwargs = [
|
2916
|
+
"allow_control_chars",
|
2917
|
+
"retry_strategy",
|
2918
|
+
"if_match",
|
2919
|
+
"opc_request_id"
|
2920
|
+
]
|
2921
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2922
|
+
if extra_kwargs:
|
2923
|
+
raise ValueError(
|
2924
|
+
f"update_java_download_token got unknown kwargs: {extra_kwargs!r}")
|
2925
|
+
|
2926
|
+
path_params = {
|
2927
|
+
"javaDownloadTokenId": java_download_token_id
|
2928
|
+
}
|
2929
|
+
|
2930
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
2931
|
+
|
2932
|
+
for (k, v) in six.iteritems(path_params):
|
2933
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
2934
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
2935
|
+
|
2936
|
+
header_params = {
|
2937
|
+
"accept": "application/json",
|
2938
|
+
"content-type": "application/json",
|
2939
|
+
"if-match": kwargs.get("if_match", missing),
|
2940
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2941
|
+
}
|
2942
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2943
|
+
|
2944
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2945
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2946
|
+
client_retry_strategy=self.retry_strategy
|
2947
|
+
)
|
2948
|
+
if retry_strategy is None:
|
2949
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
2950
|
+
|
2951
|
+
if retry_strategy:
|
2952
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2953
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
2954
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2955
|
+
return retry_strategy.make_retrying_call(
|
2956
|
+
self.base_client.call_api,
|
2957
|
+
resource_path=resource_path,
|
2958
|
+
method=method,
|
2959
|
+
path_params=path_params,
|
2960
|
+
header_params=header_params,
|
2961
|
+
body=update_java_download_token_details,
|
2962
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2963
|
+
operation_name=operation_name,
|
2964
|
+
api_reference_link=api_reference_link,
|
2965
|
+
required_arguments=required_arguments)
|
2966
|
+
else:
|
2967
|
+
return self.base_client.call_api(
|
2968
|
+
resource_path=resource_path,
|
2969
|
+
method=method,
|
2970
|
+
path_params=path_params,
|
2971
|
+
header_params=header_params,
|
2972
|
+
body=update_java_download_token_details,
|
2973
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2974
|
+
operation_name=operation_name,
|
2975
|
+
api_reference_link=api_reference_link,
|
2976
|
+
required_arguments=required_arguments)
|
2977
|
+
|
2978
|
+
def update_java_license_acceptance_record(self, java_license_acceptance_record_id, update_java_license_acceptance_record_details, **kwargs):
|
2979
|
+
"""
|
2980
|
+
Updates a specific Java license acceptance record in a tenancy.
|
2981
|
+
|
2982
|
+
|
2983
|
+
:param str java_license_acceptance_record_id: (required)
|
2984
|
+
Unique Java license acceptance record identifier.
|
2985
|
+
|
2986
|
+
:param oci.jms_java_downloads.models.UpdateJavaLicenseAcceptanceRecordDetails update_java_license_acceptance_record_details: (required)
|
2987
|
+
Attributes for updating the JavaLicenseAcceptanceRecord.
|
2988
|
+
|
2989
|
+
:param str if_match: (optional)
|
2990
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
2991
|
+
for a resource, set the `if-match` parameter to the value of the
|
2992
|
+
ETag from a previous GET or POST response for that resource.
|
2993
|
+
The resource will be updated or deleted only if the ETag you
|
2994
|
+
provide matches the resource's current ETag value.
|
2995
|
+
|
2996
|
+
:param str opc_request_id: (optional)
|
2997
|
+
The client request ID for tracing.
|
2998
|
+
|
2999
|
+
:param obj retry_strategy: (optional)
|
3000
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
3001
|
+
|
3002
|
+
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.
|
3003
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
3004
|
+
|
3005
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
3006
|
+
|
3007
|
+
:param bool allow_control_chars: (optional)
|
3008
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
3009
|
+
By default, the response will not allow control characters in strings
|
3010
|
+
|
3011
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.jms_java_downloads.models.JavaLicenseAcceptanceRecord`
|
3012
|
+
:rtype: :class:`~oci.response.Response`
|
3013
|
+
|
3014
|
+
:example:
|
3015
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.116.0/jmsjavadownloads/update_java_license_acceptance_record.py.html>`__ to see an example of how to use update_java_license_acceptance_record API.
|
3016
|
+
"""
|
3017
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3018
|
+
required_arguments = ['javaLicenseAcceptanceRecordId']
|
3019
|
+
resource_path = "/20230601/javaLicenseAcceptanceRecords/{javaLicenseAcceptanceRecordId}"
|
3020
|
+
method = "PUT"
|
3021
|
+
operation_name = "update_java_license_acceptance_record"
|
3022
|
+
api_reference_link = ""
|
3023
|
+
|
3024
|
+
# Don't accept unknown kwargs
|
3025
|
+
expected_kwargs = [
|
3026
|
+
"allow_control_chars",
|
3027
|
+
"retry_strategy",
|
3028
|
+
"if_match",
|
3029
|
+
"opc_request_id"
|
3030
|
+
]
|
3031
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
3032
|
+
if extra_kwargs:
|
3033
|
+
raise ValueError(
|
3034
|
+
f"update_java_license_acceptance_record got unknown kwargs: {extra_kwargs!r}")
|
3035
|
+
|
3036
|
+
path_params = {
|
3037
|
+
"javaLicenseAcceptanceRecordId": java_license_acceptance_record_id
|
3038
|
+
}
|
3039
|
+
|
3040
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
3041
|
+
|
3042
|
+
for (k, v) in six.iteritems(path_params):
|
3043
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
3044
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
3045
|
+
|
3046
|
+
header_params = {
|
3047
|
+
"accept": "application/json",
|
3048
|
+
"content-type": "application/json",
|
3049
|
+
"if-match": kwargs.get("if_match", missing),
|
3050
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
3051
|
+
}
|
3052
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
3053
|
+
|
3054
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
3055
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
3056
|
+
client_retry_strategy=self.retry_strategy
|
3057
|
+
)
|
3058
|
+
if retry_strategy is None:
|
3059
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
3060
|
+
|
3061
|
+
if retry_strategy:
|
3062
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
3063
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
3064
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
3065
|
+
return retry_strategy.make_retrying_call(
|
3066
|
+
self.base_client.call_api,
|
3067
|
+
resource_path=resource_path,
|
3068
|
+
method=method,
|
3069
|
+
path_params=path_params,
|
3070
|
+
header_params=header_params,
|
3071
|
+
body=update_java_license_acceptance_record_details,
|
3072
|
+
response_type="JavaLicenseAcceptanceRecord",
|
3073
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3074
|
+
operation_name=operation_name,
|
3075
|
+
api_reference_link=api_reference_link,
|
3076
|
+
required_arguments=required_arguments)
|
3077
|
+
else:
|
3078
|
+
return self.base_client.call_api(
|
3079
|
+
resource_path=resource_path,
|
3080
|
+
method=method,
|
3081
|
+
path_params=path_params,
|
3082
|
+
header_params=header_params,
|
3083
|
+
body=update_java_license_acceptance_record_details,
|
3084
|
+
response_type="JavaLicenseAcceptanceRecord",
|
3085
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3086
|
+
operation_name=operation_name,
|
3087
|
+
api_reference_link=api_reference_link,
|
3088
|
+
required_arguments=required_arguments)
|